Lines Matching refs:DagNode
72 void emitStaticMatcher(DagNode tree, std::string funcName);
76 void emitMatchLogic(DagNode tree, StringRef opName);
86 void emitMatch(DagNode tree, StringRef name, int depth);
89 void emitStaticMatchCall(DagNode tree, StringRef name);
96 void emitNativeCodeMatch(DagNode tree, StringRef name, int depth);
100 void emitOpMatch(DagNode tree, StringRef opName, int depth);
105 void emitOperandMatch(DagNode tree, StringRef opName, StringRef operandName,
111 void emitEitherOperandMatch(DagNode tree, DagNode eitherArgTree,
117 void emitAttributeMatch(DagNode tree, StringRef opName, int argIndex,
144 std::string handleResultPattern(DagNode resultTree, int resultIndex,
149 std::string handleReplaceWithNativeCodeCall(DagNode resultTree, int depth);
152 StringRef handleReplaceWithValue(DagNode tree);
158 DagNode location;
161 DagNode returnType;
168 TrailingDirectives getTrailingDirectives(DagNode tree);
174 std::string handleLocationDirective(DagNode tree);
177 std::string handleReturnTypeArg(DagNode returnType, int i, int depth);
184 std::string handleOpCreation(DagNode tree, int resultIndex, int depth);
190 void createSeparateLocalVarsForOpArgs(DagNode node,
194 void supplyValuesForOpArgs(DagNode node,
201 DagNode node, const ChildNodeIndexNameMap &childNodeNames, int depth);
216 void collectOps(DagNode tree, llvm::SmallPtrSetImpl<const Operator *> &ops);
226 int getNodeValueCount(DagNode node);
264 bool useStaticMatcher(DagNode node) { in useStaticMatcher()
269 std::string getMatcherName(DagNode node) { in getMatcherName()
308 SmallVector<std::pair<DagNode, Record *>> topologicalOrder;
313 DenseMap<DagNode, std::string> matcherNames;
318 DenseMap<DagNode, unsigned> refStats;
350 void PatternEmitter::emitStaticMatcher(DagNode tree, std::string funcName) { in emitStaticMatcher()
378 void PatternEmitter::emitMatch(DagNode tree, StringRef name, int depth) { in emitMatch()
392 void PatternEmitter::emitStaticMatchCall(DagNode tree, StringRef opName) { in emitStaticMatchCall()
433 void PatternEmitter::emitNativeCodeMatch(DagNode tree, StringRef opName, in emitNativeCodeMatch()
462 if (DagNode argTree = tree.getArgAsNestedDag(i)) { in emitNativeCodeMatch()
507 if (DagNode argTree = tree.getArgAsNestedDag(i)) { in emitNativeCodeMatch()
542 void PatternEmitter::emitOpMatch(DagNode tree, StringRef opName, int depth) { in emitOpMatch()
590 if (DagNode argTree = tree.getArgAsNestedDag(i)) { in emitOpMatch()
644 void PatternEmitter::emitOperandMatch(DagNode tree, StringRef opName, in emitOperandMatch()
689 void PatternEmitter::emitEitherOperandMatch(DagNode tree, DagNode eitherArgTree, in emitEitherOperandMatch()
709 if (DagNode argTree = eitherArgTree.getArgAsNestedDag(i)) { in emitEitherOperandMatch()
757 void PatternEmitter::emitAttributeMatch(DagNode tree, StringRef opName, in emitAttributeMatch()
844 void PatternEmitter::emitMatchLogic(DagNode tree, StringRef opName) { in emitMatchLogic()
919 void PatternEmitter::collectOps(DagNode tree, in collectOps()
937 DagNode sourceTree = pattern.getSourcePattern(); in emit()
1059 DagNode resultTree = pattern.getResultPattern(i); in emitRewriteLogic()
1079 DagNode resultTree = pattern.getResultPattern(i); in emitRewriteLogic()
1105 std::string PatternEmitter::handleResultPattern(DagNode resultTree, in handleResultPattern()
1132 StringRef PatternEmitter::handleReplaceWithValue(DagNode tree) { in handleReplaceWithValue()
1147 std::string PatternEmitter::handleLocationDirective(DagNode tree) { in handleLocationDirective()
1195 std::string PatternEmitter::handleReturnTypeArg(DagNode returnType, int i, in handleReturnTypeArg()
1246 std::string PatternEmitter::handleReplaceWithNativeCodeCall(DagNode tree, in handleReplaceWithNativeCodeCall()
1313 int PatternEmitter::getNodeValueCount(DagNode node) { in getNodeValueCount()
1332 PatternEmitter::getTrailingDirectives(DagNode tree) { in getTrailingDirectives()
1333 TrailingDirectives tail = {DagNode(nullptr), DagNode(nullptr), 0}; in getTrailingDirectives()
1376 std::string PatternEmitter::handleOpCreation(DagNode tree, int resultIndex, in handleOpCreation()
1514 DagNode node, ChildNodeIndexNameMap &childNodeNames) { in createSeparateLocalVarsForOpArgs()
1571 DagNode node, const ChildNodeIndexNameMap &childNodeNames, int depth) { in supplyValuesForOpArgs()
1613 DagNode node, const ChildNodeIndexNameMap &childNodeNames, int depth) { in createAggregateLocalVarsForOpArgs()
1699 DagNode node = dagInfo.first; in populateStaticMatchers()
1723 llvm::unique_function<void(DagNode)> dfs = [&](DagNode node) { in addPattern()
1730 if (DagNode sibling = node.getArgAsNestedDag(i)) in addPattern()