llvm/lib/Target/Nios2/Nios2FrameLowering.cpp
Nikolai Bozhenov 846e43e490 [Nios2] final infrastructure to provide compilation of a return from a function
This patch includes all missing functionality needed to provide first
compilation of a simple program that just returns from a function.
I've added a test case that checks for "ret" instruction printed in assembly
output.

Patch by Andrei Grischenko (andrei.l.grischenko@intel.com)
Differential revision: https://reviews.llvm.org/D39688


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320035 91177308-0d34-0410-b5e6-96231b3b80d8
2017-12-07 12:35:02 +00:00

28 lines
976 B
C++

//===-- Nios2FrameLowering.cpp - Nios2 Frame Information ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the Nios2 implementation of TargetFrameLowering class.
//
//===----------------------------------------------------------------------===//
#include "Nios2FrameLowering.h"
#include "Nios2Subtarget.h"
#include "llvm/CodeGen/MachineFunction.h"
using namespace llvm;
bool Nios2FrameLowering::hasFP(const MachineFunction &MF) const { return true; }
void Nios2FrameLowering::emitPrologue(MachineFunction &MF,
MachineBasicBlock &MBB) const {}
void Nios2FrameLowering::emitEpilogue(MachineFunction &MF,
MachineBasicBlock &MBB) const {}