|
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 () | |
| 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 VaVdst, unsigned VmVsrc) | |
| bool | hasWait () const |
| bool | hasWaitExceptStoreCnt () const |
| 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 1132 of file AMDGPUBaseInfo.h.
|
inline |
Definition at line 1139 of file AMDGPUBaseInfo.h.
References llvm::fill().
Referenced by combined(), Waitcnt(), and Waitcnt().
|
inline |
Definition at line 1141 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::DS_CNT, llvm::AMDGPU::EXP_CNT, llvm::AMDGPU::LOAD_CNT, llvm::AMDGPU::STORE_CNT, and Waitcnt().
|
inline |
Definition at line 1150 of file AMDGPUBaseInfo.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::VA_VDST, llvm::AMDGPU::VM_VSRC, Waitcnt(), and llvm::AMDGPU::X_CNT.
Definition at line 1187 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::inst_counter_types(), llvm::AMDGPU::Other, T, llvm::Wait, and Waitcnt().
| void llvm::AMDGPU::Waitcnt::dump | ( | ) | const |
Definition at line 234 of file AMDGPUBaseInfo.cpp.
References llvm::dbgs().
|
inline |
Definition at line 1136 of file AMDGPUBaseInfo.h.
References T.
Referenced by llvm::AMDGPU::encodeLoadcntDscnt(), llvm::AMDGPU::encodeStorecntDscnt(), and llvm::AMDGPU::encodeWaitcnt().
|
inline |
Definition at line 1167 of file AMDGPUBaseInfo.h.
References llvm::any_of().
|
inline |
Definition at line 1183 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::VA_VDST, and llvm::AMDGPU::VM_VSRC.
|
inline |
Definition at line 1171 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::inst_counter_types(), llvm::AMDGPU::STORE_CNT, and T.
|
inline |
Definition at line 1181 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::STORE_CNT.
|
inline |
Definition at line 1196 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::getInstCounterName(), llvm::AMDGPU::inst_counter_types(), and T.
|
inline |
Definition at line 1137 of file AMDGPUBaseInfo.h.
References T.
Referenced by llvm::AMDGPU::decodeLoadcntDscnt(), llvm::AMDGPU::decodeStorecntDscnt(), and llvm::AMDGPU::decodeWaitcnt().
|
friend |
Definition at line 1209 of file AMDGPUBaseInfo.h.
References llvm::Wait.