[X86] Add void to the argument list of intrinsics that don't take arguments since empty argument list mean something else in C.

llvm-svn: 272244
This commit is contained in:
Craig Topper 2016-06-09 05:14:28 +00:00
parent ecde1c7f3d
commit 3a0c7260f4
5 changed files with 11 additions and 11 deletions

View File

@ -173,25 +173,25 @@ _mm512_setzero_si512(void)
#define _mm512_setzero_epi32 _mm512_setzero_si512
static __inline__ __m512d __DEFAULT_FN_ATTRS
_mm512_undefined_pd()
_mm512_undefined_pd(void)
{
return (__m512d)__builtin_ia32_undef512();
}
static __inline__ __m512 __DEFAULT_FN_ATTRS
_mm512_undefined()
_mm512_undefined(void)
{
return (__m512)__builtin_ia32_undef512();
}
static __inline__ __m512 __DEFAULT_FN_ATTRS
_mm512_undefined_ps()
_mm512_undefined_ps(void)
{
return (__m512)__builtin_ia32_undef512();
}
static __inline__ __m512i __DEFAULT_FN_ATTRS
_mm512_undefined_epi32()
_mm512_undefined_epi32(void)
{
return (__m512i)__builtin_ia32_undef512();
}

View File

@ -2513,19 +2513,19 @@ _mm256_stream_ps(float *__p, __m256 __a)
/* Create vectors */
static __inline__ __m256d __DEFAULT_FN_ATTRS
_mm256_undefined_pd()
_mm256_undefined_pd(void)
{
return (__m256d)__builtin_ia32_undef256();
}
static __inline__ __m256 __DEFAULT_FN_ATTRS
_mm256_undefined_ps()
_mm256_undefined_ps(void)
{
return (__m256)__builtin_ia32_undef256();
}
static __inline__ __m256i __DEFAULT_FN_ATTRS
_mm256_undefined_si256()
_mm256_undefined_si256(void)
{
return (__m256i)__builtin_ia32_undef256();
}

View File

@ -536,7 +536,7 @@ _mm_loadl_pd(__m128d __a, double const *__dp)
}
static __inline__ __m128d __DEFAULT_FN_ATTRS
_mm_undefined_pd()
_mm_undefined_pd(void)
{
return (__m128d)__builtin_ia32_undef128();
}
@ -1883,7 +1883,7 @@ _mm_loadl_epi64(__m128i const *__p)
///
/// \returns A 128-bit vector of [4 x i32] with unspecified content.
static __inline__ __m128i __DEFAULT_FN_ATTRS
_mm_undefined_si128()
_mm_undefined_si128(void)
{
return (__m128i)__builtin_ia32_undef128();
}

View File

@ -33,7 +33,7 @@ typedef float __v2sf __attribute__((__vector_size__(8)));
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("3dnow")))
static __inline__ void __DEFAULT_FN_ATTRS
_m_femms() {
_m_femms(void) {
__builtin_ia32_femms();
}

View File

@ -1727,7 +1727,7 @@ _mm_loadr_ps(const float *__p)
/// \returns A 128-bit vector of [4 x float] containing undefined values.
static __inline__ __m128 __DEFAULT_FN_ATTRS
_mm_undefined_ps()
_mm_undefined_ps(void)
{
return (__m128)__builtin_ia32_undef128();
}