Matt Arsenault | 43e92fe | 2016-06-24 06:30:11 +0000 | [diff] [blame] | 1 | //===--------------------- R600FrameLowering.h ------------------*- 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 | #ifndef LLVM_LIB_TARGET_AMDGPU_R600FRAMELOWERING_H |
| 11 | #define LLVM_LIB_TARGET_AMDGPU_R600FRAMELOWERING_H |
| 12 | |
| 13 | #include "AMDGPUFrameLowering.h" |
| 14 | |
| 15 | namespace llvm { |
| 16 | |
| 17 | class R600FrameLowering : public AMDGPUFrameLowering { |
| 18 | public: |
| 19 | R600FrameLowering(StackDirection D, unsigned StackAl, int LAO, |
| 20 | unsigned TransAl = 1) : |
| 21 | AMDGPUFrameLowering(D, StackAl, LAO, TransAl) {} |
Eugene Zelenko | 2bc2f33 | 2016-12-09 22:06:55 +0000 | [diff] [blame] | 22 | ~R600FrameLowering() override; |
Matt Arsenault | 43e92fe | 2016-06-24 06:30:11 +0000 | [diff] [blame] | 23 | |
Eugene Zelenko | 2bc2f33 | 2016-12-09 22:06:55 +0000 | [diff] [blame] | 24 | void emitPrologue(MachineFunction &MF, |
| 25 | MachineBasicBlock &MBB) const override {} |
| 26 | void emitEpilogue(MachineFunction &MF, |
| 27 | MachineBasicBlock &MBB) const override {} |
Konstantin Zhuravlyov | ffdb00e | 2017-03-10 19:39:07 +0000 | [diff] [blame] | 28 | int getFrameIndexReference(const MachineFunction &MF, int FI, |
| 29 | unsigned &FrameReg) const override; |
Matt Arsenault | b62a4eb | 2017-08-01 19:54:18 +0000 | [diff] [blame^] | 30 | |
| 31 | bool hasFP(const MachineFunction &MF) const override { |
| 32 | return false; |
| 33 | } |
Matt Arsenault | 43e92fe | 2016-06-24 06:30:11 +0000 | [diff] [blame] | 34 | }; |
| 35 | |
Eugene Zelenko | 2bc2f33 | 2016-12-09 22:06:55 +0000 | [diff] [blame] | 36 | } // end namespace llvm |
Matt Arsenault | 43e92fe | 2016-06-24 06:30:11 +0000 | [diff] [blame] | 37 | |
Eugene Zelenko | 2bc2f33 | 2016-12-09 22:06:55 +0000 | [diff] [blame] | 38 | #endif // LLVM_LIB_TARGET_AMDGPU_R600FRAMELOWERING_H |