LLVM: llvm::SIProgramInfo Struct Reference (original) (raw)

Track resource usage for kernels / entry functions. More...

#include "[Target/AMDGPU/SIProgramInfo.h](SIProgramInfo%5F8h%5Fsource.html)"

Public Member Functions
SIProgramInfo ()=default
void reset (const MachineFunction &MF)
uint64_t getFunctionCodeSize (const MachineFunction &MF, bool IsLowerBound=false)
const MCExpr * getComputePGMRSrc1 (const GCNSubtarget &ST, MCContext &Ctx) const
Compute the value of the ComputePGMRsrc1 register.
const MCExpr * getPGMRSrc1 (CallingConv::ID CC, const GCNSubtarget &ST, MCContext &Ctx) const
const MCExpr * getComputePGMRSrc2 (MCContext &Ctx) const
Compute the value of the ComputePGMRsrc2 register.
const MCExpr * getPGMRSrc2 (CallingConv::ID CC, MCContext &Ctx) const
Public Attributes
std::optional< uint64_t > CodeSizeInBytes
const MCExpr * VGPRBlocks = nullptr
const MCExpr * SGPRBlocks = nullptr
uint32_t Priority = 0
uint32_t FloatMode = 0
uint32_t Priv = 0
uint32_t DX10Clamp = 0
uint32_t DebugMode = 0
uint32_t IEEEMode = 0
uint32_t WgpMode = 0
uint32_t MemOrdered = 0
uint32_t FwdProgress = 0
uint32_t RrWgMode = 0
const MCExpr * ScratchSize = nullptr
uint32_t LDSBlocks = 0
const MCExpr * ScratchBlocks = nullptr
const MCExpr * ScratchEnable = nullptr
uint32_t UserSGPR = 0
uint32_t TrapHandlerEnable = 0
uint32_t TGIdXEnable = 0
uint32_t TGIdYEnable = 0
uint32_t TGIdZEnable = 0
uint32_t TGSizeEnable = 0
uint32_t TIdIGCompCount = 0
uint32_t EXCPEnMSB = 0
uint32_t LdsSize = 0
uint32_t EXCPEnable = 0
const MCExpr * ComputePGMRSrc3 = nullptr
const MCExpr * NumVGPR = nullptr
const MCExpr * NumArchVGPR = nullptr
const MCExpr * NumAccVGPR = nullptr
const MCExpr * AccumOffset = nullptr
uint32_t TgSplit = 0
const MCExpr * NumSGPR = nullptr
unsigned SGPRSpill = 0
unsigned VGPRSpill = 0
uint32_t LDSSize = 0
const MCExpr * FlatUsed = nullptr
const MCExpr * NumSGPRsForWavesPerEU = nullptr
const MCExpr * NumVGPRsForWavesPerEU = nullptr
const MCExpr * NamedBarCnt = nullptr
const MCExpr * Occupancy = nullptr
const MCExpr * DynamicCallStack = nullptr
const MCExpr * VCCUsed = nullptr

Track resource usage for kernels / entry functions.

Definition at line 32 of file SIProgramInfo.h.

llvm::SIProgramInfo::SIProgramInfo ( ) default

getComputePGMRSrc1()

getComputePGMRSrc2()

getFunctionCodeSize()

getPGMRSrc1()

getPGMRSrc2()

reset()

Definition at line 25 of file SIProgramInfo.cpp.

References AccumOffset, CodeSizeInBytes, ComputePGMRSrc3, llvm::MCConstantExpr::create(), DebugMode, DX10Clamp, DynamicCallStack, EXCPEnable, EXCPEnMSB, FlatUsed, FloatMode, FwdProgress, llvm::MachineFunction::getContext(), IEEEMode, LDSBlocks, LDSSize, LdsSize, MemOrdered, NamedBarCnt, NumAccVGPR, NumArchVGPR, NumSGPR, NumSGPRsForWavesPerEU, NumVGPR, NumVGPRsForWavesPerEU, Occupancy, Priority, Priv, RrWgMode, ScratchBlocks, ScratchEnable, ScratchSize, SGPRBlocks, SGPRSpill, TGIdXEnable, TGIdYEnable, TGIdZEnable, TGSizeEnable, TgSplit, TIdIGCompCount, TrapHandlerEnable, UserSGPR, VCCUsed, VGPRBlocks, VGPRSpill, and WgpMode.

