9#ifndef LLVM_LIB_TARGET_AMDGPU_UTILS_AMDGPUASMUTILS_H
10#define LLVM_LIB_TARGET_AMDGPU_UTILS_AMDGPUASMUTILS_H
69int64_t
getMsgId(StringRef Name,
const MCSubtargetInfo &STI);
78int64_t
getMsgOpId(int64_t MsgId, StringRef Name,
const MCSubtargetInfo &STI);
83 const MCSubtargetInfo &STI);
94int64_t
getHwregId(StringRef Name,
const MCSubtargetInfo &STI);
95StringRef
getHwreg(uint64_t Encoding,
const MCSubtargetInfo &STI);
139 "MATRIX_FMT_FP8",
"MATRIX_FMT_BF8",
"MATRIX_FMT_FP6",
"MATRIX_FMT_BF6",
143 "MATRIX_SCALE_ROW1"};
146 "MATRIX_SCALE_FMT_E8",
"MATRIX_SCALE_FMT_E5M3",
"MATRIX_SCALE_FMT_E4M3"};
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Generic base class for all target subtargets.
A wrapper around a string literal that serves as a proxy for constructing global tables of StringRefs...
const CustomOperandVal DepCtrInfo[]
StringRef getHwreg(uint64_t Encoding, const MCSubtargetInfo &STI)
int64_t getHwregId(StringRef Name, const MCSubtargetInfo &STI)
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.
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.
StringRef getMsgOpName(int64_t MsgId, uint64_t Encoding, const MCSubtargetInfo &STI)
Map from an encoding to the symbolic name for a sendmsg operation.
const char *const IdSymbolic[]
ArrayRef< GFXVersion > getGFXVersions()
const char *const IdSymbolic[]
constexpr const char *const ModMatrixFmt[]
constexpr const char *const ModMatrixScaleFmt[]
constexpr const char *const ModMatrixScale[]
StringRef getWaitEventMaskName(uint64_t Encoding, const MCSubtargetInfo &STI)
int64_t getWaitEventMask(StringRef Name, const MCSubtargetInfo &STI)
const int OPR_ID_UNSUPPORTED
const int OPR_VAL_INVALID
const int OPR_ID_DUPLICATE
This is an optimization pass for GlobalISel generic memory operations.
unsigned decode(unsigned Code) const
bool isValid(unsigned Val) const
unsigned encode(unsigned Val) const
bool isSupported(const MCSubtargetInfo &STI) const
bool(* Cond)(const MCSubtargetInfo &STI)
bool(* Cond)(const MCSubtargetInfo &STI)