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 967 of file AMDGPUBaseInfo.h.
|
default |
Referenced by combined().
|
inline |
Definition at line 978 of file AMDGPUBaseInfo.h.
|
inline |
Definition at line 983 of file AMDGPUBaseInfo.h.
|
inline |
Definition at line 988 of file AMDGPUBaseInfo.h.
References hasWaitExceptStoreCnt(), and StoreCnt.
|
inline |
|
inline |
Definition at line 995 of file AMDGPUBaseInfo.h.
References StoreCnt.
unsigned llvm::AMDGPU::Waitcnt::BvhCnt = ~0u |
Definition at line 973 of file AMDGPUBaseInfo.h.
Referenced by combined(), and hasWaitExceptStoreCnt().
unsigned llvm::AMDGPU::Waitcnt::DsCnt = ~0u |
Definition at line 970 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 969 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeWaitcnt(), llvm::AMDGPU::encodeWaitcnt(), and hasWaitExceptStoreCnt().
unsigned llvm::AMDGPU::Waitcnt::KmCnt = ~0u |
Definition at line 974 of file AMDGPUBaseInfo.h.
Referenced by combined(), and hasWaitExceptStoreCnt().
unsigned llvm::AMDGPU::Waitcnt::LoadCnt = ~0u |
Definition at line 968 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 972 of file AMDGPUBaseInfo.h.
Referenced by combined(), and hasWaitExceptStoreCnt().
unsigned llvm::AMDGPU::Waitcnt::StoreCnt = ~0u |
Definition at line 971 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeStorecntDscnt(), llvm::AMDGPU::encodeStorecntDscnt(), hasWait(), and hasWaitStoreCnt().