LLVM 20.0.0git
|
The SIProgramInfo tracks resource usage and hardware flags for kernels and entry functions. More...
#include "SIProgramInfo.h"
#include "GCNSubtarget.h"
#include "SIDefines.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "llvm/MC/MCExpr.h"
Go to the source code of this file.
Functions | |
static uint64_t | getComputePGMRSrc1Reg (const SIProgramInfo &ProgInfo, const GCNSubtarget &ST) |
static uint64_t | getPGMRSrc1Reg (const SIProgramInfo &ProgInfo, CallingConv::ID CC, const GCNSubtarget &ST) |
static uint64_t | getComputePGMRSrc2Reg (const SIProgramInfo &ProgInfo) |
static const MCExpr * | MaskShift (const MCExpr *Val, uint32_t Mask, uint32_t Shift, MCContext &Ctx) |
The SIProgramInfo tracks resource usage and hardware flags for kernels and entry functions.
Definition in file SIProgramInfo.cpp.
|
static |
Definition at line 78 of file SIProgramInfo.cpp.
References llvm::SIProgramInfo::DebugMode, llvm::SIProgramInfo::DX10Clamp, llvm::SIProgramInfo::FloatMode, llvm::SIProgramInfo::IEEEMode, llvm::SIProgramInfo::MemOrdered, llvm::SIProgramInfo::Priority, llvm::SIProgramInfo::Priv, llvm::SIProgramInfo::RrWgMode, S_00B848_DEBUG_MODE, S_00B848_DX10_CLAMP, S_00B848_FLOAT_MODE, S_00B848_IEEE_MODE, S_00B848_MEM_ORDERED, S_00B848_PRIORITY, S_00B848_PRIV, S_00B848_RR_WG_MODE, S_00B848_WGP_MODE, and llvm::SIProgramInfo::WgpMode.
Referenced by llvm::SIProgramInfo::getComputePGMRSrc1().
|
static |
Definition at line 136 of file SIProgramInfo.cpp.
References llvm::SIProgramInfo::EXCPEnable, llvm::SIProgramInfo::EXCPEnMSB, llvm::SIProgramInfo::LdsSize, S_00B84C_EXCP_EN, S_00B84C_EXCP_EN_MSB, S_00B84C_LDS_SIZE, S_00B84C_TG_SIZE_EN, S_00B84C_TGID_X_EN, S_00B84C_TGID_Y_EN, S_00B84C_TGID_Z_EN, S_00B84C_TIDIG_COMP_CNT, S_00B84C_TRAP_HANDLER, S_00B84C_USER_SGPR, llvm::SIProgramInfo::TGIdXEnable, llvm::SIProgramInfo::TGIdYEnable, llvm::SIProgramInfo::TGIdZEnable, llvm::SIProgramInfo::TGSizeEnable, llvm::SIProgramInfo::TIdIGCompCount, llvm::SIProgramInfo::TrapHandlerEnable, and llvm::SIProgramInfo::UserSGPR.
Referenced by llvm::SIProgramInfo::getComputePGMRSrc2().
|
static |
Definition at line 99 of file SIProgramInfo.cpp.
References llvm::CallingConv::AMDGPU_GS, llvm::CallingConv::AMDGPU_HS, llvm::CallingConv::AMDGPU_PS, llvm::CallingConv::AMDGPU_VS, CC, llvm::SIProgramInfo::DebugMode, llvm::SIProgramInfo::DX10Clamp, llvm::SIProgramInfo::FloatMode, llvm::SIProgramInfo::IEEEMode, llvm::SIProgramInfo::MemOrdered, llvm::SIProgramInfo::Priority, llvm::SIProgramInfo::Priv, llvm::SIProgramInfo::RrWgMode, S_00B028_MEM_ORDERED, S_00B128_MEM_ORDERED, S_00B228_MEM_ORDERED, S_00B228_WGP_MODE, S_00B428_MEM_ORDERED, S_00B428_WGP_MODE, S_00B848_DEBUG_MODE, S_00B848_DX10_CLAMP, S_00B848_FLOAT_MODE, S_00B848_IEEE_MODE, S_00B848_PRIORITY, S_00B848_PRIV, S_00B848_RR_WG_MODE, and llvm::SIProgramInfo::WgpMode.
Referenced by llvm::SIProgramInfo::getPGMRSrc1().
|
static |
Definition at line 151 of file SIProgramInfo.cpp.
References llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAnd(), and llvm::MCBinaryExpr::createShl().
Referenced by canEvaluateShiftedShift(), llvm::SIProgramInfo::getComputePGMRSrc1(), llvm::SIProgramInfo::getPGMRSrc1(), and tryToRecognizePopCount().