[Mlir-commits] [mlir] [MLIR][XeVM] Fix build issue caused by PR179557. (PR #182156)
Sang Ik Lee
llvmlistbot at llvm.org
Wed Feb 18 13:52:34 PST 2026
https://github.com/silee2 created https://github.com/llvm/llvm-project/pull/182156
None
>From e0d388dc784f8f6a1789c8809d5650587fa4f42e Mon Sep 17 00:00:00 2001
From: "Lee, Sang Ik" <sang.ik.lee at intel.com>
Date: Wed, 18 Feb 2026 21:51:49 +0000
Subject: [PATCH] [MLIR][XeVM] Fix build issue caused by PR179557.
---
mlir/lib/Target/LLVM/XeVM/Target.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mlir/lib/Target/LLVM/XeVM/Target.cpp b/mlir/lib/Target/LLVM/XeVM/Target.cpp
index de69dd84d8f6e..868409cae7451 100644
--- a/mlir/lib/Target/LLVM/XeVM/Target.cpp
+++ b/mlir/lib/Target/LLVM/XeVM/Target.cpp
@@ -13,7 +13,6 @@
#include "mlir/Target/LLVM/XeVM/Target.h"
-#include "MCTargetDesc/SPIRVBaseInfo.h"
#include "mlir/Dialect/GPU/IR/CompilationInterfaces.h"
#include "mlir/Dialect/GPU/IR/GPUDialect.h"
#include "mlir/Dialect/LLVMIR/XeVMDialect.h"
@@ -42,6 +41,7 @@
#include "llvm/Support/raw_ostream.h"
// From llvm/lib/Target/SPIRV
#if LLVM_HAS_SPIRV_TARGET
+#include "MCTargetDesc/SPIRVBaseInfo.h"
#include "SPIRVCommandLine.h"
#include "SPIRVSubtarget.h"
#include "SPIRVTargetMachine.h"
@@ -276,6 +276,7 @@ void SPIRVSerializer::init() {
});
}
+#if LLVM_HAS_SPIRV_TARGET
static const std::vector<std::string> getDefaultSPIRVExtensions() {
return {
"SPV_EXT_relaxed_printf_string_address_space",
@@ -283,6 +284,7 @@ static const std::vector<std::string> getDefaultSPIRVExtensions() {
"SPV_INTEL_variable_length_array",
};
}
+#endif
std::optional<SmallVector<char, 0>> SPIRVSerializer::run() {
// Translate the module to LLVM IR.
More information about the Mlir-commits
mailing list