LLVM 22.0.0git
|
Represents the counter values to wait for in an s_waitcnt instruction. More...
#include "Target/AMDGPU/Utils/AMDGPUBaseInfo.h"
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, unsigned XCnt) | |
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 |
unsigned | XCnt = ~0u |
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 1075 of file AMDGPUBaseInfo.h.
|
default |
Referenced by combined().
|
inline |
Definition at line 1096 of file AMDGPUBaseInfo.h.
References hasWaitExceptStoreCnt(), and StoreCnt.
|
inline |
|
inline |
Definition at line 1103 of file AMDGPUBaseInfo.h.
References StoreCnt.
unsigned llvm::AMDGPU::Waitcnt::BvhCnt = ~0u |
Definition at line 1081 of file AMDGPUBaseInfo.h.
Referenced by combined(), hasWaitExceptStoreCnt(), and Waitcnt().
unsigned llvm::AMDGPU::Waitcnt::DsCnt = ~0u |
Definition at line 1078 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeLoadcntDscnt(), llvm::AMDGPU::decodeStorecntDscnt(), llvm::AMDGPU::decodeWaitcnt(), llvm::AMDGPU::encodeLoadcntDscnt(), llvm::AMDGPU::encodeStorecntDscnt(), llvm::AMDGPU::encodeWaitcnt(), hasWaitExceptStoreCnt(), Waitcnt(), and Waitcnt().
unsigned llvm::AMDGPU::Waitcnt::ExpCnt = ~0u |
Definition at line 1077 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeWaitcnt(), llvm::AMDGPU::encodeWaitcnt(), hasWaitExceptStoreCnt(), Waitcnt(), and Waitcnt().
unsigned llvm::AMDGPU::Waitcnt::KmCnt = ~0u |
Definition at line 1082 of file AMDGPUBaseInfo.h.
Referenced by combined(), hasWaitExceptStoreCnt(), and Waitcnt().
unsigned llvm::AMDGPU::Waitcnt::LoadCnt = ~0u |
Definition at line 1076 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeLoadcntDscnt(), llvm::AMDGPU::decodeWaitcnt(), llvm::AMDGPU::encodeLoadcntDscnt(), llvm::AMDGPU::encodeWaitcnt(), hasWaitExceptStoreCnt(), Waitcnt(), and Waitcnt().
unsigned llvm::AMDGPU::Waitcnt::SampleCnt = ~0u |
Definition at line 1080 of file AMDGPUBaseInfo.h.
Referenced by combined(), hasWaitExceptStoreCnt(), and Waitcnt().
unsigned llvm::AMDGPU::Waitcnt::StoreCnt = ~0u |
Definition at line 1079 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeStorecntDscnt(), llvm::AMDGPU::encodeStorecntDscnt(), hasWait(), hasWaitStoreCnt(), Waitcnt(), and Waitcnt().
unsigned llvm::AMDGPU::Waitcnt::XCnt = ~0u |
Definition at line 1083 of file AMDGPUBaseInfo.h.
Referenced by combined(), hasWaitExceptStoreCnt(), and Waitcnt().