|
LLVM 24.0.0git
|
#include "llvm/TargetParser/IntelGPUTargetParser.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/StringExtras.h"#include "llvm/ADT/StringSwitch.h"#include "llvm/ADT/Twine.h"#include "llvm/Support/ErrorHandling.h"#include <cassert>#include "llvm/TargetParser/IntelGPUTargetParser.def"Go to the source code of this file.
Macros | |
| #define | INTEL_GPU(NAME, KIND, MAJOR, MINOR, IGCA_TARGET, IGCA_FEATURE_SETS) |
| #define | INTEL_GPU(NAME, KIND, MAJOR, MINOR, IGCA_TARGET, IGCA_FEATURE_SETS) |
| #define | INTEL_GPU_COMPAT(NAME, KIND, IGCA_TARGET, IGCA_FEATURE_SETS) |
| #define | INTEL_GPU(NAME, KIND, MAJOR, MINOR, IGCA_TARGET, IGCA_FEATURE_SETS) |
| #define | INTEL_GPU_COMPAT(NAME, KIND, IGCA_TARGET, IGCA_FEATURE_SETS) |
| #define | INTEL_GPU_ALIAS(NAME, KIND) |
| #define | INTEL_GPU(NAME, KIND, MAJOR, MINOR, IGCA_TARGET, IGCA_FEATURE_SETS) |
| #define | INTEL_GPU_COMPAT(NAME, KIND, IGCA_TARGET, IGCA_FEATURE_SETS) |
| #define | IGCA_TARGET_NAMES(TARGET) |
| #define | INTEL_GPU(NAME, KIND, MAJOR, MINOR, IGCA_TARGET, IGCA_FEATURE_SETS) |
| #define | INTEL_GPU_COMPAT(NAME, KIND, IGCA_TARGET, IGCA_FEATURE_SETS) |
Functions | |
| static constexpr uint32_t | packDevice (uint32_t Major, uint32_t Minor) |
| static bool | deviceCanRunIGCAFeatureSet (IGCAFeatureSet DeviceFeatureSet, IGCAFeatureSet RequestedFeatureSet) |
Variables | |
| static constexpr uint32_t | GPUIPMajorShift = 22 |
| static constexpr uint32_t | GPUIPMinorShift = 14 |
| static constexpr uint32_t | GPUIPMajorMask = 0x3ff |
| static constexpr uint32_t | GPUIPMinorMask = 0xff |
| static constexpr uint32_t | GPUIPRevisionMask = 0x3f |
| static constexpr uint32_t | GPUIPDeviceMask = ~0u << GPUIPMinorShift |
| #define IGCA_TARGET_NAMES | ( | TARGET | ) |
Definition at line 133 of file IntelGPUTargetParser.cpp.
| #define INTEL_GPU | ( | NAME, | |
| KIND, | |||
| MAJOR, | |||
| MINOR, | |||
| IGCA_TARGET, | |||
| IGCA_FEATURE_SETS ) |
| #define INTEL_GPU | ( | NAME, | |
| KIND, | |||
| MAJOR, | |||
| MINOR, | |||
| IGCA_TARGET, | |||
| IGCA_FEATURE_SETS ) |
| #define INTEL_GPU | ( | NAME, | |
| KIND, | |||
| MAJOR, | |||
| MINOR, | |||
| IGCA_TARGET, | |||
| IGCA_FEATURE_SETS ) |
| #define INTEL_GPU | ( | NAME, | |
| KIND, | |||
| MAJOR, | |||
| MINOR, | |||
| IGCA_TARGET, | |||
| IGCA_FEATURE_SETS ) |
| #define INTEL_GPU | ( | NAME, | |
| KIND, | |||
| MAJOR, | |||
| MINOR, | |||
| IGCA_TARGET, | |||
| IGCA_FEATURE_SETS ) |
| #define INTEL_GPU_COMPAT | ( | NAME, | |
| KIND, | |||
| IGCA_TARGET, | |||
| IGCA_FEATURE_SETS ) |
| #define INTEL_GPU_COMPAT | ( | NAME, | |
| KIND, | |||
| IGCA_TARGET, | |||
| IGCA_FEATURE_SETS ) |
| #define INTEL_GPU_COMPAT | ( | NAME, | |
| KIND, | |||
| IGCA_TARGET, | |||
| IGCA_FEATURE_SETS ) |
| #define INTEL_GPU_COMPAT | ( | NAME, | |
| KIND, | |||
| IGCA_TARGET, | |||
| IGCA_FEATURE_SETS ) |
|
static |
DeviceFeatureSet can run code built for the IGCA feature set RequestedFeatureSet at the device's own numeric IGCA target. For example, xe-pvc (igca_20ca, ComputeExact) can run code built for igca_20ca, igca_20c and igca_20, but not igca_20r. Definition at line 154 of file IntelGPUTargetParser.cpp.
Definition at line 48 of file IntelGPUTargetParser.cpp.
References assert(), GPUIPMajorMask, GPUIPMajorShift, GPUIPMinorMask, and GPUIPMinorShift.
|
staticconstexpr |
Definition at line 42 of file IntelGPUTargetParser.cpp.
Referenced by llvm::IntelGPU::getArchName().
|
staticconstexpr |
Definition at line 35 of file IntelGPUTargetParser.cpp.
Referenced by packDevice().
|
staticconstexpr |
Definition at line 33 of file IntelGPUTargetParser.cpp.
Referenced by llvm::IntelGPU::getNumericArchName(), and packDevice().
|
staticconstexpr |
Definition at line 36 of file IntelGPUTargetParser.cpp.
Referenced by llvm::IntelGPU::getNumericArchName(), and packDevice().
|
staticconstexpr |
Definition at line 34 of file IntelGPUTargetParser.cpp.
Referenced by llvm::IntelGPU::getNumericArchName(), and packDevice().
|
staticconstexpr |
Definition at line 37 of file IntelGPUTargetParser.cpp.
Referenced by llvm::IntelGPU::getNumericArchName().