LLVM  15.0.0git
Functions | Variables
llvm::AMDGPU::DepCtr Namespace Reference

Functions

int getDefaultDepCtrEncoding (const MCSubtargetInfo &STI)
 
bool isSymbolicDepCtrEncoding (unsigned Code, bool &HasNonDefaultVal, const MCSubtargetInfo &STI)
 
bool decodeDepCtr (unsigned Code, int &Id, StringRef &Name, unsigned &Val, bool &IsDefault, const MCSubtargetInfo &STI)
 
int encodeDepCtr (const StringRef Name, int64_t Val, unsigned &UsedOprMask, const MCSubtargetInfo &STI)
 

Variables

const CustomOperandVal DepCtrInfo []
 
const int DEP_CTR_SIZE
 

Function Documentation

◆ decodeDepCtr()

bool llvm::AMDGPU::DepCtr::decodeDepCtr ( unsigned  Code,
int Id,
StringRef Name,
unsigned &  Val,
bool &  IsDefault,
const MCSubtargetInfo STI 
)

◆ encodeDepCtr()

int llvm::AMDGPU::DepCtr::encodeDepCtr ( const StringRef  Name,
int64_t  Val,
unsigned &  UsedOprMask,
const MCSubtargetInfo STI 
)

◆ getDefaultDepCtrEncoding()

int llvm::AMDGPU::DepCtr::getDefaultDepCtrEncoding ( const MCSubtargetInfo STI)

◆ isSymbolicDepCtrEncoding()

bool llvm::AMDGPU::DepCtr::isSymbolicDepCtrEncoding ( unsigned  Code,
bool &  HasNonDefaultVal,
const MCSubtargetInfo STI 
)

Variable Documentation

◆ DEP_CTR_SIZE

const int llvm::AMDGPU::DepCtr::DEP_CTR_SIZE
Initial value:
=
static_cast<int>(sizeof(DepCtrInfo) / sizeof(CustomOperandVal))

Definition at line 30 of file AMDGPUAsmUtils.cpp.

Referenced by decodeDepCtr(), encodeDepCtr(), getDefaultDepCtrEncoding(), and isSymbolicDepCtrEncoding().

◆ DepCtrInfo

const CustomOperandVal llvm::AMDGPU::DepCtr::DepCtrInfo
Initial value:
= {
{{"depctr_hold_cnt"}, 1, 1, 7, 1, isGFX10_BEncoding},
{{"depctr_sa_sdst"}, 1, 1, 0, 1},
{{"depctr_va_vdst"}, 15, 15, 12, 4},
{{"depctr_va_sdst"}, 7, 7, 9, 3},
{{"depctr_va_ssrc"}, 1, 1, 8, 1},
{{"depctr_va_vcc"}, 1, 1, 1, 1},
{{"depctr_vm_vsrc"}, 7, 7, 2, 3},
}

Definition at line 18 of file AMDGPUAsmUtils.cpp.

Referenced by decodeDepCtr(), encodeDepCtr(), getDefaultDepCtrEncoding(), and isSymbolicDepCtrEncoding().

llvm::AMDGPU::isGFX10_BEncoding
bool isGFX10_BEncoding(const MCSubtargetInfo &STI)
Definition: AMDGPUBaseInfo.cpp:1762
llvm::AMDGPU::DepCtr::DepCtrInfo
const CustomOperandVal DepCtrInfo[]
Definition: AMDGPUAsmUtils.cpp:18