MLIR
20.0.0git
|
Represents the amdgpu gfx chipset version, e.g., gfx90a, gfx942, gfx1103. More...
#include "mlir/Dialect/AMDGPU/Utils/Chipset.h"
Public Member Functions | |
constexpr | Chipset ()=default |
constexpr | Chipset (unsigned major, unsigned minor, unsigned stepping) |
std::tuple< unsigned, unsigned, unsigned > | asTuple () const |
Static Public Member Functions | |
static FailureOr< Chipset > | parse (StringRef name) |
Parses the chipset version string and returns the chipset on success, and failure otherwise. More... | |
Public Attributes | |
unsigned | majorVersion = 0 |
unsigned | minorVersion = 0 |
unsigned | steppingVersion = 0 |
Represents the amdgpu gfx chipset version, e.g., gfx90a, gfx942, gfx1103.
Note that the leading digits form a decimal number, while the last two digits for a hexadecimal number. For example: gfx942 --> major = 9, minor = 0x4, stepping = 0x2 gfx90a --> major = 9, minor = 0x0, stepping = 0xa gfx1103 --> major = 10, minor = 0x0, stepping = 0x3
|
constexprdefault |
Referenced by parse().
|
inlineconstexpr |
|
inline |
Definition at line 35 of file Chipset.h.
References majorVersion, minorVersion, and steppingVersion.
|
static |
Parses the chipset version string and returns the chipset on success, and failure otherwise.
Definition at line 14 of file Chipset.cpp.
References Chipset().
unsigned mlir::amdgpu::Chipset::majorVersion = 0 |
Definition at line 23 of file Chipset.h.
Referenced by asTuple(), and mlir::amdgpu::populateAmdgpuEmulateAtomicsPatterns().
unsigned mlir::amdgpu::Chipset::minorVersion = 0 |
unsigned mlir::amdgpu::Chipset::steppingVersion = 0 |