Referenced by SIProgramInfo().

AccumOffset

const MCExpr* llvm::SIProgramInfo::AccumOffset = nullptr

CodeSizeInBytes

std::optional<uint64_t> llvm::SIProgramInfo::CodeSizeInBytes

ComputePGMRSrc3

const MCExpr* llvm::SIProgramInfo::ComputePGMRSrc3 = nullptr

DebugMode

uint32_t llvm::SIProgramInfo::DebugMode = 0

DX10Clamp

uint32_t llvm::SIProgramInfo::DX10Clamp = 0

DynamicCallStack

const MCExpr* llvm::SIProgramInfo::DynamicCallStack = nullptr

EXCPEnable

uint32_t llvm::SIProgramInfo::EXCPEnable = 0

EXCPEnMSB

uint32_t llvm::SIProgramInfo::EXCPEnMSB = 0

FlatUsed

FloatMode

uint32_t llvm::SIProgramInfo::FloatMode = 0

FwdProgress

uint32_t llvm::SIProgramInfo::FwdProgress = 0

IEEEMode

uint32_t llvm::SIProgramInfo::IEEEMode = 0

LDSBlocks

uint32_t llvm::SIProgramInfo::LDSBlocks = 0

LDSSize

uint32_t llvm::SIProgramInfo::LDSSize = 0

LdsSize

uint32_t llvm::SIProgramInfo::LdsSize = 0

MemOrdered

uint32_t llvm::SIProgramInfo::MemOrdered = 0

NamedBarCnt

const MCExpr* llvm::SIProgramInfo::NamedBarCnt = nullptr

NumAccVGPR

const MCExpr* llvm::SIProgramInfo::NumAccVGPR = nullptr

NumArchVGPR

const MCExpr* llvm::SIProgramInfo::NumArchVGPR = nullptr

NumSGPR

NumSGPRsForWavesPerEU

const MCExpr* llvm::SIProgramInfo::NumSGPRsForWavesPerEU = nullptr

NumVGPR

NumVGPRsForWavesPerEU

const MCExpr* llvm::SIProgramInfo::NumVGPRsForWavesPerEU = nullptr

Occupancy

Priority

uint32_t llvm::SIProgramInfo::Priority = 0

Priv

RrWgMode

uint32_t llvm::SIProgramInfo::RrWgMode = 0

ScratchBlocks

const MCExpr* llvm::SIProgramInfo::ScratchBlocks = nullptr

ScratchEnable

const MCExpr* llvm::SIProgramInfo::ScratchEnable = nullptr

ScratchSize

const MCExpr* llvm::SIProgramInfo::ScratchSize = nullptr

SGPRBlocks

const MCExpr* llvm::SIProgramInfo::SGPRBlocks = nullptr

SGPRSpill

unsigned llvm::SIProgramInfo::SGPRSpill = 0

TGIdXEnable

uint32_t llvm::SIProgramInfo::TGIdXEnable = 0

TGIdYEnable

uint32_t llvm::SIProgramInfo::TGIdYEnable = 0

TGIdZEnable

uint32_t llvm::SIProgramInfo::TGIdZEnable = 0

TGSizeEnable

uint32_t llvm::SIProgramInfo::TGSizeEnable = 0

TgSplit

uint32_t llvm::SIProgramInfo::TgSplit = 0

TIdIGCompCount

uint32_t llvm::SIProgramInfo::TIdIGCompCount = 0

TrapHandlerEnable

uint32_t llvm::SIProgramInfo::TrapHandlerEnable = 0

UserSGPR

uint32_t llvm::SIProgramInfo::UserSGPR = 0

VCCUsed

VGPRBlocks

const MCExpr* llvm::SIProgramInfo::VGPRBlocks = nullptr

VGPRSpill

unsigned llvm::SIProgramInfo::VGPRSpill = 0

WgpMode

uint32_t llvm::SIProgramInfo::WgpMode = 0


The documentation for this struct was generated from the following files: