|
LLVM 23.0.0git
|
Represents the counter values to wait for in an s_waitcnt instruction. More...
#include "Target/AMDGPU/AMDGPUWaitcntUtils.h"
Public Member Functions | |
| unsigned | get (InstCounterType T) const |
| void | set (InstCounterType T, unsigned Val) |
| Waitcnt () | |
| 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 AsyncCnt, unsigned TensorCnt, unsigned VaVdst, unsigned VmVsrc) | |
| bool | hasWait () const |
| bool | hasWaitExceptStoreCnt () const |
| void | add (AMDGPU::InstCounterType T, unsigned Count) |
| void | clear (AMDGPU::InstCounterType T) |
| bool | hasWaitStoreCnt () const |
| bool | hasWaitDepctr () const |
| Waitcnt | combined (const Waitcnt &Other) const |
| void | print (raw_ostream &OS) const |
| LLVM_DUMP_METHOD void | dump () 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 83 of file AMDGPUWaitcntUtils.h.
|
inline |
Definition at line 90 of file AMDGPUWaitcntUtils.h.
References llvm::fill().
Referenced by combined(), Waitcnt(), and Waitcnt().
|
inline |
Definition at line 92 of file AMDGPUWaitcntUtils.h.
References llvm::AMDGPU::DS_CNT, llvm::AMDGPU::EXP_CNT, llvm::AMDGPU::LOAD_CNT, llvm::AMDGPU::STORE_CNT, and Waitcnt().
|
inline |
Definition at line 101 of file AMDGPUWaitcntUtils.h.
References llvm::AMDGPU::ASYNC_CNT, llvm::AMDGPU::BVH_CNT, llvm::AMDGPU::DS_CNT, llvm::AMDGPU::EXP_CNT, llvm::AMDGPU::KM_CNT, llvm::AMDGPU::LOAD_CNT, llvm::AMDGPU::SAMPLE_CNT, llvm::AMDGPU::STORE_CNT, llvm::AMDGPU::TENSOR_CNT, llvm::AMDGPU::VA_VDST, llvm::AMDGPU::VM_VSRC, Waitcnt(), and llvm::AMDGPU::X_CNT.
|
inline |
Definition at line 134 of file AMDGPUWaitcntUtils.h.
References llvm::Count, get(), set(), and T.
|
inline |
Definition at line 138 of file AMDGPUWaitcntUtils.h.
Definition at line 146 of file AMDGPUWaitcntUtils.h.
References llvm::AMDGPU::inst_counter_types(), llvm::AMDGPU::Other, T, llvm::Wait, and Waitcnt().
| void llvm::AMDGPU::Waitcnt::dump | ( | ) | const |
Definition at line 99 of file AMDGPUWaitcntUtils.cpp.
References llvm::dbgs().
|
inline |
Definition at line 87 of file AMDGPUWaitcntUtils.h.
References T.
Referenced by add(), llvm::AMDGPU::encodeLoadcntDscnt(), llvm::AMDGPU::encodeStorecntDscnt(), and llvm::AMDGPU::encodeWaitcnt().
|
inline |
Definition at line 120 of file AMDGPUWaitcntUtils.h.
References llvm::any_of().
|
inline |
Definition at line 142 of file AMDGPUWaitcntUtils.h.
References llvm::AMDGPU::VA_VDST, and llvm::AMDGPU::VM_VSRC.
|
inline |
Definition at line 124 of file AMDGPUWaitcntUtils.h.
References llvm::AMDGPU::inst_counter_types(), llvm::AMDGPU::STORE_CNT, and T.
|
inline |
Definition at line 140 of file AMDGPUWaitcntUtils.h.
References llvm::AMDGPU::STORE_CNT.
|
inline |
Definition at line 155 of file AMDGPUWaitcntUtils.h.
References llvm::AMDGPU::getInstCounterName(), llvm::AMDGPU::inst_counter_types(), and T.
|
inline |
Definition at line 88 of file AMDGPUWaitcntUtils.h.
References T.
Referenced by add(), clear(), llvm::AMDGPU::decodeLoadcntDscnt(), llvm::AMDGPU::decodeStorecntDscnt(), and llvm::AMDGPU::decodeWaitcnt().
|
friend |
Definition at line 168 of file AMDGPUWaitcntUtils.h.
References llvm::Wait.