MLIR
20.0.0git
|
This abstract class defines the interface used to observe an Action execution. More...
#include "mlir/Debug/ExecutionContext.h"
Public Member Functions | |
virtual | ~Observer ()=default |
virtual void | beforeExecute (const ActionActiveStack *action, Breakpoint *breakpoint, bool willExecute) |
This method is called before the Action is executed If a breakpoint was hit, it is passed as an argument to the callback. More... | |
virtual void | afterExecute (const ActionActiveStack *action) |
This method is called after the Action is executed, if it was executed. More... | |
This abstract class defines the interface used to observe an Action execution.
It allows to be notified before and after the callback is processed, but can't affect the execution.
Definition at line 87 of file ExecutionContext.h.
|
virtualdefault |
|
inlinevirtual |
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 in mlir::tracing::ActionProfiler, and mlir::tracing::ActionLogger.
Definition at line 102 of file ExecutionContext.h.
|
inlinevirtual |
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 in mlir::tracing::ActionProfiler, and mlir::tracing::ActionLogger.
Definition at line 95 of file ExecutionContext.h.