LLVM 24.0.0git
AMDGPUResourceUsageAnalysis.cpp File Reference

Analyzes how many registers and other resources are used by functions. More...

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "amdgpu-resource-usage"

Functions

 INITIALIZE_PASS (AMDGPUResourceUsageAnalysisWrapperPass, DEBUG_TYPE, "Function register usage analysis", true, true) static const Function *getCalleeFunction(const MachineOperand &Op)
static bool hasAnyNonFlatUseOfReg (const MachineRegisterInfo &MRI, const SIInstrInfo &TII, unsigned Reg)

Detailed Description

Analyzes how many registers and other resources are used by functions.

The results of this analysis are used to fill the register usage, flat usage, etc. into hardware registers.

Definition in file AMDGPUResourceUsageAnalysis.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "amdgpu-resource-usage"

Definition at line 32 of file AMDGPUResourceUsageAnalysis.cpp.

Function Documentation

◆ hasAnyNonFlatUseOfReg()

bool hasAnyNonFlatUseOfReg ( const MachineRegisterInfo & MRI,
const SIInstrInfo & TII,
unsigned Reg )
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( AMDGPUResourceUsageAnalysisWrapperPass ,
DEBUG_TYPE ,
"Function register usage analysis" ,
true ,
true  ) const &

Definition at line 38 of file AMDGPUResourceUsageAnalysis.cpp.

References llvm::cast(), const, and DEBUG_TYPE.