MLIR
20.0.0git
|
#include "mlir/TableGen/Pattern.h"
Public Member Functions | |
DagNode (const llvm::DagInit *node) | |
operator bool () const | |
StringRef | getSymbol () const |
Operator & | getDialectOp (RecordOperatorMap *mapper) const |
int | getNumOps () const |
int | getNumArgs () const |
bool | isNestedDagArg (unsigned index) const |
DagNode | getArgAsNestedDag (unsigned index) const |
DagLeaf | getArgAsLeaf (unsigned index) const |
StringRef | getArgName (unsigned index) const |
bool | isReplaceWithValue () const |
bool | isLocationDirective () const |
bool | isReturnTypeDirective () const |
bool | isNativeCodeCall () const |
bool | isEither () const |
bool | isVariadic () const |
bool | isOperation () const |
StringRef | getNativeCodeTemplate () const |
int | getNumReturnsOfNativeCode () const |
void | print (raw_ostream &os) const |
Friends | |
class | SymbolInfoMap |
|
inlineexplicit |
Definition at line 143 of file Pattern.h.
Referenced by getArgAsNestedDag().
DagLeaf DagNode::getArgAsLeaf | ( | unsigned | index | ) | const |
Definition at line 172 of file Pattern.cpp.
References isNestedDagArg().
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
DagNode DagNode::getArgAsNestedDag | ( | unsigned | index | ) | const |
Definition at line 168 of file Pattern.cpp.
References DagNode().
Referenced by mlir::tblgen::Pattern::collectBoundSymbols(), and getNumOps().
StringRef DagNode::getArgName | ( | unsigned | index | ) | const |
Definition at line 177 of file Pattern.cpp.
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
Operator & DagNode::getDialectOp | ( | RecordOperatorMap * | mapper | ) | const |
Definition at line 143 of file Pattern.cpp.
References mlir::tblgen::Operator::getDef().
Referenced by mlir::tblgen::Pattern::getDialectOp(), and mlir::tblgen::Pattern::getSourceRootOp().
StringRef DagNode::getNativeCodeTemplate | ( | ) | const |
Definition at line 127 of file Pattern.cpp.
References isNativeCodeCall().
int DagNode::getNumArgs | ( | ) | const |
Definition at line 162 of file Pattern.cpp.
Referenced by mlir::tblgen::Pattern::collectBoundSymbols(), and getNumOps().
int DagNode::getNumOps | ( | ) | const |
Definition at line 151 of file Pattern.cpp.
References getArgAsNestedDag(), getNumArgs(), and isOperation().
int DagNode::getNumReturnsOfNativeCode | ( | ) | const |
Definition at line 134 of file Pattern.cpp.
References isNativeCodeCall().
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
StringRef DagNode::getSymbol | ( | ) | const |
Definition at line 141 of file Pattern.cpp.
Referenced by mlir::tblgen::Pattern::collectBoundSymbols().
bool DagNode::isEither | ( | ) | const |
Definition at line 196 of file Pattern.cpp.
Referenced by isOperation().
bool DagNode::isLocationDirective | ( | ) | const |
Definition at line 186 of file Pattern.cpp.
Referenced by isOperation().
bool DagNode::isNativeCodeCall | ( | ) | const |
Definition at line 115 of file Pattern.cpp.
Referenced by mlir::tblgen::Pattern::collectBoundSymbols(), getNativeCodeTemplate(), getNumReturnsOfNativeCode(), and isOperation().
bool DagNode::isNestedDagArg | ( | unsigned | index | ) | const |
Definition at line 164 of file Pattern.cpp.
Referenced by getArgAsLeaf().
bool DagNode::isOperation | ( | ) | const |
Definition at line 121 of file Pattern.cpp.
References isEither(), isLocationDirective(), isNativeCodeCall(), isReplaceWithValue(), isReturnTypeDirective(), and isVariadic().
Referenced by mlir::tblgen::Pattern::collectBoundSymbols(), and getNumOps().
bool DagNode::isReplaceWithValue | ( | ) | const |
Definition at line 181 of file Pattern.cpp.
Referenced by isOperation().
bool DagNode::isReturnTypeDirective | ( | ) | const |
Definition at line 191 of file Pattern.cpp.
Referenced by isOperation().
bool DagNode::isVariadic | ( | ) | const |
Definition at line 201 of file Pattern.cpp.
Referenced by isOperation().
void DagNode::print | ( | raw_ostream & | os | ) | const |
Definition at line 206 of file Pattern.cpp.
|
friend |