My Project
|
A configuration struct provided to the IR printer instrumentation. More...
#include <PassManager.h>
Public Types | |
using | PrintCallbackFn = function_ref< void(raw_ostream &)> |
Public Member Functions | |
IRPrinterConfig (bool printModuleScope=false, bool printAfterOnlyOnChange=false) | |
Initialize the configuration. More... | |
virtual | ~IRPrinterConfig () |
virtual void | printBeforeIfEnabled (Pass *pass, Operation *operation, PrintCallbackFn printCallback) |
virtual void | printAfterIfEnabled (Pass *pass, Operation *operation, PrintCallbackFn printCallback) |
bool | shouldPrintAtModuleScope () const |
Returns true if the IR should always be printed at the top-level scope. More... | |
bool | shouldPrintAfterOnlyOnChange () const |
A configuration struct provided to the IR printer instrumentation.
using mlir::PassManager::IRPrinterConfig::PrintCallbackFn = function_ref<void(raw_ostream &)> |
|
explicit |
Initialize the configuration.
Initialize the configuration.
|
virtual |
|
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.
|
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.
|
inline |
Returns true if the IR should only printed after a pass if the IR "changed".
|
inline |
Returns true if the IR should always be printed at the top-level scope.