@cpp-linter/clang-tidy-win32-x64 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.TXT +279 -0
- package/README.md +7 -0
- package/bin/clang-tidy.exe +4 -0
- package/lib/clang/12.0.1/include/__clang_cuda_builtin_vars.h +121 -0
- package/lib/clang/12.0.1/include/__clang_cuda_cmath.h +512 -0
- package/lib/clang/12.0.1/include/__clang_cuda_complex_builtins.h +285 -0
- package/lib/clang/12.0.1/include/__clang_cuda_device_functions.h +1486 -0
- package/lib/clang/12.0.1/include/__clang_cuda_intrinsics.h +486 -0
- package/lib/clang/12.0.1/include/__clang_cuda_libdevice_declares.h +462 -0
- package/lib/clang/12.0.1/include/__clang_cuda_math.h +348 -0
- package/lib/clang/12.0.1/include/__clang_cuda_math_forward_declares.h +284 -0
- package/lib/clang/12.0.1/include/__clang_cuda_runtime_wrapper.h +443 -0
- package/lib/clang/12.0.1/include/__clang_hip_cmath.h +664 -0
- package/lib/clang/12.0.1/include/__clang_hip_libdevice_declares.h +334 -0
- package/lib/clang/12.0.1/include/__clang_hip_math.h +1275 -0
- package/lib/clang/12.0.1/include/__clang_hip_runtime_wrapper.h +69 -0
- package/lib/clang/12.0.1/include/__stddef_max_align_t.h +27 -0
- package/lib/clang/12.0.1/include/__wmmintrin_aes.h +140 -0
- package/lib/clang/12.0.1/include/__wmmintrin_pclmul.h +48 -0
- package/lib/clang/12.0.1/include/adxintrin.h +72 -0
- package/lib/clang/12.0.1/include/altivec.h +18239 -0
- package/lib/clang/12.0.1/include/ammintrin.h +179 -0
- package/lib/clang/12.0.1/include/amxintrin.h +278 -0
- package/lib/clang/12.0.1/include/arm64intr.h +35 -0
- package/lib/clang/12.0.1/include/arm_acle.h +716 -0
- package/lib/clang/12.0.1/include/arm_bf16.h +20 -0
- package/lib/clang/12.0.1/include/arm_cde.h +410 -0
- package/lib/clang/12.0.1/include/arm_cmse.h +217 -0
- package/lib/clang/12.0.1/include/arm_fp16.h +596 -0
- package/lib/clang/12.0.1/include/arm_mve.h +19187 -0
- package/lib/clang/12.0.1/include/arm_neon.h +68982 -0
- package/lib/clang/12.0.1/include/arm_sve.h +18148 -0
- package/lib/clang/12.0.1/include/armintr.h +31 -0
- package/lib/clang/12.0.1/include/avx2intrin.h +1148 -0
- package/lib/clang/12.0.1/include/avx512bf16intrin.h +279 -0
- package/lib/clang/12.0.1/include/avx512bitalgintrin.h +83 -0
- package/lib/clang/12.0.1/include/avx512bwintrin.h +2024 -0
- package/lib/clang/12.0.1/include/avx512cdintrin.h +123 -0
- package/lib/clang/12.0.1/include/avx512dqintrin.h +1377 -0
- package/lib/clang/12.0.1/include/avx512erintrin.h +271 -0
- package/lib/clang/12.0.1/include/avx512fintrin.h +9618 -0
- package/lib/clang/12.0.1/include/avx512ifmaintrin.h +68 -0
- package/lib/clang/12.0.1/include/avx512ifmavlintrin.h +119 -0
- package/lib/clang/12.0.1/include/avx512pfintrin.h +97 -0
- package/lib/clang/12.0.1/include/avx512vbmi2intrin.h +357 -0
- package/lib/clang/12.0.1/include/avx512vbmiintrin.h +105 -0
- package/lib/clang/12.0.1/include/avx512vbmivlintrin.h +188 -0
- package/lib/clang/12.0.1/include/avx512vlbf16intrin.h +474 -0
- package/lib/clang/12.0.1/include/avx512vlbitalgintrin.h +145 -0
- package/lib/clang/12.0.1/include/avx512vlbwintrin.h +2809 -0
- package/lib/clang/12.0.1/include/avx512vlcdintrin.h +225 -0
- package/lib/clang/12.0.1/include/avx512vldqintrin.h +1167 -0
- package/lib/clang/12.0.1/include/avx512vlintrin.h +8445 -0
- package/lib/clang/12.0.1/include/avx512vlvbmi2intrin.h +689 -0
- package/lib/clang/12.0.1/include/avx512vlvnniintrin.h +304 -0
- package/lib/clang/12.0.1/include/avx512vlvp2intersectintrin.h +121 -0
- package/lib/clang/12.0.1/include/avx512vnniintrin.h +115 -0
- package/lib/clang/12.0.1/include/avx512vp2intersectintrin.h +77 -0
- package/lib/clang/12.0.1/include/avx512vpopcntdqintrin.h +54 -0
- package/lib/clang/12.0.1/include/avx512vpopcntdqvlintrin.h +91 -0
- package/lib/clang/12.0.1/include/avxintrin.h +5053 -0
- package/lib/clang/12.0.1/include/avxvnniintrin.h +225 -0
- package/lib/clang/12.0.1/include/bmi2intrin.h +81 -0
- package/lib/clang/12.0.1/include/bmiintrin.h +427 -0
- package/lib/clang/12.0.1/include/cet.h +66 -0
- package/lib/clang/12.0.1/include/cetintrin.h +99 -0
- package/lib/clang/12.0.1/include/cldemoteintrin.h +36 -0
- package/lib/clang/12.0.1/include/clflushoptintrin.h +27 -0
- package/lib/clang/12.0.1/include/clwbintrin.h +38 -0
- package/lib/clang/12.0.1/include/clzerointrin.h +36 -0
- package/lib/clang/12.0.1/include/cpuid.h +319 -0
- package/lib/clang/12.0.1/include/cuda_wrappers/algorithm +116 -0
- package/lib/clang/12.0.1/include/cuda_wrappers/complex +82 -0
- package/lib/clang/12.0.1/include/cuda_wrappers/new +106 -0
- package/lib/clang/12.0.1/include/emmintrin.h +4981 -0
- package/lib/clang/12.0.1/include/enqcmdintrin.h +63 -0
- package/lib/clang/12.0.1/include/f16cintrin.h +162 -0
- package/lib/clang/12.0.1/include/float.h +152 -0
- package/lib/clang/12.0.1/include/fma4intrin.h +218 -0
- package/lib/clang/12.0.1/include/fmaintrin.h +216 -0
- package/lib/clang/12.0.1/include/fxsrintrin.h +91 -0
- package/lib/clang/12.0.1/include/gfniintrin.h +193 -0
- package/lib/clang/12.0.1/include/hresetintrin.h +49 -0
- package/lib/clang/12.0.1/include/htmintrin.h +212 -0
- package/lib/clang/12.0.1/include/htmxlintrin.h +345 -0
- package/lib/clang/12.0.1/include/ia32intrin.h +441 -0
- package/lib/clang/12.0.1/include/immintrin.h +600 -0
- package/lib/clang/12.0.1/include/intrin.h +585 -0
- package/lib/clang/12.0.1/include/inttypes.h +97 -0
- package/lib/clang/12.0.1/include/invpcidintrin.h +23 -0
- package/lib/clang/12.0.1/include/iso646.h +27 -0
- package/lib/clang/12.0.1/include/keylockerintrin.h +506 -0
- package/lib/clang/12.0.1/include/limits.h +102 -0
- package/lib/clang/12.0.1/include/lwpintrin.h +136 -0
- package/lib/clang/12.0.1/include/lzcntintrin.h +104 -0
- package/lib/clang/12.0.1/include/mm3dnow.h +157 -0
- package/lib/clang/12.0.1/include/mm_malloc.h +67 -0
- package/lib/clang/12.0.1/include/mmintrin.h +1558 -0
- package/lib/clang/12.0.1/include/module.modulemap +164 -0
- package/lib/clang/12.0.1/include/movdirintrin.h +49 -0
- package/lib/clang/12.0.1/include/msa.h +573 -0
- package/lib/clang/12.0.1/include/mwaitxintrin.h +33 -0
- package/lib/clang/12.0.1/include/nmmintrin.h +16 -0
- package/lib/clang/12.0.1/include/opencl-c-base.h +589 -0
- package/lib/clang/12.0.1/include/opencl-c.h +17162 -0
- package/lib/clang/12.0.1/include/openmp_wrappers/__clang_openmp_device_functions.h +42 -0
- package/lib/clang/12.0.1/include/openmp_wrappers/cmath +78 -0
- package/lib/clang/12.0.1/include/openmp_wrappers/complex +52 -0
- package/lib/clang/12.0.1/include/openmp_wrappers/complex.h +27 -0
- package/lib/clang/12.0.1/include/openmp_wrappers/complex_cmath.h +388 -0
- package/lib/clang/12.0.1/include/openmp_wrappers/math.h +51 -0
- package/lib/clang/12.0.1/include/openmp_wrappers/new +70 -0
- package/lib/clang/12.0.1/include/pconfigintrin.h +40 -0
- package/lib/clang/12.0.1/include/pkuintrin.h +34 -0
- package/lib/clang/12.0.1/include/pmmintrin.h +290 -0
- package/lib/clang/12.0.1/include/popcntintrin.h +59 -0
- package/lib/clang/12.0.1/include/ppc_wrappers/emmintrin.h +2324 -0
- package/lib/clang/12.0.1/include/ppc_wrappers/mm_malloc.h +50 -0
- package/lib/clang/12.0.1/include/ppc_wrappers/mmintrin.h +1450 -0
- package/lib/clang/12.0.1/include/ppc_wrappers/pmmintrin.h +150 -0
- package/lib/clang/12.0.1/include/ppc_wrappers/smmintrin.h +109 -0
- package/lib/clang/12.0.1/include/ppc_wrappers/tmmintrin.h +495 -0
- package/lib/clang/12.0.1/include/ppc_wrappers/xmmintrin.h +1843 -0
- package/lib/clang/12.0.1/include/prfchwintrin.h +55 -0
- package/lib/clang/12.0.1/include/ptwriteintrin.h +37 -0
- package/lib/clang/12.0.1/include/rdseedintrin.h +42 -0
- package/lib/clang/12.0.1/include/rtmintrin.h +45 -0
- package/lib/clang/12.0.1/include/s390intrin.h +25 -0
- package/lib/clang/12.0.1/include/serializeintrin.h +30 -0
- package/lib/clang/12.0.1/include/sgxintrin.h +60 -0
- package/lib/clang/12.0.1/include/shaintrin.h +61 -0
- package/lib/clang/12.0.1/include/smmintrin.h +2430 -0
- package/lib/clang/12.0.1/include/stdalign.h +21 -0
- package/lib/clang/12.0.1/include/stdarg.h +35 -0
- package/lib/clang/12.0.1/include/stdatomic.h +176 -0
- package/lib/clang/12.0.1/include/stdbool.h +31 -0
- package/lib/clang/12.0.1/include/stddef.h +121 -0
- package/lib/clang/12.0.1/include/stdint.h +693 -0
- package/lib/clang/12.0.1/include/stdnoreturn.h +16 -0
- package/lib/clang/12.0.1/include/tbmintrin.h +140 -0
- package/lib/clang/12.0.1/include/tgmath.h +1368 -0
- package/lib/clang/12.0.1/include/tmmintrin.h +771 -0
- package/lib/clang/12.0.1/include/tsxldtrkintrin.h +56 -0
- package/lib/clang/12.0.1/include/uintrintrin.h +150 -0
- package/lib/clang/12.0.1/include/unwind.h +327 -0
- package/lib/clang/12.0.1/include/vadefs.h +51 -0
- package/lib/clang/12.0.1/include/vaesintrin.h +84 -0
- package/lib/clang/12.0.1/include/varargs.h +12 -0
- package/lib/clang/12.0.1/include/vecintrin.h +10998 -0
- package/lib/clang/12.0.1/include/vpclmulqdqintrin.h +28 -0
- package/lib/clang/12.0.1/include/waitpkgintrin.h +42 -0
- package/lib/clang/12.0.1/include/wasm_simd128.h +1167 -0
- package/lib/clang/12.0.1/include/wbnoinvdintrin.h +24 -0
- package/lib/clang/12.0.1/include/wmmintrin.h +19 -0
- package/lib/clang/12.0.1/include/x86gprintrin.h +23 -0
- package/lib/clang/12.0.1/include/x86intrin.h +63 -0
- package/lib/clang/12.0.1/include/xmmintrin.h +3008 -0
- package/lib/clang/12.0.1/include/xopintrin.h +770 -0
- package/lib/clang/12.0.1/include/xsavecintrin.h +34 -0
- package/lib/clang/12.0.1/include/xsaveintrin.h +63 -0
- package/lib/clang/12.0.1/include/xsaveoptintrin.h +34 -0
- package/lib/clang/12.0.1/include/xsavesintrin.h +44 -0
- package/lib/clang/12.0.1/include/xtestintrin.h +27 -0
- package/package.json +32 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
//===--------- new - OPENMP wrapper for <new> ------------------------------===
|
|
2
|
+
//
|
|
3
|
+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
4
|
+
// See https://llvm.org/LICENSE.txt for license information.
|
|
5
|
+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
6
|
+
//
|
|
7
|
+
//===-----------------------------------------------------------------------===
|
|
8
|
+
|
|
9
|
+
#ifndef __CLANG_OPENMP_WRAPPERS_NEW
|
|
10
|
+
#define __CLANG_OPENMP_WRAPPERS_NEW
|
|
11
|
+
|
|
12
|
+
#include_next <new>
|
|
13
|
+
|
|
14
|
+
#if defined(__NVPTX__) && defined(_OPENMP)
|
|
15
|
+
|
|
16
|
+
#include <cstdlib>
|
|
17
|
+
|
|
18
|
+
#pragma push_macro("OPENMP_NOEXCEPT")
|
|
19
|
+
#if __cplusplus >= 201103L
|
|
20
|
+
#define OPENMP_NOEXCEPT noexcept
|
|
21
|
+
#else
|
|
22
|
+
#define OPENMP_NOEXCEPT
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
// Device overrides for non-placement new and delete.
|
|
26
|
+
inline void *operator new(__SIZE_TYPE__ size) {
|
|
27
|
+
if (size == 0)
|
|
28
|
+
size = 1;
|
|
29
|
+
return ::malloc(size);
|
|
30
|
+
}
|
|
31
|
+
inline void *operator new(__SIZE_TYPE__ size,
|
|
32
|
+
const std::nothrow_t &) OPENMP_NOEXCEPT {
|
|
33
|
+
return ::operator new(size);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
inline void *operator new[](__SIZE_TYPE__ size) { return ::operator new(size); }
|
|
37
|
+
inline void *operator new[](__SIZE_TYPE__ size, const std::nothrow_t &) {
|
|
38
|
+
return ::operator new(size);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
inline void operator delete(void *ptr)OPENMP_NOEXCEPT {
|
|
42
|
+
if (ptr)
|
|
43
|
+
::free(ptr);
|
|
44
|
+
}
|
|
45
|
+
inline void operator delete(void *ptr, const std::nothrow_t &)OPENMP_NOEXCEPT {
|
|
46
|
+
::operator delete(ptr);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
inline void operator delete[](void *ptr) OPENMP_NOEXCEPT {
|
|
50
|
+
::operator delete(ptr);
|
|
51
|
+
}
|
|
52
|
+
inline void operator delete[](void *ptr,
|
|
53
|
+
const std::nothrow_t &) OPENMP_NOEXCEPT {
|
|
54
|
+
::operator delete(ptr);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Sized delete, C++14 only.
|
|
58
|
+
#if __cplusplus >= 201402L
|
|
59
|
+
inline void operator delete(void *ptr, __SIZE_TYPE__ size)OPENMP_NOEXCEPT {
|
|
60
|
+
::operator delete(ptr);
|
|
61
|
+
}
|
|
62
|
+
inline void operator delete[](void *ptr, __SIZE_TYPE__ size) OPENMP_NOEXCEPT {
|
|
63
|
+
::operator delete(ptr);
|
|
64
|
+
}
|
|
65
|
+
#endif
|
|
66
|
+
|
|
67
|
+
#pragma pop_macro("OPENMP_NOEXCEPT")
|
|
68
|
+
#endif
|
|
69
|
+
|
|
70
|
+
#endif // include guard
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*===---- pconfigintrin.h - X86 platform configuration ---------------------===
|
|
2
|
+
*
|
|
3
|
+
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
4
|
+
* See https://llvm.org/LICENSE.txt for license information.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
6
|
+
*
|
|
7
|
+
*===-----------------------------------------------------------------------===
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#if !defined __X86INTRIN_H && !defined __IMMINTRIN_H
|
|
11
|
+
#error "Never use <pconfigintrin.h> directly; include <x86intrin.h> instead."
|
|
12
|
+
#endif
|
|
13
|
+
|
|
14
|
+
#ifndef __PCONFIGINTRIN_H
|
|
15
|
+
#define __PCONFIGINTRIN_H
|
|
16
|
+
|
|
17
|
+
#define __PCONFIG_KEY_PROGRAM 0x00000001
|
|
18
|
+
|
|
19
|
+
#if __has_extension(gnu_asm)
|
|
20
|
+
|
|
21
|
+
/* Define the default attributes for the functions in this file. */
|
|
22
|
+
#define __DEFAULT_FN_ATTRS \
|
|
23
|
+
__attribute__((__always_inline__, __nodebug__, __target__("pconfig")))
|
|
24
|
+
|
|
25
|
+
static __inline unsigned int __DEFAULT_FN_ATTRS
|
|
26
|
+
_pconfig_u32(unsigned int __leaf, __SIZE_TYPE__ __d[])
|
|
27
|
+
{
|
|
28
|
+
unsigned int __result;
|
|
29
|
+
__asm__ ("pconfig"
|
|
30
|
+
: "=a" (__result), "=b" (__d[0]), "=c" (__d[1]), "=d" (__d[2])
|
|
31
|
+
: "a" (__leaf), "b" (__d[0]), "c" (__d[1]), "d" (__d[2])
|
|
32
|
+
: "cc");
|
|
33
|
+
return __result;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
#undef __DEFAULT_FN_ATTRS
|
|
37
|
+
|
|
38
|
+
#endif /* __has_extension(gnu_asm) */
|
|
39
|
+
|
|
40
|
+
#endif
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*===---- pkuintrin.h - PKU intrinsics -------------------------------------===
|
|
2
|
+
*
|
|
3
|
+
*
|
|
4
|
+
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
5
|
+
* See https://llvm.org/LICENSE.txt for license information.
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
7
|
+
*
|
|
8
|
+
*===-----------------------------------------------------------------------===
|
|
9
|
+
*/
|
|
10
|
+
#ifndef __IMMINTRIN_H
|
|
11
|
+
#error "Never use <pkuintrin.h> directly; include <immintrin.h> instead."
|
|
12
|
+
#endif
|
|
13
|
+
|
|
14
|
+
#ifndef __PKUINTRIN_H
|
|
15
|
+
#define __PKUINTRIN_H
|
|
16
|
+
|
|
17
|
+
/* Define the default attributes for the functions in this file. */
|
|
18
|
+
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("pku")))
|
|
19
|
+
|
|
20
|
+
static __inline__ unsigned int __DEFAULT_FN_ATTRS
|
|
21
|
+
_rdpkru_u32(void)
|
|
22
|
+
{
|
|
23
|
+
return __builtin_ia32_rdpkru();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static __inline__ void __DEFAULT_FN_ATTRS
|
|
27
|
+
_wrpkru(unsigned int __val)
|
|
28
|
+
{
|
|
29
|
+
__builtin_ia32_wrpkru(__val);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#undef __DEFAULT_FN_ATTRS
|
|
33
|
+
|
|
34
|
+
#endif
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
/*===---- pmmintrin.h - SSE3 intrinsics ------------------------------------===
|
|
2
|
+
*
|
|
3
|
+
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
4
|
+
* See https://llvm.org/LICENSE.txt for license information.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
6
|
+
*
|
|
7
|
+
*===-----------------------------------------------------------------------===
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#ifndef __PMMINTRIN_H
|
|
11
|
+
#define __PMMINTRIN_H
|
|
12
|
+
|
|
13
|
+
#include <emmintrin.h>
|
|
14
|
+
|
|
15
|
+
/* Define the default attributes for the functions in this file. */
|
|
16
|
+
#define __DEFAULT_FN_ATTRS \
|
|
17
|
+
__attribute__((__always_inline__, __nodebug__, __target__("sse3"), __min_vector_width__(128)))
|
|
18
|
+
|
|
19
|
+
/// Loads data from an unaligned memory location to elements in a 128-bit
|
|
20
|
+
/// vector.
|
|
21
|
+
///
|
|
22
|
+
/// If the address of the data is not 16-byte aligned, the instruction may
|
|
23
|
+
/// read two adjacent aligned blocks of memory to retrieve the requested
|
|
24
|
+
/// data.
|
|
25
|
+
///
|
|
26
|
+
/// \headerfile <x86intrin.h>
|
|
27
|
+
///
|
|
28
|
+
/// This intrinsic corresponds to the <c> VLDDQU </c> instruction.
|
|
29
|
+
///
|
|
30
|
+
/// \param __p
|
|
31
|
+
/// A pointer to a 128-bit integer vector containing integer values.
|
|
32
|
+
/// \returns A 128-bit vector containing the moved values.
|
|
33
|
+
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
|
34
|
+
_mm_lddqu_si128(__m128i const *__p)
|
|
35
|
+
{
|
|
36
|
+
return (__m128i)__builtin_ia32_lddqu((char const *)__p);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/// Adds the even-indexed values and subtracts the odd-indexed values of
|
|
40
|
+
/// two 128-bit vectors of [4 x float].
|
|
41
|
+
///
|
|
42
|
+
/// \headerfile <x86intrin.h>
|
|
43
|
+
///
|
|
44
|
+
/// This intrinsic corresponds to the <c> VADDSUBPS </c> instruction.
|
|
45
|
+
///
|
|
46
|
+
/// \param __a
|
|
47
|
+
/// A 128-bit vector of [4 x float] containing the left source operand.
|
|
48
|
+
/// \param __b
|
|
49
|
+
/// A 128-bit vector of [4 x float] containing the right source operand.
|
|
50
|
+
/// \returns A 128-bit vector of [4 x float] containing the alternating sums and
|
|
51
|
+
/// differences of both operands.
|
|
52
|
+
static __inline__ __m128 __DEFAULT_FN_ATTRS
|
|
53
|
+
_mm_addsub_ps(__m128 __a, __m128 __b)
|
|
54
|
+
{
|
|
55
|
+
return __builtin_ia32_addsubps((__v4sf)__a, (__v4sf)__b);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/// Horizontally adds the adjacent pairs of values contained in two
|
|
59
|
+
/// 128-bit vectors of [4 x float].
|
|
60
|
+
///
|
|
61
|
+
/// \headerfile <x86intrin.h>
|
|
62
|
+
///
|
|
63
|
+
/// This intrinsic corresponds to the <c> VHADDPS </c> instruction.
|
|
64
|
+
///
|
|
65
|
+
/// \param __a
|
|
66
|
+
/// A 128-bit vector of [4 x float] containing one of the source operands.
|
|
67
|
+
/// The horizontal sums of the values are stored in the lower bits of the
|
|
68
|
+
/// destination.
|
|
69
|
+
/// \param __b
|
|
70
|
+
/// A 128-bit vector of [4 x float] containing one of the source operands.
|
|
71
|
+
/// The horizontal sums of the values are stored in the upper bits of the
|
|
72
|
+
/// destination.
|
|
73
|
+
/// \returns A 128-bit vector of [4 x float] containing the horizontal sums of
|
|
74
|
+
/// both operands.
|
|
75
|
+
static __inline__ __m128 __DEFAULT_FN_ATTRS
|
|
76
|
+
_mm_hadd_ps(__m128 __a, __m128 __b)
|
|
77
|
+
{
|
|
78
|
+
return __builtin_ia32_haddps((__v4sf)__a, (__v4sf)__b);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/// Horizontally subtracts the adjacent pairs of values contained in two
|
|
82
|
+
/// 128-bit vectors of [4 x float].
|
|
83
|
+
///
|
|
84
|
+
/// \headerfile <x86intrin.h>
|
|
85
|
+
///
|
|
86
|
+
/// This intrinsic corresponds to the <c> VHSUBPS </c> instruction.
|
|
87
|
+
///
|
|
88
|
+
/// \param __a
|
|
89
|
+
/// A 128-bit vector of [4 x float] containing one of the source operands.
|
|
90
|
+
/// The horizontal differences between the values are stored in the lower
|
|
91
|
+
/// bits of the destination.
|
|
92
|
+
/// \param __b
|
|
93
|
+
/// A 128-bit vector of [4 x float] containing one of the source operands.
|
|
94
|
+
/// The horizontal differences between the values are stored in the upper
|
|
95
|
+
/// bits of the destination.
|
|
96
|
+
/// \returns A 128-bit vector of [4 x float] containing the horizontal
|
|
97
|
+
/// differences of both operands.
|
|
98
|
+
static __inline__ __m128 __DEFAULT_FN_ATTRS
|
|
99
|
+
_mm_hsub_ps(__m128 __a, __m128 __b)
|
|
100
|
+
{
|
|
101
|
+
return __builtin_ia32_hsubps((__v4sf)__a, (__v4sf)__b);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/// Moves and duplicates odd-indexed values from a 128-bit vector
|
|
105
|
+
/// of [4 x float] to float values stored in a 128-bit vector of
|
|
106
|
+
/// [4 x float].
|
|
107
|
+
///
|
|
108
|
+
/// \headerfile <x86intrin.h>
|
|
109
|
+
///
|
|
110
|
+
/// This intrinsic corresponds to the <c> VMOVSHDUP </c> instruction.
|
|
111
|
+
///
|
|
112
|
+
/// \param __a
|
|
113
|
+
/// A 128-bit vector of [4 x float]. \n
|
|
114
|
+
/// Bits [127:96] of the source are written to bits [127:96] and [95:64] of
|
|
115
|
+
/// the destination. \n
|
|
116
|
+
/// Bits [63:32] of the source are written to bits [63:32] and [31:0] of the
|
|
117
|
+
/// destination.
|
|
118
|
+
/// \returns A 128-bit vector of [4 x float] containing the moved and duplicated
|
|
119
|
+
/// values.
|
|
120
|
+
static __inline__ __m128 __DEFAULT_FN_ATTRS
|
|
121
|
+
_mm_movehdup_ps(__m128 __a)
|
|
122
|
+
{
|
|
123
|
+
return __builtin_shufflevector((__v4sf)__a, (__v4sf)__a, 1, 1, 3, 3);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/// Duplicates even-indexed values from a 128-bit vector of
|
|
127
|
+
/// [4 x float] to float values stored in a 128-bit vector of [4 x float].
|
|
128
|
+
///
|
|
129
|
+
/// \headerfile <x86intrin.h>
|
|
130
|
+
///
|
|
131
|
+
/// This intrinsic corresponds to the <c> VMOVSLDUP </c> instruction.
|
|
132
|
+
///
|
|
133
|
+
/// \param __a
|
|
134
|
+
/// A 128-bit vector of [4 x float] \n
|
|
135
|
+
/// Bits [95:64] of the source are written to bits [127:96] and [95:64] of
|
|
136
|
+
/// the destination. \n
|
|
137
|
+
/// Bits [31:0] of the source are written to bits [63:32] and [31:0] of the
|
|
138
|
+
/// destination.
|
|
139
|
+
/// \returns A 128-bit vector of [4 x float] containing the moved and duplicated
|
|
140
|
+
/// values.
|
|
141
|
+
static __inline__ __m128 __DEFAULT_FN_ATTRS
|
|
142
|
+
_mm_moveldup_ps(__m128 __a)
|
|
143
|
+
{
|
|
144
|
+
return __builtin_shufflevector((__v4sf)__a, (__v4sf)__a, 0, 0, 2, 2);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/// Adds the even-indexed values and subtracts the odd-indexed values of
|
|
148
|
+
/// two 128-bit vectors of [2 x double].
|
|
149
|
+
///
|
|
150
|
+
/// \headerfile <x86intrin.h>
|
|
151
|
+
///
|
|
152
|
+
/// This intrinsic corresponds to the <c> VADDSUBPD </c> instruction.
|
|
153
|
+
///
|
|
154
|
+
/// \param __a
|
|
155
|
+
/// A 128-bit vector of [2 x double] containing the left source operand.
|
|
156
|
+
/// \param __b
|
|
157
|
+
/// A 128-bit vector of [2 x double] containing the right source operand.
|
|
158
|
+
/// \returns A 128-bit vector of [2 x double] containing the alternating sums
|
|
159
|
+
/// and differences of both operands.
|
|
160
|
+
static __inline__ __m128d __DEFAULT_FN_ATTRS
|
|
161
|
+
_mm_addsub_pd(__m128d __a, __m128d __b)
|
|
162
|
+
{
|
|
163
|
+
return __builtin_ia32_addsubpd((__v2df)__a, (__v2df)__b);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/// Horizontally adds the pairs of values contained in two 128-bit
|
|
167
|
+
/// vectors of [2 x double].
|
|
168
|
+
///
|
|
169
|
+
/// \headerfile <x86intrin.h>
|
|
170
|
+
///
|
|
171
|
+
/// This intrinsic corresponds to the <c> VHADDPD </c> instruction.
|
|
172
|
+
///
|
|
173
|
+
/// \param __a
|
|
174
|
+
/// A 128-bit vector of [2 x double] containing one of the source operands.
|
|
175
|
+
/// The horizontal sum of the values is stored in the lower bits of the
|
|
176
|
+
/// destination.
|
|
177
|
+
/// \param __b
|
|
178
|
+
/// A 128-bit vector of [2 x double] containing one of the source operands.
|
|
179
|
+
/// The horizontal sum of the values is stored in the upper bits of the
|
|
180
|
+
/// destination.
|
|
181
|
+
/// \returns A 128-bit vector of [2 x double] containing the horizontal sums of
|
|
182
|
+
/// both operands.
|
|
183
|
+
static __inline__ __m128d __DEFAULT_FN_ATTRS
|
|
184
|
+
_mm_hadd_pd(__m128d __a, __m128d __b)
|
|
185
|
+
{
|
|
186
|
+
return __builtin_ia32_haddpd((__v2df)__a, (__v2df)__b);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/// Horizontally subtracts the pairs of values contained in two 128-bit
|
|
190
|
+
/// vectors of [2 x double].
|
|
191
|
+
///
|
|
192
|
+
/// \headerfile <x86intrin.h>
|
|
193
|
+
///
|
|
194
|
+
/// This intrinsic corresponds to the <c> VHSUBPD </c> instruction.
|
|
195
|
+
///
|
|
196
|
+
/// \param __a
|
|
197
|
+
/// A 128-bit vector of [2 x double] containing one of the source operands.
|
|
198
|
+
/// The horizontal difference of the values is stored in the lower bits of
|
|
199
|
+
/// the destination.
|
|
200
|
+
/// \param __b
|
|
201
|
+
/// A 128-bit vector of [2 x double] containing one of the source operands.
|
|
202
|
+
/// The horizontal difference of the values is stored in the upper bits of
|
|
203
|
+
/// the destination.
|
|
204
|
+
/// \returns A 128-bit vector of [2 x double] containing the horizontal
|
|
205
|
+
/// differences of both operands.
|
|
206
|
+
static __inline__ __m128d __DEFAULT_FN_ATTRS
|
|
207
|
+
_mm_hsub_pd(__m128d __a, __m128d __b)
|
|
208
|
+
{
|
|
209
|
+
return __builtin_ia32_hsubpd((__v2df)__a, (__v2df)__b);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/// Moves and duplicates one double-precision value to double-precision
|
|
213
|
+
/// values stored in a 128-bit vector of [2 x double].
|
|
214
|
+
///
|
|
215
|
+
/// \headerfile <x86intrin.h>
|
|
216
|
+
///
|
|
217
|
+
/// \code
|
|
218
|
+
/// __m128d _mm_loaddup_pd(double const *dp);
|
|
219
|
+
/// \endcode
|
|
220
|
+
///
|
|
221
|
+
/// This intrinsic corresponds to the <c> VMOVDDUP </c> instruction.
|
|
222
|
+
///
|
|
223
|
+
/// \param dp
|
|
224
|
+
/// A pointer to a double-precision value to be moved and duplicated.
|
|
225
|
+
/// \returns A 128-bit vector of [2 x double] containing the moved and
|
|
226
|
+
/// duplicated values.
|
|
227
|
+
#define _mm_loaddup_pd(dp) _mm_load1_pd(dp)
|
|
228
|
+
|
|
229
|
+
/// Moves and duplicates the double-precision value in the lower bits of
|
|
230
|
+
/// a 128-bit vector of [2 x double] to double-precision values stored in a
|
|
231
|
+
/// 128-bit vector of [2 x double].
|
|
232
|
+
///
|
|
233
|
+
/// \headerfile <x86intrin.h>
|
|
234
|
+
///
|
|
235
|
+
/// This intrinsic corresponds to the <c> VMOVDDUP </c> instruction.
|
|
236
|
+
///
|
|
237
|
+
/// \param __a
|
|
238
|
+
/// A 128-bit vector of [2 x double]. Bits [63:0] are written to bits
|
|
239
|
+
/// [127:64] and [63:0] of the destination.
|
|
240
|
+
/// \returns A 128-bit vector of [2 x double] containing the moved and
|
|
241
|
+
/// duplicated values.
|
|
242
|
+
static __inline__ __m128d __DEFAULT_FN_ATTRS
|
|
243
|
+
_mm_movedup_pd(__m128d __a)
|
|
244
|
+
{
|
|
245
|
+
return __builtin_shufflevector((__v2df)__a, (__v2df)__a, 0, 0);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/// Establishes a linear address memory range to be monitored and puts
|
|
249
|
+
/// the processor in the monitor event pending state. Data stored in the
|
|
250
|
+
/// monitored address range causes the processor to exit the pending state.
|
|
251
|
+
///
|
|
252
|
+
/// \headerfile <x86intrin.h>
|
|
253
|
+
///
|
|
254
|
+
/// This intrinsic corresponds to the <c> MONITOR </c> instruction.
|
|
255
|
+
///
|
|
256
|
+
/// \param __p
|
|
257
|
+
/// The memory range to be monitored. The size of the range is determined by
|
|
258
|
+
/// CPUID function 0000_0005h.
|
|
259
|
+
/// \param __extensions
|
|
260
|
+
/// Optional extensions for the monitoring state.
|
|
261
|
+
/// \param __hints
|
|
262
|
+
/// Optional hints for the monitoring state.
|
|
263
|
+
static __inline__ void __DEFAULT_FN_ATTRS
|
|
264
|
+
_mm_monitor(void const *__p, unsigned __extensions, unsigned __hints)
|
|
265
|
+
{
|
|
266
|
+
__builtin_ia32_monitor(__p, __extensions, __hints);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/// Used with the MONITOR instruction to wait while the processor is in
|
|
270
|
+
/// the monitor event pending state. Data stored in the monitored address
|
|
271
|
+
/// range causes the processor to exit the pending state.
|
|
272
|
+
///
|
|
273
|
+
/// \headerfile <x86intrin.h>
|
|
274
|
+
///
|
|
275
|
+
/// This intrinsic corresponds to the <c> MWAIT </c> instruction.
|
|
276
|
+
///
|
|
277
|
+
/// \param __extensions
|
|
278
|
+
/// Optional extensions for the monitoring state, which may vary by
|
|
279
|
+
/// processor.
|
|
280
|
+
/// \param __hints
|
|
281
|
+
/// Optional hints for the monitoring state, which may vary by processor.
|
|
282
|
+
static __inline__ void __DEFAULT_FN_ATTRS
|
|
283
|
+
_mm_mwait(unsigned __extensions, unsigned __hints)
|
|
284
|
+
{
|
|
285
|
+
__builtin_ia32_mwait(__extensions, __hints);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
#undef __DEFAULT_FN_ATTRS
|
|
289
|
+
|
|
290
|
+
#endif /* __PMMINTRIN_H */
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*===---- popcntintrin.h - POPCNT intrinsics -------------------------------===
|
|
2
|
+
*
|
|
3
|
+
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
4
|
+
* See https://llvm.org/LICENSE.txt for license information.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
6
|
+
*
|
|
7
|
+
*===-----------------------------------------------------------------------===
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#ifndef __POPCNTINTRIN_H
|
|
11
|
+
#define __POPCNTINTRIN_H
|
|
12
|
+
|
|
13
|
+
/* Define the default attributes for the functions in this file. */
|
|
14
|
+
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("popcnt")))
|
|
15
|
+
|
|
16
|
+
#if defined(__cplusplus) && (__cplusplus >= 201103L)
|
|
17
|
+
#define __DEFAULT_FN_ATTRS_CONSTEXPR __DEFAULT_FN_ATTRS constexpr
|
|
18
|
+
#else
|
|
19
|
+
#define __DEFAULT_FN_ATTRS_CONSTEXPR __DEFAULT_FN_ATTRS
|
|
20
|
+
#endif
|
|
21
|
+
|
|
22
|
+
/// Counts the number of bits in the source operand having a value of 1.
|
|
23
|
+
///
|
|
24
|
+
/// \headerfile <x86intrin.h>
|
|
25
|
+
///
|
|
26
|
+
/// This intrinsic corresponds to the <c> POPCNT </c> instruction.
|
|
27
|
+
///
|
|
28
|
+
/// \param __A
|
|
29
|
+
/// An unsigned 32-bit integer operand.
|
|
30
|
+
/// \returns A 32-bit integer containing the number of bits with value 1 in the
|
|
31
|
+
/// source operand.
|
|
32
|
+
static __inline__ int __DEFAULT_FN_ATTRS_CONSTEXPR
|
|
33
|
+
_mm_popcnt_u32(unsigned int __A)
|
|
34
|
+
{
|
|
35
|
+
return __builtin_popcount(__A);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
#ifdef __x86_64__
|
|
39
|
+
/// Counts the number of bits in the source operand having a value of 1.
|
|
40
|
+
///
|
|
41
|
+
/// \headerfile <x86intrin.h>
|
|
42
|
+
///
|
|
43
|
+
/// This intrinsic corresponds to the <c> POPCNT </c> instruction.
|
|
44
|
+
///
|
|
45
|
+
/// \param __A
|
|
46
|
+
/// An unsigned 64-bit integer operand.
|
|
47
|
+
/// \returns A 64-bit integer containing the number of bits with value 1 in the
|
|
48
|
+
/// source operand.
|
|
49
|
+
static __inline__ long long __DEFAULT_FN_ATTRS_CONSTEXPR
|
|
50
|
+
_mm_popcnt_u64(unsigned long long __A)
|
|
51
|
+
{
|
|
52
|
+
return __builtin_popcountll(__A);
|
|
53
|
+
}
|
|
54
|
+
#endif /* __x86_64__ */
|
|
55
|
+
|
|
56
|
+
#undef __DEFAULT_FN_ATTRS
|
|
57
|
+
#undef __DEFAULT_FN_ATTRS_CONSTEXPR
|
|
58
|
+
|
|
59
|
+
#endif /* __POPCNTINTRIN_H */
|