diff options
author | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2019-05-08 15:52:33 +0000 |
---|---|---|
committer | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2019-05-08 15:52:33 +0000 |
commit | e62c693c8e71626d9dbf919280fd314cfac7f175 (patch) | |
tree | 96e3be734529fe9f57b1adc60745e711ddf781aa /llvm/lib | |
parent | a3ff5727b78f1beeeee7484174ef86e48d35bd5c (diff) | |
download | bcm5719-llvm-e62c693c8e71626d9dbf919280fd314cfac7f175.tar.gz bcm5719-llvm-e62c693c8e71626d9dbf919280fd314cfac7f175.zip |
[OpenMP][Clang] Support for target math functions
Summary:
In this patch we propose a temporary solution to resolving math functions for the NVPTX toolchain, temporary until OpenMP variant is supported by Clang.
We intercept the inclusion of math.h and cmath headers and if we are in the OpenMP-NVPTX case, we re-use CUDA's math function resolution mechanism.
Authors:
@gtbercea
@jdoerfert
Reviewers: hfinkel, caomhin, ABataev, tra
Reviewed By: hfinkel, ABataev, tra
Subscribers: JDevlieghere, mgorny, guansong, cfe-commits, jdoerfert
Tags: #clang
Differential Revision: https://reviews.llvm.org/D61399
llvm-svn: 360265
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions