diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2025-02-10 12:52:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-10 09:52:24 -0800 |
commit | ced23aa5403240f26cba4d99b59bf5d31d6035ac (patch) | |
tree | 7936da5f942426d059821e73302396094148d304 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | ad61e533338771e7aab22e023f656098e61a76f0 (diff) | |
download | llvm-ced23aa5403240f26cba4d99b59bf5d31d6035ac.zip llvm-ced23aa5403240f26cba4d99b59bf5d31d6035ac.tar.gz llvm-ced23aa5403240f26cba4d99b59bf5d31d6035ac.tar.bz2 |
[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@gmail.com>
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions