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 LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
15 #define LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
17 #include "llvm/Target/TargetFrameLowering.h"
21 class NVPTXFrameLowering : public TargetFrameLowering {
25 explicit NVPTXFrameLowering(NVPTXSubtarget &STI);
27 bool hasFP(const MachineFunction &MF) const override;
28 void emitPrologue(MachineFunction &MF) const override;
29 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
31 void eliminateCallFramePseudoInstr(MachineFunction &MF,
32 MachineBasicBlock &MBB,
33 MachineBasicBlock::iterator I) const override;
36 } // End llvm namespace