|
MLIR 22.0.0git
|
This class represents a listener that may be used to hook into various actions within an OpBuilder. More...
#include "mlir/IR/Builders.h"
Public Member Functions | |
| Listener () | |
| virtual | ~Listener ()=default |
| virtual void | notifyOperationInserted (Operation *op, InsertPoint previous) |
| Notify the listener that the specified operation was inserted. | |
| virtual void | notifyBlockInserted (Block *block, Region *previous, Region::iterator previousIt) |
| Notify the listener that the specified block was inserted. | |
| Public Member Functions inherited from mlir::OpBuilder::ListenerBase | |
| Kind | getKind () const |
Protected Member Functions | |
| Listener (Kind kind) | |
| Protected Member Functions inherited from mlir::OpBuilder::ListenerBase | |
| ListenerBase (Kind kind) | |
Additional Inherited Members | |
| Public Types inherited from mlir::OpBuilder::ListenerBase | |
| enum class | Kind { OpBuilderListener = 0 , RewriterBaseListener = 1 } |
| The kind of listener. More... | |
This class represents a listener that may be used to hook into various actions within an OpBuilder.
Definition at line 285 of file Builders.h.
|
inline |
Definition at line 286 of file Builders.h.
References mlir::OpBuilder::ListenerBase::ListenerBase(), and mlir::OpBuilder::ListenerBase::OpBuilderListener.
|
virtualdefault |
|
inlineprotected |
Definition at line 312 of file Builders.h.
References mlir::OpBuilder::ListenerBase::ListenerBase().
|
inlinevirtual |
Notify the listener that the specified block was inserted.
Note: Creating an (unlinked) block does not trigger this notification.
Reimplemented in mlir::detail::ConversionPatternRewriterImpl, and mlir::RewriterBase::ForwardingListener.
Definition at line 308 of file Builders.h.
Referenced by notifyBlockInsertions().
|
inlinevirtual |
Notify the listener that the specified operation was inserted.
Note: Creating an (unlinked) op does not trigger this notification.
Reimplemented in mlir::detail::ConversionPatternRewriterImpl, mlir::RewriterBase::ForwardingListener, and mlir::RewriterBase::PatternLoggingListener.
Definition at line 298 of file Builders.h.
Referenced by createAsyncDispatchFunction(), and createParallelComputeFunction().