[Mlir-commits] [mlir] [MLIR][Python] Support Python-defined passes in MLIR (PR #156000)

Rolf Morel llvmlistbot at llvm.org
Mon Sep 8 07:32:24 PDT 2025


rolfmorel wrote:

My understanding now is that MLIR's external pass mechanism indeed does not register such passwa in the pass registry. Such passes are meant to just directly be added to pass managers (which do get a name for these external passes).

As this is a general C-API facility of MLIR, I don't see how/why the Python bindings should be doing anything differently here.

In general happy for this to go in. The dependent dialects aspect could come as a follow-up (as you could just make sure the dialects your pass needs are loaded before `run`ning the pass manager).

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


More information about the Mlir-commits mailing list