[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
       
    Sat Nov 23 10:28:41 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);
----------------
joker-eph wrote:
I can give it a try in a subsequent PR.
Do you mean it as a C API thing? A Python API thing? Both?
https://github.com/llvm/llvm-project/pull/117339
    
    
More information about the Mlir-commits
mailing list