[Mlir-commits] [mlir] [mlir][Python] fix IRInterfaces.h (PR #181522)

Maksim Levental llvmlistbot at llvm.org
Sat Feb 14 19:29:03 PST 2026


https://github.com/makslevental created https://github.com/llvm/llvm-project/pull/181522

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`

>From 9cf307b30cd3bdcb8b8417f7aa1e132d06a928ac Mon Sep 17 00:00:00 2001
From: makslevental <maksim.levental at gmail.com>
Date: Sat, 14 Feb 2026 19:26:59 -0800
Subject: [PATCH] [mlir][Python] fix IRInterfaces.h

---
 mlir/{lib => include/mlir}/Bindings/Python/IRInterfaces.h | 0
 mlir/lib/Bindings/Python/DialectTransform.cpp             | 2 +-
 mlir/lib/Bindings/Python/IRInterfaces.cpp                 | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename mlir/{lib => include/mlir}/Bindings/Python/IRInterfaces.h (100%)

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;
 



More information about the Mlir-commits mailing list