|
MLIR
22.0.0git
|
#include "mlir/TableGen/Pattern.h"
Classes | |
| class | SymbolInfo |
Public Types | |
| using | BaseT = std::unordered_multimap< std::string, SymbolInfo > |
| using | iterator = BaseT::iterator |
| using | const_iterator = BaseT::const_iterator |
Public Member Functions | |
| SymbolInfoMap (ArrayRef< SMLoc > loc) | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| bool | bindOpArgument (DagNode node, StringRef symbol, const Operator &op, int argIndex, std::optional< int > variadicSubIndex=std::nullopt) |
| bool | bindOpResult (StringRef symbol, const Operator &op) |
| bool | bindValues (StringRef symbol, int numValues=1) |
| bool | bindValue (StringRef symbol) |
| bool | bindMultipleValues (StringRef symbol, int numValues) |
| bool | bindAttr (StringRef symbol) |
| bool | bindProp (StringRef symbol, const PropConstraint &constraint) |
| bool | contains (StringRef symbol) const |
| const_iterator | find (StringRef key) const |
| const_iterator | findBoundSymbol (StringRef key, DagNode node, const Operator &op, int argIndex, std::optional< int > variadicSubIndex) const |
| const_iterator | findBoundSymbol (StringRef key, const SymbolInfo &symbolInfo) const |
| std::pair< iterator, iterator > | getRangeOfEqualElements (StringRef key) |
| int | count (StringRef key) const |
| int | getStaticValueCount (StringRef symbol) const |
| std::string | getValueAndRangeUse (StringRef symbol, const char *fmt="{0}", const char *separator=", ") const |
| std::string | getAllRangeUse (StringRef symbol, const char *fmt="{0}", const char *separator=", ") const |
| void | assignUniqueAlternativeNames () |
Static Public Member Functions | |
| static StringRef | getValuePackName (StringRef symbol, int *index=nullptr) |
| using mlir::tblgen::SymbolInfoMap::BaseT = std::unordered_multimap<std::string, SymbolInfo> |
| using mlir::tblgen::SymbolInfoMap::const_iterator = BaseT::const_iterator |
| using mlir::tblgen::SymbolInfoMap::iterator = BaseT::iterator |
|
inlineexplicit |
| void SymbolInfoMap::assignUniqueAlternativeNames | ( | ) |
Definition at line 645 of file Pattern.cpp.
Referenced by mlir::tblgen::Pattern::collectSourcePatternBoundSymbols().
|
inline |
| bool SymbolInfoMap::bindAttr | ( | StringRef | symbol | ) |
Definition at line 550 of file Pattern.cpp.
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
| bool SymbolInfoMap::bindMultipleValues | ( | StringRef | symbol, |
| int | numValues | ||
| ) |
Definition at line 543 of file Pattern.cpp.
References getValuePackName().
Referenced by bindValues().
| bool SymbolInfoMap::bindOpArgument | ( | DagNode | node, |
| StringRef | symbol, | ||
| const Operator & | op, | ||
| int | argIndex, | ||
| std::optional< int > | variadicSubIndex = std::nullopt |
||
| ) |
Definition at line 489 of file Pattern.cpp.
References mlir::tblgen::Operator::getArg(), and getValuePackName().
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
| bool SymbolInfoMap::bindOpResult | ( | StringRef | symbol, |
| const Operator & | op | ||
| ) |
Definition at line 524 of file Pattern.cpp.
References getValuePackName().
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
| bool SymbolInfoMap::bindProp | ( | StringRef | symbol, |
| const PropConstraint & | constraint | ||
| ) |
Definition at line 555 of file Pattern.cpp.
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
| bool SymbolInfoMap::bindValue | ( | StringRef | symbol | ) |
Definition at line 538 of file Pattern.cpp.
Referenced by bindValues(), and mlir::tblgen::Pattern::collectBoundSymbols().
| bool SymbolInfoMap::bindValues | ( | StringRef | symbol, |
| int | numValues = 1 |
||
| ) |
Definition at line 531 of file Pattern.cpp.
References bindMultipleValues(), bindValue(), and getValuePackName().
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
| bool SymbolInfoMap::contains | ( | StringRef | symbol | ) | const |
Definition at line 562 of file Pattern.cpp.
References find().
| int SymbolInfoMap::count | ( | StringRef | key | ) | const |
Definition at line 600 of file Pattern.cpp.
References getValuePackName().
|
inline |
| SymbolInfoMap::const_iterator SymbolInfoMap::find | ( | StringRef | key | ) | const |
Definition at line 566 of file Pattern.cpp.
References getValuePackName().
Referenced by contains(), and getStaticValueCount().
| SymbolInfoMap::const_iterator SymbolInfoMap::findBoundSymbol | ( | StringRef | key, |
| const SymbolInfo & | symbolInfo | ||
| ) | const |
Definition at line 581 of file Pattern.cpp.
References getValuePackName().
| SymbolInfoMap::const_iterator SymbolInfoMap::findBoundSymbol | ( | StringRef | key, |
| DagNode | node, | ||
| const Operator & | op, | ||
| int | argIndex, | ||
| std::optional< int > | variadicSubIndex | ||
| ) | const |
Definition at line 573 of file Pattern.cpp.
| std::string SymbolInfoMap::getAllRangeUse | ( | StringRef | symbol, |
| const char * | fmt = "{0}", |
||
| const char * | separator = ", " |
||
| ) | const |
Definition at line 631 of file Pattern.cpp.
References getValuePackName().
| std::pair< SymbolInfoMap::iterator, SymbolInfoMap::iterator > SymbolInfoMap::getRangeOfEqualElements | ( | StringRef | key | ) |
Definition at line 594 of file Pattern.cpp.
References getValuePackName().
| int SymbolInfoMap::getStaticValueCount | ( | StringRef | symbol | ) | const |
Definition at line 605 of file Pattern.cpp.
References find(), and getValuePackName().
| std::string SymbolInfoMap::getValueAndRangeUse | ( | StringRef | symbol, |
| const char * | fmt = "{0}", |
||
| const char * | separator = ", " |
||
| ) | const |
Definition at line 616 of file Pattern.cpp.
References getValuePackName().
|
static |
Definition at line 240 of file Pattern.cpp.
Referenced by bindMultipleValues(), bindOpArgument(), bindOpResult(), bindValues(), count(), find(), findBoundSymbol(), getAllRangeUse(), getRangeOfEqualElements(), getStaticValueCount(), and getValueAndRangeUse().