MLIR
20.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. More... | |
virtual void | notifyBlockInserted (Block *block, Region *previous, Region::iterator previousIt) |
Notify the listener that the specified block was inserted. More... | |
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 294 of file Builders.h.
|
inline |
Definition at line 295 of file Builders.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 321 of file Builders.h.
|
inlinevirtual |
Notify the listener that the specified block was inserted.
previous
and previousIt
are the previous location of the block.previous
is "nullptr".Note: Creating an (unlinked) block does not trigger this notification.
Reimplemented in mlir::detail::ConversionPatternRewriterImpl, and mlir::RewriterBase::ForwardingListener.
Definition at line 317 of file Builders.h.
Referenced by mlir::OpBuilder::cloneRegionBefore(), mlir::OpBuilder::createBlock(), mlir::RewriterBase::moveBlockBefore(), and mlir::RewriterBase::ForwardingListener::notifyBlockInserted().
|
inlinevirtual |
Notify the listener that the specified operation was inserted.
previous
is the previous location of the op.previous
is empty.Note: Creating an (unlinked) op does not trigger this notification.
Reimplemented in mlir::detail::ConversionPatternRewriterImpl, and mlir::RewriterBase::ForwardingListener.
Definition at line 307 of file Builders.h.
Referenced by mlir::OpBuilder::clone(), mlir::OpBuilder::cloneRegionBefore(), createAsyncDispatchFunction(), createParallelComputeFunction(), mlir::OpBuilder::insert(), mlir::RewriterBase::moveOpBefore(), and mlir::RewriterBase::ForwardingListener::notifyOperationInserted().