[Mlir-commits] [mlir] [MLIR][Python] Add the `--mlir-print-ir-tree-dir` to the C and Python API (PR #117339)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Sat Nov 23 09:37:40 PST 2024
================
@@ -75,10 +75,13 @@ MLIR_CAPI_EXPORTED MlirLogicalResult
mlirPassManagerRunOnOp(MlirPassManager passManager, MlirOperation op);
/// Enable IR printing.
+/// The treePrintingPath argument is an optional path to a directory
+/// where the dumps will be produced. If it isn't provided then dumps
+/// are produced to stderr.
MLIR_CAPI_EXPORTED void mlirPassManagerEnableIRPrinting(
MlirPassManager passManager, bool printBeforeAll, bool printAfterAll,
bool printModuleScope, bool printAfterOnlyOnChange,
- bool printAfterOnlyOnFailure);
+ bool printAfterOnlyOnFailure, MlirStringRef treePrintingPath);
----------------
ftynse wrote:
Random: I'd consider having a `PassManagerPrintConfig` object to make for a shorter and more stable API.
https://github.com/llvm/llvm-project/pull/117339
More information about the Mlir-commits
mailing list