[all-commits] [llvm/llvm-project] 3692fb: [mlir][math] add benefit arg to populate math appr...

Emilio Cota via All-commits all-commits at lists.llvm.org
Tue Mar 11 16:25:07 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3692fb6ba58ab2f6836df1cf1f28ecd20450a7f3
      https://github.com/llvm/llvm-project/commit/3692fb6ba58ab2f6836df1cf1f28ecd20450a7f3
  Author: Emilio Cota <ecg at google.com>
  Date:   2025-03-11 (Tue, 11 Mar 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 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.



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