LLVM 20.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
18
19namespace llvm {
20
22public:
23 explicit NVPTXFrameLowering();
24
25 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
26 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
28 Register &FrameReg) const override;
29
32 MachineBasicBlock::iterator I) const override;
33 DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override;
34
35protected:
36 bool hasFPImpl(const MachineFunction &MF) const override;
37};
38
39} // End llvm namespace
40
41#endif
MachineBasicBlock & MBB
#define I(x, y, z)
Definition: MD5.cpp:58
DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override
Return the frame base information to be encoded in the DWARF subprogram debug info.
bool hasFPImpl(const MachineFunction &MF) const override
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...
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
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...
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
StackOffset holds a fixed and a scalable offset in bytes.
Definition: TypeSize.h:33
Information about stack frame layout on the target.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18