MLIR  18.0.0git
Public Member Functions | Protected Member Functions | List of all members
mlir::PDLPatternConfig Class Reference

An individual configuration for a pattern, which can be accessed by native functions via the PDLPatternConfigSet. More...

#include "mlir/IR/PatternMatch.h"

+ Inheritance diagram for mlir::PDLPatternConfig:

Public Member Functions

virtual ~PDLPatternConfig ()=default
 
virtual void notifyRewriteBegin (PatternRewriter &rewriter)
 Hooks that are invoked at the beginning and end of a rewrite of a matched pattern. More...
 
virtual void notifyRewriteEnd (PatternRewriter &rewriter)
 
TypeID getTypeID () const
 Return the TypeID that represents this configuration. More...
 

Protected Member Functions

 PDLPatternConfig (TypeID id)
 

Detailed Description

An individual configuration for a pattern, which can be accessed by native functions via the PDLPatternConfigSet.

This allows for injecting additional configuration into PDL patterns that is specific to certain compilation flows.

Definition at line 939 of file PatternMatch.h.

Constructor & Destructor Documentation

◆ ~PDLPatternConfig()

virtual mlir::PDLPatternConfig::~PDLPatternConfig ( )
virtualdefault

◆ PDLPatternConfig()

mlir::PDLPatternConfig::PDLPatternConfig ( TypeID  id)
inlineprotected

Definition at line 953 of file PatternMatch.h.

Member Function Documentation

◆ getTypeID()

TypeID mlir::PDLPatternConfig::getTypeID ( ) const
inline

Return the TypeID that represents this configuration.

Definition at line 950 of file PatternMatch.h.

Referenced by mlir::PDLPatternConfigBase< T >::classof().

◆ notifyRewriteBegin()

virtual void mlir::PDLPatternConfig::notifyRewriteBegin ( PatternRewriter rewriter)
inlinevirtual

Hooks that are invoked at the beginning and end of a rewrite of a matched pattern.

These can be used to setup any specific state necessary for the rewrite.

Reimplemented in mlir::PDLConversionConfig.

Definition at line 946 of file PatternMatch.h.

◆ notifyRewriteEnd()

virtual void mlir::PDLPatternConfig::notifyRewriteEnd ( PatternRewriter rewriter)
inlinevirtual

Reimplemented in mlir::PDLConversionConfig.

Definition at line 947 of file PatternMatch.h.


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