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
16using namespace llvm;
17AMDGPUFrameLowering::AMDGPUFrameLowering(StackDirection D, unsigned StackAl,
18    int LAO, unsigned TransAl)
19  : TargetFrameLowering(D, StackAl, LAO, TransAl)
20{
21}
22
23AMDGPUFrameLowering::~AMDGPUFrameLowering()
24{
25}
26
27/// getFrameIndexOffset - Returns the displacement from the frame register to
28/// the stack frame of the specified index.
29int AMDGPUFrameLowering::getFrameIndexOffset(const MachineFunction &MF,
30                                         int FI) const {
31  const MachineFrameInfo *MFI = MF.getFrameInfo();
32  return MFI->getObjectOffset(FI);
33}
34
35const TargetFrameLowering::SpillSlot *
36AMDGPUFrameLowering::getCalleeSavedSpillSlots(unsigned &NumEntries) const
37{
38  NumEntries = 0;
39  return 0;
40}
41void
42AMDGPUFrameLowering::emitPrologue(MachineFunction &MF) const
43{
44}
45void
46AMDGPUFrameLowering::emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const
47{
48}
49bool
50AMDGPUFrameLowering::hasFP(const MachineFunction &MF) const
51{
52  return false;
53}
54