@cpp-linter/clang-tidy-win32-x64 16.0.3 → 17.0.6

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.
Files changed (222) hide show
  1. package/README.md +2 -2
  2. package/bin/clang-tidy.exe +2 -2
  3. package/lib/clang/{16 → 17}/include/__clang_cuda_intrinsics.h +191 -0
  4. package/lib/clang/{16 → 17}/include/__clang_cuda_math.h +1 -1
  5. package/lib/clang/{16 → 17}/include/__clang_hip_cmath.h +1 -1
  6. package/lib/clang/{16 → 17}/include/__clang_hip_libdevice_declares.h +32 -30
  7. package/lib/clang/{16 → 17}/include/__clang_hip_math.h +56 -71
  8. package/lib/clang/{16 → 17}/include/__clang_hip_runtime_wrapper.h +13 -0
  9. package/lib/clang/17/include/adxintrin.h +227 -0
  10. package/lib/clang/{16 → 17}/include/altivec.h +136 -124
  11. package/lib/clang/17/include/amxcomplexintrin.h +169 -0
  12. package/lib/clang/{16 → 17}/include/arm_acle.h +13 -9
  13. package/lib/clang/{16 → 17}/include/arm_neon.h +164 -1
  14. package/lib/clang/17/include/arm_sme_draft_spec_subject_to_change.h +642 -0
  15. package/lib/clang/{16 → 17}/include/arm_sve.h +68 -13
  16. package/lib/clang/17/include/avx2intrin.h +5263 -0
  17. package/lib/clang/{16 → 17}/include/avx512fintrin.h +17 -7
  18. package/lib/clang/{16 → 17}/include/avx512fp16intrin.h +12 -8
  19. package/lib/clang/{16 → 17}/include/avxintrin.h +20 -7
  20. package/lib/clang/17/include/avxvnniint16intrin.h +473 -0
  21. package/lib/clang/17/include/bmi2intrin.h +255 -0
  22. package/lib/clang/{16 → 17}/include/clflushoptintrin.h +9 -0
  23. package/lib/clang/{16 → 17}/include/clzerointrin.h +7 -5
  24. package/lib/clang/17/include/cuda_wrappers/bits/basic_string.h +9 -0
  25. package/lib/clang/17/include/cuda_wrappers/bits/basic_string.tcc +9 -0
  26. package/lib/clang/17/include/cuda_wrappers/bits/shared_ptr_base.h +9 -0
  27. package/lib/clang/17/include/fmaintrin.h +780 -0
  28. package/lib/clang/17/include/hlsl/hlsl_intrinsics.h +480 -0
  29. package/lib/clang/{16 → 17}/include/immintrin.h +116 -8
  30. package/lib/clang/{16 → 17}/include/limits.h +5 -1
  31. package/lib/clang/17/include/llvm_libc_wrappers/ctype.h +85 -0
  32. package/lib/clang/17/include/llvm_libc_wrappers/inttypes.h +34 -0
  33. package/lib/clang/17/include/llvm_libc_wrappers/stdio.h +34 -0
  34. package/lib/clang/17/include/llvm_libc_wrappers/stdlib.h +42 -0
  35. package/lib/clang/17/include/llvm_libc_wrappers/string.h +37 -0
  36. package/lib/clang/17/include/mwaitxintrin.h +62 -0
  37. package/lib/clang/{16 → 17}/include/opencl-c-base.h +3 -0
  38. package/lib/clang/{16 → 17}/include/openmp_wrappers/__clang_openmp_device_functions.h +0 -1
  39. package/lib/clang/{16 → 17}/include/openmp_wrappers/new +1 -1
  40. package/lib/clang/{16 → 17}/include/pmmintrin.h +12 -6
  41. package/lib/clang/{16 → 17}/include/ppc_wrappers/emmintrin.h +2 -1
  42. package/lib/clang/{16 → 17}/include/ppc_wrappers/smmintrin.h +2 -2
  43. package/lib/clang/17/include/rdseedintrin.h +105 -0
  44. package/lib/clang/17/include/riscv_ntlh.h +28 -0
  45. package/lib/clang/17/include/riscv_vector.h +400 -0
  46. package/lib/clang/17/include/sha512intrin.h +200 -0
  47. package/lib/clang/17/include/shaintrin.h +189 -0
  48. package/lib/clang/17/include/sifive_vector.h +16 -0
  49. package/lib/clang/17/include/sm3intrin.h +238 -0
  50. package/lib/clang/17/include/sm4intrin.h +269 -0
  51. package/lib/clang/{16 → 17}/include/stdalign.h +5 -0
  52. package/lib/clang/{16 → 17}/include/stdatomic.h +9 -2
  53. package/lib/clang/{16 → 17}/include/stddef.h +5 -0
  54. package/lib/clang/{16 → 17}/include/wasm_simd128.h +132 -12
  55. package/lib/clang/17/include/xsavecintrin.h +84 -0
  56. package/package.json +6 -6
  57. package/lib/clang/16/include/adxintrin.h +0 -72
  58. package/lib/clang/16/include/avx2intrin.h +0 -1148
  59. package/lib/clang/16/include/bmi2intrin.h +0 -81
  60. package/lib/clang/16/include/fmaintrin.h +0 -216
  61. package/lib/clang/16/include/hlsl/hlsl_intrinsics.h +0 -223
  62. package/lib/clang/16/include/mwaitxintrin.h +0 -33
  63. package/lib/clang/16/include/rdseedintrin.h +0 -42
  64. package/lib/clang/16/include/riscv_vector.h +0 -211
  65. package/lib/clang/16/include/shaintrin.h +0 -61
  66. package/lib/clang/16/include/xsavecintrin.h +0 -34
  67. /package/lib/clang/{16 → 17}/include/__clang_cuda_builtin_vars.h +0 -0
  68. /package/lib/clang/{16 → 17}/include/__clang_cuda_cmath.h +0 -0
  69. /package/lib/clang/{16 → 17}/include/__clang_cuda_complex_builtins.h +0 -0
  70. /package/lib/clang/{16 → 17}/include/__clang_cuda_device_functions.h +0 -0
  71. /package/lib/clang/{16 → 17}/include/__clang_cuda_libdevice_declares.h +0 -0
  72. /package/lib/clang/{16 → 17}/include/__clang_cuda_math_forward_declares.h +0 -0
  73. /package/lib/clang/{16 → 17}/include/__clang_cuda_runtime_wrapper.h +0 -0
  74. /package/lib/clang/{16 → 17}/include/__clang_cuda_texture_intrinsics.h +0 -0
  75. /package/lib/clang/{16 → 17}/include/__clang_hip_stdlib.h +0 -0
  76. /package/lib/clang/{16 → 17}/include/__stddef_max_align_t.h +0 -0
  77. /package/lib/clang/{16 → 17}/include/__wmmintrin_aes.h +0 -0
  78. /package/lib/clang/{16 → 17}/include/__wmmintrin_pclmul.h +0 -0
  79. /package/lib/clang/{16 → 17}/include/ammintrin.h +0 -0
  80. /package/lib/clang/{16 → 17}/include/amxfp16intrin.h +0 -0
  81. /package/lib/clang/{16 → 17}/include/amxintrin.h +0 -0
  82. /package/lib/clang/{16 → 17}/include/arm64intr.h +0 -0
  83. /package/lib/clang/{16 → 17}/include/arm_bf16.h +0 -0
  84. /package/lib/clang/{16 → 17}/include/arm_cde.h +0 -0
  85. /package/lib/clang/{16 → 17}/include/arm_cmse.h +0 -0
  86. /package/lib/clang/{16 → 17}/include/arm_fp16.h +0 -0
  87. /package/lib/clang/{16 → 17}/include/arm_mve.h +0 -0
  88. /package/lib/clang/{16 → 17}/include/arm_neon_sve_bridge.h +0 -0
  89. /package/lib/clang/{16 → 17}/include/armintr.h +0 -0
  90. /package/lib/clang/{16 → 17}/include/avx512bf16intrin.h +0 -0
  91. /package/lib/clang/{16 → 17}/include/avx512bitalgintrin.h +0 -0
  92. /package/lib/clang/{16 → 17}/include/avx512bwintrin.h +0 -0
  93. /package/lib/clang/{16 → 17}/include/avx512cdintrin.h +0 -0
  94. /package/lib/clang/{16 → 17}/include/avx512dqintrin.h +0 -0
  95. /package/lib/clang/{16 → 17}/include/avx512erintrin.h +0 -0
  96. /package/lib/clang/{16 → 17}/include/avx512ifmaintrin.h +0 -0
  97. /package/lib/clang/{16 → 17}/include/avx512ifmavlintrin.h +0 -0
  98. /package/lib/clang/{16 → 17}/include/avx512pfintrin.h +0 -0
  99. /package/lib/clang/{16 → 17}/include/avx512vbmi2intrin.h +0 -0
  100. /package/lib/clang/{16 → 17}/include/avx512vbmiintrin.h +0 -0
  101. /package/lib/clang/{16 → 17}/include/avx512vbmivlintrin.h +0 -0
  102. /package/lib/clang/{16 → 17}/include/avx512vlbf16intrin.h +0 -0
  103. /package/lib/clang/{16 → 17}/include/avx512vlbitalgintrin.h +0 -0
  104. /package/lib/clang/{16 → 17}/include/avx512vlbwintrin.h +0 -0
  105. /package/lib/clang/{16 → 17}/include/avx512vlcdintrin.h +0 -0
  106. /package/lib/clang/{16 → 17}/include/avx512vldqintrin.h +0 -0
  107. /package/lib/clang/{16 → 17}/include/avx512vlfp16intrin.h +0 -0
  108. /package/lib/clang/{16 → 17}/include/avx512vlintrin.h +0 -0
  109. /package/lib/clang/{16 → 17}/include/avx512vlvbmi2intrin.h +0 -0
  110. /package/lib/clang/{16 → 17}/include/avx512vlvnniintrin.h +0 -0
  111. /package/lib/clang/{16 → 17}/include/avx512vlvp2intersectintrin.h +0 -0
  112. /package/lib/clang/{16 → 17}/include/avx512vnniintrin.h +0 -0
  113. /package/lib/clang/{16 → 17}/include/avx512vp2intersectintrin.h +0 -0
  114. /package/lib/clang/{16 → 17}/include/avx512vpopcntdqintrin.h +0 -0
  115. /package/lib/clang/{16 → 17}/include/avx512vpopcntdqvlintrin.h +0 -0
  116. /package/lib/clang/{16 → 17}/include/avxifmaintrin.h +0 -0
  117. /package/lib/clang/{16 → 17}/include/avxneconvertintrin.h +0 -0
  118. /package/lib/clang/{16 → 17}/include/avxvnniint8intrin.h +0 -0
  119. /package/lib/clang/{16 → 17}/include/avxvnniintrin.h +0 -0
  120. /package/lib/clang/{16 → 17}/include/bmiintrin.h +0 -0
  121. /package/lib/clang/{16 → 17}/include/builtins.h +0 -0
  122. /package/lib/clang/{16 → 17}/include/cet.h +0 -0
  123. /package/lib/clang/{16 → 17}/include/cetintrin.h +0 -0
  124. /package/lib/clang/{16 → 17}/include/cldemoteintrin.h +0 -0
  125. /package/lib/clang/{16 → 17}/include/clwbintrin.h +0 -0
  126. /package/lib/clang/{16 → 17}/include/cmpccxaddintrin.h +0 -0
  127. /package/lib/clang/{16 → 17}/include/cpuid.h +0 -0
  128. /package/lib/clang/{16 → 17}/include/crc32intrin.h +0 -0
  129. /package/lib/clang/{16 → 17}/include/cuda_wrappers/algorithm +0 -0
  130. /package/lib/clang/{16 → 17}/include/cuda_wrappers/cmath +0 -0
  131. /package/lib/clang/{16 → 17}/include/cuda_wrappers/complex +0 -0
  132. /package/lib/clang/{16 → 17}/include/cuda_wrappers/new +0 -0
  133. /package/lib/clang/{16 → 17}/include/emmintrin.h +0 -0
  134. /package/lib/clang/{16 → 17}/include/enqcmdintrin.h +0 -0
  135. /package/lib/clang/{16 → 17}/include/f16cintrin.h +0 -0
  136. /package/lib/clang/{16 → 17}/include/float.h +0 -0
  137. /package/lib/clang/{16 → 17}/include/fma4intrin.h +0 -0
  138. /package/lib/clang/{16 → 17}/include/fxsrintrin.h +0 -0
  139. /package/lib/clang/{16 → 17}/include/gfniintrin.h +0 -0
  140. /package/lib/clang/{16 → 17}/include/hexagon_circ_brev_intrinsics.h +0 -0
  141. /package/lib/clang/{16 → 17}/include/hexagon_protos.h +0 -0
  142. /package/lib/clang/{16 → 17}/include/hexagon_types.h +0 -0
  143. /package/lib/clang/{16 → 17}/include/hlsl/hlsl_basic_types.h +0 -0
  144. /package/lib/clang/{16 → 17}/include/hlsl.h +0 -0
  145. /package/lib/clang/{16 → 17}/include/hresetintrin.h +0 -0
  146. /package/lib/clang/{16 → 17}/include/htmintrin.h +0 -0
  147. /package/lib/clang/{16 → 17}/include/htmxlintrin.h +0 -0
  148. /package/lib/clang/{16 → 17}/include/hvx_hexagon_protos.h +0 -0
  149. /package/lib/clang/{16 → 17}/include/ia32intrin.h +0 -0
  150. /package/lib/clang/{16 → 17}/include/intrin.h +0 -0
  151. /package/lib/clang/{16 → 17}/include/inttypes.h +0 -0
  152. /package/lib/clang/{16 → 17}/include/invpcidintrin.h +0 -0
  153. /package/lib/clang/{16 → 17}/include/iso646.h +0 -0
  154. /package/lib/clang/{16 → 17}/include/keylockerintrin.h +0 -0
  155. /package/lib/clang/{16 → 17}/include/larchintrin.h +0 -0
  156. /package/lib/clang/{16 → 17}/include/lwpintrin.h +0 -0
  157. /package/lib/clang/{16 → 17}/include/lzcntintrin.h +0 -0
  158. /package/lib/clang/{16 → 17}/include/mm3dnow.h +0 -0
  159. /package/lib/clang/{16 → 17}/include/mm_malloc.h +0 -0
  160. /package/lib/clang/{16 → 17}/include/mmintrin.h +0 -0
  161. /package/lib/clang/{16 → 17}/include/module.modulemap +0 -0
  162. /package/lib/clang/{16 → 17}/include/movdirintrin.h +0 -0
  163. /package/lib/clang/{16 → 17}/include/msa.h +0 -0
  164. /package/lib/clang/{16 → 17}/include/nmmintrin.h +0 -0
  165. /package/lib/clang/{16 → 17}/include/opencl-c.h +0 -0
  166. /package/lib/clang/{16 → 17}/include/openmp_wrappers/cmath +0 -0
  167. /package/lib/clang/{16 → 17}/include/openmp_wrappers/complex +0 -0
  168. /package/lib/clang/{16 → 17}/include/openmp_wrappers/complex.h +0 -0
  169. /package/lib/clang/{16 → 17}/include/openmp_wrappers/complex_cmath.h +0 -0
  170. /package/lib/clang/{16 → 17}/include/openmp_wrappers/math.h +0 -0
  171. /package/lib/clang/{16 → 17}/include/pconfigintrin.h +0 -0
  172. /package/lib/clang/{16 → 17}/include/pkuintrin.h +0 -0
  173. /package/lib/clang/{16 → 17}/include/popcntintrin.h +0 -0
  174. /package/lib/clang/{16 → 17}/include/ppc_wrappers/bmi2intrin.h +0 -0
  175. /package/lib/clang/{16 → 17}/include/ppc_wrappers/bmiintrin.h +0 -0
  176. /package/lib/clang/{16 → 17}/include/ppc_wrappers/immintrin.h +0 -0
  177. /package/lib/clang/{16 → 17}/include/ppc_wrappers/mm_malloc.h +0 -0
  178. /package/lib/clang/{16 → 17}/include/ppc_wrappers/mmintrin.h +0 -0
  179. /package/lib/clang/{16 → 17}/include/ppc_wrappers/pmmintrin.h +0 -0
  180. /package/lib/clang/{16 → 17}/include/ppc_wrappers/tmmintrin.h +0 -0
  181. /package/lib/clang/{16 → 17}/include/ppc_wrappers/x86gprintrin.h +0 -0
  182. /package/lib/clang/{16 → 17}/include/ppc_wrappers/x86intrin.h +0 -0
  183. /package/lib/clang/{16 → 17}/include/ppc_wrappers/xmmintrin.h +0 -0
  184. /package/lib/clang/{16 → 17}/include/prfchiintrin.h +0 -0
  185. /package/lib/clang/{16 → 17}/include/prfchwintrin.h +0 -0
  186. /package/lib/clang/{16 → 17}/include/ptwriteintrin.h +0 -0
  187. /package/lib/clang/{16 → 17}/include/raointintrin.h +0 -0
  188. /package/lib/clang/{16 → 17}/include/rdpruintrin.h +0 -0
  189. /package/lib/clang/{16 → 17}/include/rtmintrin.h +0 -0
  190. /package/lib/clang/{16 → 17}/include/s390intrin.h +0 -0
  191. /package/lib/clang/{16 → 17}/include/serializeintrin.h +0 -0
  192. /package/lib/clang/{16 → 17}/include/sgxintrin.h +0 -0
  193. /package/lib/clang/{16 → 17}/include/smmintrin.h +0 -0
  194. /package/lib/clang/{16 → 17}/include/stdarg.h +0 -0
  195. /package/lib/clang/{16 → 17}/include/stdbool.h +0 -0
  196. /package/lib/clang/{16 → 17}/include/stdint.h +0 -0
  197. /package/lib/clang/{16 → 17}/include/stdnoreturn.h +0 -0
  198. /package/lib/clang/{16 → 17}/include/tbmintrin.h +0 -0
  199. /package/lib/clang/{16 → 17}/include/tgmath.h +0 -0
  200. /package/lib/clang/{16 → 17}/include/tmmintrin.h +0 -0
  201. /package/lib/clang/{16 → 17}/include/tsxldtrkintrin.h +0 -0
  202. /package/lib/clang/{16 → 17}/include/uintrintrin.h +0 -0
  203. /package/lib/clang/{16 → 17}/include/unwind.h +0 -0
  204. /package/lib/clang/{16 → 17}/include/vadefs.h +0 -0
  205. /package/lib/clang/{16 → 17}/include/vaesintrin.h +0 -0
  206. /package/lib/clang/{16 → 17}/include/varargs.h +0 -0
  207. /package/lib/clang/{16 → 17}/include/vecintrin.h +0 -0
  208. /package/lib/clang/{16 → 17}/include/velintrin.h +0 -0
  209. /package/lib/clang/{16 → 17}/include/velintrin_approx.h +0 -0
  210. /package/lib/clang/{16 → 17}/include/velintrin_gen.h +0 -0
  211. /package/lib/clang/{16 → 17}/include/vpclmulqdqintrin.h +0 -0
  212. /package/lib/clang/{16 → 17}/include/waitpkgintrin.h +0 -0
  213. /package/lib/clang/{16 → 17}/include/wbnoinvdintrin.h +0 -0
  214. /package/lib/clang/{16 → 17}/include/wmmintrin.h +0 -0
  215. /package/lib/clang/{16 → 17}/include/x86gprintrin.h +0 -0
  216. /package/lib/clang/{16 → 17}/include/x86intrin.h +0 -0
  217. /package/lib/clang/{16 → 17}/include/xmmintrin.h +0 -0
  218. /package/lib/clang/{16 → 17}/include/xopintrin.h +0 -0
  219. /package/lib/clang/{16 → 17}/include/xsaveintrin.h +0 -0
  220. /package/lib/clang/{16 → 17}/include/xsaveoptintrin.h +0 -0
  221. /package/lib/clang/{16 → 17}/include/xsavesintrin.h +0 -0
  222. /package/lib/clang/{16 → 17}/include/xtestintrin.h +0 -0
