MLIR
19.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 289 of file PassManager.h.
using mlir::PassManager::IRPrinterConfig::PrintCallbackFn = function_ref<void(raw_ostream &)> |
Definition at line 291 of file PassManager.h.
|
explicit |
Initialize the configuration.
printAfter
flags above.Definition at line 133 of file IRPrinting.cpp.
|
virtualdefault |
|
inline |
Returns the printing flags to be used to print the IR.
Definition at line 342 of file PassManager.h.
|
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 156 of file IRPrinting.cpp.
|
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 147 of file IRPrinting.cpp.
|
inline |
Returns true if the IR should only printed after a pass if the IR "changed".
Definition at line 333 of file PassManager.h.
|
inline |
Returns true if the IR should only printed after a pass if the pass "failed".
Definition at line 337 of file PassManager.h.
|
inline |
Returns true if the IR should always be printed at the top-level scope.
Definition at line 329 of file PassManager.h.