llvm-project/clang/test/Headers
Gheorghe-Teodor Bercea 1e28a668bc [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: mgorny, guansong, cfe-commits, jdoerfert

Tags: #clang

Differential Revision: https://reviews.llvm.org/D61399

llvm-svn: 360063
2019-05-06 18:19:15 +00:00
..
Inputs [OpenMP][Clang] Support for target math functions 2019-05-06 18:19:15 +00:00
altivec-header.c
altivec-intrin.c
arm-acle-header.c
arm-fp16-header.c Fix march triple used test from rL341475 2018-09-06 14:13:10 +00:00
arm-neon-header.c Fix march triple used test from rL341475 2018-09-06 14:13:10 +00:00
arm64-apple-ios-types.cpp
c11.c
c89.c
cpuid.c
cxx11.cpp
float-darwin.c
float.c [clang] Only provide C11 features in <float.h> starting with C++17 2019-02-22 20:48:54 +00:00
float16.c Make predefined FLT16 macros conditional on support for the type 2019-02-20 20:27:33 +00:00
htm-header.c
int64-type.c
limits.cpp
max_align.c Reland part of "Add AIX Target Info" 2019-03-14 20:27:39 +00:00
mm3dnow.c [X86] Add 3dnow and 3dnowa to the list of valid target features 2017-11-06 20:33:13 +00:00
ms-arm64-intrin.cpp [COFF, ARM64] Remove definitions for _byteswap library functions 2019-02-11 20:04:02 +00:00
ms-cppoperkey.cpp
ms-cppoperkey1.cpp
ms-cppoperkey2.cpp
ms-intrin.cpp Recommit r351160 "[X86] Make _xgetbv/_xsetbv on non-windows platforms" 2019-01-16 22:56:25 +00:00
ms-null-ms-header-vs-stddef.cpp Fix typos in clang 2018-04-06 15:14:32 +00:00
ms-wchar.c
nvptx_device_cmath_functions.c [OpenMP][Clang] Support for target math functions 2019-05-06 18:19:15 +00:00
nvptx_device_cmath_functions.cpp [OpenMP][Clang] Support for target math functions 2019-05-06 18:19:15 +00:00
nvptx_device_math_functions.c [OpenMP][Clang] Support for target math functions 2019-05-06 18:19:15 +00:00
nvptx_device_math_functions.cpp [OpenMP][Clang] Support for target math functions 2019-05-06 18:19:15 +00:00
opencl-c-header.cl [OpenCL] Minor improvements in default header testing 2019-03-19 17:09:06 +00:00
pconfigintin.c [X86] NFC Include immintrin.h in CodeGen tests 2018-05-24 07:09:08 +00:00
pmmintrin.c
ppc-intrinsics.c [PowerPC] [Clang] Port MMX intrinsics and basic test cases to Power 2019-04-23 05:50:24 +00:00
sgxintrin.c [X86] NFC Include immintrin.h in CodeGen tests 2018-05-24 07:09:08 +00:00
stdarg-gnuc_va_list.c
stdarg.cpp Add test that we get the correct calling convention and mangling for va_list. 2017-08-16 01:46:46 +00:00
stdatomic.c
stdbool.cpp In stdbool.h, define bool, false, true only in gnu++98 2017-12-08 08:28:08 +00:00
stddefneeds.cpp
stdint-typeof-MINMAX.cpp
tgmath-darwin.c
tgmath.c
thumbv7-apple-ios-types.cpp PR26547: alignof should return ABI alignment, not preferred alignment 2018-10-26 19:26:45 +00:00
typedef_guards.c
unwind.c
wchar_limits.cpp Driver: hoist the `wchar_t` handling to the driver 2017-10-06 23:09:55 +00:00
wmmintrin.c
x86-intrinsics-headers-clean.cpp [X86] Make x86-intrinsics-headers-clean.cpp stricter. 2019-03-08 01:15:18 +00:00
x86-intrinsics-headers.c
x86_64-apple-macosx-types.cpp
x86intrin-2.c [X86] Reduce the number of setzero intrinsics to just the set defined by the Intel Intrinsics Guide. 2018-05-30 18:02:11 +00:00
x86intrin.c
x86intrin.cpp
xmmintrin.c