MLIR
20.0.0git
|
This class defines an observer that print Actions before and after execution on the provided stream. More...
#include "mlir/Debug/Observers/ActionLogging.h"
Public Member Functions | |
ActionLogger (raw_ostream &os, bool printActions=true, bool printBreakpoints=true, bool printIRUnits=true) | |
void | beforeExecute (const ActionActiveStack *action, Breakpoint *breakpoint, bool willExecute) override |
This method is called before the Action is executed If a breakpoint was hit, it is passed as an argument to the callback. More... | |
void | afterExecute (const ActionActiveStack *action) override |
This method is called after the Action is executed, if it was executed. More... | |
void | addBreakpointManager (const BreakpointManager *manager) |
If one of multiple breakpoint managers are set, only actions that are matching a breakpoint will be logged. More... | |
Public Member Functions inherited from mlir::tracing::ExecutionContext::Observer | |
virtual | ~Observer ()=default |
This class defines an observer that print Actions before and after execution on the provided stream.
Definition at line 23 of file ActionLogging.h.
|
inline |
Definition at line 24 of file ActionLogging.h.
|
inline |
If one of multiple breakpoint managers are set, only actions that are matching a breakpoint will be logged.
Definition at line 35 of file ActionLogging.h.
|
overridevirtual |
This method is called after the Action is executed, if it was executed.
It is not called if the action is skipped. Note that this method will be called from multiple threads concurrently when MLIR multi-threading is enabled.
Reimplemented from mlir::tracing::ExecutionContext::Observer.
Definition at line 66 of file ActionLogging.cpp.
References mlir::tracing::ActionActiveStack::getAction(), and mlir::tracing::Action::getTag().
|
overridevirtual |
This method is called before the Action is executed If a breakpoint was hit, it is passed as an argument to the callback.
The willExecute
argument indicates whether the action will be executed or not. Note that this method will be called from multiple threads concurrently when MLIR multi-threading is enabled.
Reimplemented from mlir::tracing::ExecutionContext::Observer.
Definition at line 32 of file ActionLogging.cpp.
References mlir::tracing::ActionActiveStack::getAction(), mlir::tracing::Action::getContextIRUnits(), mlir::tracing::Action::getTag(), and mlir::tracing::Action::print().