LLVM  14.0.0git
R600FrameLowering.h
Go to the documentation of this file.
1 //===--------------------- R600FrameLowering.h ------------------*- 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 #ifndef LLVM_LIB_TARGET_AMDGPU_R600FRAMELOWERING_H
10 #define LLVM_LIB_TARGET_AMDGPU_R600FRAMELOWERING_H
11 
12 #include "AMDGPUFrameLowering.h"
13 
14 namespace llvm {
15 
17 public:
19  Align TransAl = Align(1))
20  : AMDGPUFrameLowering(D, StackAl, LAO, TransAl) {}
21  ~R600FrameLowering() override;
22 
24  MachineBasicBlock &MBB) const override {}
26  MachineBasicBlock &MBB) const override {}
28  Register &FrameReg) const override;
29 
30  bool hasFP(const MachineFunction &MF) const override {
31  return false;
32  }
33 };
34 
35 } // end namespace llvm
36 
37 #endif // LLVM_LIB_TARGET_AMDGPU_R600FRAMELOWERING_H
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::R600FrameLowering::R600FrameLowering
R600FrameLowering(StackDirection D, Align StackAl, int LAO, Align TransAl=Align(1))
Definition: R600FrameLowering.h:18
llvm::R600FrameLowering
Definition: R600FrameLowering.h:16
llvm::AMDGPUFrameLowering
Information about the stack frame layout on the AMDGPU targets.
Definition: AMDGPUFrameLowering.h:26
llvm::TargetFrameLowering::StackDirection
StackDirection
Definition: TargetFrameLowering.h:45
Align
uint64_t Align
Definition: ELFObjHandler.cpp:83
llvm::Align
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:39
llvm::MachineBasicBlock
Definition: MachineBasicBlock.h:95
llvm::R600FrameLowering::emitEpilogue
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
Definition: R600FrameLowering.h:25
llvm::R600FrameLowering::~R600FrameLowering
~R600FrameLowering() override
D
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
llvm::R600FrameLowering::getFrameIndexReference
StackOffset getFrameIndexReference(const MachineFunction &MF, int FI, Register &FrameReg) const override
Definition: R600FrameLowering.cpp:18
AMDGPUFrameLowering.h
llvm::MachineFunction
Definition: MachineFunction.h:234
llvm::StackOffset
StackOffset is a class to represent an offset with 2 dimensions, named fixed and scalable,...
Definition: TypeSize.h:134
llvm::Register
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
MBB
MachineBasicBlock & MBB
Definition: AArch64SLSHardening.cpp:74
llvm::R600FrameLowering::emitPrologue
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
Definition: R600FrameLowering.h:23
llvm::R600FrameLowering::hasFP
bool hasFP(const MachineFunction &MF) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register.
Definition: R600FrameLowering.h:30