[Mlir-commits] [mlir] [MLIR][Python] Impl XOpInterface(s) from Python, with X=Transform and X=MemoryEffects (PR #176920)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Feb 3 01:01:27 PST 2026


================
@@ -9,13 +9,80 @@
 #ifndef MLIR_BINDINGS_PYTHON_REWRITE_H
 #define MLIR_BINDINGS_PYTHON_REWRITE_H
 
-#include "mlir/Bindings/Python/NanobindUtils.h"
+#include "mlir-c/Rewrite.h"
+#include "mlir/Bindings/Python/IRCore.h"
+
+#include <nanobind/nanobind.h>
+
+namespace nb = nanobind;
----------------
PragmaTwice wrote:

iirc we don't do such namespace aliasing in headers? maybe we can move `bind()` to source files so we can remove this alias.

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


More information about the Mlir-commits mailing list