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

Maksim Levental llvmlistbot at llvm.org
Mon Sep 8 06:42:09 PDT 2025


makslevental wrote:

> > PassRegistry is not bound in Python
> 
> What do you mean? We can't parse a pass pipeline from python?

You can't create re-usable pipelines in Python at all (except as strings). So you cannot do anything in Python except `add pass`.

> I don't quite follow your point, can we create passes in python today? If not then we're adding the way to create passes, and my point is that "create a pass" comes with expectations in the context of MLIR.

This PR just maps to Python [already existing functionality available for C users](https://github.com/llvm/llvm-project/blob/main/mlir/test/CAPI/pass.c#L57) (you realize that right...?).



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


More information about the Mlir-commits mailing list