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

Jordan Rupprecht llvmlistbot at llvm.org
Wed Aug 13 20:59:28 PDT 2025


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

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

>From a3e0c2bd1057345e29c623a7801810493aea07c0 Mon Sep 17 00:00:00 2001
From: Jordan Rupprecht <rupprecht at google.com>
Date: Wed, 13 Aug 2025 20:56:19 -0700
Subject: [PATCH] Add missing header

---
 mlir/include/mlir/Target/LLVM/XeVM/Utils.h | 1 +
 1 file changed, 1 insertion(+)

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"



More information about the Mlir-commits mailing list