LLVM 24.0.0git
AMDGPUWaitcntUtils.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::AMDGPU

Functions

bool llvm::AMDGPU::isExpertSchedulingMode (const GCNSubtarget &ST, const Function &F)
 Return whether expert scheduling mode is available and enabled for F.
iota_range< InstCounterType > llvm::AMDGPU::inst_counter_types (InstCounterType MaxCounter)
StringLiteral llvm::AMDGPU::getInstCounterName (InstCounterType T)
Waitcnt llvm::AMDGPU::decodeWaitcnt (const IsaVersion &Version, unsigned Encoded)
unsigned llvm::AMDGPU::encodeWaitcnt (const IsaVersion &Version, const Waitcnt &Decoded)
Waitcnt llvm::AMDGPU::decodeLoadcntDscnt (const IsaVersion &Version, unsigned LoadcntDscnt)
Waitcnt llvm::AMDGPU::decodeStorecntDscnt (const IsaVersion &Version, unsigned StorecntDscnt)
unsigned llvm::AMDGPU::encodeLoadcntDscnt (const IsaVersion &Version, const Waitcnt &Decoded)
unsigned llvm::AMDGPU::encodeStorecntDscnt (const IsaVersion &Version, const Waitcnt &Decoded)
std::optional< AMDGPU::InstCounterType > llvm::AMDGPU::counterTypeForInstr (unsigned Opcode)
 Determine if MI is a gfx12+ single-counter S_WAIT_*CNT instruction, and if so, which counter it is waiting on.

Variables

static cl::opt< bool > llvm::AMDGPU::ExpertSchedulingModeFlag ("amdgpu-expert-scheduling-mode", cl::desc("Enable expert scheduling mode 2 for all functions (GFX12+ only)"), cl::init(false), cl::Hidden)