Lines Matching refs:DagNode
66 void emitMatchLogic(DagNode tree, StringRef opName);
76 void emitMatch(DagNode tree, StringRef name, int depth);
79 void emitNativeCodeMatch(DagNode tree, StringRef name, int depth);
83 void emitOpMatch(DagNode tree, StringRef opName, int depth);
87 void emitOperandMatch(DagNode tree, StringRef opName, int argIndex,
92 void emitAttributeMatch(DagNode tree, StringRef opName, int argIndex,
119 std::string handleResultPattern(DagNode resultTree, int resultIndex,
124 std::string handleReplaceWithNativeCodeCall(DagNode resultTree, int depth);
127 StringRef handleReplaceWithValue(DagNode tree);
130 std::pair<bool, std::string> getLocation(DagNode tree);
133 std::string handleLocationDirective(DagNode tree);
140 std::string handleOpCreation(DagNode tree, int resultIndex, int depth);
146 void createSeparateLocalVarsForOpArgs(DagNode node,
150 void supplyValuesForOpArgs(DagNode node,
157 DagNode node, const ChildNodeIndexNameMap &childNodeNames, int depth);
172 void collectOps(DagNode tree, llvm::SmallPtrSetImpl<const Operator *> &ops);
182 int getNodeValueCount(DagNode node);
230 void PatternEmitter::emitMatch(DagNode tree, StringRef name, int depth) { in emitMatch()
245 void PatternEmitter::emitNativeCodeMatch(DagNode tree, StringRef opName, in emitNativeCodeMatch()
265 if (DagNode argTree = tree.getArgAsNestedDag(i)) { in emitNativeCodeMatch()
301 if (DagNode argTree = tree.getArgAsNestedDag(i)) { in emitNativeCodeMatch()
325 void PatternEmitter::emitOpMatch(DagNode tree, StringRef opName, int depth) { in emitOpMatch()
357 if (DagNode argTree = tree.getArgAsNestedDag(i)) { in emitOpMatch()
395 void PatternEmitter::emitOperandMatch(DagNode tree, StringRef opName, in emitOperandMatch()
449 void PatternEmitter::emitAttributeMatch(DagNode tree, StringRef opName, in emitAttributeMatch()
523 void PatternEmitter::emitMatchLogic(DagNode tree, StringRef opName) { in emitMatchLogic()
595 void PatternEmitter::collectOps(DagNode tree, in collectOps()
613 DagNode sourceTree = pattern.getSourcePattern(); in emit()
736 DagNode resultTree = pattern.getResultPattern(i); in emitRewriteLogic()
755 DagNode resultTree = pattern.getResultPattern(i); in emitRewriteLogic()
781 std::string PatternEmitter::handleResultPattern(DagNode resultTree, in handleResultPattern()
811 StringRef PatternEmitter::handleReplaceWithValue(DagNode tree) { in handleReplaceWithValue()
826 std::string PatternEmitter::handleLocationDirective(DagNode tree) { in handleLocationDirective()
910 std::string PatternEmitter::handleReplaceWithNativeCodeCall(DagNode tree, in handleReplaceWithNativeCodeCall()
942 int PatternEmitter::getNodeValueCount(DagNode node) { in getNodeValueCount()
958 std::pair<bool, std::string> PatternEmitter::getLocation(DagNode tree) { in getLocation()
972 std::string PatternEmitter::handleOpCreation(DagNode tree, int resultIndex, in handleOpCreation()
1098 DagNode node, ChildNodeIndexNameMap &childNodeNames) { in createSeparateLocalVarsForOpArgs()
1155 DagNode node, const ChildNodeIndexNameMap &childNodeNames, int depth) { in supplyValuesForOpArgs()
1198 DagNode node, const ChildNodeIndexNameMap &childNodeNames, int depth) { in createAggregateLocalVarsForOpArgs()