[Mlir-commits] [mlir] [MLIR][XeVM] Enable SPV_INTEL_bfloat16_arithmetic (PR #195727)

Sang Ik Lee llvmlistbot at llvm.org
Mon May 4 13:01:28 PDT 2026


https://github.com/silee2 created https://github.com/llvm/llvm-project/pull/195727

None

>From dee3628fa6457a2ab467887bd54c475428b5bdef Mon Sep 17 00:00:00 2001
From: "Lee, Sang Ik" <sang.ik.lee at intel.com>
Date: Mon, 4 May 2026 12:54:32 -0700
Subject: [PATCH 1/2] [MLIR][XeVM] Enable SPV_INTEL_bfloat16_arithmetic

---
 mlir/lib/Target/LLVM/XeVM/Target.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mlir/lib/Target/LLVM/XeVM/Target.cpp b/mlir/lib/Target/LLVM/XeVM/Target.cpp
index a160e81321511..6b52b43d050b6 100644
--- a/mlir/lib/Target/LLVM/XeVM/Target.cpp
+++ b/mlir/lib/Target/LLVM/XeVM/Target.cpp
@@ -466,6 +466,7 @@ static const std::vector<std::string> getDefaultSPIRVExtensions() {
       "SPV_EXT_relaxed_printf_string_address_space",
       "SPV_INTEL_cache_controls",
       "SPV_INTEL_variable_length_array",
+      "SPV_INTEL_bfloat16_arithmetic",
   };
 }
 

>From 71a7fdbbe9f59de2aa886a896f796ae6f334d302 Mon Sep 17 00:00:00 2001
From: "Lee, Sang Ik" <sang.ik.lee at intel.com>
Date: Mon, 4 May 2026 12:59:11 -0700
Subject: [PATCH 2/2] Add link to supported SPIRV extension by Intel Graphics
 Compiler.

---
 mlir/lib/Target/LLVM/XeVM/Target.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/mlir/lib/Target/LLVM/XeVM/Target.cpp b/mlir/lib/Target/LLVM/XeVM/Target.cpp
index 6b52b43d050b6..18f6b7b3e67c8 100644
--- a/mlir/lib/Target/LLVM/XeVM/Target.cpp
+++ b/mlir/lib/Target/LLVM/XeVM/Target.cpp
@@ -460,6 +460,11 @@ void SPIRVSerializer::init() {
 }
 
 #if LLVM_HAS_SPIRV_TARGET
+// Enable default set of SPIR-V extensions.
+// Supported extensions vary based on chip. See,
+// https://github.com/intel/intel-graphics-compiler/blob/master/
+//   documentation/igc/supported-spirv-extensions.md
+// for details.
 static const std::vector<std::string> getDefaultSPIRVExtensions() {
   return {
       "SPV_KHR_bfloat16",



More information about the Mlir-commits mailing list