[PATCH] D61399: [OpenMP][Clang] Support for target math functions

Johannes Doerfert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 1 14:20:11 PDT 2019


jdoerfert added a comment.

For the record, this is an implementation of the scheme proposed in https://reviews.llvm.org/D60907#1484756.
There are drawbacks, see the TODO, but it will give most people a short term solution until we get OpenMP 5.0 variants.

Finally, there is a remote chance this will cause trouble to people that use math.h/cmath functions, e.g. with the old SSE hack, which are not available anymore.
I don't suspect that to happen but if it does we can, again as a short term solution, selectively extract declarations from the host cmath into the device cmath.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61399/new/

https://reviews.llvm.org/D61399





More information about the cfe-commits mailing list