Lines Matching refs:Pattern
35 static void logImpossibleToMatch(const Pattern &pattern) { in logImpossibleToMatch()
81 llvm::SmallDenseMap<const Pattern *, PatternBenefit> benefits; in applyCostModel()
82 auto cmp = [&benefits](const Pattern *lhs, const Pattern *rhs) { in applyCostModel()
97 for (const Pattern *pat : list) in applyCostModel()
114 function_ref<void(const Pattern &)> walk) { in walkAllPatterns()
118 for (const Pattern &it : frozenPatternList.getMatchAnyOpNativePatterns()) in walkAllPatterns()
121 for (const Pattern &it : bytecode->getPatterns()) in walkAllPatterns()
128 function_ref<bool(const Pattern &)> canApply, in matchAndRewrite()
129 function_ref<void(const Pattern &)> onFailure, in matchAndRewrite()
130 function_ref<LogicalResult(const Pattern &)> onSuccess) { in matchAndRewrite()
153 const Pattern *bestPattern = nullptr; in matchAndRewrite()