Lines Matching refs:depth

86   void emitMatch(DagNode tree, StringRef name, int depth);
96 void emitNativeCodeMatch(DagNode tree, StringRef name, int depth);
100 void emitOpMatch(DagNode tree, StringRef opName, int depth);
113 int depth);
118 int depth);
145 int depth);
149 std::string handleReplaceWithNativeCodeCall(DagNode resultTree, int depth);
177 std::string handleReturnTypeArg(DagNode returnType, int i, int depth);
184 std::string handleOpCreation(DagNode tree, int resultIndex, int depth);
196 int depth);
201 DagNode node, const ChildNodeIndexNameMap &childNodeNames, int depth);
378 void PatternEmitter::emitMatch(DagNode tree, StringRef name, int depth) { in emitMatch() argument
380 emitNativeCodeMatch(tree, name, depth); in emitMatch()
385 emitOpMatch(tree, name, depth); in emitMatch()
434 int depth) { in emitNativeCodeMatch() argument
461 std::string argName = formatv("arg{0}_{1}", depth, i); in emitNativeCodeMatch()
542 void PatternEmitter::emitOpMatch(DagNode tree, StringRef opName, int depth) { in emitOpMatch() argument
545 << op.getOperationName() << "' at depth " << depth in emitOpMatch()
548 auto getCastedName = [depth]() -> std::string { in emitOpMatch()
549 return formatv("castedOp{0}", depth); in emitOpMatch()
562 if (depth == 0) in emitOpMatch()
575 if (depth != 0) in emitOpMatch()
587 std::string argName = formatv("op{0}", depth + 1); in emitOpMatch()
593 depth); in emitOpMatch()
618 emitMatch(argTree, argName, depth + 1); in emitOpMatch()
634 emitAttributeMatch(tree, opName, i, depth); in emitOpMatch()
640 << op.getOperationName() << "' at depth " << depth in emitOpMatch()
691 int &operandIndex, int depth) { in emitEitherOperandMatch() argument
701 std::string lambda = formatv("eitherLambda{0}", depth); in emitEitherOperandMatch()
721 emitMatch(argTree, argName, depth + 1); in emitEitherOperandMatch()
758 int argIndex, int depth) { in emitAttributeMatch() argument
846 int depth = 0; in emitMatchLogic() local
847 emitMatch(tree, opName, depth); in emitMatchLogic()
1106 int resultIndex, int depth) { in handleResultPattern() argument
1117 return handleReplaceWithNativeCodeCall(resultTree, depth); in handleResultPattern()
1123 auto symbol = handleOpCreation(resultTree, resultIndex, depth); in handleResultPattern()
1196 int depth) { in handleReturnTypeArg() argument
1202 return handleReplaceWithNativeCodeCall(dagNode, depth); in handleReturnTypeArg()
1247 int depth) { in handleReplaceWithNativeCodeCall() argument
1264 handleResultPattern(tree.getArgAsNestedDag(i), i, depth + 1)); in handleReplaceWithNativeCodeCall()
1377 int depth) { in handleOpCreation() argument
1406 childNodeNames[i] = handleResultPattern(child, i, depth + 1); in handleOpCreation()
1445 createAggregateLocalVarsForOpArgs(tree, childNodeNames, depth); in handleOpCreation()
1456 if (!tail.returnType && (usePartialResults || depth > 0 || resultIndex < 0)) { in handleOpCreation()
1469 supplyValuesForOpArgs(tree, childNodeNames, depth); in handleOpCreation()
1479 if (depth == 0 && resultIndex >= 0 && tail.returnType) in handleOpCreation()
1484 createAggregateLocalVarsForOpArgs(tree, childNodeNames, depth); in handleOpCreation()
1494 auto varName = handleReturnTypeArg(tail.returnType, i, depth + 1); in handleOpCreation()
1571 DagNode node, const ChildNodeIndexNameMap &childNodeNames, int depth) { in supplyValuesForOpArgs() argument
1613 DagNode node, const ChildNodeIndexNameMap &childNodeNames, int depth) { in createAggregateLocalVarsForOpArgs() argument