|
LLVM 24.0.0git
|
Analyzes how many registers and other resources are used by functions. More...
#include "AMDGPUResourceUsageAnalysis.h"#include "AMDGPU.h"#include "AMDGPUTargetMachine.h"#include "GCNSubtarget.h"#include "SIMachineFunctionInfo.h"#include "llvm/CodeGen/MachineFrameInfo.h"#include "llvm/CodeGen/MachineModuleInfo.h"#include "llvm/CodeGen/TargetPassConfig.h"#include "llvm/IR/GlobalValue.h"#include "llvm/Target/TargetMachine.h"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) |
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.
| #define DEBUG_TYPE "amdgpu-resource-usage" |
Definition at line 32 of file AMDGPUResourceUsageAnalysis.cpp.
|
static |
Definition at line 49 of file AMDGPUResourceUsageAnalysis.cpp.
Referenced by llvm::AMDGPUResourceUsageAnalysisImpl::analyzeResourceUsage().
| 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.