[Flang] Options to lower math intrinsics to relaxed, precise variants
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Mon, 28 Mar 2022 17:05:59 +0000 (17:05 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Mon, 28 Mar 2022 17:17:51 +0000 (17:17 +0000)
commitc49af35a3deac7a3e2b0e449bb39d5f7bbb555dc
treebdef2c6d7e421043d4fd4e18d9f6d44bce7efd65
parent17ea5bf1d54d13d6505b636e56ab151a45eab12d
[Flang] Options to lower math intrinsics to relaxed, precise variants

Enable lowering to the relaxed and precise variants in the pgmath
library.

This is part of the upstreaming effort from the fir-dev branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Peter Klausler <pklausler@nvidia.com>
Reviewed By: clementval

Differential Revision: https://reviews.llvm.org/D122484
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/math-runtime-options.f90 [new file with mode: 0644]