LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::AMDGPU::Waitcnt Struct Reference

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)
 
 Waitcnt (unsigned LoadCnt, unsigned ExpCnt, unsigned DsCnt, unsigned StoreCnt, unsigned SampleCnt, unsigned BvhCnt, unsigned KmCnt)
 
bool hasWait () const
 
bool hasWaitExceptStoreCnt () const
 
bool hasWaitStoreCnt () const
 
Waitcnt combined (const Waitcnt &Other) const
 

Public Attributes

unsigned LoadCnt = ~0u
 
unsigned ExpCnt = ~0u
 
unsigned DsCnt = ~0u
 
unsigned StoreCnt = ~0u
 
unsigned SampleCnt = ~0u
 
unsigned BvhCnt = ~0u
 
unsigned KmCnt = ~0u
 

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 923 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 934 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 
)
inline

Definition at line 939 of file AMDGPUBaseInfo.h.

Member Function Documentation

◆ combined()

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

Definition at line 953 of file AMDGPUBaseInfo.h.

References BvhCnt, DsCnt, ExpCnt, KmCnt, LoadCnt, llvm::Other, SampleCnt, StoreCnt, and Waitcnt().

◆ hasWait()

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

Definition at line 944 of file AMDGPUBaseInfo.h.

References hasWaitExceptStoreCnt(), and StoreCnt.

◆ hasWaitExceptStoreCnt()

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

Definition at line 946 of file AMDGPUBaseInfo.h.

References BvhCnt, DsCnt, ExpCnt, KmCnt, LoadCnt, and SampleCnt.

Referenced by hasWait().

◆ hasWaitStoreCnt()

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

Definition at line 951 of file AMDGPUBaseInfo.h.

References StoreCnt.

Member Data Documentation

◆ BvhCnt

unsigned llvm::AMDGPU::Waitcnt::BvhCnt = ~0u

Definition at line 929 of file AMDGPUBaseInfo.h.

Referenced by combined(), and hasWaitExceptStoreCnt().

◆ DsCnt

unsigned llvm::AMDGPU::Waitcnt::DsCnt = ~0u

◆ ExpCnt

unsigned llvm::AMDGPU::Waitcnt::ExpCnt = ~0u

◆ KmCnt

unsigned llvm::AMDGPU::Waitcnt::KmCnt = ~0u

Definition at line 930 of file AMDGPUBaseInfo.h.

Referenced by combined(), and hasWaitExceptStoreCnt().

◆ LoadCnt

unsigned llvm::AMDGPU::Waitcnt::LoadCnt = ~0u

◆ SampleCnt

unsigned llvm::AMDGPU::Waitcnt::SampleCnt = ~0u

Definition at line 928 of file AMDGPUBaseInfo.h.

Referenced by combined(), and hasWaitExceptStoreCnt().

◆ StoreCnt

unsigned llvm::AMDGPU::Waitcnt::StoreCnt = ~0u

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