[Mlir-commits] [mlir] [MLIR][XeVM] Fix build issue caused by PR179557. (PR #182156)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Feb 18 13:53:08 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-llvm

Author: Sang Ik Lee (silee2)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/182156.diff


1 Files Affected:

- (modified) mlir/lib/Target/LLVM/XeVM/Target.cpp (+3-1) 


``````````diff
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.

``````````

</details>


https://github.com/llvm/llvm-project/pull/182156


More information about the Mlir-commits mailing list