MLIR  18.0.0git
Public Member Functions | Protected Member Functions | List of all members
mlir::OpBuilder::Listener Struct Reference

This class represents a listener that may be used to hook into various actions within an OpBuilder. More...

#include "mlir/IR/Builders.h"

+ Inheritance diagram for mlir::OpBuilder::Listener:

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...
 
- 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Listener() [1/2]

mlir::OpBuilder::Listener::Listener ( )
inline

Definition at line 284 of file Builders.h.

◆ ~Listener()

virtual mlir::OpBuilder::Listener::~Listener ( )
virtualdefault

◆ Listener() [2/2]

mlir::OpBuilder::Listener::Listener ( Kind  kind)
inlineprotected

Definition at line 297 of file Builders.h.

Member Function Documentation

◆ notifyBlockCreated()

virtual void mlir::OpBuilder::Listener::notifyBlockCreated ( Block block)
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().

◆ notifyOperationInserted()

virtual void mlir::OpBuilder::Listener::notifyOperationInserted ( Operation op)
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().


The documentation for this struct was generated from the following file: