LLVM
15.0.0git
lib
Target
AMDGPU
AMDGPUFrameLowering.h
Go to the documentation of this file.
1
//===--------------------- AMDGPUFrameLowering.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
/// \file
10
/// Interface to describe a layout of a stack frame on an AMDGPU target.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUFRAMELOWERING_H
15
#define LLVM_LIB_TARGET_AMDGPU_AMDGPUFRAMELOWERING_H
16
17
#include "
llvm/CodeGen/TargetFrameLowering.h
"
18
19
namespace
llvm
{
20
21
/// Information about the stack frame layout on the AMDGPU targets.
22
///
23
/// It holds the direction of the stack growth, the known stack alignment on
24
/// entry to each function, and the offset to the locals area.
25
/// See TargetFrameInfo for more comments.
26
class
AMDGPUFrameLowering
:
public
TargetFrameLowering
{
27
public
:
28
AMDGPUFrameLowering
(
StackDirection
D
,
Align
StackAl,
int
LAO,
29
Align
TransAl =
Align
(1));
30
~AMDGPUFrameLowering
()
override
;
31
32
/// \returns The number of 32-bit sub-registers that are used when storing
33
/// values to the stack.
34
unsigned
getStackWidth
(
const
MachineFunction
&MF)
const
;
35
};
36
37
}
// end namespace llvm
38
39
#endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUFRAMELOWERING_H
llvm::AMDGPUFrameLowering::AMDGPUFrameLowering
AMDGPUFrameLowering(StackDirection D, Align StackAl, int LAO, Align TransAl=Align(1))
Definition:
AMDGPUFrameLowering.cpp:16
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:17
TargetFrameLowering.h
llvm::TargetFrameLowering
Information about stack frame layout on the target.
Definition:
TargetFrameLowering.h:43
llvm::AMDGPUFrameLowering
Information about the stack frame layout on the AMDGPU targets.
Definition:
AMDGPUFrameLowering.h:26
llvm::TargetFrameLowering::StackDirection
StackDirection
Definition:
TargetFrameLowering.h:45
llvm::AMDGPUFrameLowering::~AMDGPUFrameLowering
~AMDGPUFrameLowering() override
Align
uint64_t Align
Definition:
ELFObjHandler.cpp:81
llvm::Align
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition:
Alignment.h:39
D
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
llvm::MachineFunction
Definition:
MachineFunction.h:241
llvm::AMDGPUFrameLowering::getStackWidth
unsigned getStackWidth(const MachineFunction &MF) const
Definition:
AMDGPUFrameLowering.cpp:22
Generated on Thu May 19 2022 15:25:30 for LLVM by
1.8.17