[Mlir-commits] [mlir] [MLIR][GPU][XeVM] Add missing #include for standalone header build (PR #153532)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Aug 13 20:59:58 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-llvm

@llvm/pr-subscribers-mlir

Author: Jordan Rupprecht (rupprecht)

<details>
<summary>Changes</summary>

This header uses GPUModuleOp but does not directly include the header: `error: no type named 'GPUModuleOp' in namespace 'mlir::gpu'; did you mean 'ModuleOp'?`

Needed for #<!-- -->148286

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


1 Files Affected:

- (modified) mlir/include/mlir/Target/LLVM/XeVM/Utils.h (+1) 


``````````diff
diff --git a/mlir/include/mlir/Target/LLVM/XeVM/Utils.h b/mlir/include/mlir/Target/LLVM/XeVM/Utils.h
index 32444de0cf90c..5d523f1ec457f 100644
--- a/mlir/include/mlir/Target/LLVM/XeVM/Utils.h
+++ b/mlir/include/mlir/Target/LLVM/XeVM/Utils.h
@@ -14,6 +14,7 @@
 #define MLIR_TARGET_LLVM_XEVM_UTILS_H
 
 #include "mlir/Dialect/GPU/IR/CompilationInterfaces.h"
+#include "mlir/Dialect/GPU/IR/GPUDialect.h"
 #include "mlir/Dialect/LLVMIR/XeVMDialect.h"
 #include "mlir/IR/Attributes.h"
 #include "mlir/Target/LLVM/ModuleToObject.h"

``````````

</details>


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


More information about the Mlir-commits mailing list