[Mlir-commits] [mlir] [MLIR][Python] Add the `--mlir-print-ir-tree-dir` to the C and Python API (PR #117339)

Mehdi Amini llvmlistbot at llvm.org
Fri Nov 22 16:09:35 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) {
----------------
joker-eph wrote:

Why is this better though? The empty string works through API and is handled on the C++ side as disabling the feature.

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


More information about the Mlir-commits mailing list