[all-commits] [llvm/llvm-project] ced23a: [MLIR][Math] Add fine-grained populate-patterns fu...
Benoit Jacob via All-commits
all-commits at lists.llvm.org
Mon Feb 10 09:52:45 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ced23aa5403240f26cba4d99b59bf5d31d6035ac
https://github.com/llvm/llvm-project/commit/ced23aa5403240f26cba4d99b59bf5d31d6035ac
Author: Benoit Jacob <jacob.benoit.1 at gmail.com>
Date: 2025-02-10 (Mon, 10 Feb 2025)
Changed paths:
M mlir/include/mlir/Dialect/Math/Transforms/Passes.h
M mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp
Log Message:
-----------
[MLIR][Math] Add fine-grained populate-patterns functions for math function rewrites. (#126103)
The existing `mlir::populateMathPolynomialApproximationPatterns` is
coarse-grained and inflexible:
- It populates 2 distinct classes of patterns: (1) polynomial
approximations, (2) expansions of operands to f32.
- It does not offer knobs to select which math functions to apply the
rewrites to.
This PR adds finer-grained populate-patterns functions, which take a
predicate lambda allowing the caller to control which math functions to
apply rewrites to.
Signed-off-by: Benoit Jacob <jacob.benoit.1 at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list