[PATCH] D61399: [OpenMP][Clang] Support for target math functions
Gheorghe-Teodor Bercea via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 1 14:01:59 PDT 2019
gtbercea created this revision.
gtbercea added reviewers: hfinkel, caomhin, ABataev, tra.
Herald added subscribers: cfe-commits, guansong, mgorny.
Herald added a project: clang.
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:
gbercea
@jdoerfert
Repository:
rC Clang
https://reviews.llvm.org/D61399
Files:
lib/Driver/ToolChains/Clang.cpp
lib/Headers/CMakeLists.txt
lib/Headers/__clang_cuda_cmath.h
lib/Headers/__clang_cuda_device_functions.h
lib/Headers/__clang_cuda_libdevice_declares.h
lib/Headers/__clang_cuda_math_forward_declares.h
lib/Headers/openmp_wrappers/__clang_openmp_math.h
lib/Headers/openmp_wrappers/cmath
lib/Headers/openmp_wrappers/math.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61399.197632.patch
Type: text/x-patch
Size: 53113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190501/2c00a0a8/attachment-0001.bin>
More information about the cfe-commits
mailing list