Files
clang-p2996/mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp
Emilio Cota 3692fb6ba5 [mlir][math] add benefit arg to populate math approximations/expansions (#130782)
This is a follow-up to #127291, which added the benefit arg to lowerings
to intrinsics and libm.

In this change we add the benefit arg to the math approximation and
expansion lowerings, which allows users to establish a preferred order
among all three math lowerings, namely approximations, intrinsics and
libm.

Note that we're only updating the new API added in #126103. The legacy
one (`mlir::populateMathPolynomialApproximationPatterns`) is left
unmodified to encourage users to move out of it.
2025-03-11 23:24:45 +00:00

78 KiB