[Mlir-commits] [mlir] [MLIR][Python] Support Python-defined passes in MLIR (PR #156000)
Rolf Morel
llvmlistbot at llvm.org
Mon Sep 8 06:18:32 PDT 2025
================
@@ -157,6 +159,45 @@ void mlir::python::populatePassManagerSubmodule(nb::module_ &m) {
"pipeline"_a,
"Add textual pipeline elements to the pass manager. Throws a "
"ValueError if the pipeline can't be parsed.")
+ .def(
+ "add_python_pass",
----------------
rolfmorel wrote:
How about just `"add_pass"`? Or even just reusing `"add"` and dispatching on arg types.
https://github.com/llvm/llvm-project/pull/156000
More information about the Mlir-commits
mailing list