Lines Matching refs:MatcherPtr
25 static void ContractNodes(std::unique_ptr<Matcher> &MatcherPtr, in ContractNodes() argument
28 Matcher *N = MatcherPtr.get(); in ContractNodes()
70 New->setNext(MatcherPtr.release()); in ContractNodes()
71 MatcherPtr.reset(New); in ContractNodes()
74 return ContractNodes(MatcherPtr, CGP); in ContractNodes()
81 MatcherPtr.reset(MP->takeNext()); in ContractNodes()
82 return ContractNodes(MatcherPtr, CGP); in ContractNodes()
127 MatcherPtr.reset(new MorphNodeToMatcher( in ContractNodes()
148 Matcher *CheckType = MatcherPtr.release(); in ContractNodes()
153 MatcherPtr.reset(CheckOpcode); in ContractNodes()
156 return ContractNodes(MatcherPtr, CGP); in ContractNodes()
165 MatcherPtr.reset(MS); in ContractNodes()
166 return ContractNodes(MatcherPtr, CGP); in ContractNodes()
176 MatcherPtr.reset(MS); in ContractNodes()
177 return ContractNodes(MatcherPtr, CGP); in ContractNodes()
221 std::unique_ptr<Matcher> &MatcherPtr = *RebindableMatcherPtr; in FactorNodes() local
369 MatcherPtr.reset(OptionsToMatch[0]); in FactorNodes()
374 MatcherPtr.reset(); in FactorNodes()
432 MatcherPtr.reset(new SwitchOpcodeMatcher(std::move(Cases))); in FactorNodes()
479 MatcherPtr.reset(new SwitchTypeMatcher(std::move(Cases))); in FactorNodes()
482 MatcherPtr.reset(new CheckTypeMatcher(Cases[0].first, 0)); in FactorNodes()
483 MatcherPtr->setNext(Cases[0].second); in FactorNodes()
494 void llvm::OptimizeMatcher(std::unique_ptr<Matcher> &MatcherPtr, in OptimizeMatcher() argument
496 ContractNodes(MatcherPtr, CGP); in OptimizeMatcher()
497 FactorNodes(MatcherPtr); in OptimizeMatcher()