Lines Matching refs:getChild
687 FindDepVarsOf(N->getChild(i), DepMap); in FindDepVarsOf()
815 TreePatternNode *Child = P->getChild(i); in getPatternSize()
942 return N->getChild(OpNo); in getOperandNum()
1164 delete getChild(i); in ~TreePatternNode()
1242 getChild(0)->print(OS); in print()
1245 getChild(i)->print(OS); in print()
1292 if (!getChild(i)->isIsomorphicTo(N->getChild(i), DepVars)) in isIsomorphicTo()
1307 CChildren.push_back(getChild(i)->clone()); in clone()
1323 getChild(i)->RemoveAllTypes(); in RemoveAllTypes()
1334 TreePatternNode *Child = getChild(i); in SubstituteFormalArguments()
1350 getChild(i)->SubstituteFormalArguments(ArgMap); in SubstituteFormalArguments()
1370 TreePatternNode *Child = getChild(i); in InlinePatternFragments()
1404 ArgMap[Frag->getArgName(i)] = getChild(i)->InlinePatternFragments(TP); in InlinePatternFragments()
1545 unsigned IID = cast<IntInit>(getChild(0)->getLeafValue())->getValue(); in getIntrinsicInfo()
1611 if (getChild(i)->TreeHasProperty(Property, CGP)) in TreeHasProperty()
1706 TreePatternNode *SetVal = getChild(NC-1); in ApplyTypeConstraints()
1710 TreePatternNode *Child = getChild(i); in ApplyTypeConstraints()
1725 MadeChange = getChild(i)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1747 MadeChange |= getChild(0)->UpdateNodeType(0, MVT::iPTR, TP); in ApplyTypeConstraints()
1750 MadeChange |= getChild(i+1)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1753 assert(getChild(i+1)->getNumTypes() == 1 && "Unhandled case"); in ApplyTypeConstraints()
1754 MadeChange |= getChild(i+1)->UpdateNodeType(0, OpVT, TP); in ApplyTypeConstraints()
1772 MadeChange |= getChild(i)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1807 assert(getChild(0)->getNumTypes() == 1 && "FIXME: Unhandled"); in ApplyTypeConstraints()
1808 MadeChange |= UpdateNodeType(0, getChild(0)->getExtType(0), TP); in ApplyTypeConstraints()
1809 MadeChange |= getChild(0)->UpdateNodeType(0, getExtType(0), TP); in ApplyTypeConstraints()
1825 if (!isOperandClass(getChild(0), "RegisterClass")) { in ApplyTypeConstraints()
1831 TreePatternNode *SubIdxChild = getChild(I + 1); in ApplyTypeConstraints()
1857 TreePatternNode *Child = getChild(ChildNo++); in ApplyTypeConstraints()
1881 Child = getChild(ChildNo++); in ApplyTypeConstraints()
1904 MadeChange |= getChild(i)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1912 MadeChange |= getChild(i)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1926 bool MadeChange = getChild(0)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
1933 if (!hasTypeSet() || !getChild(0)->hasTypeSet()) { in ApplyTypeConstraints()
1934 bool MadeChange = UpdateNodeType(getChild(0)->getExtType(), TP); in ApplyTypeConstraints()
1935 MadeChange |= getChild(0)->UpdateNodeType(getExtType(), TP); in ApplyTypeConstraints()
1963 if (!getChild(i)->canPatternMatch(Reason, CDP)) in canPatternMatch()
1983 if (!OnlyOnRHSOfCommutative(getChild(getNumChildren()-1))) { in canPatternMatch()
1986 if (OnlyOnRHSOfCommutative(getChild(i))) { in canPatternMatch()
2037 ComputeNamedNodes(N->getChild(i)); in ComputeNamedNodes()
2224 N->getExtType(0) == N->getChild(0)->getExtType(0) && in SimplifyTree()
2226 N = N->getChild(0); in SimplifyTree()
2234 TreePatternNode *Child = N->getChild(i); in SimplifyTree()
2536 TreePatternNode *TPN = T->getChild(op); in ParseDefaultOperands()
2619 TreePatternNode *Dest = Pat->getChild(i); in FindPatternInputsAndOutputs()
2635 if (Pat->getChild(i)->getNumTypes() == 0) in FindPatternInputsAndOutputs()
2637 FindPatternInputsAndOutputs(I, Pat->getChild(i), InstInputs, InstResults, in FindPatternInputsAndOutputs()
2660 TreePatternNode *Dest = Pat->getChild(i); in FindPatternInputsAndOutputs()
2687 FindPatternInputsAndOutputs(I, Pat->getChild(NumDests), in FindPatternInputsAndOutputs()
2725 const TreePatternNode *N0 = N->getChild(0); in IsNodeBitcast()
2729 const TreePatternNode *N1 = N->getChild(1); in IsNodeBitcast()
2732 if (N1->getNumChildren() != 1 || !N1->getChild(0)->isLeaf()) in IsNodeBitcast()
2759 AnalyzeNode(N->getChild(i)); in AnalyzeNode()
2882 getInstructionsInTree(Tree->getChild(i), Instrs); in getInstructionsInTree()
3124 SrcPattern = Pattern->getChild(Pattern->getNumChildren()-1)->clone(); in ParseInstructions()
3160 FindNames(P->getChild(i), Names, PatternTop); in FindNames()
3367 if (ForceArbitraryInstResultType(N->getChild(i), TP)) in ForceArbitraryInstResultType()
3481 TreePatternNode *OpNode = DstPattern->getChild(ii); in ParsePatterns()
3617 if (N->getChild(0)->isLeaf() || N->getChild(0)->getOperator() != Operator) in GatherChildrenOfAssociativeOpcode()
3618 Children.push_back(N->getChild(0)); in GatherChildrenOfAssociativeOpcode()
3620 GatherChildrenOfAssociativeOpcode(N->getChild(0), Children); in GatherChildrenOfAssociativeOpcode()
3622 if (N->getChild(1)->isLeaf() || N->getChild(1)->getOperator() != Operator) in GatherChildrenOfAssociativeOpcode()
3623 Children.push_back(N->getChild(1)); in GatherChildrenOfAssociativeOpcode()
3625 GatherChildrenOfAssociativeOpcode(N->getChild(1), Children); in GatherChildrenOfAssociativeOpcode()
3700 GenerateVariantsOf(N->getChild(i), ChildVariants[i], CDP, DepVars); in GenerateVariantsOf()
3713 TreePatternNode *Child = N->getChild(i); in GenerateVariantsOf()