| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 1 | //===--- NVPTXFrameLowering.h - Define frame lowering for NVPTX -*- 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 | // | 
|  | 11 | // | 
|  | 12 | //===----------------------------------------------------------------------===// | 
|  | 13 |  | 
|  | 14 | #ifndef NVPTX_FRAMELOWERING_H | 
|  | 15 | #define NVPTX_FRAMELOWERING_H | 
|  | 16 |  | 
|  | 17 | #include "llvm/Target/TargetFrameLowering.h" | 
|  | 18 |  | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 19 | namespace llvm { | 
| Eric Christopher | dd440f8 | 2014-06-27 02:05:24 +0000 | [diff] [blame] | 20 | class NVPTXSubtarget; | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 21 | class NVPTXFrameLowering : public TargetFrameLowering { | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 22 | bool is64bit; | 
|  | 23 |  | 
|  | 24 | public: | 
| Eric Christopher | dd440f8 | 2014-06-27 02:05:24 +0000 | [diff] [blame] | 25 | explicit NVPTXFrameLowering(NVPTXSubtarget &STI); | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 26 |  | 
| Craig Topper | 2865c98 | 2014-04-29 07:57:44 +0000 | [diff] [blame] | 27 | bool hasFP(const MachineFunction &MF) const override; | 
|  | 28 | void emitPrologue(MachineFunction &MF) const override; | 
|  | 29 | void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; | 
| Eli Bendersky | 8da8716 | 2013-02-21 20:05:00 +0000 | [diff] [blame] | 30 |  | 
|  | 31 | void eliminateCallFramePseudoInstr(MachineFunction &MF, | 
| Craig Topper | 2865c98 | 2014-04-29 07:57:44 +0000 | [diff] [blame] | 32 | MachineBasicBlock &MBB, | 
|  | 33 | MachineBasicBlock::iterator I) const override; | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 34 | }; | 
|  | 35 |  | 
|  | 36 | } // End llvm namespace | 
|  | 37 |  | 
|  | 38 | #endif |