LLVM  13.0.0git
NVPTXFrameLowering.h
Go to the documentation of this file.
1 //===--- NVPTXFrameLowering.h - Define frame lowering for NVPTX -*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 //
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
14 #define LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
15 
17 #include "llvm/Support/TypeSize.h"
18 
19 namespace llvm {
20 
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;
29  Register &FrameReg) const override;
30 
33  MachineBasicBlock::iterator I) const override;
34  DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override;
35 };
36 
37 } // End llvm namespace
38 
39 #endif
llvm
Definition: AllocatorList.h:23
TargetFrameLowering.h
llvm::TargetFrameLowering
Information about stack frame layout on the target.
Definition: TargetFrameLowering.h:43
llvm::NVPTXFrameLowering::hasFP
bool hasFP(const MachineFunction &MF) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register.
Definition: NVPTXFrameLowering.cpp:30
TypeSize.h
llvm::NVPTXFrameLowering::getDwarfFrameBase
DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override
Return the frame base information to be encoded in the DWARF subprogram debug info.
Definition: NVPTXFrameLowering.cpp:89
llvm::TargetFrameLowering::DwarfFrameBase
Definition: TargetFrameLowering.h:56
llvm::NVPTXFrameLowering::eliminateCallFramePseudoInstr
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...
Definition: NVPTXFrameLowering.cpp:80
llvm::NVPTXFrameLowering::emitEpilogue
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
Definition: NVPTXFrameLowering.cpp:75
llvm::NVPTXFrameLowering
Definition: NVPTXFrameLowering.h:21
llvm::NVPTXFrameLowering::emitPrologue
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
Definition: NVPTXFrameLowering.cpp:32
llvm::NVPTXFrameLowering::getFrameIndexReference
StackOffset getFrameIndexReference(const MachineFunction &MF, int FI, Register &FrameReg) const override
getFrameIndexReference - This method should return the base register and offset used to reference a f...
Definition: NVPTXFrameLowering.cpp:67
llvm::MachineBasicBlock
Definition: MachineBasicBlock.h:95
I
#define I(x, y, z)
Definition: MD5.cpp:59
llvm::MachineFunction
Definition: MachineFunction.h:230
llvm::StackOffset
StackOffset is a class to represent an offset with 2 dimensions, named fixed and scalable,...
Definition: TypeSize.h:134
llvm::NVPTXFrameLowering::NVPTXFrameLowering
NVPTXFrameLowering()
Definition: NVPTXFrameLowering.cpp:27
llvm::Register
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
MBB
MachineBasicBlock & MBB
Definition: AArch64SLSHardening.cpp:74
llvm::MachineInstrBundleIterator< MachineInstr >