Lines Matching refs:benefit
27 This is the expected benefit of applying a given pattern. This benefit is static
29 initialization time, e.g. allowing the benefit to be derived from domain
63 MyPattern(PatternBenefit benefit, MLIRContext *context)
64 : RewritePattern(MyOp::getOperationName(), benefit, context) {}
66 MyPattern(PatternBenefit benefit)
67 : RewritePattern(benefit, MatchAnyOpTypeTag()) {}
177 cost model. This cost model computes a final benefit for a given pattern, using
187 MyPattern(PatternBenefit benefit, MLIRContext *context)
188 : RewritePattern(MyOp::getOperationName(), benefit, context) {}
193 patterns.insert<MyPattern>(/*benefit=*/1, ctx);
246 greedily applies the patterns that locally have the most benefit. The benefit of
247 a pattern is decided solely by the benefit specified on the pattern, and the
249 the same local benefit). Patterns are iteratively applied to operations until a