• Home
  • Raw
  • Download

Lines Matching refs:Matcher

25 static void ContractNodes(std::unique_ptr<Matcher> &MatcherPtr,  in ContractNodes()
28 Matcher *N = MatcherPtr.get(); in ContractNodes()
34 std::unique_ptr<Matcher> Child(Scope->takeChild(i)); in ContractNodes()
44 Matcher *New = nullptr; in ContractNodes()
149 Matcher *CheckType = MatcherPtr.release(); in ContractNodes()
150 Matcher *CheckOpcode = CheckType->takeNext(); in ContractNodes()
151 Matcher *Tail = CheckOpcode->takeNext(); in ContractNodes()
164 static Matcher *FindNodeWithKind(Matcher *M, Matcher::KindTy Kind) { in FindNodeWithKind()
184 static void FactorNodes(std::unique_ptr<Matcher> &MatcherPtr) { in FactorNodes()
186 Matcher *N = MatcherPtr.get(); in FactorNodes()
196 SmallVector<Matcher*, 32> OptionsToMatch; in FactorNodes()
200 std::unique_ptr<Matcher> Child(Scope->takeChild(i)); in FactorNodes()
203 if (Matcher *N = Child.release()) in FactorNodes()
207 SmallVector<Matcher*, 32> NewOptionsToMatch; in FactorNodes()
213 Matcher *Optn = OptionsToMatch[OptionIdx++]; in FactorNodes()
224 SmallVector<Matcher*, 8> EqualMatchers; in FactorNodes()
241 Matcher *ScanMatcher = OptionsToMatch[Scan]; in FactorNodes()
265 Matcher *M2 = FindNodeWithKind(ScanMatcher, Optn->getKind()); in FactorNodes()
269 Matcher *MatcherWithoutM2 = ScanMatcher->unlinkNode(M2); in FactorNodes()
303 Matcher *Shared = Optn; in FactorNodes()
309 Matcher *Tmp = EqualMatchers[i]->takeNext(); in FactorNodes()
357 Matcher::CheckType)); in FactorNodes()
381 SmallVector<std::pair<const SDNodeInfo*, Matcher*>, 8> Cases; in FactorNodes()
397 SmallVector<std::pair<MVT::SimpleValueType, Matcher*>, 8> Cases; in FactorNodes()
401 Matcher::CheckType)); in FactorNodes()
402 Matcher *MatcherWithoutCTM = NewOptionsToMatch[i]->unlinkNode(CTM); in FactorNodes()
409 Matcher *PrevMatcher = Cases[Entry-1].second; in FactorNodes()
416 Matcher *Entries[2] = { PrevMatcher, MatcherWithoutCTM }; in FactorNodes()
417 std::unique_ptr<Matcher> Case(new ScopeMatcher(Entries)); in FactorNodes()
445 llvm::OptimizeMatcher(std::unique_ptr<Matcher> &MatcherPtr, in OptimizeMatcher()