#include "AMDGPUAsmUtils.h"
#include "AMDGPUBaseInfo.h"
#include "SIDefines.h"
namespace llvm::AMDGPU {
template <size_t N>
static StringRef getNameFromOperandTable(const CustomOperand (&Table)[N],
unsigned Encoding,
const MCSubtargetInfo &STI) { … }
template <size_t N>
static int64_t getEncodingFromOperandTable(const CustomOperand (&Table)[N],
StringRef Name,
const MCSubtargetInfo &STI) { … }
namespace DepCtr {
const CustomOperandVal DepCtrInfo[] = …;
const int DEP_CTR_SIZE = …;
}
namespace SendMsg {
static constexpr CustomOperand MsgOperands[] = …;
static constexpr CustomOperand SysMsgOperands[] = …;
static constexpr CustomOperand StreamMsgOperands[] = …;
int64_t getMsgId(StringRef Name, const MCSubtargetInfo &STI) { … }
StringRef getMsgName(uint64_t Encoding, const MCSubtargetInfo &STI) { … }
int64_t getMsgOpId(int64_t MsgId, StringRef Name, const MCSubtargetInfo &STI) { … }
StringRef getMsgOpName(int64_t MsgId, uint64_t Encoding,
const MCSubtargetInfo &STI) { … }
}
namespace Hwreg {
static constexpr CustomOperand Operands[] = …;
int64_t getHwregId(StringRef Name, const MCSubtargetInfo &STI) { … }
StringRef getHwreg(uint64_t Encoding, const MCSubtargetInfo &STI) { … }
}
namespace MTBUFFormat {
StringLiteral const DfmtSymbolic[] = …;
StringLiteral const NfmtSymbolicGFX10[] = …;
StringLiteral const NfmtSymbolicSICI[] = …;
StringLiteral const NfmtSymbolicVI[] = …;
StringLiteral const UfmtSymbolicGFX10[] = …;
unsigned const DfmtNfmt2UFmtGFX10[] = …;
StringLiteral const UfmtSymbolicGFX11[] = …;
unsigned const DfmtNfmt2UFmtGFX11[] = …;
}
namespace Swizzle {
const char* const IdSymbolic[] = …;
}
namespace VGPRIndexMode {
const char* const IdSymbolic[] = …;
}
namespace UCVersion {
ArrayRef<GFXVersion> getGFXVersions() { … }
}
}