@@ -0,0 +1,255 @@
1
+ /*===---- bmi2intrin.h - BMI2 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 __IMMINTRIN_H
11
+ #error "Never use <bmi2intrin.h> directly; include <immintrin.h> instead."
12
+ #endif
13
+
14
+ #ifndef __BMI2INTRIN_H
15
+ #define __BMI2INTRIN_H
16
+
17
+ /* Define the default attributes for the functions in this file. */
18
+ #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("bmi2")))
19
+
20
+ /// Copies the unsigned 32-bit integer \a __X and zeroes the upper bits
21
+ /// starting at bit number \a __Y.
22
+ ///
23
+ /// \code{.operation}
24
+ /// i := __Y[7:0]
25
+ /// result := __X
26
+ /// IF i < 32
27
+ /// result[31:i] := 0
28
+ /// FI
29
+ /// \endcode
30
+ ///
31
+ /// \headerfile <immintrin.h>
32
+ ///
33
+ /// This intrinsic corresponds to the \c BZHI instruction.
34
+ ///
35
+ /// \param __X
36
+ /// The 32-bit source value to copy.
37
+ /// \param __Y
38
+ /// The lower 8 bits specify the bit number of the lowest bit to zero.
39
+ /// \returns The partially zeroed 32-bit value.
40
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
41
+ _bzhi_u32(unsigned int __X, unsigned int __Y)
42
+ {
43
+ return __builtin_ia32_bzhi_si(__X, __Y);
44
+ }
45
+
46
+ /// Deposit (scatter) low-order bits from the unsigned 32-bit integer \a __X
47
+ /// into the 32-bit result, according to the mask in the unsigned 32-bit
48
+ /// integer \a __Y. All other bits of the result are zero.
49
+ ///
50
+ /// \code{.operation}
51
+ /// i := 0
52
+ /// result := 0
53
+ /// FOR m := 0 TO 31
54
+ /// IF __Y[m] == 1
55
+ /// result[m] := __X[i]
56
+ /// i := i + 1
57
+ /// ENDIF
58
+ /// ENDFOR
59
+ /// \endcode
60
+ ///
61
+ /// \headerfile <immintrin.h>
62
+ ///
63
+ /// This intrinsic corresponds to the \c PDEP instruction.
64
+ ///
65
+ /// \param __X
66
+ /// The 32-bit source value to copy.
67
+ /// \param __Y
68
+ /// The 32-bit mask specifying where to deposit source bits.
69
+ /// \returns The 32-bit result.
70
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
71
+ _pdep_u32(unsigned int __X, unsigned int __Y)
72
+ {
73
+ return __builtin_ia32_pdep_si(__X, __Y);
74
+ }
75
+
76
+ /// Extract (gather) bits from the unsigned 32-bit integer \a __X into the
77
+ /// low-order bits of the 32-bit result, according to the mask in the
78
+ /// unsigned 32-bit integer \a __Y. All other bits of the result are zero.
79
+ ///
80
+ /// \code{.operation}
81
+ /// i := 0
82
+ /// result := 0
83
+ /// FOR m := 0 TO 31
84
+ /// IF __Y[m] == 1
85
+ /// result[i] := __X[m]
86
+ /// i := i + 1
87
+ /// ENDIF
88
+ /// ENDFOR
89
+ /// \endcode
90
+ ///
91
+ /// \headerfile <immintrin.h>
92
+ ///
93
+ /// This intrinsic corresponds to the \c PEXT instruction.
94
+ ///
95
+ /// \param __X
96
+ /// The 32-bit source value to copy.
97
+ /// \param __Y
98
+ /// The 32-bit mask specifying which source bits to extract.
99
+ /// \returns The 32-bit result.
100
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
101
+ _pext_u32(unsigned int __X, unsigned int __Y)
102
+ {
103
+ return __builtin_ia32_pext_si(__X, __Y);
104
+ }
105
+
106
+ /// Multiplies the unsigned 32-bit integers \a __X and \a __Y to form a
107
+ /// 64-bit product. Stores the upper 32 bits of the product in the
108
+ /// memory at \a __P and returns the lower 32 bits.
109
+ ///
110
+ /// \code{.operation}
111
+ /// Store32(__P, (__X * __Y)[63:32])
112
+ /// result := (__X * __Y)[31:0]
113
+ /// \endcode
114
+ ///
115
+ /// \headerfile <immintrin.h>
116
+ ///
117
+ /// This intrinsic corresponds to the \c MULX instruction.
118
+ ///
119
+ /// \param __X
120
+ /// An unsigned 32-bit multiplicand.
121
+ /// \param __Y
122
+ /// An unsigned 32-bit multiplicand.
123
+ /// \param __P
124
+ /// A pointer to memory for storing the upper half of the product.
125
+ /// \returns The lower half of the product.
126
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
127
+ _mulx_u32(unsigned int __X, unsigned int __Y, unsigned int *__P)
128
+ {
129
+ unsigned long long __res = (unsigned long long) __X * __Y;
130
+ *__P = (unsigned int)(__res >> 32);
131
+ return (unsigned int)__res;
132
+ }
133
+
134
+ #ifdef __x86_64__
135
+
136
+ /// Copies the unsigned 64-bit integer \a __X and zeroes the upper bits
137
+ /// starting at bit number \a __Y.
138
+ ///
139
+ /// \code{.operation}
140
+ /// i := __Y[7:0]
141
+ /// result := __X
142
+ /// IF i < 64
143
+ /// result[63:i] := 0
144
+ /// FI
145
+ /// \endcode
146
+ ///
147
+ /// \headerfile <immintrin.h>
148
+ ///
149
+ /// This intrinsic corresponds to the \c BZHI instruction.
150
+ ///
151
+ /// \param __X
152
+ /// The 64-bit source value to copy.
153
+ /// \param __Y
154
+ /// The lower 8 bits specify the bit number of the lowest bit to zero.
155
+ /// \returns The partially zeroed 64-bit value.
156
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
157
+ _bzhi_u64(unsigned long long __X, unsigned long long __Y)
158
+ {
159
+ return __builtin_ia32_bzhi_di(__X, __Y);
160
+ }
161
+
162
+ /// Deposit (scatter) low-order bits from the unsigned 64-bit integer \a __X
163
+ /// into the 64-bit result, according to the mask in the unsigned 64-bit
164
+ /// integer \a __Y. All other bits of the result are zero.
165
+ ///
166
+ /// \code{.operation}
167
+ /// i := 0
168
+ /// result := 0
169
+ /// FOR m := 0 TO 63
170
+ /// IF __Y[m] == 1
171
+ /// result[m] := __X[i]
172
+ /// i := i + 1
173
+ /// ENDIF
174
+ /// ENDFOR
175
+ /// \endcode
176
+ ///
177
+ /// \headerfile <immintrin.h>
178
+ ///
179
+ /// This intrinsic corresponds to the \c PDEP instruction.
180
+ ///
181
+ /// \param __X
182
+ /// The 64-bit source value to copy.
183
+ /// \param __Y
184
+ /// The 64-bit mask specifying where to deposit source bits.
185
+ /// \returns The 64-bit result.
186
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
187
+ _pdep_u64(unsigned long long __X, unsigned long long __Y)
188
+ {
189
+ return __builtin_ia32_pdep_di(__X, __Y);
190
+ }
191
+
192
+ /// Extract (gather) bits from the unsigned 64-bit integer \a __X into the
193
+ /// low-order bits of the 64-bit result, according to the mask in the
194
+ /// unsigned 64-bit integer \a __Y. All other bits of the result are zero.
195
+ ///
196
+ /// \code{.operation}
197
+ /// i := 0
198
+ /// result := 0
199
+ /// FOR m := 0 TO 63
200
+ /// IF __Y[m] == 1
201
+ /// result[i] := __X[m]
202
+ /// i := i + 1
203
+ /// ENDIF
204
+ /// ENDFOR
205
+ /// \endcode
206
+ ///
207
+ /// \headerfile <immintrin.h>
208
+ ///
209
+ /// This intrinsic corresponds to the \c PEXT instruction.
210
+ ///
211
+ /// \param __X
212
+ /// The 64-bit source value to copy.
213
+ /// \param __Y
214
+ /// The 64-bit mask specifying which source bits to extract.
215
+ /// \returns The 64-bit result.
216
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
217
+ _pext_u64(unsigned long long __X, unsigned long long __Y)
218
+ {
219
+ return __builtin_ia32_pext_di(__X, __Y);
220
+ }
221
+
222
+ /// Multiplies the unsigned 64-bit integers \a __X and \a __Y to form a
223
+ /// 128-bit product. Stores the upper 64 bits of the product to the
224
+ /// memory addressed by \a __P and returns the lower 64 bits.
225
+ ///
226
+ /// \code{.operation}
227
+ /// Store64(__P, (__X * __Y)[127:64])
228
+ /// result := (__X * __Y)[63:0]
229
+ /// \endcode
230
+ ///
231
+ /// \headerfile <immintrin.h>
232
+ ///
233
+ /// This intrinsic corresponds to the \c MULX instruction.
234
+ ///
235
+ /// \param __X
236
+ /// An unsigned 64-bit multiplicand.
237
+ /// \param __Y
238
+ /// An unsigned 64-bit multiplicand.
239
+ /// \param __P
240
+ /// A pointer to memory for storing the upper half of the product.
241
+ /// \returns The lower half of the product.
242
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
243
+ _mulx_u64 (unsigned long long __X, unsigned long long __Y,
244
+ unsigned long long *__P)
245
+ {
246
+ unsigned __int128 __res = (unsigned __int128) __X * __Y;
247
+ *__P = (unsigned long long) (__res >> 64);
248
+ return (unsigned long long) __res;
249
+ }
250
+
251
+ #endif /* __x86_64__ */
252
+
253
+ #undef __DEFAULT_FN_ATTRS
254
+
255
+ #endif /* __BMI2INTRIN_H */
@@ -17,6 +17,15 @@
17
17
  /* Define the default attributes for the functions in this file. */
