llvm-project/clang/test/Headers
Michael Spencer 16af23fae8 [clang][Headers] Use __has_builtin instead of _MSC_VER.
arm_acle.h relied on `_MSC_VER` to determine if a given function was
already defined as a builtin. This was incorrect because
`-fms-extensions` enables these builtins, but is not responsible for
defining `_MSC_VER` on any target. The next closest thing is
`_MSC_EXTENSIONS`, which is only defined on Windows targets, but even
this is suboptimal. What this conditional is actually trying to
determine is if the given functions are defined as builtins, so just
check that directly.

I also attempted to do this for `__nop`, but in that case intrin.h,
which is only includable if `_MSC_VER` is defined, has its own
definition. So in that case `_MSC_VER` is correct.

Differential Revision: https://reviews.llvm.org/D75719
rdar://60102353
2020-03-06 13:48:09 -08:00
..
Inputs [OpenMP][Bugfix] Move double and float versions of abs under c++ macro 2019-05-15 20:28:23 +00:00
altivec-header.c Revert "PR17164: Change clang's default behavior from -flax-vector-conversions=all to -flax-vector-conversions=integer." 2020-01-20 16:34:09 -08:00
altivec-intrin.c
arm-acle-header.c [clang][Headers] Use __has_builtin instead of _MSC_VER. 2020-03-06 13:48:09 -08:00
arm-cmse-header-ns.c [ARM][CMSE] Add CMSE header and builtins 2019-12-12 15:01:14 +00:00
arm-cmse-header.c [ARM][CMSE] Add CMSE header and builtins 2019-12-12 15:01:14 +00:00
arm-fp16-header.c [Testing] Workaround libcxx bug when OS is "none" 2019-09-26 08:19:44 +00:00
arm-neon-header.c Revert "PR17164: Change clang's default behavior from -flax-vector-conversions=all to -flax-vector-conversions=integer." 2020-01-20 16:34:09 -08:00
arm64-apple-ios-types.cpp
c11.c Revert Include corecrt.h in stddef.h and vcruntime.h in stdarg.h to improve MS compatibility. 2019-05-08 22:01:20 +00:00
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 Fix the predefined exponent limit macros for the 16-bit IEEE format. 2019-05-31 01:21:36 +00:00
htm-header.c
int64-type.c
limits.cpp
max_align.c XFAIL clang/test/Headers/max_align.c on i686 2019-07-09 21:06:34 +00:00
mm3dnow.c
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 [X86] Fix the implementation of __readcr3/__writecr3 to work in 64-bit mode 2019-11-14 13:21:36 -08:00
ms-null-ms-header-vs-stddef.cpp Revert Include corecrt.h in stddef.h and vcruntime.h in stdarg.h to improve MS compatibility. 2019-05-08 22:01:20 +00:00
ms-wchar.c
nvptx_device_cmath_functions.c [OpenMP][Bugfix] Move double and float versions of abs under c++ macro 2019-05-15 20:28:23 +00:00
nvptx_device_cmath_functions.cpp [OpenMP][Bugfix] Move double and float versions of abs under c++ macro 2019-05-15 20:28:23 +00:00
nvptx_device_cmath_functions_cxx17.cpp [OpenMP][Bugfix] Move double and float versions of abs under c++ macro 2019-05-15 20:28:23 +00:00
nvptx_device_math_functions.c [OpenMP][Bugfix] Move double and float versions of abs under c++ macro 2019-05-15 20:28:23 +00:00
nvptx_device_math_functions.cpp [OpenMP][Bugfix] Move double and float versions of abs under c++ macro 2019-05-15 20:28:23 +00:00
nvptx_device_math_functions_cxx17.cpp [OpenMP][Bugfix] Move double and float versions of abs under c++ macro 2019-05-15 20:28:23 +00:00
opencl-c-header.cl [OpenCL] Rename lang mode flag for C++ mode 2019-07-25 11:04:29 +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 SSE3, SSSE3 and SSE4 intrinsics to PowerPC 2019-08-09 03:39:55 +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
stdatomic.c
stdbool.cpp Add -fgnuc-version= to control __GNUC__ and other GCC macros 2019-10-10 21:04:25 +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
wmmintrin.c
x86-intrinsics-headers-clean.cpp [X86] Mark various pointer arguments in builtins as const 2019-12-19 11:42:11 -08:00
x86-intrinsics-headers.c Revert "PR17164: Change clang's default behavior from -flax-vector-conversions=all to -flax-vector-conversions=integer." 2020-01-20 16:34:09 -08:00
x86_64-apple-macosx-types.cpp
x86intrin-2.c Revert "PR17164: Change clang's default behavior from -flax-vector-conversions=all to -flax-vector-conversions=integer." 2020-01-20 16:34:09 -08:00
x86intrin.c Revert "PR17164: Change clang's default behavior from -flax-vector-conversions=all to -flax-vector-conversions=integer." 2020-01-20 16:34:09 -08:00
x86intrin.cpp
xmmintrin.c Revert "[Driver] Default to -fno-common for all targets" 2020-03-03 10:00:36 +00:00