[Mlir-commits] [mlir] [MLIR][Math] Add fine-grained populate-patterns functions for math function rewrites. (PR #126103)
Jakub Kuderski
llvmlistbot at llvm.org
Fri Feb 7 13:13:53 PST 2025
================
@@ -1667,28 +1667,158 @@ void mlir::populatePolynomialApproximateErfPattern(
patterns.add<ErfPolynomialApproximation>(patterns.getContext());
}
+void mlir::populateMathF32ExpansionPatterns(
+ RewritePatternSet &patterns,
+ const std::function<bool(StringRef)> &predicate) {
+ MLIRContext *context = patterns.getContext();
+ if (predicate("acos")) {
----------------
kuhar wrote:
Why do we prefer these names over `math::SomeOp::getName()`?
https://github.com/llvm/llvm-project/pull/126103
More information about the Mlir-commits
mailing list