Lines Matching refs:TreePatternNodePtr
1695 for (const TreePatternNodePtr &C : Children) in hasProperTypeByHwMode()
1705 for (const TreePatternNodePtr &C : Children) in hasPossibleType()
1718 for (const TreePatternNodePtr &C : Children) in setDefaultMode()
1923 TreePatternNodePtr TreePatternNode::clone() const { in clone()
1924 TreePatternNodePtr New; in clone()
1928 std::vector<TreePatternNodePtr> CChildren; in clone()
1956 std::map<std::string, TreePatternNodePtr> &ArgMap) { in SubstituteFormalArguments()
1968 TreePatternNodePtr NewChild = ArgMap[Child->getName()]; in SubstituteFormalArguments()
1986 TreePatternNodePtr T, TreePattern &TP, in InlinePatternFragments()
1987 std::vector<TreePatternNodePtr> &OutAlternatives) { in InlinePatternFragments()
2006 std::vector<std::vector<TreePatternNodePtr> > ChildAlternatives; in InlinePatternFragments()
2009 TreePatternNodePtr Child = getChildShared(i); in InlinePatternFragments()
2028 std::vector<TreePatternNodePtr> NewChildren; in InlinePatternFragments()
2031 TreePatternNodePtr R = std::make_shared<TreePatternNode>( in InlinePatternFragments()
2080 std::map<std::string, TreePatternNodePtr> ArgMap; in InlinePatternFragments()
2082 TreePatternNodePtr Child = getChildShared(i); in InlinePatternFragments()
2092 TreePatternNodePtr FragTree = Alternative->clone(); in InlinePatternFragments()
2706 TreePattern::TreePattern(Record *TheRec, TreePatternNodePtr Pat, bool isInput, in TreePattern()
2722 for (TreePatternNodePtr &Tree : Trees) in ComputeNamedNodes()
2734 TreePatternNodePtr TreePattern::ParseTreePattern(Init *TheInit, in ParseTreePattern()
2749 TreePatternNodePtr Res = std::make_shared<TreePatternNode>(DI, 1); in ParseTreePattern()
2764 TreePatternNodePtr Res = std::make_shared<TreePatternNode>(TheInit, 1); in ParseTreePattern()
2801 TreePatternNodePtr New = in ParseTreePattern()
2851 std::vector<TreePatternNodePtr> Children; in ParseTreePattern()
2884 TreePatternNodePtr Child = Children[i]; in ParseTreePattern()
2903 TreePatternNodePtr Result = in ParseTreePattern()
2921 static bool SimplifyTree(TreePatternNodePtr &N) { in SimplifyTree()
2946 TreePatternNodePtr Child = N->getChildShared(i); in SimplifyTree()
2966 for (TreePatternNodePtr &Tree : Trees) { in InferAllTypes()
3025 for (const TreePatternNodePtr &Tree : Trees) in InferAllTypes()
3042 for (const TreePatternNodePtr &Tree : Trees) { in print()
3259 const TreePatternNodePtr &T = P.getTree(0); in ParseDefaultOperands()
3261 TreePatternNodePtr TPN = T->getChildShared(op); in ParseDefaultOperands()
3280 static bool HandleUse(TreePattern &I, TreePatternNodePtr Pat, in HandleUse()
3281 std::map<std::string, TreePatternNodePtr> &InstInputs) { in HandleUse()
3307 TreePatternNodePtr &Slot = InstInputs[Pat->getName()]; in HandleUse()
3335 TreePattern &I, TreePatternNodePtr Pat, in FindPatternInputsAndOutputs() argument
3336 std::map<std::string, TreePatternNodePtr> &InstInputs, in FindPatternInputsAndOutputs()
3337 MapVector<std::string, TreePatternNodePtr, std::map<std::string, unsigned>> in FindPatternInputsAndOutputs()
3401 TreePatternNodePtr Dest = Pat->getChildShared(i); in FindPatternInputsAndOutputs()
3657 std::map<std::string, TreePatternNodePtr> InstInputs; in parseInstructionPattern()
3661 MapVector<std::string, TreePatternNodePtr, std::map<std::string, unsigned>> in parseInstructionPattern()
3671 TreePatternNodePtr Pat = I.getTree(j); in parseInstructionPattern()
3700 SmallVector<TreePatternNodePtr, 2> ResNodes; in parseInstructionPattern()
3705 [](const std::pair<std::string, TreePatternNodePtr> &P) { in parseInstructionPattern()
3720 TreePatternNodePtr RNode = InstResultIter->second; in parseInstructionPattern()
3741 std::vector<TreePatternNodePtr> ResultNodeOperands; in parseInstructionPattern()
3761 TreePatternNodePtr InVal = InstInputs[OpName]; in parseInstructionPattern()
3773 TreePatternNodePtr OpNode = InVal->clone(); in parseInstructionPattern()
3781 std::vector<TreePatternNodePtr> Children; in parseInstructionPattern()
3794 TreePatternNodePtr ResultPattern = std::make_shared<TreePatternNode>( in parseInstructionPattern()
3806 TreePatternNodePtr Pattern = I.getTree(0); in parseInstructionPattern()
3807 TreePatternNodePtr SrcPattern; in parseInstructionPattern()
3874 TreePatternNodePtr SrcPattern = TheInst.getSrcPattern(); in ParseInstructions()
3875 TreePatternNodePtr ResultPattern = TheInst.getResultPattern(); in ParseInstructions()
4126 static TreePatternNodePtr PromoteXForms(TreePatternNodePtr N) { in PromoteXForms()
4129 std::vector<TreePatternNodePtr> Children; in PromoteXForms()
4137 TreePatternNodePtr Child = N->getChildShared(i); in PromoteXForms()
4209 TreePatternNodePtr DstShared = PromoteXForms(Result.getOnlyTree()); in ParseOnePattern()
4260 std::map<std::string, TreePatternNodePtr> InstInputs; in ParsePatterns()
4261 MapVector<std::string, TreePatternNodePtr, std::map<std::string, unsigned>> in ParsePatterns()
4288 TreePatternNodePtr NewSrc = P.SrcPattern->clone(); in ExpandHwModeBasedTypes()
4289 TreePatternNodePtr NewDst = P.DstPattern->clone(); in ExpandHwModeBasedTypes()
4304 TreePatternNodePtr SrcP = nullptr, DstP = nullptr; in ExpandHwModeBasedTypes()
4401 TreePatternNodePtr Orig, in CombineChildVariants()
4402 const std::vector<std::vector<TreePatternNodePtr>> &ChildVariants, in CombineChildVariants()
4403 std::vector<TreePatternNodePtr> &OutVariants, CodeGenDAGPatterns &CDP, in CombineChildVariants()
4425 std::vector<TreePatternNodePtr> NewChildren; in CombineChildVariants()
4428 TreePatternNodePtr R = std::make_shared<TreePatternNode>( in CombineChildVariants()
4446 none_of(OutVariants, [&](TreePatternNodePtr Variant) { in CombineChildVariants()
4467 static void CombineChildVariants(TreePatternNodePtr Orig, in CombineChildVariants()
4468 const std::vector<TreePatternNodePtr> &LHS, in CombineChildVariants()
4469 const std::vector<TreePatternNodePtr> &RHS, in CombineChildVariants()
4470 std::vector<TreePatternNodePtr> &OutVariants, in CombineChildVariants()
4473 std::vector<std::vector<TreePatternNodePtr>> ChildVariants; in CombineChildVariants()
4480 GatherChildrenOfAssociativeOpcode(TreePatternNodePtr N, in GatherChildrenOfAssociativeOpcode()
4481 std::vector<TreePatternNodePtr> &Children) { in GatherChildrenOfAssociativeOpcode()
4506 static void GenerateVariantsOf(TreePatternNodePtr N, in GenerateVariantsOf()
4507 std::vector<TreePatternNodePtr> &OutVariants, in GenerateVariantsOf()
4522 std::vector<TreePatternNodePtr> MaximalChildren; in GenerateVariantsOf()
4529 std::vector<TreePatternNodePtr> AVariants, BVariants, CVariants; in GenerateVariantsOf()
4539 std::vector<TreePatternNodePtr> ABVariants; in GenerateVariantsOf()
4540 std::vector<TreePatternNodePtr> BAVariants; in GenerateVariantsOf()
4541 std::vector<TreePatternNodePtr> ACVariants; in GenerateVariantsOf()
4542 std::vector<TreePatternNodePtr> CAVariants; in GenerateVariantsOf()
4543 std::vector<TreePatternNodePtr> BCVariants; in GenerateVariantsOf()
4544 std::vector<TreePatternNodePtr> CBVariants; in GenerateVariantsOf()
4572 std::vector<std::vector<TreePatternNodePtr>> ChildVariants; in GenerateVariantsOf()
4604 std::vector<std::vector<TreePatternNodePtr>> Variants; in GenerateVariantsOf()
4612 std::vector<std::vector<TreePatternNodePtr>> Variants; in GenerateVariantsOf()
4642 typedef std::pair<MultipleUseVarSet, std::vector<TreePatternNodePtr>> in GenerateVariants()
4649 std::vector<TreePatternNodePtr> Variants; in GenerateVariants()
4693 const std::vector<TreePatternNodePtr> &Variants = it.second.second; in GenerateVariants()
4696 TreePatternNodePtr Variant = Variants[v]; in GenerateVariants()