[Mlir-commits] [mlir] [mlir][Python] fix IRInterfaces.h (PR #181522)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Feb 14 19:29:31 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Maksim Levental (makslevental)
<details>
<summary>Changes</summary>
https://github.com/llvm/llvm-project/pull/176920 added `IRInterfaces.h` but didn't include it in either the list of [installed headers](https://github.com/llvm/llvm-project/blob/a1d7cda1d7ca4983e02727f589952b02626d2dc8/mlir/python/CMakeLists.txt#L557) or `mlir/Bindings/Python`. This breaks downstreams. So just move the header to `mlir/Bindings/Python`
---
Full diff: https://github.com/llvm/llvm-project/pull/181522.diff
3 Files Affected:
- (renamed) mlir/include/mlir/Bindings/Python/IRInterfaces.h ()
- (modified) mlir/lib/Bindings/Python/DialectTransform.cpp (+1-1)
- (modified) mlir/lib/Bindings/Python/IRInterfaces.cpp (+1-1)
``````````diff
diff --git a/mlir/lib/Bindings/Python/IRInterfaces.h b/mlir/include/mlir/Bindings/Python/IRInterfaces.h
similarity index 100%
rename from mlir/lib/Bindings/Python/IRInterfaces.h
rename to mlir/include/mlir/Bindings/Python/IRInterfaces.h
diff --git a/mlir/lib/Bindings/Python/DialectTransform.cpp b/mlir/lib/Bindings/Python/DialectTransform.cpp
index 62c6185dab15e..0d9877a1d2a0a 100644
--- a/mlir/lib/Bindings/Python/DialectTransform.cpp
+++ b/mlir/lib/Bindings/Python/DialectTransform.cpp
@@ -8,12 +8,12 @@
#include <string>
-#include "IRInterfaces.h"
#include "Rewrite.h"
#include "mlir-c/Dialect/Transform.h"
#include "mlir-c/IR.h"
#include "mlir-c/Support.h"
#include "mlir/Bindings/Python/IRCore.h"
+#include "mlir/Bindings/Python/IRInterfaces.h"
#include "nanobind/nanobind.h"
#include <nanobind/trampoline.h>
diff --git a/mlir/lib/Bindings/Python/IRInterfaces.cpp b/mlir/lib/Bindings/Python/IRInterfaces.cpp
index 147f2022b2948..ea795dde875c1 100644
--- a/mlir/lib/Bindings/Python/IRInterfaces.cpp
+++ b/mlir/lib/Bindings/Python/IRInterfaces.cpp
@@ -12,12 +12,12 @@
#include <utility>
#include <vector>
-#include "IRInterfaces.h"
#include "mlir-c/BuiltinAttributes.h"
#include "mlir-c/IR.h"
#include "mlir-c/Interfaces.h"
#include "mlir-c/Support.h"
#include "mlir/Bindings/Python/IRCore.h"
+#include "mlir/Bindings/Python/IRInterfaces.h"
namespace nb = nanobind;
``````````
</details>
https://github.com/llvm/llvm-project/pull/181522
More information about the Mlir-commits
mailing list