[OpenMP][AMDGCN] Initial math headers support
authorPushpinder Singh <Pushpinder.Singh@amd.com>
Fri, 30 Jul 2021 08:56:40 +0000 (08:56 +0000)
committerPushpinder Singh <Pushpinder.Singh@amd.com>
Fri, 30 Jul 2021 14:52:41 +0000 (14:52 +0000)
commit12da97ea10a941f0123340831300d09a2121e173
tree56e2840758e236fdc9e0499a163d03c24a629089
parent8d0f96f59b70fd8693de33e76e22ee3e86bdce44
[OpenMP][AMDGCN] Initial math headers support

With this patch, OpenMP on AMDGCN will use the math functions
provided by ROCm ocml library. Linking device code to the ocml will be
done in the next patch.

Reviewed By: JonChesterfield, jdoerfert, scchan

Differential Revision: https://reviews.llvm.org/D104904
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Headers/__clang_hip_cmath.h
clang/lib/Headers/__clang_hip_math.h
clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h
clang/lib/Headers/openmp_wrappers/cmath
clang/lib/Headers/openmp_wrappers/math.h
clang/test/Headers/Inputs/include/algorithm [new file with mode: 0644]
clang/test/Headers/Inputs/include/cstdlib
clang/test/Headers/Inputs/include/utility [new file with mode: 0644]
clang/test/Headers/amdgcn_openmp_device_math.c [new file with mode: 0644]
clang/test/Headers/openmp_device_math_isnan.cpp