LLVM  8.0.1
NVPTXFrameLowering.h
Go to the documentation of this file.
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 LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
15 #define LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
16 
18 
19 namespace llvm {
20 class NVPTXSubtarget;
22 public:
23  explicit NVPTXFrameLowering();
24 
25  bool hasFP(const MachineFunction &MF) const override;
26  void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
27  void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
28  int getFrameIndexReference(const MachineFunction &MF, int FI,
29  unsigned &FrameReg) const override;
30 
33  MachineBasicBlock::iterator I) const override;
34 };
35 
36 } // End llvm namespace
37 
38 #endif
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
This class represents lattice values for constants.
Definition: AllocatorList.h:24
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
Information about stack frame layout on the target.
MachineBasicBlock::iterator eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const override
This method is called during prolog/epilog code insertion to eliminate call frame setup and destroy p...
int getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const override
getFrameIndexReference - This method should return the base register and offset used to reference a f...
bool hasFP(const MachineFunction &MF) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register...
#define I(x, y, z)
Definition: MD5.cpp:58