This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fold transformational bessels when host runtime has bessels
ClosedPublic

Authored by jeanPerier on Apr 21 2022, 6:36 AM.

Details

Summary

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.

Diff Detail

Event Timeline

jeanPerier created this revision.Apr 21 2022, 6:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2022, 6:36 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
jeanPerier requested review of this revision.Apr 21 2022, 6:36 AM
This revision is now accepted and ready to land.Apr 21 2022, 7:00 AM
klausler accepted this revision.Apr 21 2022, 8:19 AM

@jeanPerier I think a buildbot is failing possibly due to this patch. Could you have a look?
https://lab.llvm.org/buildbot/#/builders/21/builds/39420/steps/5/logs/stdio

@jeanPerier I think a buildbot is failing possibly due to this patch. Could you have a look?
https://lab.llvm.org/buildbot/#/builders/21/builds/39420/steps/5/logs/stdio

@jeanPerier Do you have a fix for this issue yet? If we don't get a fix before the end of the day, I'll have to revert this patch.

@jeanPerier I think a buildbot is failing possibly due to this patch. Could you have a look?
https://lab.llvm.org/buildbot/#/builders/21/builds/39420/steps/5/logs/stdio

@jeanPerier Do you have a fix for this issue yet? If we don't get a fix before the end of the day, I'll have to revert this patch.

When is "the end of the day" for you? I might be able to patch this, given some time.

@jeanPerier I think a buildbot is failing possibly due to this patch. Could you have a look?
https://lab.llvm.org/buildbot/#/builders/21/builds/39420/steps/5/logs/stdio

@jeanPerier Do you have a fix for this issue yet? If we don't get a fix before the end of the day, I'll have to revert this patch.

When is "the end of the day" for you? I might be able to patch this, given some time.

I am in North America, EDT (UTC -4). But if you're working on a fix, I can certainly hold off on reverting this.

https://reviews.llvm.org/D124423 is out for review and I'll probably push it if/when it builds cleanly on x86 & arm; it can't break ppc any worse than it already is.