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()) {}
257 cost model. This cost model computes a final benefit for a given pattern, using
267 MyPattern(PatternBenefit benefit, MLIRContext *context)
268 : RewritePattern(MyOp::getOperationName(), benefit, context) {}
273 patterns.add<MyPattern>(/*benefit=*/1, ctx);
326 locally have the most benefit. The benefit of
327 a pattern is decided solely by the benefit specified on the pattern, and the
329 the same local benefit). Patterns are iteratively applied to operations until a