[Mlir-commits] [mlir] [MLIR][Python] Support Python-defined passes in MLIR (PR #156000)
Maksim Levental
llvmlistbot at llvm.org
Mon Sep 1 19:43:33 PDT 2025
================
@@ -11,7 +11,9 @@
#include "IRModule.h"
#include "mlir-c/Pass.h"
#include "mlir/Bindings/Python/Nanobind.h"
+
#include "mlir-c/Bindings/Python/Interop.h" // This is expected after nanobind.
+#include "nanobind/trampoline.h"
----------------
makslevental wrote:
you should do
```
// clang-format off
#include "mlir/Bindings/Python/Nanobind.h"
#include "mlir-c/Bindings/Python/Interop.h" // ON WINDOWS This is expected after nanobind.
// clang-format on
```
(the `ON WINDOWS` isn't currently there but it should be because I discovered [recently](https://github.com/llvm/llvm-project/pull/155719/files#diff-0d38bc2b74d2187603e861cdb40ed076197c005150feb90655f104c8c7ff5162) that it's in fact only windows that this matters for).
https://github.com/llvm/llvm-project/pull/156000
More information about the Mlir-commits
mailing list