MLIR
20.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 | 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 586 of file Pattern.cpp.
Referenced by mlir::tblgen::Pattern::collectSourcePatternBoundSymbols().
|
inline |
bool SymbolInfoMap::bindAttr | ( | StringRef | symbol | ) |
Definition at line 498 of file Pattern.cpp.
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
bool SymbolInfoMap::bindMultipleValues | ( | StringRef | symbol, |
int | numValues | ||
) |
Definition at line 491 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 439 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 472 of file Pattern.cpp.
References getValuePackName().
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
bool SymbolInfoMap::bindValue | ( | StringRef | symbol | ) |
Definition at line 486 of file Pattern.cpp.
Referenced by bindValues(), and mlir::tblgen::Pattern::collectBoundSymbols().
bool SymbolInfoMap::bindValues | ( | StringRef | symbol, |
int | numValues = 1 |
||
) |
Definition at line 479 of file Pattern.cpp.
References bindMultipleValues(), bindValue(), and getValuePackName().
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
bool SymbolInfoMap::contains | ( | StringRef | symbol | ) | const |
Definition at line 503 of file Pattern.cpp.
References find().
int SymbolInfoMap::count | ( | StringRef | key | ) | const |
Definition at line 541 of file Pattern.cpp.
References getValuePackName().
|
inline |
SymbolInfoMap::const_iterator SymbolInfoMap::find | ( | StringRef | key | ) | const |
Definition at line 507 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 522 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 514 of file Pattern.cpp.
std::string SymbolInfoMap::getAllRangeUse | ( | StringRef | symbol, |
const char * | fmt = "{0}" , |
||
const char * | separator = ", " |
||
) | const |
Definition at line 572 of file Pattern.cpp.
References getValuePackName().
std::pair< SymbolInfoMap::iterator, SymbolInfoMap::iterator > SymbolInfoMap::getRangeOfEqualElements | ( | StringRef | key | ) |
Definition at line 535 of file Pattern.cpp.
References getValuePackName().
int SymbolInfoMap::getStaticValueCount | ( | StringRef | symbol | ) | const |
Definition at line 546 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 557 of file Pattern.cpp.
References getValuePackName().
|
static |
Definition at line 215 of file Pattern.cpp.
Referenced by bindMultipleValues(), bindOpArgument(), bindOpResult(), bindValues(), count(), find(), findBoundSymbol(), getAllRangeUse(), getRangeOfEqualElements(), getStaticValueCount(), and getValueAndRangeUse().