Restrict sin/cos optimization to 64-bit only for now. 32-bit is a bit messy and less...
[oota-llvm.git] / lib / Target / R600 / AMDILFrameLowering.cpp
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 /// \file
11 /// \brief Interface to describe a layout of a stack frame on a AMDGPU target
12 /// machine.
13 //
14 //===----------------------------------------------------------------------===//
15 #include "AMDILFrameLowering.h"
16 #include "llvm/CodeGen/MachineFrameInfo.h"
17
18 using namespace llvm;
19 AMDGPUFrameLowering::AMDGPUFrameLowering(StackDirection D, unsigned StackAl,
20     int LAO, unsigned TransAl)
21   : TargetFrameLowering(D, StackAl, LAO, TransAl) {
22 }
23
24 AMDGPUFrameLowering::~AMDGPUFrameLowering() {
25 }
26
27 int AMDGPUFrameLowering::getFrameIndexOffset(const MachineFunction &MF,
28                                          int FI) const {
29   const MachineFrameInfo *MFI = MF.getFrameInfo();
30   return MFI->getObjectOffset(FI);
31 }
32
33 const TargetFrameLowering::SpillSlot *
34 AMDGPUFrameLowering::getCalleeSavedSpillSlots(unsigned &NumEntries) const {
35   NumEntries = 0;
36   return 0;
37 }
38 void
39 AMDGPUFrameLowering::emitPrologue(MachineFunction &MF) const {
40 }
41 void
42 AMDGPUFrameLowering::emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const {
43 }
44 bool
45 AMDGPUFrameLowering::hasFP(const MachineFunction &MF) const {
46   return false;
47 }