LLVM 24.0.0git
llvm::IntelGPU Namespace Reference

Enumerations

enum  GPUKind : uint8_t { GK_NONE = 0 }
 Intel GPU architecture names, covering both physical devices and the compatibility names that stand for a whole product line. More...

Functions

LLVM_ABI StringRef getArchName (uint32_t GPUIPVersion)
LLVM_ABI std::string getNumericArchName (uint32_t GPUIPVersion)

Enumeration Type Documentation

◆ GPUKind

Intel GPU architecture names, covering both physical devices and the compatibility names that stand for a whole product line.

Enumerator
GK_NONE 

Definition at line 29 of file IntelGPUTargetParser.h.

Function Documentation

◆ getArchName()

StringRef llvm::IntelGPU::getArchName ( uint32_t GPUIPVersion)
Returns
the device name that GPUIPVersion identifies, as reported by the driver, e.g. "xe-pvc". If the table lists no such device, return an empty string. Only the major and minor versions are looked at, so every revision of a device resolves to the same name. If several rows match, the first one in IntelGPUTargetParser.def wins.

Definition at line 50 of file IntelGPUTargetParser.cpp.

References llvm::Device, and GPUIPDeviceMask.

◆ getNumericArchName()

std::string llvm::IntelGPU::getNumericArchName ( uint32_t GPUIPVersion)
Returns
the numeric name of GPUIPVersion, e.g. "xe_35.11.0".

Definition at line 59 of file IntelGPUTargetParser.cpp.

References GPUIPMajorShift, GPUIPMinorMask, GPUIPMinorShift, and GPUIPRevisionMask.