LLVM: llvm::AMDGPU::Waitcnt Struct Reference (original) (raw)
Represents the counter values to wait for in an s_waitcnt instruction. More...
#include "[Target/AMDGPU/Utils/AMDGPUBaseInfo.h](AMDGPUBaseInfo%5F8h%5Fsource.html)"
Public Member Functions | |
---|---|
Waitcnt ()=default | |
Waitcnt (unsigned VmCnt, unsigned ExpCnt, unsigned LgkmCnt, unsigned VsCnt) | |
Waitcnt (unsigned LoadCnt, unsigned ExpCnt, unsigned DsCnt, unsigned StoreCnt, unsigned SampleCnt, unsigned BvhCnt, unsigned KmCnt) | |
bool | hasWait () const |
bool | hasWaitExceptStoreCnt () const |
bool | hasWaitStoreCnt () const |
Waitcnt | combined (const Waitcnt &Other) const |
Public Attributes | |
---|---|
unsigned | LoadCnt = ~0u |
unsigned | ExpCnt = ~0u |
unsigned | DsCnt = ~0u |
unsigned | StoreCnt = ~0u |
unsigned | SampleCnt = ~0u |
unsigned | BvhCnt = ~0u |
unsigned | KmCnt = ~0u |
Detailed Description
Represents the counter values to wait for in an s_waitcnt instruction.
Large values (including the maximum possible integer) can be used to represent "don't care" waits.
Definition at line 967 of file AMDGPUBaseInfo.h.
Constructor & Destructor Documentation
◆ Waitcnt() [1/3]
llvm::AMDGPU::Waitcnt::Waitcnt ( ) | default |
---|
◆ Waitcnt() [2/3]
◆ Waitcnt() [3/3]
Member Function Documentation
◆ combined()
◆ hasWait()
bool llvm::AMDGPU::Waitcnt::hasWait ( ) const | inline |
---|
◆ hasWaitExceptStoreCnt()
bool llvm::AMDGPU::Waitcnt::hasWaitExceptStoreCnt ( ) const | inline |
---|
◆ hasWaitStoreCnt()
bool llvm::AMDGPU::Waitcnt::hasWaitStoreCnt ( ) const | inline |
---|
Member Data Documentation
◆ BvhCnt
unsigned llvm::AMDGPU::Waitcnt::BvhCnt = ~0u
◆ DsCnt
unsigned llvm::AMDGPU::Waitcnt::DsCnt = ~0u
◆ ExpCnt
unsigned llvm::AMDGPU::Waitcnt::ExpCnt = ~0u
◆ KmCnt
unsigned llvm::AMDGPU::Waitcnt::KmCnt = ~0u
◆ LoadCnt
unsigned llvm::AMDGPU::Waitcnt::LoadCnt = ~0u
◆ SampleCnt
unsigned llvm::AMDGPU::Waitcnt::SampleCnt = ~0u
◆ StoreCnt
unsigned llvm::AMDGPU::Waitcnt::StoreCnt = ~0u
The documentation for this struct was generated from the following file:
- lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h