LLVM 17.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::SIProgramInfo Struct Reference

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

#include "Target/AMDGPU/SIProgramInfo.h"

Collaboration diagram for llvm::SIProgramInfo:
Collaboration graph
[legend]

Public Member Functions

 SIProgramInfo ()=default
 
uint64_t getComputePGMRSrc1 () const
 Compute the value of the ComputePGMRsrc1 register.
 
uint64_t getPGMRSrc1 (CallingConv::ID CC) const
 

Public Attributes

uint32_t VGPRBlocks = 0
 
uint32_t SGPRBlocks = 0
 
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
 
uint64_t ScratchSize = 0
 
uint32_t LDSBlocks = 0
 
uint32_t ScratchBlocks = 0
 
uint64_t ComputePGMRSrc2 = 0
 
uint64_t ComputePGMRSrc3GFX90A = 0
 
uint32_t NumVGPR = 0
 
uint32_t NumArchVGPR = 0
 
uint32_t NumAccVGPR = 0
 
uint32_t AccumOffset = 0
 
uint32_t TgSplit = 0
 
uint32_t NumSGPR = 0
 
unsigned SGPRSpill = 0
 
unsigned VGPRSpill = 0
 
uint32_t LDSSize = 0
 
bool FlatUsed = false
 
uint32_t NumSGPRsForWavesPerEU = 0
 
uint32_t NumVGPRsForWavesPerEU = 0
 
uint32_t Occupancy = 0
 
bool DynamicCallStack = false
 
bool VCCUsed = false
 

Detailed Description

Track resource usage for kernels / entry functions.

Definition at line 25 of file SIProgramInfo.h.

Constructor & Destructor Documentation

◆ SIProgramInfo()

llvm::SIProgramInfo::SIProgramInfo ( )
default

Member Function Documentation

◆ getComputePGMRSrc1()

uint64_t SIProgramInfo::getComputePGMRSrc1 ( ) const

◆ getPGMRSrc1()

uint64_t SIProgramInfo::getPGMRSrc1 ( CallingConv::ID  CC) const

Member Data Documentation

◆ AccumOffset

uint32_t llvm::SIProgramInfo::AccumOffset = 0

Definition at line 49 of file SIProgramInfo.h.

Referenced by llvm::AMDGPUAsmPrinter::runOnMachineFunction().

◆ ComputePGMRSrc2

uint64_t llvm::SIProgramInfo::ComputePGMRSrc2 = 0

Definition at line 43 of file SIProgramInfo.h.

Referenced by llvm::AMDGPUAsmPrinter::runOnMachineFunction().

◆ ComputePGMRSrc3GFX90A

uint64_t llvm::SIProgramInfo::ComputePGMRSrc3GFX90A = 0

Definition at line 44 of file SIProgramInfo.h.

Referenced by llvm::AMDGPUAsmPrinter::runOnMachineFunction().

◆ DebugMode

uint32_t llvm::SIProgramInfo::DebugMode = 0

Definition at line 33 of file SIProgramInfo.h.

Referenced by getComputePGMRSrc1(), and getPGMRSrc1().

◆ DX10Clamp

uint32_t llvm::SIProgramInfo::DX10Clamp = 0

Definition at line 32 of file SIProgramInfo.h.

Referenced by getComputePGMRSrc1(), and getPGMRSrc1().

◆ DynamicCallStack

bool llvm::SIProgramInfo::DynamicCallStack = false

◆ FlatUsed

bool llvm::SIProgramInfo::FlatUsed = false

Definition at line 55 of file SIProgramInfo.h.

Referenced by llvm::AMDGPUAsmPrinter::emitFunctionBodyEnd().

◆ FloatMode

uint32_t llvm::SIProgramInfo::FloatMode = 0

◆ IEEEMode

uint32_t llvm::SIProgramInfo::IEEEMode = 0

◆ LDSBlocks

uint32_t llvm::SIProgramInfo::LDSBlocks = 0

Definition at line 40 of file SIProgramInfo.h.

◆ LDSSize

uint32_t llvm::SIProgramInfo::LDSSize = 0

◆ MemOrdered

uint32_t llvm::SIProgramInfo::MemOrdered = 0

Definition at line 36 of file SIProgramInfo.h.

Referenced by getComputePGMRSrc1(), and getPGMRSrc1().

◆ NumAccVGPR

uint32_t llvm::SIProgramInfo::NumAccVGPR = 0

◆ NumArchVGPR

uint32_t llvm::SIProgramInfo::NumArchVGPR = 0

Definition at line 47 of file SIProgramInfo.h.

Referenced by llvm::AMDGPUAsmPrinter::runOnMachineFunction().

◆ NumSGPR

uint32_t llvm::SIProgramInfo::NumSGPR = 0

◆ NumSGPRsForWavesPerEU

uint32_t llvm::SIProgramInfo::NumSGPRsForWavesPerEU = 0

◆ NumVGPR

uint32_t llvm::SIProgramInfo::NumVGPR = 0

◆ NumVGPRsForWavesPerEU

uint32_t llvm::SIProgramInfo::NumVGPRsForWavesPerEU = 0

◆ Occupancy

uint32_t llvm::SIProgramInfo::Occupancy = 0

Definition at line 64 of file SIProgramInfo.h.

Referenced by llvm::AMDGPUAsmPrinter::runOnMachineFunction().

◆ Priority

uint32_t llvm::SIProgramInfo::Priority = 0

Definition at line 29 of file SIProgramInfo.h.

Referenced by getComputePGMRSrc1(), and getPGMRSrc1().

◆ Priv

uint32_t llvm::SIProgramInfo::Priv = 0

Definition at line 31 of file SIProgramInfo.h.

Referenced by getComputePGMRSrc1(), and getPGMRSrc1().

◆ ScratchBlocks

uint32_t llvm::SIProgramInfo::ScratchBlocks = 0

Definition at line 41 of file SIProgramInfo.h.

◆ ScratchSize

uint64_t llvm::SIProgramInfo::ScratchSize = 0

◆ SGPRBlocks

uint32_t llvm::SIProgramInfo::SGPRBlocks = 0

◆ SGPRSpill

unsigned llvm::SIProgramInfo::SGPRSpill = 0

Definition at line 52 of file SIProgramInfo.h.

◆ TgSplit

uint32_t llvm::SIProgramInfo::TgSplit = 0

Definition at line 50 of file SIProgramInfo.h.

◆ VCCUsed

bool llvm::SIProgramInfo::VCCUsed = false

Definition at line 71 of file SIProgramInfo.h.

Referenced by llvm::AMDGPUAsmPrinter::emitFunctionBodyEnd().

◆ VGPRBlocks

uint32_t llvm::SIProgramInfo::VGPRBlocks = 0

◆ VGPRSpill

unsigned llvm::SIProgramInfo::VGPRSpill = 0

Definition at line 53 of file SIProgramInfo.h.

◆ WgpMode

uint32_t llvm::SIProgramInfo::WgpMode = 0

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