[Mlir-commits] [mlir] [MLIR][Python] Support Python-defined passes in MLIR (PR #156000)
Mehdi Amini
llvmlistbot at llvm.org
Mon Sep 8 01:19:27 PDT 2025
joker-eph wrote:
We should preserve the ability of the system to generate reproducer: that is a pass is more than a callable and should be registered in a way that we can print a pass pipeline and replay it (that implies the ability to register it and a stable mnemnonic). Registering a pass is something you need to do independently from the pass manager, since you can build a pass manager from a pipeline.
This is one of the important aspect of fitting into the pass manager, otherwise if you're just running functions on operations without more structure, you can just write it all in python without hooking into the MLIR pass management infrastructure.
https://github.com/llvm/llvm-project/pull/156000
More information about the Mlir-commits
mailing list