[Mlir-commits] [mlir] [MLIR] [Python] align python ir printing with mlir-print-ir-after-all (PR #107522)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Sep 8 21:28:07 PDT 2024
xurui1995 wrote:
> Isn't it better to add those options to `enable_ir_printing` with the defaults that match?
Thanks for your advice!
I have added options for the `enable_ir_printing`, and it works as `mlir-print-mlir-after-all` by default.
The default values of `print_module_scope`, `print_after_change`, and `print_after_failure` are aligned with default values in `PassManagerOptions.cpp`.
https://github.com/llvm/llvm-project/blob/f2b71491d11355c0df0c92ef7cce7d610c894660/mlir/lib/Pass/PassManagerOptions.cpp#L46-L60
https://github.com/llvm/llvm-project/pull/107522
More information about the Mlir-commits
mailing list