LLVM 23.0.0git
llvm::AMDGPU::Waitcnt Class Reference

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_ostreamoperator<< (raw_ostream &OS, const AMDGPU::Waitcnt &Wait)

Detailed Description

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.

Constructor & Destructor Documentation

◆ Waitcnt() [1/3]

llvm::AMDGPU::Waitcnt::Waitcnt ( )
default

Referenced by combined().

◆ Waitcnt() [2/3]

llvm::AMDGPU::Waitcnt::Waitcnt ( unsigned VmCnt,
unsigned ExpCnt,
unsigned LgkmCnt,
unsigned VsCnt )
inline

Definition at line 1192 of file AMDGPUBaseInfo.h.

◆ Waitcnt() [3/3]

llvm::AMDGPU::Waitcnt::Waitcnt ( unsigned LoadCnt,
unsigned ExpCnt,
unsigned DsCnt,
unsigned StoreCnt,
unsigned SampleCnt,
unsigned BvhCnt,
unsigned KmCnt,
unsigned XCnt,
unsigned VaVdst,
unsigned VmVsrc )
inline

Definition at line 1196 of file AMDGPUBaseInfo.h.

Member Function Documentation

◆ combined()

Waitcnt llvm::AMDGPU::Waitcnt::combined ( const Waitcnt & Other) const
inline

Definition at line 1215 of file AMDGPUBaseInfo.h.

References llvm::Other, and Waitcnt().

◆ get()

◆ hasWait()

bool llvm::AMDGPU::Waitcnt::hasWait ( ) const
inline

Definition at line 1203 of file AMDGPUBaseInfo.h.

References hasWaitExceptStoreCnt().

◆ hasWaitDepctr()

bool llvm::AMDGPU::Waitcnt::hasWaitDepctr ( ) const
inline

Definition at line 1213 of file AMDGPUBaseInfo.h.

◆ hasWaitExceptStoreCnt()

bool llvm::AMDGPU::Waitcnt::hasWaitExceptStoreCnt ( ) const
inline

Definition at line 1205 of file AMDGPUBaseInfo.h.

Referenced by hasWait().

◆ hasWaitStoreCnt()

bool llvm::AMDGPU::Waitcnt::hasWaitStoreCnt ( ) const
inline

Definition at line 1211 of file AMDGPUBaseInfo.h.

◆ set()

◆ operator<<

raw_ostream & operator<< ( raw_ostream & OS,
const AMDGPU::Waitcnt & Wait )
friend

Definition at line 1747 of file AMDGPUBaseInfo.cpp.

References llvm::Wait.


The documentation for this class was generated from the following file: