[flang] Replace more pgmath with libm.
authorSlava Zakharin <szakharin@nvidia.com>
Thu, 4 Aug 2022 16:24:33 +0000 (09:24 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Mon, 8 Aug 2022 17:53:08 +0000 (10:53 -0700)
commitbe8bacfd93ec6a51692aafb3478ce975fb9812d2
treea8e2da4c7f7a4dde31731296114e151685f5cadc
parent1b349bdaaa540e97d90318c3706527f6ca084987
[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.
16 files changed:
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/acos.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/acosh.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/asin.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/asinh.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/atanh.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/bessel_j0.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/bessel_j1.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/bessel_jn.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/bessel_y0.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/bessel_y1.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/bessel_yn.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/erfc.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/gamma.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/log_gamma.f90 [new file with mode: 0644]
flang/test/Lower/dummy-procedure.f90