[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 18:50:07 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:
Because `std::optional` is designed to indicate an optional thing and pybind is also designed to be compatible with this (and optionality is mapped to `None` in python, not empty string).
https://github.com/llvm/llvm-project/pull/117339
More information about the Mlir-commits
mailing list