LLVM 20.0.0git
|
Functions | |
int64_t | getMsgId (StringRef Name, const MCSubtargetInfo &STI) |
Map from a symbolic name for a msg_id to the message portion of the immediate encoding. | |
StringRef | getMsgName (uint64_t Encoding, const MCSubtargetInfo &STI) |
Map from an encoding to the symbolic name for a msg_id immediate. | |
int64_t | getMsgOpId (int64_t MsgId, StringRef Name, const MCSubtargetInfo &STI) |
Map from a symbolic name for a sendmsg operation to the operation portion of the immediate encoding. | |
StringRef | getMsgOpName (int64_t MsgId, uint64_t Encoding, const MCSubtargetInfo &STI) |
Map from an encoding to the symbolic name for a sendmsg operation. | |
static uint64_t | getMsgIdMask (const MCSubtargetInfo &STI) |
bool | isValidMsgId (int64_t MsgId, const MCSubtargetInfo &STI) |
bool | isValidMsgOp (int64_t MsgId, int64_t OpId, const MCSubtargetInfo &STI, bool Strict) |
bool | isValidMsgStream (int64_t MsgId, int64_t OpId, int64_t StreamId, const MCSubtargetInfo &STI, bool Strict) |
bool | msgRequiresOp (int64_t MsgId, const MCSubtargetInfo &STI) |
bool | msgSupportsStream (int64_t MsgId, int64_t OpId, const MCSubtargetInfo &STI) |
void | decodeMsg (unsigned Val, uint16_t &MsgId, uint16_t &OpId, uint16_t &StreamId, const MCSubtargetInfo &STI) |
uint64_t | encodeMsg (uint64_t MsgId, uint64_t OpId, uint64_t StreamId) |
Variables | |
static constexpr CustomOperand | MsgOperands [] |
static constexpr CustomOperand | SysMsgOperands [] |
static constexpr CustomOperand | StreamMsgOperands [] |
Definition at line 439 of file SIDefines.h.
Enumerator | |
---|---|
OP_SHIFT_ | |
OP_NONE_ | |
OP_WIDTH_ | |
OP_MASK_ | |
OP_GS_NOP | |
OP_GS_CUT | |
OP_GS_EMIT | |
OP_GS_EMIT_CUT | |
OP_GS_FIRST_ | |
OP_SYS_ECC_ERR_INTERRUPT | |
OP_SYS_REG_RD | |
OP_SYS_HOST_TRAP_ACK | |
OP_SYS_TTRACE_PC | |
OP_SYS_FIRST_ |
Definition at line 471 of file SIDefines.h.
Enumerator | |
---|---|
STREAM_ID_NONE_ | |
STREAM_ID_DEFAULT_ | |
STREAM_ID_LAST_ | |
STREAM_ID_FIRST_ | |
STREAM_ID_SHIFT_ | |
STREAM_ID_WIDTH_ | |
STREAM_ID_MASK_ |
Definition at line 491 of file SIDefines.h.
void llvm::AMDGPU::SendMsg::decodeMsg | ( | unsigned | Val, |
uint16_t & | MsgId, | ||
uint16_t & | OpId, | ||
uint16_t & | StreamId, | ||
const MCSubtargetInfo & | STI | ||
) |
Definition at line 2002 of file AMDGPUBaseInfo.cpp.
References getMsgIdMask(), llvm::AMDGPU::isGFX11Plus(), OP_MASK_, OP_SHIFT_, STREAM_ID_MASK_, and STREAM_ID_SHIFT_.
LLVM_READNONE uint64_t llvm::AMDGPU::SendMsg::encodeMsg | ( | uint64_t | MsgId, |
uint64_t | OpId, | ||
uint64_t | StreamId | ||
) |
Definition at line 2014 of file AMDGPUBaseInfo.cpp.
References OP_SHIFT_, and STREAM_ID_SHIFT_.
int64_t llvm::AMDGPU::SendMsg::getMsgId | ( | StringRef | Name, |
const MCSubtargetInfo & | STI | ||
) |
Map from a symbolic name for a msg_id to the message portion of the immediate encoding.
A negative return value indicates that the Name was unknown or unsupported on this target.
Definition at line 139 of file AMDGPUAsmUtils.cpp.
References llvm::AMDGPU::getEncodingFromOperandTable(), MsgOperands, and Name.
|
static |
Definition at line 1944 of file AMDGPUBaseInfo.cpp.
References ID_MASK_GFX11Plus_, ID_MASK_PreGFX11_, and llvm::AMDGPU::isGFX11Plus().
Referenced by decodeMsg(), and isValidMsgId().
StringRef llvm::AMDGPU::SendMsg::getMsgName | ( | uint64_t | Encoding, |
const MCSubtargetInfo & | STI | ||
) |
Map from an encoding to the symbolic name for a msg_id immediate.
This is doing opposite of getMsgId().
Definition at line 143 of file AMDGPUAsmUtils.cpp.
References llvm::AMDGPU::getNameFromOperandTable(), and MsgOperands.
int64_t llvm::AMDGPU::SendMsg::getMsgOpId | ( | int64_t | MsgId, |
StringRef | Name, | ||
const MCSubtargetInfo & | STI | ||
) |
Map from a symbolic name for a sendmsg operation to the operation portion of the immediate encoding.
A negative return value indicates that the Name was unknown or unsupported on this target.
Definition at line 147 of file AMDGPUAsmUtils.cpp.
References llvm::AMDGPU::getEncodingFromOperandTable(), ID_SYSMSG, Name, StreamMsgOperands, and SysMsgOperands.
StringRef llvm::AMDGPU::SendMsg::getMsgOpName | ( | int64_t | MsgId, |
uint64_t | Encoding, | ||
const MCSubtargetInfo & | STI | ||
) |
Map from an encoding to the symbolic name for a sendmsg operation.
This is doing opposite of getMsgOpId().
Definition at line 153 of file AMDGPUAsmUtils.cpp.
References assert(), llvm::AMDGPU::getNameFromOperandTable(), ID_SYSMSG, msgRequiresOp(), StreamMsgOperands, and SysMsgOperands.
Referenced by isValidMsgOp().
LLVM_READNONE bool llvm::AMDGPU::SendMsg::isValidMsgId | ( | int64_t | MsgId, |
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1948 of file AMDGPUBaseInfo.cpp.
References getMsgIdMask().
Referenced by isValidMsgOp().
LLVM_READNONE bool llvm::AMDGPU::SendMsg::isValidMsgOp | ( | int64_t | MsgId, |
int64_t | OpId, | ||
const MCSubtargetInfo & | STI, | ||
bool | Strict | ||
) |
Definition at line 1952 of file AMDGPUBaseInfo.cpp.
References assert(), llvm::StringRef::empty(), getMsgOpName(), ID_GS_PreGFX11, isValidMsgId(), msgRequiresOp(), OP_GS_NOP, and OP_NONE_.
Referenced by isValidMsgStream().
LLVM_READNONE bool llvm::AMDGPU::SendMsg::isValidMsgStream | ( | int64_t | MsgId, |
int64_t | OpId, | ||
int64_t | StreamId, | ||
const MCSubtargetInfo & | STI, | ||
bool | Strict | ||
) |
Definition at line 1969 of file AMDGPUBaseInfo.cpp.
References assert(), ID_GS_DONE_PreGFX11, ID_GS_PreGFX11, llvm::AMDGPU::isGFX11Plus(), isValidMsgOp(), OP_GS_NOP, STREAM_ID_FIRST_, STREAM_ID_LAST_, and STREAM_ID_NONE_.
LLVM_READNONE bool llvm::AMDGPU::SendMsg::msgRequiresOp | ( | int64_t | MsgId, |
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1989 of file AMDGPUBaseInfo.cpp.
References ID_GS_DONE_PreGFX11, ID_GS_PreGFX11, ID_SYSMSG, and llvm::AMDGPU::isGFX11Plus().
Referenced by getMsgOpName(), and isValidMsgOp().
LLVM_READNONE bool llvm::AMDGPU::SendMsg::msgSupportsStream | ( | int64_t | MsgId, |
int64_t | OpId, | ||
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1995 of file AMDGPUBaseInfo.cpp.
References ID_GS_DONE_PreGFX11, ID_GS_PreGFX11, llvm::AMDGPU::isGFX11Plus(), and OP_GS_NOP.
|
staticconstexpr |
Definition at line 94 of file AMDGPUAsmUtils.cpp.
Referenced by getMsgId(), and getMsgName().
|
staticconstexpr |
Definition at line 129 of file AMDGPUAsmUtils.cpp.
Referenced by getMsgOpId(), and getMsgOpName().
|
staticconstexpr |
Definition at line 121 of file AMDGPUAsmUtils.cpp.
Referenced by getMsgOpId(), and getMsgOpName().