[Mlir-commits] [mlir] [mlir][pybind] export more options on enable_ir_printing() api (PR #65854)

Yuanqiang Liu llvmlistbot at llvm.org
Sun Apr 14 09:21:25 PDT 2024


================
@@ -307,7 +307,8 @@ class PassManager : public OpPassManager {
     ///   IR.
     explicit IRPrinterConfig(
         bool printModuleScope = false, bool printAfterOnlyOnChange = false,
-        bool printAfterOnlyOnFailure = false,
+        bool printAfterOnlyOnFailure = false, bool printBeforePass = false,
+        bool printAfterPass = false,
----------------
qingyunqu wrote:

@joker-eph I try to create C struct of `PassManager::IRPrinterConfig`, but this will change the member variable. I don't know whether it is a good practice.

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


More information about the Mlir-commits mailing list