LLVM 20.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) | |
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 |
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 923 of file AMDGPUBaseInfo.h.
|
default |
Referenced by combined().
|
inline |
Definition at line 934 of file AMDGPUBaseInfo.h.
|
inline |
Definition at line 939 of file AMDGPUBaseInfo.h.
|
inline |
Definition at line 944 of file AMDGPUBaseInfo.h.
References hasWaitExceptStoreCnt(), and StoreCnt.
|
inline |
|
inline |
Definition at line 951 of file AMDGPUBaseInfo.h.
References StoreCnt.
unsigned llvm::AMDGPU::Waitcnt::BvhCnt = ~0u |
Definition at line 929 of file AMDGPUBaseInfo.h.
Referenced by combined(), and hasWaitExceptStoreCnt().
unsigned llvm::AMDGPU::Waitcnt::DsCnt = ~0u |
Definition at line 926 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(), and hasWaitExceptStoreCnt().
unsigned llvm::AMDGPU::Waitcnt::ExpCnt = ~0u |
Definition at line 925 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeWaitcnt(), llvm::AMDGPU::encodeWaitcnt(), and hasWaitExceptStoreCnt().
unsigned llvm::AMDGPU::Waitcnt::KmCnt = ~0u |
Definition at line 930 of file AMDGPUBaseInfo.h.
Referenced by combined(), and hasWaitExceptStoreCnt().
unsigned llvm::AMDGPU::Waitcnt::LoadCnt = ~0u |
Definition at line 924 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeLoadcntDscnt(), llvm::AMDGPU::decodeWaitcnt(), llvm::AMDGPU::encodeLoadcntDscnt(), llvm::AMDGPU::encodeWaitcnt(), and hasWaitExceptStoreCnt().
unsigned llvm::AMDGPU::Waitcnt::SampleCnt = ~0u |
Definition at line 928 of file AMDGPUBaseInfo.h.
Referenced by combined(), and hasWaitExceptStoreCnt().
unsigned llvm::AMDGPU::Waitcnt::StoreCnt = ~0u |
Definition at line 927 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeStorecntDscnt(), llvm::AMDGPU::encodeStorecntDscnt(), hasWait(), and hasWaitStoreCnt().