[PATCH] D80818: [mlir] Provide defaults to make enabling dumping simpler

Jacques Pienaar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 10:59:12 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG635cde6e8c08: [mlir] Provide defaults to make enabling dumping simpler (authored by jpienaar).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80818/new/

https://reviews.llvm.org/D80818

Files:
  mlir/include/mlir/Pass/PassManager.h


Index: mlir/include/mlir/Pass/PassManager.h
===================================================================
--- mlir/include/mlir/Pass/PassManager.h
+++ mlir/include/mlir/Pass/PassManager.h
@@ -19,6 +19,7 @@
 
 namespace llvm {
 class Any;
+raw_ostream &errs();
 } // end namespace llvm
 
 namespace mlir {
@@ -221,9 +222,12 @@
   ///   potential mutations were made.
   /// * 'out' corresponds to the stream to output the printed IR to.
   void enableIRPrinting(
-      std::function<bool(Pass *, Operation *)> shouldPrintBeforePass,
-      std::function<bool(Pass *, Operation *)> shouldPrintAfterPass,
-      bool printModuleScope, bool printAfterOnlyOnChange, raw_ostream &out);
+      std::function<bool(Pass *, Operation *)> shouldPrintBeforePass =
+          [](Pass *, Operation *) { return true; },
+      std::function<bool(Pass *, Operation *)> shouldPrintAfterPass =
+          [](Pass *, Operation *) { return true; },
+      bool printModuleScope = true, bool printAfterOnlyOnChange = true,
+      raw_ostream &out = llvm::errs());
 
   //===--------------------------------------------------------------------===//
   // Pass Timing


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80818.267935.patch
Type: text/x-patch
Size: 1152 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200602/55c87132/attachment.bin>


More information about the llvm-commits mailing list