|
LLVM 23.0.0git
|
Represents the counter values to wait for in an s_waitcnt instruction. More...
#include "Target/AMDGPU/Utils/AMDGPUBaseInfo.h"
Public Member Functions | |
| unsigned | get (InstCounterType T) const |
| void | set (InstCounterType T, unsigned Val) |
| 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, unsigned VaVdst, unsigned VmVsrc) | |
| bool | hasWait () const |
| bool | hasWaitExceptStoreCnt () const |
| bool | hasWaitStoreCnt () const |
| bool | hasWaitDepctr () const |
| Waitcnt | combined (const Waitcnt &Other) const |
Friends | |
| raw_ostream & | operator<< (raw_ostream &OS, const AMDGPU::Waitcnt &Wait) |
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 1114 of file AMDGPUBaseInfo.h.
|
default |
Referenced by combined().
|
inline |
Definition at line 1192 of file AMDGPUBaseInfo.h.
|
inline |
Definition at line 1196 of file AMDGPUBaseInfo.h.
Definition at line 1215 of file AMDGPUBaseInfo.h.
References llvm::Other, and Waitcnt().
|
inline |
Definition at line 1127 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::BVH_CNT, llvm::AMDGPU::DS_CNT, llvm::AMDGPU::EXP_CNT, llvm::AMDGPU::KM_CNT, llvm_unreachable, llvm::AMDGPU::LOAD_CNT, llvm::AMDGPU::SAMPLE_CNT, llvm::AMDGPU::STORE_CNT, T, llvm::AMDGPU::VA_VDST, llvm::AMDGPU::VM_VSRC, and llvm::AMDGPU::X_CNT.
Referenced by llvm::AMDGPU::encodeLoadcntDscnt(), llvm::AMDGPU::encodeStorecntDscnt(), and llvm::AMDGPU::encodeWaitcnt().
|
inline |
Definition at line 1203 of file AMDGPUBaseInfo.h.
References hasWaitExceptStoreCnt().
|
inline |
Definition at line 1213 of file AMDGPUBaseInfo.h.
|
inline |
Definition at line 1205 of file AMDGPUBaseInfo.h.
Referenced by hasWait().
|
inline |
Definition at line 1211 of file AMDGPUBaseInfo.h.
|
inline |
Definition at line 1153 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::BVH_CNT, llvm::AMDGPU::DS_CNT, llvm::AMDGPU::EXP_CNT, llvm::AMDGPU::KM_CNT, llvm_unreachable, llvm::AMDGPU::LOAD_CNT, llvm::AMDGPU::SAMPLE_CNT, llvm::AMDGPU::STORE_CNT, T, llvm::AMDGPU::VA_VDST, llvm::AMDGPU::VM_VSRC, and llvm::AMDGPU::X_CNT.
Referenced by llvm::AMDGPU::decodeLoadcntDscnt(), llvm::AMDGPU::decodeStorecntDscnt(), and llvm::AMDGPU::decodeWaitcnt().
|
friend |
Definition at line 1747 of file AMDGPUBaseInfo.cpp.
References llvm::Wait.