[Mlir-commits] [mlir] [MLIR][Python] Add the `--mlir-print-ir-tree-dir` to the C and Python API (PR #117339)
Maksim Levental
llvmlistbot at llvm.org
Fri Nov 22 09:28:53 PST 2024
================
@@ -76,14 +76,16 @@ void mlir::python::populatePassManagerSubmodule(py::module &m) {
"enable_ir_printing",
[](PyPassManager &passManager, bool printBeforeAll,
bool printAfterAll, bool printModuleScope, bool printAfterChange,
- bool printAfterFailure) {
+ bool printAfterFailure, std::string treePrintingPath) {
----------------
makslevental wrote:
You can go `std::optional<string>` here and then `"treePrintingPath"_a = py::none()` below and the arg will be `nullopt` when someone doesn't pass it.
https://github.com/llvm/llvm-project/pull/117339
More information about the Mlir-commits
mailing list