|
LLVM 24.0.0git
|
Insert s_wait_alu instructions to mitigate SGPR read hazards on GFX12. More...
#include "AMDGPUWaitSGPRHazards.h"#include "AMDGPU.h"#include "GCNSubtarget.h"#include "MCTargetDesc/AMDGPUMCTargetDesc.h"#include "SIInstrInfo.h"#include "llvm/ADT/SetVector.h"#include "llvm/ADT/SmallBitVector.h"#include "llvm/TargetParser/AMDGPUTargetParser.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "amdgpu-wait-sgpr-hazards" |
Functions | |
| INITIALIZE_PASS (AMDGPUWaitSGPRHazardsLegacy, DEBUG_TYPE, "AMDGPU Insert waits for SGPR read hazards", false, false) PreservedAnalyses AMDGPUWaitSGPRHazardsPass | |
Variables | |
| static cl::opt< bool > | GlobalCullSGPRHazardsOnFunctionBoundary ("amdgpu-sgpr-hazard-boundary-cull", cl::init(false), cl::Hidden, cl::desc("Cull hazards on function boundaries")) |
| static cl::opt< bool > | GlobalCullSGPRHazardsAtMemWait ("amdgpu-sgpr-hazard-mem-wait-cull", cl::init(false), cl::Hidden, cl::desc("Cull hazards on memory waits")) |
| static cl::opt< unsigned > | GlobalCullSGPRHazardsMemWaitThreshold ("amdgpu-sgpr-hazard-mem-wait-cull-threshold", cl::init(8), cl::Hidden, cl::desc("Number of tracked SGPRs before initiating hazard cull on memory " "wait")) |
Insert s_wait_alu instructions to mitigate SGPR read hazards on GFX12.
Definition in file AMDGPUWaitSGPRHazards.cpp.
| #define DEBUG_TYPE "amdgpu-wait-sgpr-hazards" |
Definition at line 25 of file AMDGPUWaitSGPRHazards.cpp.
| INITIALIZE_PASS | ( | AMDGPUWaitSGPRHazardsLegacy | , |
| DEBUG_TYPE | , | ||
| "AMDGPU Insert waits for SGPR read hazards" | , | ||
| false | , | ||
| false | ) |
Definition at line 658 of file AMDGPUWaitSGPRHazards.cpp.
References llvm::PreservedAnalyses::all(), DEBUG_TYPE, and llvm::getMachineFunctionPassPreservedAnalyses().
|
static |
|
static |