[all-commits] [llvm/llvm-project] be8bac: [flang] Replace more pgmath with libm.

Slava Zakharin via All-commits all-commits at lists.llvm.org
Mon Aug 8 10:55:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be8bacfd93ec6a51692aafb3478ce975fb9812d2
      https://github.com/llvm/llvm-project/commit/be8bacfd93ec6a51692aafb3478ce975fb9812d2
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

  Changed paths:
    M flang/lib/Lower/IntrinsicCall.cpp
    A flang/test/Lower/Intrinsics/acos.f90
    A flang/test/Lower/Intrinsics/acosh.f90
    A flang/test/Lower/Intrinsics/asin.f90
    A flang/test/Lower/Intrinsics/asinh.f90
    A flang/test/Lower/Intrinsics/atanh.f90
    A flang/test/Lower/Intrinsics/bessel_j0.f90
    A flang/test/Lower/Intrinsics/bessel_j1.f90
    A flang/test/Lower/Intrinsics/bessel_jn.f90
    A flang/test/Lower/Intrinsics/bessel_y0.f90
    A flang/test/Lower/Intrinsics/bessel_y1.f90
    A flang/test/Lower/Intrinsics/bessel_yn.f90
    A flang/test/Lower/Intrinsics/erfc.f90
    A flang/test/Lower/Intrinsics/gamma.f90
    A flang/test/Lower/Intrinsics/log_gamma.f90
    M flang/test/Lower/dummy-procedure.f90

  Log Message:
  -----------
  [flang] Replace more pgmath with libm.

With this change all supported pgmath functions for non-complex
data types are replaced with either libm calls or MLIR operations,
except for MOD and some flavors of POW, which are going to be addressed
by other commits.

At the current stage a few math intrinsics are lowered into libm calls
always. When appropriate MLIR operation are available, the table can be
updated to generate them.




More information about the All-commits mailing list