1 //===--- NVPTXFrameLowering.h - Define frame lowering for NVPTX -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
14 #ifndef NVPTX_FRAMELOWERING_H
15 #define NVPTX_FRAMELOWERING_H
17 #include "llvm/Target/TargetFrameLowering.h"
21 class NVPTXTargetMachine;
23 class NVPTXFrameLowering : public TargetFrameLowering {
24 NVPTXTargetMachine &tm;
28 explicit NVPTXFrameLowering(NVPTXTargetMachine &_tm, bool _is64bit)
29 : TargetFrameLowering(TargetFrameLowering::StackGrowsUp, 8, 0),
30 tm(_tm), is64bit(_is64bit) {}
32 virtual bool hasFP(const MachineFunction &MF) const;
33 virtual void emitPrologue(MachineFunction &MF) const;
34 virtual void emitEpilogue(MachineFunction &MF,
35 MachineBasicBlock &MBB) const;
37 void eliminateCallFramePseudoInstr(MachineFunction &MF,
38 MachineBasicBlock &MBB,
39 MachineBasicBlock::iterator I) const;
42 } // End llvm namespace