[flang-commits] [PATCH] D124167: [flang] Fold transformational bessels when host runtime has bessels
Jean Perier via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Apr 21 06:36:24 PDT 2022
jeanPerier created this revision.
jeanPerier added reviewers: klausler, sscalpone, clementval.
jeanPerier added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
jeanPerier requested review of this revision.
Transformational bessel intrinsic functions require the same math runtime
as elemental bessel intrinsics.
Currently elemental bessels could be folded if f18 was linked with pgmath
(cmake -DLIBPGMATH_DIR option). `j0`, `y0`, ... C libm functions were not
used because they are not standard C functions: they are Posix
extensions.
This patch enable:
- Using the Posix bessel host runtime functions when available.
- folding the transformational bessel using the elemental version.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124167
Files:
flang/lib/Evaluate/fold-real.cpp
flang/lib/Evaluate/intrinsics-library.cpp
flang/test/Evaluate/folding02.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124167.424180.patch
Type: text/x-patch
Size: 8315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220421/6e5c6ab5/attachment.bin>
More information about the flang-commits
mailing list