MLIR
18.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) |
Notification handler for when an operation is inserted into the builder. More... | |
virtual void | notifyBlockCreated (Block *block) |
Notification handler for when a block is created using the builder. More... | |
![]() | |
Kind | getKind () const |
Protected Member Functions | |
Listener (Kind kind) | |
![]() | |
ListenerBase (Kind kind) | |
Additional Inherited Members | |
![]() | |
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 283 of file Builders.h.
|
inline |
Definition at line 284 of file Builders.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 297 of file Builders.h.
|
inlinevirtual |
Notification handler for when a block is created using the builder.
block
is the block that was created.
Reimplemented in mlir::ConversionPatternRewriter, and mlir::RewriterBase::ForwardingListener.
Definition at line 294 of file Builders.h.
Referenced by mlir::OpBuilder::createBlock(), and mlir::RewriterBase::ForwardingListener::notifyBlockCreated().
|
inlinevirtual |
Notification handler for when an operation is inserted into the builder.
op
is the operation that was inserted.
Reimplemented in mlir::ConversionPatternRewriter, and mlir::RewriterBase::ForwardingListener.
Definition at line 290 of file Builders.h.
Referenced by createAsyncDispatchFunction().