Lines Matching refs:getChild
716 FindDepVarsOf(N->getChild(i), DepMap); in FindDepVarsOf()
843 TreePatternNode *Child = P->getChild(i); in getPatternSize()
981 return N->getChild(OpNo); in getOperandNum()
1210 delete getChild(i); in ~TreePatternNode()
1287 getChild(0)->print(OS); in print()
1290 getChild(i)->print(OS); in print()
1337 if (!getChild(i)->isIsomorphicTo(N->getChild(i), DepVars)) in isIsomorphicTo()
1352 CChildren.push_back(getChild(i)->clone()); in clone()
1368 getChild(i)->RemoveAllTypes(); in RemoveAllTypes()
1379 TreePatternNode *Child = getChild(i); in SubstituteFormalArguments()
1395 getChild(i)->SubstituteFormalArguments(ArgMap); in SubstituteFormalArguments()
1415 TreePatternNode *Child = getChild(i); in InlinePatternFragments()
1449 ArgMap[Frag->getArgName(i)] = getChild(i)->InlinePatternFragments(TP); in InlinePatternFragments()
1590 unsigned IID = cast<IntInit>(getChild(0)->getLeafValue())->getValue(); in getIntrinsicInfo()
1656 if (getChild(i)->TreeHasProperty(Property, CGP)) in TreeHasProperty()
1751 TreePatternNode *SetVal = getChild(NC-1); in ApplyTypeConstraints()
1755 TreePatternNode *Child = getChild(i); in ApplyTypeConstraints()
1770 MadeChange = getChild(i)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1792 MadeChange |= getChild(0)->UpdateNodeType(0, MVT::iPTR, TP); in ApplyTypeConstraints()
1795 MadeChange |= getChild(i+1)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1798 assert(getChild(i+1)->getNumTypes() == 1 && "Unhandled case"); in ApplyTypeConstraints()
1799 MadeChange |= getChild(i+1)->UpdateNodeType(0, OpVT, TP); in ApplyTypeConstraints()
1817 MadeChange |= getChild(i)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1852 assert(getChild(0)->getNumTypes() == 1 && "FIXME: Unhandled"); in ApplyTypeConstraints()
1853 MadeChange |= UpdateNodeType(0, getChild(0)->getExtType(0), TP); in ApplyTypeConstraints()
1854 MadeChange |= getChild(0)->UpdateNodeType(0, getExtType(0), TP); in ApplyTypeConstraints()
1870 if (!isOperandClass(getChild(0), "RegisterClass")) { in ApplyTypeConstraints()
1876 TreePatternNode *SubIdxChild = getChild(I + 1); in ApplyTypeConstraints()
1902 TreePatternNode *Child = getChild(ChildNo++); in ApplyTypeConstraints()
1926 Child = getChild(ChildNo++); in ApplyTypeConstraints()
1949 MadeChange |= getChild(i)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1957 MadeChange |= getChild(i)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1971 bool MadeChange = getChild(0)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1978 if (!hasTypeSet() || !getChild(0)->hasTypeSet()) { in ApplyTypeConstraints()
1979 bool MadeChange = UpdateNodeType(getChild(0)->getExtType(), TP); in ApplyTypeConstraints()
1980 MadeChange |= getChild(0)->UpdateNodeType(getExtType(), TP); in ApplyTypeConstraints()
2008 if (!getChild(i)->canPatternMatch(Reason, CDP)) in canPatternMatch()
2028 if (!OnlyOnRHSOfCommutative(getChild(getNumChildren()-1))) { in canPatternMatch()
2031 if (OnlyOnRHSOfCommutative(getChild(i))) { in canPatternMatch()
2082 ComputeNamedNodes(N->getChild(i)); in ComputeNamedNodes()
2270 N->getExtType(0) == N->getChild(0)->getExtType(0) && in SimplifyTree()
2272 N = N->getChild(0); in SimplifyTree()
2280 TreePatternNode *Child = N->getChild(i); in SimplifyTree()
2580 TreePatternNode *TPN = T->getChild(op); in ParseDefaultOperands()
2663 TreePatternNode *Dest = Pat->getChild(i); in FindPatternInputsAndOutputs()
2679 if (Pat->getChild(i)->getNumTypes() == 0) in FindPatternInputsAndOutputs()
2681 FindPatternInputsAndOutputs(I, Pat->getChild(i), InstInputs, InstResults, in FindPatternInputsAndOutputs()
2704 TreePatternNode *Dest = Pat->getChild(i); in FindPatternInputsAndOutputs()
2731 FindPatternInputsAndOutputs(I, Pat->getChild(NumDests), in FindPatternInputsAndOutputs()
2769 const TreePatternNode *N0 = N->getChild(0); in IsNodeBitcast()
2773 const TreePatternNode *N1 = N->getChild(1); in IsNodeBitcast()
2776 if (N1->getNumChildren() != 1 || !N1->getChild(0)->isLeaf()) in IsNodeBitcast()
2803 AnalyzeNode(N->getChild(i)); in AnalyzeNode()
2926 getInstructionsInTree(Tree->getChild(i), Instrs); in getInstructionsInTree()
3173 SrcPattern = Pattern->getChild(Pattern->getNumChildren()-1)->clone(); in ParseInstructions()
3209 FindNames(P->getChild(i), Names, PatternTop); in FindNames()
3413 if (ForceArbitraryInstResultType(N->getChild(i), TP)) in ForceArbitraryInstResultType()
3526 TreePatternNode *OpNode = DstPattern->getChild(ii); in ParsePatterns()
3652 if (N->getChild(0)->isLeaf() || N->getChild(0)->getOperator() != Operator) in GatherChildrenOfAssociativeOpcode()
3653 Children.push_back(N->getChild(0)); in GatherChildrenOfAssociativeOpcode()
3655 GatherChildrenOfAssociativeOpcode(N->getChild(0), Children); in GatherChildrenOfAssociativeOpcode()
3657 if (N->getChild(1)->isLeaf() || N->getChild(1)->getOperator() != Operator) in GatherChildrenOfAssociativeOpcode()
3658 Children.push_back(N->getChild(1)); in GatherChildrenOfAssociativeOpcode()
3660 GatherChildrenOfAssociativeOpcode(N->getChild(1), Children); in GatherChildrenOfAssociativeOpcode()
3735 GenerateVariantsOf(N->getChild(i), ChildVariants[i], CDP, DepVars); in GenerateVariantsOf()
3748 TreePatternNode *Child = N->getChild(i); in GenerateVariantsOf()