MLIR  20.0.0git
Public Types | Public Member Functions | Static Public Attributes | List of all members
mlir::ApplyPatternAction Class Reference

This is the type of Action that is dispatched when a pattern is applied. More...

#include "mlir/Rewrite/PatternApplicator.h"

+ Inheritance diagram for mlir::ApplyPatternAction:

Public Types

using Base = tracing::ActionImpl< ApplyPatternAction >
 

Public Member Functions

 ApplyPatternAction (ArrayRef< IRUnit > irUnits, const Pattern &pattern)
 
void print (raw_ostream &os) const override
 
- Public Member Functions inherited from mlir::tracing::ActionImpl< ApplyPatternAction >
 ActionImpl (ArrayRef< IRUnit > irUnits={})
 
StringRef getTag () const final
 Forward tag access to the derived class. More...
 
- Public Member Functions inherited from mlir::tracing::Action
virtual ~Action ()=default
 
TypeID getActionID () const
 Return the unique action id of this action, use for casting functionality. More...
 
virtual ArrayRef< IRUnitgetContextIRUnits () const
 Return the set of IR units that are associated with this action. More...
 

Static Public Attributes

static constexpr StringLiteral tag = "apply-pattern"
 
static constexpr StringLiteral desc
 

Additional Inherited Members

- Static Public Member Functions inherited from mlir::tracing::ActionImpl< ApplyPatternAction >
static bool classof (const Action *action)
 Provide classof to allow casting between action types. More...
 
- Protected Member Functions inherited from mlir::tracing::Action
 Action (TypeID actionID, ArrayRef< IRUnit > irUnits)
 
- Protected Attributes inherited from mlir::tracing::Action
TypeID actionID
 The type of the derived action class, used for isa/dyn_cast. More...
 
ArrayRef< IRUnitirUnits
 Set of IR units (operations, regions, blocks, values) that are associated with this action. More...
 

Detailed Description

This is the type of Action that is dispatched when a pattern is applied.

It captures the pattern to apply on top of the usual context.

Definition at line 30 of file PatternApplicator.h.

Member Typedef Documentation

◆ Base

Definition at line 32 of file PatternApplicator.h.

Constructor & Destructor Documentation

◆ ApplyPatternAction()

mlir::ApplyPatternAction::ApplyPatternAction ( ArrayRef< IRUnit irUnits,
const Pattern pattern 
)
inline

Definition at line 33 of file PatternApplicator.h.

Member Function Documentation

◆ print()

void mlir::ApplyPatternAction::print ( raw_ostream &  os) const
inlineoverridevirtual

Reimplemented from mlir::tracing::Action.

Definition at line 39 of file PatternApplicator.h.

References mlir::Pattern::getDebugName(), and tag.

Member Data Documentation

◆ desc

constexpr StringLiteral mlir::ApplyPatternAction::desc
staticconstexpr
Initial value:
=
"Encapsulate the application of rewrite patterns"

Definition at line 36 of file PatternApplicator.h.

◆ tag

constexpr StringLiteral mlir::ApplyPatternAction::tag = "apply-pattern"
staticconstexpr

Definition at line 35 of file PatternApplicator.h.

Referenced by print().


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