Lines Matching defs:patterns
40 /// rewrite patterns on it.
42 const FrozenRewritePatternSet &patterns,
68 (void)applyOpPatternsGreedily(op, patterns, config);
78 /// We will apply the reducer patterns to the operations in the ranges specified
87 const FrozenRewritePatternSet &patterns,
115 applyPatterns(curRegion, patterns, currentNode.getRanges(),
139 applyPatterns(region, patterns, top->getStartRanges(), eraseOpNotInRange);
152 const FrozenRewritePatternSet &patterns,
155 // redundant operations and the second one is to apply the reducer patterns.
157 // In the first phase, we don't apply any patterns so that we only select the
159 if (failed(findOptimal<IteratorType>(module, region, /*patterns=*/{}, test,
164 return findOptimal<IteratorType>(module, region, patterns, test,
179 // Collect the reduce patterns defined by each dialect.
212 RewritePatternSet patterns(context);
214 reducePatternCollection.populateReductionPatterns(patterns);
215 reducerPatterns = std::move(patterns);