MLIR
16.0.0git
|
A configuration struct provided to the IR printer instrumentation. More...
#include "mlir/Pass/PassManager.h"
Public Types | |
using | PrintCallbackFn = function_ref< void(raw_ostream &)> |
Public Member Functions | |
IRPrinterConfig (bool printModuleScope=false, bool printAfterOnlyOnChange=false, bool printAfterOnlyOnFailure=false, OpPrintingFlags opPrintingFlags=OpPrintingFlags()) | |
Initialize the configuration. More... | |
virtual | ~IRPrinterConfig () |
virtual void | printBeforeIfEnabled (Pass *pass, Operation *operation, PrintCallbackFn printCallback) |
A hook that may be overridden by a derived config that checks if the IR of 'operation' should be dumped before the pass 'pass' has been executed. More... | |
virtual void | printAfterIfEnabled (Pass *pass, Operation *operation, PrintCallbackFn printCallback) |
A hook that may be overridden by a derived config that checks if the IR of 'operation' should be dumped after the pass 'pass' has been executed. More... | |
bool | shouldPrintAtModuleScope () const |
Returns true if the IR should always be printed at the top-level scope. More... | |
bool | shouldPrintAfterOnlyOnChange () const |
Returns true if the IR should only printed after a pass if the IR "changed". More... | |
bool | shouldPrintAfterOnlyOnFailure () const |
Returns true if the IR should only printed after a pass if the pass "failed". More... | |
OpPrintingFlags | getOpPrintingFlags () const |
Returns the printing flags to be used to print the IR. More... | |
A configuration struct provided to the IR printer instrumentation.
Definition at line 276 of file PassManager.h.
using mlir::PassManager::IRPrinterConfig::PrintCallbackFn = function_ref<void(raw_ostream &)> |
Definition at line 278 of file PassManager.h.
|
explicit |
Initialize the configuration.
printAfter
flags above.Definition at line 187 of file IRPrinting.cpp.
References ~IRPrinterConfig().
Referenced by printAfterIfEnabled().
|
virtualdefault |
Referenced by IRPrinterConfig().
|
inline |
Returns the printing flags to be used to print the IR.
Definition at line 329 of file PassManager.h.
References mlir::applyDefaultTimingPassManagerCLOptions(), mlir::applyPassManagerCLOptions(), and mlir::registerPassManagerCLOptions().
|
virtual |
A hook that may be overridden by a derived config that checks if the IR of 'operation' should be dumped after the pass 'pass' has been executed.
If the IR should be dumped, 'printCallback' should be invoked with the stream to dump into.
Definition at line 210 of file IRPrinting.cpp.
References IRPrinterConfig(), and printBeforeIfEnabled().
|
virtual |
A hook that may be overridden by a derived config that checks if the IR of 'operation' should be dumped before the pass 'pass' has been executed.
If the IR should be dumped, 'printCallback' should be invoked with the stream to dump into.
Definition at line 201 of file IRPrinting.cpp.
Referenced by printAfterIfEnabled().
|
inline |
Returns true if the IR should only printed after a pass if the IR "changed".
Definition at line 320 of file PassManager.h.
|
inline |
Returns true if the IR should only printed after a pass if the pass "failed".
Definition at line 324 of file PassManager.h.
|
inline |
Returns true if the IR should always be printed at the top-level scope.
Definition at line 316 of file PassManager.h.