LLVM 17.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) | |
bool | hasWait () const |
bool | hasWaitExceptVsCnt () const |
bool | hasWaitVsCnt () const |
bool | dominates (const Waitcnt &Other) const |
Waitcnt | combined (const Waitcnt &Other) const |
Static Public Member Functions | |
static Waitcnt | allZero (bool HasVscnt) |
static Waitcnt | allZeroExceptVsCnt () |
Public Attributes | |
unsigned | VmCnt = ~0u |
unsigned | ExpCnt = ~0u |
unsigned | LgkmCnt = ~0u |
unsigned | VsCnt = ~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 838 of file AMDGPUBaseInfo.h.
|
default |
Referenced by allZero(), allZeroExceptVsCnt(), and combined().
|
inline |
Definition at line 845 of file AMDGPUBaseInfo.h.
Definition at line 848 of file AMDGPUBaseInfo.h.
References Waitcnt().
|
inlinestatic |
Definition at line 851 of file AMDGPUBaseInfo.h.
References Waitcnt().
Definition at line 870 of file AMDGPUBaseInfo.h.
References ExpCnt, LgkmCnt, llvm::Other, VmCnt, VsCnt, and Waitcnt().
Definition at line 865 of file AMDGPUBaseInfo.h.
References ExpCnt, LgkmCnt, llvm::Other, VmCnt, and VsCnt.
|
inline |
|
inline |
Definition at line 857 of file AMDGPUBaseInfo.h.
|
inline |
Definition at line 861 of file AMDGPUBaseInfo.h.
References VsCnt.
unsigned llvm::AMDGPU::Waitcnt::ExpCnt = ~0u |
Definition at line 840 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeWaitcnt(), dominates(), llvm::AMDGPU::encodeWaitcnt(), hasWait(), and hasWaitExceptVsCnt().
unsigned llvm::AMDGPU::Waitcnt::LgkmCnt = ~0u |
Definition at line 841 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeWaitcnt(), dominates(), llvm::AMDGPU::encodeWaitcnt(), hasWait(), and hasWaitExceptVsCnt().
unsigned llvm::AMDGPU::Waitcnt::VmCnt = ~0u |
Definition at line 839 of file AMDGPUBaseInfo.h.
Referenced by combined(), llvm::AMDGPU::decodeWaitcnt(), dominates(), llvm::AMDGPU::encodeWaitcnt(), hasWait(), and hasWaitExceptVsCnt().
unsigned llvm::AMDGPU::Waitcnt::VsCnt = ~0u |
Definition at line 842 of file AMDGPUBaseInfo.h.
Referenced by combined(), dominates(), hasWait(), and hasWaitVsCnt().