Lines Matching refs:Pattern
35 static void logImpossibleToMatch(const Pattern &pattern) { in logImpossibleToMatch()
85 llvm::SmallDenseMap<const Pattern *, PatternBenefit> benefits; in applyCostModel()
86 auto cmp = [&benefits](const Pattern *lhs, const Pattern *rhs) { in applyCostModel()
101 for (const Pattern *pat : list) in applyCostModel()
118 function_ref<void(const Pattern &)> walk) { in walkAllPatterns()
122 for (const Pattern &it : frozenPatternList.getMatchAnyOpNativePatterns()) in walkAllPatterns()
125 for (const Pattern &it : bytecode->getPatterns()) in walkAllPatterns()
132 function_ref<bool(const Pattern &)> canApply, in matchAndRewrite()
133 function_ref<void(const Pattern &)> onFailure, in matchAndRewrite()
134 function_ref<LogicalResult(const Pattern &)> onSuccess) { in matchAndRewrite()
157 const Pattern *bestPattern = nullptr; in matchAndRewrite()