LLVM 24.0.0git
IntelGPUTargetParser.cpp File Reference
#include "llvm/TargetParser/IntelGPUTargetParser.h"
#include "llvm/ADT/Twine.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)

Functions

static constexpr uint32_t packDevice (uint32_t Major, uint32_t Minor)

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

Macro Definition Documentation

◆ INTEL_GPU

#define INTEL_GPU ( NAME,
KIND,
MAJOR,
MINOR,
IGCA_TARGET,
IGCA_FEATURE_SETS )
Value:
if (Device == packDevice(MAJOR, MINOR)) \
return NAME;
static constexpr uint32_t packDevice(uint32_t Major, uint32_t Minor)

Function Documentation

◆ packDevice()

constexpr uint32_t packDevice ( uint32_t Major,
uint32_t Minor )
staticconstexpr

Variable Documentation

◆ GPUIPDeviceMask

uint32_t GPUIPDeviceMask = ~0u << GPUIPMinorShift
staticconstexpr

Definition at line 38 of file IntelGPUTargetParser.cpp.

Referenced by llvm::IntelGPU::getArchName().

◆ GPUIPMajorMask

uint32_t GPUIPMajorMask = 0x3ff
staticconstexpr

Definition at line 31 of file IntelGPUTargetParser.cpp.

Referenced by packDevice().

◆ GPUIPMajorShift

uint32_t GPUIPMajorShift = 22
staticconstexpr

Definition at line 29 of file IntelGPUTargetParser.cpp.

Referenced by llvm::IntelGPU::getNumericArchName(), and packDevice().

◆ GPUIPMinorMask

uint32_t GPUIPMinorMask = 0xff
staticconstexpr

Definition at line 32 of file IntelGPUTargetParser.cpp.

Referenced by llvm::IntelGPU::getNumericArchName(), and packDevice().

◆ GPUIPMinorShift

uint32_t GPUIPMinorShift = 14
staticconstexpr

Definition at line 30 of file IntelGPUTargetParser.cpp.

Referenced by llvm::IntelGPU::getNumericArchName(), and packDevice().

◆ GPUIPRevisionMask

uint32_t GPUIPRevisionMask = 0x3f
staticconstexpr

Definition at line 33 of file IntelGPUTargetParser.cpp.

Referenced by llvm::IntelGPU::getNumericArchName().