LLVM 20.0.0git
|
Enumerations | |
enum | DataFormat : int64_t { DFMT_INVALID = 0 , DFMT_8 , DFMT_16 , DFMT_8_8 , DFMT_32 , DFMT_16_16 , DFMT_10_11_11 , DFMT_11_11_10 , DFMT_10_10_10_2 , DFMT_2_10_10_10 , DFMT_8_8_8_8 , DFMT_32_32 , DFMT_16_16_16_16 , DFMT_32_32_32 , DFMT_32_32_32_32 , DFMT_RESERVED_15 , DFMT_MIN = DFMT_INVALID , DFMT_MAX = DFMT_RESERVED_15 , DFMT_UNDEF = -1 , DFMT_DEFAULT = DFMT_8 , DFMT_SHIFT = 0 , DFMT_MASK = 0xF } |
enum | NumFormat : int64_t { NFMT_UNORM = 0 , NFMT_SNORM , NFMT_USCALED , NFMT_SSCALED , NFMT_UINT , NFMT_SINT , NFMT_RESERVED_6 , NFMT_SNORM_OGL = NFMT_RESERVED_6 , NFMT_FLOAT , NFMT_MIN = NFMT_UNORM , NFMT_MAX = NFMT_FLOAT , NFMT_UNDEF = -1 , NFMT_DEFAULT = NFMT_UNORM , NFMT_SHIFT = 4 , NFMT_MASK = 7 } |
enum | MergedFormat : int64_t { DFMT_NFMT_UNDEF = -1 , DFMT_NFMT_DEFAULT , DFMT_NFMT_MASK = (DFMT_MASK << DFMT_SHIFT) | (NFMT_MASK << NFMT_SHIFT) , DFMT_NFMT_MAX = DFMT_NFMT_MASK } |
enum | UnifiedFormatCommon : int64_t { UFMT_MAX = 127 , UFMT_UNDEF = -1 , UFMT_DEFAULT = 1 } |
Functions | |
int64_t | getDfmt (const StringRef Name) |
StringRef | getDfmtName (unsigned Id) |
static StringLiteral const * | getNfmtLookupTable (const MCSubtargetInfo &STI) |
int64_t | getNfmt (const StringRef Name, const MCSubtargetInfo &STI) |
StringRef | getNfmtName (unsigned Id, const MCSubtargetInfo &STI) |
bool | isValidDfmtNfmt (unsigned Id, const MCSubtargetInfo &STI) |
bool | isValidNfmt (unsigned Id, const MCSubtargetInfo &STI) |
int64_t | encodeDfmtNfmt (unsigned Dfmt, unsigned Nfmt) |
void | decodeDfmtNfmt (unsigned Format, unsigned &Dfmt, unsigned &Nfmt) |
int64_t | getUnifiedFormat (const StringRef Name, const MCSubtargetInfo &STI) |
StringRef | getUnifiedFormatName (unsigned Id, const MCSubtargetInfo &STI) |
bool | isValidUnifiedFormat (unsigned Id, const MCSubtargetInfo &STI) |
int64_t | convertDfmtNfmt2Ufmt (unsigned Dfmt, unsigned Nfmt, const MCSubtargetInfo &STI) |
bool | isValidFormatEncoding (unsigned Val, const MCSubtargetInfo &STI) |
unsigned | getDefaultFormatEncoding (const MCSubtargetInfo &STI) |
enum llvm::AMDGPU::MTBUFFormat::DataFormat : int64_t |
Definition at line 583 of file SIDefines.h.
enum llvm::AMDGPU::MTBUFFormat::MergedFormat : int64_t |
Enumerator | |
---|---|
DFMT_NFMT_UNDEF | |
DFMT_NFMT_DEFAULT | |
DFMT_NFMT_MASK | |
DFMT_NFMT_MAX |
Definition at line 632 of file SIDefines.h.
enum llvm::AMDGPU::MTBUFFormat::NumFormat : int64_t |
Enumerator | |
---|---|
NFMT_UNORM | |
NFMT_SNORM | |
NFMT_USCALED | |
NFMT_SSCALED | |
NFMT_UINT | |
NFMT_SINT | |
NFMT_RESERVED_6 | |
NFMT_SNORM_OGL | |
NFMT_FLOAT | |
NFMT_MIN | |
NFMT_MAX | |
NFMT_UNDEF | |
NFMT_DEFAULT | |
NFMT_SHIFT | |
NFMT_MASK |
Definition at line 611 of file SIDefines.h.
enum llvm::AMDGPU::MTBUFFormat::UnifiedFormatCommon : int64_t |
Enumerator | |
---|---|
UFMT_MAX | |
UFMT_UNDEF | |
UFMT_DEFAULT |
Definition at line 643 of file SIDefines.h.
int64_t llvm::AMDGPU::MTBUFFormat::convertDfmtNfmt2Ufmt | ( | unsigned | Dfmt, |
unsigned | Nfmt, | ||
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1861 of file AMDGPUBaseInfo.cpp.
References DfmtNfmt2UFmtGFX10, DfmtNfmt2UFmtGFX11, encodeDfmtNfmt(), llvm::AMDGPU::isGFX11Plus(), llvm::AMDGPU::UfmtGFX10::UFMT_FIRST, llvm::AMDGPU::UfmtGFX11::UFMT_FIRST, llvm::AMDGPU::UfmtGFX10::UFMT_LAST, llvm::AMDGPU::UfmtGFX11::UFMT_LAST, and UFMT_UNDEF.
void llvm::AMDGPU::MTBUFFormat::decodeDfmtNfmt | ( | unsigned | Format, |
unsigned & | Dfmt, | ||
unsigned & | Nfmt | ||
) |
Definition at line 1831 of file AMDGPUBaseInfo.cpp.
References DFMT_MASK, DFMT_SHIFT, llvm::Format, NFMT_MASK, and NFMT_SHIFT.
Referenced by isValidDfmtNfmt().
LLVM_READNONE int64_t llvm::AMDGPU::MTBUFFormat::encodeDfmtNfmt | ( | unsigned | Dfmt, |
unsigned | Nfmt | ||
) |
Definition at line 1827 of file AMDGPUBaseInfo.cpp.
References DFMT_SHIFT, and NFMT_SHIFT.
Referenced by convertDfmtNfmt2Ufmt().
unsigned llvm::AMDGPU::MTBUFFormat::getDefaultFormatEncoding | ( | const MCSubtargetInfo & | STI | ) |
Definition at line 1882 of file AMDGPUBaseInfo.cpp.
References DFMT_NFMT_DEFAULT, llvm::AMDGPU::isGFX10Plus(), and UFMT_DEFAULT.
Definition at line 1781 of file AMDGPUBaseInfo.cpp.
References DFMT_MAX, DFMT_MIN, DFMT_UNDEF, DfmtSymbolic, and Name.
Definition at line 1789 of file AMDGPUBaseInfo.cpp.
References assert(), DFMT_MAX, and DfmtSymbolic.
int64_t llvm::AMDGPU::MTBUFFormat::getNfmt | ( | const StringRef | Name, |
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1802 of file AMDGPUBaseInfo.cpp.
References getNfmtLookupTable(), Name, NFMT_MAX, NFMT_MIN, and NFMT_UNDEF.
|
static |
Definition at line 1794 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::isCI(), llvm::AMDGPU::isGFX9(), llvm::AMDGPU::isSI(), llvm::AMDGPU::isVI(), NfmtSymbolicGFX10, NfmtSymbolicSICI, and NfmtSymbolicVI.
Referenced by getNfmt(), and getNfmtName().
StringRef llvm::AMDGPU::MTBUFFormat::getNfmtName | ( | unsigned | Id, |
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1811 of file AMDGPUBaseInfo.cpp.
References assert(), getNfmtLookupTable(), and NFMT_MAX.
Referenced by isValidNfmt().
int64_t llvm::AMDGPU::MTBUFFormat::getUnifiedFormat | ( | const StringRef | Name, |
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1836 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::isGFX11Plus(), Name, llvm::AMDGPU::UfmtGFX10::UFMT_FIRST, llvm::AMDGPU::UfmtGFX11::UFMT_FIRST, llvm::AMDGPU::UfmtGFX10::UFMT_LAST, llvm::AMDGPU::UfmtGFX11::UFMT_LAST, UFMT_UNDEF, UfmtSymbolicGFX10, and UfmtSymbolicGFX11.
StringRef llvm::AMDGPU::MTBUFFormat::getUnifiedFormatName | ( | unsigned | Id, |
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1851 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::isGFX10(), isValidUnifiedFormat(), UfmtSymbolicGFX10, and UfmtSymbolicGFX11.
bool llvm::AMDGPU::MTBUFFormat::isValidDfmtNfmt | ( | unsigned | Id, |
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1816 of file AMDGPUBaseInfo.cpp.
References decodeDfmtNfmt(), and isValidNfmt().
bool llvm::AMDGPU::MTBUFFormat::isValidFormatEncoding | ( | unsigned | Val, |
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1878 of file AMDGPUBaseInfo.cpp.
References DFMT_NFMT_MAX, llvm::AMDGPU::isGFX10Plus(), and UFMT_MAX.
bool llvm::AMDGPU::MTBUFFormat::isValidNfmt | ( | unsigned | Id, |
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1823 of file AMDGPUBaseInfo.cpp.
References llvm::StringRef::empty(), and getNfmtName().
Referenced by isValidDfmtNfmt().
bool llvm::AMDGPU::MTBUFFormat::isValidUnifiedFormat | ( | unsigned | Id, |
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1857 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::isGFX10(), llvm::AMDGPU::UfmtGFX10::UFMT_LAST, and llvm::AMDGPU::UfmtGFX11::UFMT_LAST.
Referenced by getUnifiedFormatName().
Definition at line 390 of file AMDGPUAsmUtils.cpp.
Referenced by convertDfmtNfmt2Ufmt().
Definition at line 564 of file AMDGPUAsmUtils.cpp.
Referenced by convertDfmtNfmt2Ufmt().
StringLiteral const llvm::AMDGPU::MTBUFFormat::DfmtSymbolic |
Definition at line 244 of file AMDGPUAsmUtils.cpp.
Referenced by getDfmt(), and getDfmtName().
StringLiteral const llvm::AMDGPU::MTBUFFormat::NfmtSymbolicGFX10 |
Definition at line 263 of file AMDGPUAsmUtils.cpp.
Referenced by getNfmtLookupTable().
StringLiteral const llvm::AMDGPU::MTBUFFormat::NfmtSymbolicSICI |
Definition at line 274 of file AMDGPUAsmUtils.cpp.
Referenced by getNfmtLookupTable().
StringLiteral const llvm::AMDGPU::MTBUFFormat::NfmtSymbolicVI |
Definition at line 285 of file AMDGPUAsmUtils.cpp.
Referenced by getNfmtLookupTable().
StringLiteral const llvm::AMDGPU::MTBUFFormat::UfmtSymbolicGFX10 |
Definition at line 296 of file AMDGPUAsmUtils.cpp.
Referenced by getUnifiedFormat(), and getUnifiedFormatName().
StringLiteral const llvm::AMDGPU::MTBUFFormat::UfmtSymbolicGFX11 |
Definition at line 484 of file AMDGPUAsmUtils.cpp.
Referenced by getUnifiedFormat(), and getUnifiedFormatName().