| 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 |  | 
| Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 14 | #ifndef LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H | 
|  | 15 | #define LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 16 |  | 
| David Blaikie | 1be62f0 | 2017-11-03 22:32:11 +0000 | [diff] [blame^] | 17 | #include "llvm/CodeGen/TargetFrameLowering.h" | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 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 | public: | 
| Eric Christopher | 02389e3 | 2015-02-19 00:08:27 +0000 | [diff] [blame] | 23 | explicit NVPTXFrameLowering(); | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 24 |  | 
| Craig Topper | 2865c98 | 2014-04-29 07:57:44 +0000 | [diff] [blame] | 25 | bool hasFP(const MachineFunction &MF) const override; | 
| Quentin Colombet | 61b305e | 2015-05-05 17:38:16 +0000 | [diff] [blame] | 26 | void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override; | 
| Craig Topper | 2865c98 | 2014-04-29 07:57:44 +0000 | [diff] [blame] | 27 | void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; | 
| Eli Bendersky | 8da8716 | 2013-02-21 20:05:00 +0000 | [diff] [blame] | 28 |  | 
| Hans Wennborg | e1a2e90 | 2016-03-31 18:33:38 +0000 | [diff] [blame] | 29 | MachineBasicBlock::iterator | 
| Eric Christopher | 02389e3 | 2015-02-19 00:08:27 +0000 | [diff] [blame] | 30 | eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, | 
|  | 31 | MachineBasicBlock::iterator I) const override; | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 32 | }; | 
|  | 33 |  | 
| Alexander Kornienko | f00654e | 2015-06-23 09:49:53 +0000 | [diff] [blame] | 34 | } // End llvm namespace | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 35 |  | 
|  | 36 | #endif |