18
18
  #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("clflushopt")))
19
19
 
20
+ /// Invalidates all levels of the cache hierarchy and flushes modified data to
21
+ /// memory for the cache line specified by the address \a __m.
22
+ ///
23
+ /// \headerfile <immintrin.h>
24
+ ///
25
+ /// This intrinsic corresponds to the \c CLFLUSHOPT instruction.
26
+ ///
27
+ /// \param __m
28
+ /// An address within the cache line to flush and invalidate.
20
29
  static __inline__ void __DEFAULT_FN_ATTRS
21
30
  _mm_clflushopt(void const * __m) {
22
31
  __builtin_ia32_clflushopt(__m);
@@ -6,7 +6,7 @@
6
6
  *
7
7
  *===-----------------------------------------------------------------------===
8
8
  */
9
- #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H
9
+ #ifndef __X86INTRIN_H
10
10
  #error "Never use <clzerointrin.h> directly; include <x86intrin.h> instead."
11
11
  #endif
12
12
 
@@ -17,14 +17,16 @@
17
17
  #define __DEFAULT_FN_ATTRS \
18
18
  __attribute__((__always_inline__, __nodebug__, __target__("clzero")))
19
19
 
20
- /// Loads the cache line address and zero's out the cacheline
20
+ /// Zeroes out the cache line for the address \a __line. This uses a
21
+ /// non-temporal store. Calling \c _mm_sfence() afterward might be needed
22
+ /// to enforce ordering.
21
23
  ///
22
- /// \headerfile <clzerointrin.h>
24
+ /// \headerfile <x86intrin.h>
23
25
  ///
24
- /// This intrinsic corresponds to the <c> CLZERO </c> instruction.
26
+ /// This intrinsic corresponds to the \c CLZERO instruction.
25
27
  ///
26
28
  /// \param __line
27
- /// A pointer to a cacheline which needs to be zeroed out.
29
+ /// An address within the cache line to zero out.
28
30
  static __inline__ void __DEFAULT_FN_ATTRS
29
31
  _mm_clzero (void * __line)
30
32
  {
@@ -0,0 +1,9 @@
1
+ // CUDA headers define __noinline__ which interferes with libstdc++'s use of
2
+ // `__attribute((__noinline__))`. In order to avoid compilation error,
3
+ // temporarily unset __noinline__ when we include affected libstdc++ header.
4
+
5
+ #pragma push_macro("__noinline__")
6
+ #undef __noinline__
7
+ #include_next "bits/basic_string.h"
8
+
9
+ #pragma pop_macro("__noinline__")
@@ -0,0 +1,9 @@
1
+ // CUDA headers define __noinline__ which interferes with libstdc++'s use of
2
+ // `__attribute((__noinline__))`. In order to avoid compilation error,
3
+ // temporarily unset __noinline__ when we include affected libstdc++ header.
4
+
5
+ #pragma push_macro("__noinline__")
6
+ #undef __noinline__
7
+ #include_next "bits/basic_string.tcc"
8
+
9
+ #pragma pop_macro("__noinline__")
@@ -0,0 +1,9 @@
1
+ // CUDA headers define __noinline__ which interferes with libstdc++'s use of
2
+ // `__attribute((__noinline__))`. In order to avoid compilation error,
3
+ // temporarily unset __noinline__ when we include affected libstdc++ header.
4
+
5
+ #pragma push_macro("__noinline__")
6
+ #undef __noinline__
7
+ #include_next "bits/shared_ptr_base.h"
8
+
9
+ #pragma pop_macro("__noinline__")