MLIR  16.0.0git
Public Types | Public Member Functions | List of all members
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 getBenefit () const
 
std::vector< IdentifierLinegetLocation () const
 
void collectBoundSymbols (DagNode tree, SymbolInfoMap &infoMap, bool isSrcPattern)
 

Detailed Description

Definition at line 455 of file Pattern.h.

Member Typedef Documentation

◆ IdentifierLine

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

Definition at line 488 of file Pattern.h.

Constructor & Destructor Documentation

◆ Pattern()

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

Definition at line 605 of file Pattern.cpp.

Member Function Documentation

◆ collectBoundSymbols()

void Pattern::collectBoundSymbols ( DagNode  tree,
SymbolInfoMap infoMap,
bool  isSrcPattern 
)

◆ collectResultPatternBoundSymbols()

void Pattern::collectResultPatternBoundSymbols ( SymbolInfoMap infoMap)

Definition at line 632 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 649 of file Pattern.cpp.

◆ getDialectOp()

Operator & Pattern::getDialectOp ( DagNode  node)

Definition at line 645 of file Pattern.cpp.

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

Referenced by collectBoundSymbols().

◆ getLocation()

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

Definition at line 689 of file Pattern.cpp.

◆ getNumResultPatterns()

int Pattern::getNumResultPatterns ( ) const

Definition at line 612 of file Pattern.cpp.

Referenced by collectResultPatternBoundSymbols().

◆ getResultPattern()

DagNode Pattern::getResultPattern ( unsigned  index) const

Definition at line 617 of file Pattern.cpp.

Referenced by collectResultPatternBoundSymbols().

◆ getSourcePattern()

DagNode Pattern::getSourcePattern ( ) const

Definition at line 608 of file Pattern.cpp.

Referenced by collectSourcePatternBoundSymbols(), and getSourceRootOp().

◆ getSourceRootOp()

const Operator & Pattern::getSourceRootOp ( )

Definition at line 641 of file Pattern.cpp.

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


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