mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 14:20:17 +00:00
Add header guards for header files that should not be included on the PS4 platform.
Reviewers: craig.topper Reviewed By: craig.topper Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79194
This commit is contained in:
parent
cc259638cb
commit
046130490f
@ -111,7 +111,8 @@ _mm_tzcnt_64(unsigned long long __X)
|
|||||||
|
|
||||||
#undef __RELAXED_FN_ATTRS
|
#undef __RELAXED_FN_ATTRS
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__BMI__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__BMI__)
|
||||||
|
|
||||||
/* Define the default attributes for the functions in this file. */
|
/* Define the default attributes for the functions in this file. */
|
||||||
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("bmi")))
|
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("bmi")))
|
||||||
@ -420,6 +421,7 @@ __blsr_u64(unsigned long long __X)
|
|||||||
|
|
||||||
#undef __DEFAULT_FN_ATTRS
|
#undef __DEFAULT_FN_ATTRS
|
||||||
|
|
||||||
#endif /* !defined(_MSC_VER) || __has_feature(modules) || defined(__BMI__) */
|
#endif /* !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) \
|
||||||
|
|| defined(__BMI__) */
|
||||||
|
|
||||||
#endif /* __BMIINTRIN_H */
|
#endif /* __BMIINTRIN_H */
|
||||||
|
@ -10,198 +10,231 @@
|
|||||||
#ifndef __IMMINTRIN_H
|
#ifndef __IMMINTRIN_H
|
||||||
#define __IMMINTRIN_H
|
#define __IMMINTRIN_H
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__MMX__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__MMX__)
|
||||||
#include <mmintrin.h>
|
#include <mmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__SSE__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__SSE__)
|
||||||
#include <xmmintrin.h>
|
#include <xmmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__SSE2__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__SSE2__)
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__SSE3__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__SSE3__)
|
||||||
#include <pmmintrin.h>
|
#include <pmmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__SSSE3__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__SSSE3__)
|
||||||
#include <tmmintrin.h>
|
#include <tmmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__SSE4_2__) || defined(__SSE4_1__))
|
(defined(__SSE4_2__) || defined(__SSE4_1__))
|
||||||
#include <smmintrin.h>
|
#include <smmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AES__) || defined(__PCLMUL__))
|
(defined(__AES__) || defined(__PCLMUL__))
|
||||||
#include <wmmintrin.h>
|
#include <wmmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__CLFLUSHOPT__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__CLFLUSHOPT__)
|
||||||
#include <clflushoptintrin.h>
|
#include <clflushoptintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__CLWB__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__CLWB__)
|
||||||
#include <clwbintrin.h>
|
#include <clwbintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX__)
|
||||||
#include <avxintrin.h>
|
#include <avxintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX2__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX2__)
|
||||||
#include <avx2intrin.h>
|
#include <avx2intrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__F16C__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__F16C__)
|
||||||
#include <f16cintrin.h>
|
#include <f16cintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__VPCLMULQDQ__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__VPCLMULQDQ__)
|
||||||
#include <vpclmulqdqintrin.h>
|
#include <vpclmulqdqintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* No feature check desired due to internal checks */
|
/* No feature check desired due to internal checks */
|
||||||
#include <bmiintrin.h>
|
#include <bmiintrin.h>
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__BMI2__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__BMI2__)
|
||||||
#include <bmi2intrin.h>
|
#include <bmi2intrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__LZCNT__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__LZCNT__)
|
||||||
#include <lzcntintrin.h>
|
#include <lzcntintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__POPCNT__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__POPCNT__)
|
||||||
#include <popcntintrin.h>
|
#include <popcntintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__FMA__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__FMA__)
|
||||||
#include <fmaintrin.h>
|
#include <fmaintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512F__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512F__)
|
||||||
#include <avx512fintrin.h>
|
#include <avx512fintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512VL__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512VL__)
|
||||||
#include <avx512vlintrin.h>
|
#include <avx512vlintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512BW__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512BW__)
|
||||||
#include <avx512bwintrin.h>
|
#include <avx512bwintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512BITALG__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512BITALG__)
|
||||||
#include <avx512bitalgintrin.h>
|
#include <avx512bitalgintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512CD__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512CD__)
|
||||||
#include <avx512cdintrin.h>
|
#include <avx512cdintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512VPOPCNTDQ__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512VPOPCNTDQ__)
|
||||||
#include <avx512vpopcntdqintrin.h>
|
#include <avx512vpopcntdqintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AVX512VL__) && defined(__AVX512VPOPCNTDQ__))
|
(defined(__AVX512VL__) && defined(__AVX512VPOPCNTDQ__))
|
||||||
#include <avx512vpopcntdqvlintrin.h>
|
#include <avx512vpopcntdqvlintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512VNNI__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512VNNI__)
|
||||||
#include <avx512vnniintrin.h>
|
#include <avx512vnniintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AVX512VL__) && defined(__AVX512VNNI__))
|
(defined(__AVX512VL__) && defined(__AVX512VNNI__))
|
||||||
#include <avx512vlvnniintrin.h>
|
#include <avx512vlvnniintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512DQ__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512DQ__)
|
||||||
#include <avx512dqintrin.h>
|
#include <avx512dqintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AVX512VL__) && defined(__AVX512BITALG__))
|
(defined(__AVX512VL__) && defined(__AVX512BITALG__))
|
||||||
#include <avx512vlbitalgintrin.h>
|
#include <avx512vlbitalgintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AVX512VL__) && defined(__AVX512BW__))
|
(defined(__AVX512VL__) && defined(__AVX512BW__))
|
||||||
#include <avx512vlbwintrin.h>
|
#include <avx512vlbwintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AVX512VL__) && defined(__AVX512CD__))
|
(defined(__AVX512VL__) && defined(__AVX512CD__))
|
||||||
#include <avx512vlcdintrin.h>
|
#include <avx512vlcdintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AVX512VL__) && defined(__AVX512DQ__))
|
(defined(__AVX512VL__) && defined(__AVX512DQ__))
|
||||||
#include <avx512vldqintrin.h>
|
#include <avx512vldqintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512ER__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512ER__)
|
||||||
#include <avx512erintrin.h>
|
#include <avx512erintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512IFMA__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512IFMA__)
|
||||||
#include <avx512ifmaintrin.h>
|
#include <avx512ifmaintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AVX512IFMA__) && defined(__AVX512VL__))
|
(defined(__AVX512IFMA__) && defined(__AVX512VL__))
|
||||||
#include <avx512ifmavlintrin.h>
|
#include <avx512ifmavlintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512VBMI__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512VBMI__)
|
||||||
#include <avx512vbmiintrin.h>
|
#include <avx512vbmiintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AVX512VBMI__) && defined(__AVX512VL__))
|
(defined(__AVX512VBMI__) && defined(__AVX512VL__))
|
||||||
#include <avx512vbmivlintrin.h>
|
#include <avx512vbmivlintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512VBMI2__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512VBMI2__)
|
||||||
#include <avx512vbmi2intrin.h>
|
#include <avx512vbmi2intrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AVX512VBMI2__) && defined(__AVX512VL__))
|
(defined(__AVX512VBMI2__) && defined(__AVX512VL__))
|
||||||
#include <avx512vlvbmi2intrin.h>
|
#include <avx512vlvbmi2intrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512PF__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512PF__)
|
||||||
#include <avx512pfintrin.h>
|
#include <avx512pfintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__AVX512BF16__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__AVX512BF16__)
|
||||||
#include <avx512bf16intrin.h>
|
#include <avx512bf16intrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AVX512VL__) && defined(__AVX512BF16__))
|
(defined(__AVX512VL__) && defined(__AVX512BF16__))
|
||||||
#include <avx512vlbf16intrin.h>
|
#include <avx512vlbf16intrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__PKU__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__PKU__)
|
||||||
#include <pkuintrin.h>
|
#include <pkuintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__VAES__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__VAES__)
|
||||||
#include <vaesintrin.h>
|
#include <vaesintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__GFNI__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__GFNI__)
|
||||||
#include <gfniintrin.h>
|
#include <gfniintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__RDPID__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__RDPID__)
|
||||||
/// Returns the value of the IA32_TSC_AUX MSR (0xc0000103).
|
/// Returns the value of the IA32_TSC_AUX MSR (0xc0000103).
|
||||||
///
|
///
|
||||||
/// \headerfile <immintrin.h>
|
/// \headerfile <immintrin.h>
|
||||||
@ -213,7 +246,8 @@ _rdpid_u32(void) {
|
|||||||
}
|
}
|
||||||
#endif // __RDPID__
|
#endif // __RDPID__
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__RDRND__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__RDRND__)
|
||||||
static __inline__ int __attribute__((__always_inline__, __nodebug__, __target__("rdrnd")))
|
static __inline__ int __attribute__((__always_inline__, __nodebug__, __target__("rdrnd")))
|
||||||
_rdrand16_step(unsigned short *__p)
|
_rdrand16_step(unsigned short *__p)
|
||||||
{
|
{
|
||||||
@ -235,7 +269,8 @@ _rdrand64_step(unsigned long long *__p)
|
|||||||
#endif
|
#endif
|
||||||
#endif /* __RDRND__ */
|
#endif /* __RDRND__ */
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__FSGSBASE__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__FSGSBASE__)
|
||||||
#ifdef __x86_64__
|
#ifdef __x86_64__
|
||||||
static __inline__ unsigned int __attribute__((__always_inline__, __nodebug__, __target__("fsgsbase")))
|
static __inline__ unsigned int __attribute__((__always_inline__, __nodebug__, __target__("fsgsbase")))
|
||||||
_readfsbase_u32(void)
|
_readfsbase_u32(void)
|
||||||
@ -288,7 +323,8 @@ _writegsbase_u64(unsigned long long __V)
|
|||||||
#endif
|
#endif
|
||||||
#endif /* __FSGSBASE__ */
|
#endif /* __FSGSBASE__ */
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__MOVBE__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__MOVBE__)
|
||||||
|
|
||||||
/* The structs used below are to force the load/store to be unaligned. This
|
/* The structs used below are to force the load/store to be unaligned. This
|
||||||
* is accomplished with the __packed__ attribute. The __may_alias__ prevents
|
* is accomplished with the __packed__ attribute. The __may_alias__ prevents
|
||||||
@ -347,35 +383,42 @@ _storebe_i64(void * __P, long long __D) {
|
|||||||
#endif
|
#endif
|
||||||
#endif /* __MOVBE */
|
#endif /* __MOVBE */
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__RTM__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__RTM__)
|
||||||
#include <rtmintrin.h>
|
#include <rtmintrin.h>
|
||||||
#include <xtestintrin.h>
|
#include <xtestintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__SHA__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__SHA__)
|
||||||
#include <shaintrin.h>
|
#include <shaintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__FXSR__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__FXSR__)
|
||||||
#include <fxsrintrin.h>
|
#include <fxsrintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* No feature check desired due to internal MSC_VER checks */
|
/* No feature check desired due to internal MSC_VER checks */
|
||||||
#include <xsaveintrin.h>
|
#include <xsaveintrin.h>
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__XSAVEOPT__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__XSAVEOPT__)
|
||||||
#include <xsaveoptintrin.h>
|
#include <xsaveoptintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__XSAVEC__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__XSAVEC__)
|
||||||
#include <xsavecintrin.h>
|
#include <xsavecintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__XSAVES__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__XSAVES__)
|
||||||
#include <xsavesintrin.h>
|
#include <xsavesintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__SHSTK__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__SHSTK__)
|
||||||
#include <cetintrin.h>
|
#include <cetintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -383,62 +426,73 @@ _storebe_i64(void * __P, long long __D) {
|
|||||||
* whereas others are also available at all times. */
|
* whereas others are also available at all times. */
|
||||||
#include <adxintrin.h>
|
#include <adxintrin.h>
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__RDSEED__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__RDSEED__)
|
||||||
#include <rdseedintrin.h>
|
#include <rdseedintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__WBNOINVD__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__WBNOINVD__)
|
||||||
#include <wbnoinvdintrin.h>
|
#include <wbnoinvdintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__CLDEMOTE__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__CLDEMOTE__)
|
||||||
#include <cldemoteintrin.h>
|
#include <cldemoteintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__WAITPKG__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__WAITPKG__)
|
||||||
#include <waitpkgintrin.h>
|
#include <waitpkgintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
defined(__MOVDIRI__) || defined(__MOVDIR64B__)
|
defined(__MOVDIRI__) || defined(__MOVDIR64B__)
|
||||||
#include <movdirintrin.h>
|
#include <movdirintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__PCONFIG__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__PCONFIG__)
|
||||||
#include <pconfigintrin.h>
|
#include <pconfigintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__SGX__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__SGX__)
|
||||||
#include <sgxintrin.h>
|
#include <sgxintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__PTWRITE__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__PTWRITE__)
|
||||||
#include <ptwriteintrin.h>
|
#include <ptwriteintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__INVPCID__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__INVPCID__)
|
||||||
#include <invpcidintrin.h>
|
#include <invpcidintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
defined(__AVX512VP2INTERSECT__)
|
defined(__AVX512VP2INTERSECT__)
|
||||||
#include <avx512vp2intersectintrin.h>
|
#include <avx512vp2intersectintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || \
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
(defined(__AVX512VL__) && defined(__AVX512VP2INTERSECT__))
|
(defined(__AVX512VL__) && defined(__AVX512VP2INTERSECT__))
|
||||||
#include <avx512vlvp2intersectintrin.h>
|
#include <avx512vlvp2intersectintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__ENQCMD__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__ENQCMD__)
|
||||||
#include <enqcmdintrin.h>
|
#include <enqcmdintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__SERIALIZE__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__SERIALIZE__)
|
||||||
#include <serializeintrin.h>
|
#include <serializeintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__TSXLDTRK__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__TSXLDTRK__)
|
||||||
#include <tsxldtrkintrin.h>
|
#include <tsxldtrkintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -14,39 +14,48 @@
|
|||||||
|
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__3dNOW__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__3dNOW__)
|
||||||
#include <mm3dnow.h>
|
#include <mm3dnow.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__PRFCHW__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__PRFCHW__)
|
||||||
#include <prfchwintrin.h>
|
#include <prfchwintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__SSE4A__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__SSE4A__)
|
||||||
#include <ammintrin.h>
|
#include <ammintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__FMA4__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__FMA4__)
|
||||||
#include <fma4intrin.h>
|
#include <fma4intrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__XOP__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__XOP__)
|
||||||
#include <xopintrin.h>
|
#include <xopintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__TBM__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__TBM__)
|
||||||
#include <tbmintrin.h>
|
#include <tbmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__LWP__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__LWP__)
|
||||||
#include <lwpintrin.h>
|
#include <lwpintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__MWAITX__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__MWAITX__)
|
||||||
#include <mwaitxintrin.h>
|
#include <mwaitxintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__CLZERO__)
|
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
|
||||||
|
defined(__CLZERO__)
|
||||||
#include <clzerointrin.h>
|
#include <clzerointrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -Wcast-qual %s -verify
|
// RUN: %clang_cc1 -triple i386-unknown-unknown -fsyntax-only -ffreestanding -Wcast-qual %s -verify
|
||||||
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -flax-vector-conversions=none -Wcast-qual %s -verify
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -ffreestanding -Wcast-qual %s -verify
|
||||||
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -Wcast-qual -x c++ %s -verify
|
// RUN: %clang_cc1 -triple i386-unknown-unknown -fsyntax-only -ffreestanding -flax-vector-conversions=none -Wcast-qual %s -verify
|
||||||
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -ffreestanding -flax-vector-conversions=none -Wcast-qual %s -verify
|
||||||
|
// RUN: %clang_cc1 -triple i386-unknown-unknown -fsyntax-only -ffreestanding -Wcast-qual -x c++ %s -verify
|
||||||
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -ffreestanding -Wcast-qual -x c++ %s -verify
|
||||||
// expected-no-diagnostics
|
// expected-no-diagnostics
|
||||||
|
|
||||||
#if defined(i386) || defined(__x86_64__)
|
|
||||||
|
|
||||||
// Include the metaheader that includes all x86 intrinsic headers.
|
// Include the metaheader that includes all x86 intrinsic headers.
|
||||||
#include <x86intrin.h>
|
#include <x86intrin.h>
|
||||||
|
|
||||||
@ -133,5 +134,3 @@ __m128 __attribute__((__target__("f16c"))) mm_cvtph_ps_wrap(__m128i a) {
|
|||||||
int __attribute__((__target__("rtm"))) xtest_wrap(void) {
|
int __attribute__((__target__("rtm"))) xtest_wrap(void) {
|
||||||
return _xtest();
|
return _xtest();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user