1 //===----------------------- AMDILFrameLowering.cpp -----------------*- C++ -*-===//
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 // Interface to describe a layout of a stack frame on a AMDIL target machine
11 //
12 //===----------------------------------------------------------------------===//
13 #include "AMDILFrameLowering.h"
14 #include "llvm/CodeGen/MachineFrameInfo.h"
15
16 using namespace llvm;
AMDGPUFrameLowering(StackDirection D,unsigned StackAl,int LAO,unsigned TransAl)17 AMDGPUFrameLowering::AMDGPUFrameLowering(StackDirection D, unsigned StackAl,
18 int LAO, unsigned TransAl)
19 : TargetFrameLowering(D, StackAl, LAO, TransAl)
20 {
21 }
22
~AMDGPUFrameLowering()23 AMDGPUFrameLowering::~AMDGPUFrameLowering()
24 {
25 }
26
27 /// getFrameIndexOffset - Returns the displacement from the frame register to
28 /// the stack frame of the specified index.
getFrameIndexOffset(const MachineFunction & MF,int FI) const29 int AMDGPUFrameLowering::getFrameIndexOffset(const MachineFunction &MF,
30 int FI) const {
31 const MachineFrameInfo *MFI = MF.getFrameInfo();
32 return MFI->getObjectOffset(FI);
33 }
34
35 const TargetFrameLowering::SpillSlot *
getCalleeSavedSpillSlots(unsigned & NumEntries) const36 AMDGPUFrameLowering::getCalleeSavedSpillSlots(unsigned &NumEntries) const
37 {
38 NumEntries = 0;
39 return 0;
40 }
41 void
emitPrologue(MachineFunction & MF) const42 AMDGPUFrameLowering::emitPrologue(MachineFunction &MF) const
43 {
44 }
45 void
emitEpilogue(MachineFunction & MF,MachineBasicBlock & MBB) const46 AMDGPUFrameLowering::emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const
47 {
48 }
49 bool
hasFP(const MachineFunction & MF) const50 AMDGPUFrameLowering::hasFP(const MachineFunction &MF) const
51 {
52 return false;
53 }
54