121
|
1 //===-- Nios2FrameLowering.cpp - Nios2 Frame Information ------------------===//
|
|
2 //
|
|
3 // The LLVM Compiler Infrastructure
|
|
4 //
|
|
5 // This file is distributed under the University of Illinois Open Source
|
|
6 // License. See LICENSE.TXT for details.
|
|
7 //
|
|
8 //===----------------------------------------------------------------------===//
|
|
9 //
|
|
10 // This file contains the Nios2 implementation of TargetFrameLowering class.
|
|
11 //
|
|
12 //===----------------------------------------------------------------------===//
|
|
13
|
|
14 #include "Nios2FrameLowering.h"
|
|
15
|
|
16 #include "Nios2Subtarget.h"
|
|
17 #include "llvm/CodeGen/MachineFunction.h"
|
|
18
|
|
19 using namespace llvm;
|
|
20
|
|
21 bool Nios2FrameLowering::hasFP(const MachineFunction &MF) const { return true; }
|
|
22
|
|
23 void Nios2FrameLowering::emitPrologue(MachineFunction &MF,
|
|
24 MachineBasicBlock &MBB) const {}
|
|
25
|
|
26 void Nios2FrameLowering::emitEpilogue(MachineFunction &MF,
|
|
27 MachineBasicBlock &MBB) const {}
|
|
28
|
|
29 const Nios2FrameLowering *Nios2FrameLowering::create(const Nios2Subtarget &ST) {
|
|
30 return new Nios2FrameLowering(ST, 4);
|
|
31 }
|