MLIR 22.0.0git
mlir::tblgen::Pattern Class Reference

#include "mlir/TableGen/Pattern.h"

Public Types

using IdentifierLine = std::pair<StringRef, unsigned>

Public Member Functions

 Pattern (const llvm::Record *def, RecordOperatorMap *mapper)
DagNode getSourcePattern () const
int getNumResultPatterns () const
DagNode getResultPattern (unsigned index) const
void collectSourcePatternBoundSymbols (SymbolInfoMap &infoMap)
void collectResultPatternBoundSymbols (SymbolInfoMap &infoMap)
const OperatorgetSourceRootOp ()
OperatorgetDialectOp (DagNode node)
std::vector< AppliedConstraintgetConstraints () const
int getNumSupplementalPatterns () const
DagNode getSupplementalPattern (unsigned index) const
int getBenefit () const
std::vector< IdentifierLinegetLocation () const
void collectBoundSymbols (DagNode tree, SymbolInfoMap &infoMap, bool isSrcPattern)

Detailed Description

Definition at line 602 of file Pattern.h.

Member Typedef Documentation

◆ IdentifierLine

using mlir::tblgen::Pattern::IdentifierLine = std::pair<StringRef, unsigned>

Definition at line 643 of file Pattern.h.

Constructor & Destructor Documentation

◆ Pattern()

mlir::tblgen::Pattern::Pattern ( const llvm::Record * def,
RecordOperatorMap * mapper )
explicit

Member Function Documentation

◆ collectBoundSymbols()

◆ collectResultPatternBoundSymbols()

void Pattern::collectResultPatternBoundSymbols ( SymbolInfoMap & infoMap)

Definition at line 707 of file Pattern.cpp.

References collectBoundSymbols(), getNumResultPatterns(), and getResultPattern().

◆ collectSourcePatternBoundSymbols()

void Pattern::collectSourcePatternBoundSymbols ( SymbolInfoMap & infoMap)

◆ getBenefit()

int mlir::tblgen::Pattern::getBenefit ( ) const

◆ getConstraints()

std::vector< AppliedConstraint > Pattern::getConstraints ( ) const

Definition at line 724 of file Pattern.cpp.

◆ getDialectOp()

Operator & Pattern::getDialectOp ( DagNode node)

Definition at line 720 of file Pattern.cpp.

References mlir::tblgen::DagNode::getDialectOp().

Referenced by collectBoundSymbols().

◆ getLocation()

std::vector< Pattern::IdentifierLine > Pattern::getLocation ( ) const

Definition at line 774 of file Pattern.cpp.

References result.

◆ getNumResultPatterns()

int Pattern::getNumResultPatterns ( ) const

Definition at line 687 of file Pattern.cpp.

Referenced by collectResultPatternBoundSymbols().

◆ getNumSupplementalPatterns()

int Pattern::getNumSupplementalPatterns ( ) const

Definition at line 752 of file Pattern.cpp.

◆ getResultPattern()

DagNode Pattern::getResultPattern ( unsigned index) const

Definition at line 692 of file Pattern.cpp.

Referenced by collectResultPatternBoundSymbols().

◆ getSourcePattern()

DagNode Pattern::getSourcePattern ( ) const

Definition at line 683 of file Pattern.cpp.

Referenced by collectSourcePatternBoundSymbols(), and getSourceRootOp().

◆ getSourceRootOp()

const Operator & Pattern::getSourceRootOp ( )

Definition at line 716 of file Pattern.cpp.

References mlir::tblgen::DagNode::getDialectOp(), and getSourcePattern().

◆ getSupplementalPattern()

DagNode Pattern::getSupplementalPattern ( unsigned index) const

Definition at line 757 of file Pattern.cpp.


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