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

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


Author: Sang Ik Lee
Date: 2026-02-18T13:55:49-08:00
New Revision: 11a13be40086319c1b6a824f6539ffed5aa2c524

URL: https://github.com/llvm/llvm-project/commit/11a13be40086319c1b6a824f6539ffed5aa2c524
DIFF: https://github.com/llvm/llvm-project/commit/11a13be40086319c1b6a824f6539ffed5aa2c524.diff

LOG: [MLIR][XeVM] Fix build issue caused by PR179557. (#182156)

Added: 
    

Modified: 
    mlir/lib/Target/LLVM/XeVM/Target.cpp

Removed: 
    


################################################################################
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