|
MLIR 24.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) |
| LLVM_DEPRECATED_WITH_FIXIT ("Chipset struct deprecated", "use ROCDL::TargetInfo::get instead") static FailureOr< Chipset > parse(StringRef name) | |
| Parses the chipset version string and returns the chipset on success, and failure otherwise. | |
| std::tuple< unsigned, unsigned, unsigned > | asTuple () const |
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 form a hexadecimal number. For example: gfx942 --> major = 9, minor = 0x4, stepping = 0x2 gfx90a --> major = 9, minor = 0x0, stepping = 0xa gfx1103 --> major = 11, minor = 0x0, stepping = 0x3
|
constexprdefault |
Referenced by LLVM_DEPRECATED_WITH_FIXIT().
|
inlineconstexpr |
Definition at line 32 of file Chipset.h.
References majorVersion, minorVersion, and steppingVersion.
Definition at line 43 of file Chipset.h.
References asTuple(), majorVersion, minorVersion, and steppingVersion.
Referenced by asTuple().
| mlir::amdgpu::Chipset::LLVM_DEPRECATED_WITH_FIXIT | ( | "Chipset struct deprecated" | , |
| "use ROCDL::TargetInfo::get instead" | ) |
Parses the chipset version string and returns the chipset on success, and failure otherwise.
References Chipset().
| unsigned mlir::amdgpu::Chipset::majorVersion = 0 |
| unsigned mlir::amdgpu::Chipset::minorVersion = 0 |
| unsigned mlir::amdgpu::Chipset::steppingVersion = 0 |