forked from OSchip/llvm-project
[mlir] Provide defaults to make enabling dumping simpler
Differential Revision: https://reviews.llvm.org/D80818
This commit is contained in:
parent
089759b96d
commit
635cde6e8c
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class Any;
|
class Any;
|
||||||
|
raw_ostream &errs();
|
||||||
} // end namespace llvm
|
} // end namespace llvm
|
||||||
|
|
||||||
namespace mlir {
|
namespace mlir {
|
||||||
|
@ -221,9 +222,12 @@ public:
|
||||||
/// potential mutations were made.
|
/// potential mutations were made.
|
||||||
/// * 'out' corresponds to the stream to output the printed IR to.
|
/// * 'out' corresponds to the stream to output the printed IR to.
|
||||||
void enableIRPrinting(
|
void enableIRPrinting(
|
||||||
std::function<bool(Pass *, Operation *)> shouldPrintBeforePass,
|
std::function<bool(Pass *, Operation *)> shouldPrintBeforePass =
|
||||||
std::function<bool(Pass *, Operation *)> shouldPrintAfterPass,
|
[](Pass *, Operation *) { return true; },
|
||||||
bool printModuleScope, bool printAfterOnlyOnChange, raw_ostream &out);
|
std::function<bool(Pass *, Operation *)> shouldPrintAfterPass =
|
||||||
|
[](Pass *, Operation *) { return true; },
|
||||||
|
bool printModuleScope = true, bool printAfterOnlyOnChange = true,
|
||||||
|
raw_ostream &out = llvm::errs());
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// Pass Timing
|
// Pass Timing
|
||||||
|
|
Loading…
Reference in New Issue