llvm-runtime-resources-darwin 0.0.0 → 22.1.8

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 (350) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +33 -0
  3. package/include/__clang_cuda_builtin_vars.h +121 -0
  4. package/include/__clang_cuda_cmath.h +512 -0
  5. package/include/__clang_cuda_complex_builtins.h +229 -0
  6. package/include/__clang_cuda_device_functions.h +1572 -0
  7. package/include/__clang_cuda_intrinsics.h +994 -0
  8. package/include/__clang_cuda_libdevice_declares.h +468 -0
  9. package/include/__clang_cuda_math.h +353 -0
  10. package/include/__clang_cuda_math_forward_declares.h +284 -0
  11. package/include/__clang_cuda_runtime_wrapper.h +522 -0
  12. package/include/__clang_cuda_texture_intrinsics.h +1177 -0
  13. package/include/__clang_hip_cmath.h +848 -0
  14. package/include/__clang_hip_libdevice_declares.h +340 -0
  15. package/include/__clang_hip_math.h +1405 -0
  16. package/include/__clang_hip_runtime_wrapper.h +165 -0
  17. package/include/__clang_hip_stdlib.h +43 -0
  18. package/include/__clang_spirv_builtins.h +217 -0
  19. package/include/__float_float.h +176 -0
  20. package/include/__float_header_macro.h +12 -0
  21. package/include/__float_infinity_nan.h +20 -0
  22. package/include/__stdarg___gnuc_va_list.h +13 -0
  23. package/include/__stdarg___va_copy.h +12 -0
  24. package/include/__stdarg_header_macro.h +12 -0
  25. package/include/__stdarg_va_arg.h +22 -0
  26. package/include/__stdarg_va_copy.h +12 -0
  27. package/include/__stdarg_va_list.h +13 -0
  28. package/include/__stddef_header_macro.h +12 -0
  29. package/include/__stddef_max_align_t.h +27 -0
  30. package/include/__stddef_null.h +29 -0
  31. package/include/__stddef_nullptr_t.h +29 -0
  32. package/include/__stddef_offsetof.h +17 -0
  33. package/include/__stddef_ptrdiff_t.h +20 -0
  34. package/include/__stddef_rsize_t.h +20 -0
  35. package/include/__stddef_size_t.h +20 -0
  36. package/include/__stddef_unreachable.h +21 -0
  37. package/include/__stddef_wchar_t.h +28 -0
  38. package/include/__stddef_wint_t.h +15 -0
  39. package/include/__wmmintrin_aes.h +140 -0
  40. package/include/__wmmintrin_pclmul.h +48 -0
  41. package/include/adcintrin.h +165 -0
  42. package/include/adxintrin.h +107 -0
  43. package/include/altivec.h +19364 -0
  44. package/include/amdgpuintrin.h +191 -0
  45. package/include/ammintrin.h +183 -0
  46. package/include/amo.h +131 -0
  47. package/include/amxavx512intrin.h +596 -0
  48. package/include/amxcomplexintrin.h +167 -0
  49. package/include/amxfp16intrin.h +93 -0
  50. package/include/amxfp8intrin.h +230 -0
  51. package/include/amxintrin.h +492 -0
  52. package/include/amxmovrsintrin.h +48 -0
  53. package/include/amxtf32intrin.h +108 -0
  54. package/include/andes_vector.h +16 -0
  55. package/include/arm64intr.h +35 -0
  56. package/include/arm_acle.h +865 -0
  57. package/include/arm_bf16.h +20 -0
  58. package/include/arm_cde.h +410 -0
  59. package/include/arm_cmse.h +217 -0
  60. package/include/arm_fp16.h +596 -0
  61. package/include/arm_mve.h +19187 -0
  62. package/include/arm_neon.h +74183 -0
  63. package/include/arm_neon_sve_bridge.h +182 -0
  64. package/include/arm_sme.h +3741 -0
  65. package/include/arm_sve.h +32278 -0
  66. package/include/arm_vector_types.h +432 -0
  67. package/include/armintr.h +31 -0
  68. package/include/avx10_2_512bf16intrin.h +568 -0
  69. package/include/avx10_2_512convertintrin.h +322 -0
  70. package/include/avx10_2_512minmaxintrin.h +127 -0
  71. package/include/avx10_2_512niintrin.h +314 -0
  72. package/include/avx10_2_512satcvtdsintrin.h +307 -0
  73. package/include/avx10_2_512satcvtintrin.h +301 -0
  74. package/include/avx10_2bf16intrin.h +1094 -0
  75. package/include/avx10_2convertintrin.h +3257 -0
  76. package/include/avx10_2copyintrin.h +66 -0
  77. package/include/avx10_2minmaxintrin.h +232 -0
  78. package/include/avx10_2niintrin.h +409 -0
  79. package/include/avx10_2satcvtdsintrin.h +376 -0
  80. package/include/avx10_2satcvtintrin.h +312 -0
  81. package/include/avx2intrin.h +5191 -0
  82. package/include/avx512bf16intrin.h +292 -0
  83. package/include/avx512bitalgintrin.h +75 -0
  84. package/include/avx512bwintrin.h +1895 -0
  85. package/include/avx512cdintrin.h +112 -0
  86. package/include/avx512dqintrin.h +1350 -0
  87. package/include/avx512fintrin.h +9378 -0
  88. package/include/avx512fp16intrin.h +3355 -0
  89. package/include/avx512ifmaintrin.h +68 -0
  90. package/include/avx512ifmavlintrin.h +138 -0
  91. package/include/avx512vbmi2intrin.h +368 -0
  92. package/include/avx512vbmiintrin.h +98 -0
  93. package/include/avx512vbmivlintrin.h +179 -0
  94. package/include/avx512vlbf16intrin.h +527 -0
  95. package/include/avx512vlbitalgintrin.h +135 -0
  96. package/include/avx512vlbwintrin.h +3064 -0
  97. package/include/avx512vlcdintrin.h +202 -0
  98. package/include/avx512vldqintrin.h +1156 -0
  99. package/include/avx512vlfp16intrin.h +2090 -0
  100. package/include/avx512vlintrin.h +8083 -0
  101. package/include/avx512vlvbmi2intrin.h +710 -0
  102. package/include/avx512vlvnniintrin.h +313 -0
  103. package/include/avx512vlvp2intersectintrin.h +123 -0
  104. package/include/avx512vnniintrin.h +116 -0
  105. package/include/avx512vp2intersectintrin.h +77 -0
  106. package/include/avx512vpopcntdqintrin.h +62 -0
  107. package/include/avx512vpopcntdqvlintrin.h +105 -0
  108. package/include/avxifmaintrin.h +193 -0
  109. package/include/avxintrin.h +5064 -0
  110. package/include/avxneconvertintrin.h +484 -0
  111. package/include/avxvnniint16intrin.h +451 -0
  112. package/include/avxvnniint8intrin.h +454 -0
  113. package/include/avxvnniintrin.h +233 -0
  114. package/include/bmi2intrin.h +253 -0
  115. package/include/bmiintrin.h +604 -0
  116. package/include/builtins.h +19 -0
  117. package/include/cet.h +66 -0
  118. package/include/cetintrin.h +115 -0
  119. package/include/cldemoteintrin.h +36 -0
  120. package/include/clflushoptintrin.h +36 -0
  121. package/include/clwbintrin.h +38 -0
  122. package/include/clzerointrin.h +38 -0
  123. package/include/cmpccxaddintrin.h +70 -0
  124. package/include/cpuid.h +451 -0
  125. package/include/crc32intrin.h +100 -0
  126. package/include/cuda_wrappers/__utility/declval.h +28 -0
  127. package/include/cuda_wrappers/algorithm +116 -0
  128. package/include/cuda_wrappers/bits/basic_string.h +9 -0
  129. package/include/cuda_wrappers/bits/basic_string.tcc +9 -0
  130. package/include/cuda_wrappers/bits/c++config.h +61 -0
  131. package/include/cuda_wrappers/bits/shared_ptr_base.h +9 -0
  132. package/include/cuda_wrappers/cmath +44 -0
  133. package/include/cuda_wrappers/complex +90 -0
  134. package/include/cuda_wrappers/new +108 -0
  135. package/include/emmintrin.h +4940 -0
  136. package/include/enqcmdintrin.h +63 -0
  137. package/include/f16cintrin.h +176 -0
  138. package/include/float.h +48 -0
  139. package/include/fma4intrin.h +220 -0
  140. package/include/fmaintrin.h +826 -0
  141. package/include/fuzzer/FuzzedDataProvider.h +397 -0
  142. package/include/fxsrintrin.h +91 -0
  143. package/include/gfniintrin.h +238 -0
  144. package/include/gpuintrin.h +330 -0
  145. package/include/hexagon_circ_brev_intrinsics.h +298 -0
  146. package/include/hexagon_protos.h +8439 -0
  147. package/include/hexagon_types.h +2628 -0
  148. package/include/hresetintrin.h +49 -0
  149. package/include/htmintrin.h +212 -0
  150. package/include/htmxlintrin.h +345 -0
  151. package/include/hvx_hexagon_protos.h +5399 -0
  152. package/include/ia32intrin.h +863 -0
  153. package/include/immintrin.h +595 -0
  154. package/include/intrin.h +491 -0
  155. package/include/intrin0.h +256 -0
  156. package/include/inttypes.h +101 -0
  157. package/include/invpcidintrin.h +23 -0
  158. package/include/iso646.h +31 -0
  159. package/include/keylockerintrin.h +518 -0
  160. package/include/larchintrin.h +260 -0
  161. package/include/lasxintrin.h +3999 -0
  162. package/include/limits.h +133 -0
  163. package/include/llvm_libc_wrappers/assert.h +32 -0
  164. package/include/llvm_libc_wrappers/ctype.h +28 -0
  165. package/include/llvm_libc_wrappers/inttypes.h +32 -0
  166. package/include/llvm_libc_wrappers/stdio.h +52 -0
  167. package/include/llvm_libc_wrappers/stdlib.h +32 -0
  168. package/include/llvm_libc_wrappers/string.h +28 -0
  169. package/include/llvm_libc_wrappers/time.h +28 -0
  170. package/include/llvm_offload_wrappers/__llvm_offload.h +31 -0
  171. package/include/llvm_offload_wrappers/__llvm_offload_device.h +10 -0
  172. package/include/llvm_offload_wrappers/__llvm_offload_host.h +15 -0
  173. package/include/lsxintrin.h +3752 -0
  174. package/include/lwpintrin.h +136 -0
  175. package/include/lzcntintrin.h +109 -0
  176. package/include/mm3dnow.h +22 -0
  177. package/include/mm_malloc.h +67 -0
  178. package/include/mmintrin.h +1541 -0
  179. package/include/module.modulemap +360 -0
  180. package/include/movdirintrin.h +49 -0
  181. package/include/movrs_avx10_2_512intrin.h +98 -0
  182. package/include/movrs_avx10_2intrin.h +174 -0
  183. package/include/movrsintrin.h +59 -0
  184. package/include/msa.h +573 -0
  185. package/include/mwaitxintrin.h +62 -0
  186. package/include/nmmintrin.h +20 -0
  187. package/include/nvptxintrin.h +219 -0
  188. package/include/opencl-c-base.h +758 -0
  189. package/include/opencl-c.h +18676 -0
  190. package/include/openmp_wrappers/__clang_openmp_device_functions.h +104 -0
  191. package/include/openmp_wrappers/cmath +132 -0
  192. package/include/openmp_wrappers/complex +55 -0
  193. package/include/openmp_wrappers/complex.h +35 -0
  194. package/include/openmp_wrappers/complex_cmath.h +393 -0
  195. package/include/openmp_wrappers/math.h +61 -0
  196. package/include/openmp_wrappers/new +48 -0
  197. package/include/pconfigintrin.h +40 -0
  198. package/include/pkuintrin.h +34 -0
  199. package/include/pmmintrin.h +302 -0
  200. package/include/popcntintrin.h +59 -0
  201. package/include/ppc_wrappers/bmi2intrin.h +134 -0
  202. package/include/ppc_wrappers/bmiintrin.h +165 -0
  203. package/include/ppc_wrappers/emmintrin.h +2269 -0
  204. package/include/ppc_wrappers/immintrin.h +27 -0
  205. package/include/ppc_wrappers/mm_malloc.h +45 -0
  206. package/include/ppc_wrappers/mmintrin.h +1453 -0
  207. package/include/ppc_wrappers/nmmintrin.h +26 -0
  208. package/include/ppc_wrappers/pmmintrin.h +145 -0
  209. package/include/ppc_wrappers/smmintrin.h +683 -0
  210. package/include/ppc_wrappers/tmmintrin.h +453 -0
  211. package/include/ppc_wrappers/x86gprintrin.h +17 -0
  212. package/include/ppc_wrappers/x86intrin.h +28 -0
  213. package/include/ppc_wrappers/xmmintrin.h +1827 -0
  214. package/include/prfchiintrin.h +61 -0
  215. package/include/prfchwintrin.h +57 -0
  216. package/include/profile/InstrProfData.inc +1001 -0
  217. package/include/profile/instr_prof_interface.h +88 -0
  218. package/include/ptrauth.h +407 -0
  219. package/include/ptwriteintrin.h +37 -0
  220. package/include/raointintrin.h +203 -0
  221. package/include/rdpruintrin.h +57 -0
  222. package/include/rdseedintrin.h +105 -0
  223. package/include/riscv_bitmanip.h +195 -0
  224. package/include/riscv_corev_alu.h +128 -0
  225. package/include/riscv_crypto.h +170 -0
  226. package/include/riscv_mips.h +34 -0
  227. package/include/riscv_nds.h +89 -0
  228. package/include/riscv_ntlh.h +26 -0
  229. package/include/riscv_vector.h +422 -0
  230. package/include/rtmintrin.h +45 -0
  231. package/include/s390intrin.h +25 -0
  232. package/include/sanitizer/allocator_interface.h +106 -0
  233. package/include/sanitizer/asan_interface.h +348 -0
  234. package/include/sanitizer/common_interface_defs.h +544 -0
  235. package/include/sanitizer/coverage_interface.h +36 -0
  236. package/include/sanitizer/dfsan_interface.h +220 -0
  237. package/include/sanitizer/hwasan_interface.h +109 -0
  238. package/include/sanitizer/linux_syscall_hooks.h +3112 -0
  239. package/include/sanitizer/lsan_interface.h +89 -0
  240. package/include/sanitizer/msan_interface.h +135 -0
  241. package/include/sanitizer/netbsd_syscall_hooks.h +5005 -0
  242. package/include/sanitizer/rtsan_interface.h +75 -0
  243. package/include/sanitizer/scudo_interface.h +38 -0
  244. package/include/sanitizer/tsan_interface.h +316 -0
  245. package/include/sanitizer/tsan_interface_atomic.h +223 -0
  246. package/include/sanitizer/ubsan_interface.h +34 -0
  247. package/include/serializeintrin.h +30 -0
  248. package/include/sgxintrin.h +60 -0
  249. package/include/sha512intrin.h +200 -0
  250. package/include/shaintrin.h +190 -0
  251. package/include/sifive_vector.h +174 -0
  252. package/include/sm3intrin.h +238 -0
  253. package/include/sm4evexintrin.h +32 -0
  254. package/include/sm4intrin.h +269 -0
  255. package/include/smmintrin.h +2352 -0
  256. package/include/spirvintrin.h +194 -0
  257. package/include/stdalign.h +24 -0
  258. package/include/stdarg.h +75 -0
  259. package/include/stdatomic.h +204 -0
  260. package/include/stdbool.h +39 -0
  261. package/include/stdckdint.h +42 -0
  262. package/include/stdcountof.h +15 -0
  263. package/include/stddef.h +139 -0
  264. package/include/stddefer.h +19 -0
  265. package/include/stdint.h +844 -0
  266. package/include/stdnoreturn.h +35 -0
  267. package/include/tbmintrin.h +128 -0
  268. package/include/tgmath.h +1368 -0
  269. package/include/tmmintrin.h +779 -0
  270. package/include/tsxldtrkintrin.h +56 -0
  271. package/include/uintrintrin.h +157 -0
  272. package/include/unwind.h +332 -0
  273. package/include/usermsrintrin.h +51 -0
  274. package/include/vadefs.h +51 -0
  275. package/include/vaesintrin.h +86 -0
  276. package/include/varargs.h +16 -0
  277. package/include/vecintrin.h +12868 -0
  278. package/include/velintrin.h +71 -0
  279. package/include/velintrin_approx.h +120 -0
  280. package/include/velintrin_gen.h +1257 -0
  281. package/include/vpclmulqdqintrin.h +30 -0
  282. package/include/waitpkgintrin.h +42 -0
  283. package/include/wasm_simd128.h +2143 -0
  284. package/include/wbnoinvdintrin.h +24 -0
  285. package/include/wmmintrin.h +23 -0
  286. package/include/x86gprintrin.h +49 -0
  287. package/include/x86intrin.h +35 -0
  288. package/include/xmmintrin.h +3175 -0
  289. package/include/xopintrin.h +780 -0
  290. package/include/xsavecintrin.h +84 -0
  291. package/include/xsaveintrin.h +63 -0
  292. package/include/xsaveoptintrin.h +34 -0
  293. package/include/xsavesintrin.h +44 -0
  294. package/include/xtestintrin.h +27 -0
  295. package/include/yvals_core.h +25 -0
  296. package/include/zos_wrappers/builtins.h +18 -0
  297. package/index.js +5 -0
  298. package/lib/darwin/libclang_rt.asan_abi_ios.a +0 -0
  299. package/lib/darwin/libclang_rt.asan_abi_iossim.a +0 -0
  300. package/lib/darwin/libclang_rt.asan_abi_osx.a +0 -0
  301. package/lib/darwin/libclang_rt.asan_ios_dynamic.dylib +0 -0
  302. package/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib +0 -0
  303. package/lib/darwin/libclang_rt.asan_osx_dynamic.dylib +0 -0
  304. package/lib/darwin/libclang_rt.cc_kext.a +0 -0
  305. package/lib/darwin/libclang_rt.cc_kext_ios.a +0 -0
  306. package/lib/darwin/libclang_rt.fuzzer_interceptors_ios.a +0 -0
  307. package/lib/darwin/libclang_rt.fuzzer_interceptors_iossim.a +0 -0
  308. package/lib/darwin/libclang_rt.fuzzer_interceptors_osx.a +0 -0
  309. package/lib/darwin/libclang_rt.fuzzer_ios.a +0 -0
  310. package/lib/darwin/libclang_rt.fuzzer_iossim.a +0 -0
  311. package/lib/darwin/libclang_rt.fuzzer_no_main_ios.a +0 -0
  312. package/lib/darwin/libclang_rt.fuzzer_no_main_iossim.a +0 -0
  313. package/lib/darwin/libclang_rt.fuzzer_no_main_osx.a +0 -0
  314. package/lib/darwin/libclang_rt.fuzzer_osx.a +0 -0
  315. package/lib/darwin/libclang_rt.ios.a +0 -0
  316. package/lib/darwin/libclang_rt.iossim.a +0 -0
  317. package/lib/darwin/libclang_rt.lsan_ios_dynamic.dylib +0 -0
  318. package/lib/darwin/libclang_rt.lsan_iossim_dynamic.dylib +0 -0
  319. package/lib/darwin/libclang_rt.lsan_osx_dynamic.dylib +0 -0
  320. package/lib/darwin/libclang_rt.osx.a +0 -0
  321. package/lib/darwin/libclang_rt.profile_ios.a +0 -0
  322. package/lib/darwin/libclang_rt.profile_iossim.a +0 -0
  323. package/lib/darwin/libclang_rt.profile_osx.a +0 -0
  324. package/lib/darwin/libclang_rt.rtsan_ios_dynamic.dylib +0 -0
  325. package/lib/darwin/libclang_rt.rtsan_iossim_dynamic.dylib +0 -0
  326. package/lib/darwin/libclang_rt.rtsan_osx_dynamic.dylib +0 -0
  327. package/lib/darwin/libclang_rt.stats_client_ios.a +0 -0
  328. package/lib/darwin/libclang_rt.stats_client_iossim.a +0 -0
  329. package/lib/darwin/libclang_rt.stats_client_osx.a +0 -0
  330. package/lib/darwin/libclang_rt.stats_ios_dynamic.dylib +0 -0
  331. package/lib/darwin/libclang_rt.stats_iossim_dynamic.dylib +0 -0
  332. package/lib/darwin/libclang_rt.stats_osx_dynamic.dylib +0 -0
  333. package/lib/darwin/libclang_rt.tsan_ios_dynamic.dylib +0 -0
  334. package/lib/darwin/libclang_rt.tsan_iossim_dynamic.dylib +0 -0
  335. package/lib/darwin/libclang_rt.tsan_osx_dynamic.dylib +0 -0
  336. package/lib/darwin/libclang_rt.tysan_ios_dynamic.dylib +0 -0
  337. package/lib/darwin/libclang_rt.tysan_iossim_dynamic.dylib +0 -0
  338. package/lib/darwin/libclang_rt.tysan_osx_dynamic.dylib +0 -0
  339. package/lib/darwin/libclang_rt.ubsan_ios_dynamic.dylib +0 -0
  340. package/lib/darwin/libclang_rt.ubsan_iossim_dynamic.dylib +0 -0
  341. package/lib/darwin/libclang_rt.ubsan_minimal_ios.a +0 -0
  342. package/lib/darwin/libclang_rt.ubsan_minimal_ios_dynamic.dylib +0 -0
  343. package/lib/darwin/libclang_rt.ubsan_minimal_iossim.a +0 -0
  344. package/lib/darwin/libclang_rt.ubsan_minimal_iossim_dynamic.dylib +0 -0
  345. package/lib/darwin/libclang_rt.ubsan_minimal_osx.a +0 -0
  346. package/lib/darwin/libclang_rt.ubsan_minimal_osx_dynamic.dylib +0 -0
  347. package/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib +0 -0
  348. package/package.json +40 -1
  349. package/share/asan_ignorelist.txt +14 -0
  350. package/share/cfi_ignorelist.txt +17 -0
@@ -0,0 +1,233 @@
1
+ /*===--------------- avxvnniintrin.h - VNNI intrinsics --------------------===
2
+ *
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ * THE SOFTWARE.
21
+ *
22
+ *===-----------------------------------------------------------------------===
23
+ */
24
+ #ifndef __IMMINTRIN_H
25
+ #error "Never use <avxvnniintrin.h> directly; include <immintrin.h> instead."
26
+ #endif
27
+
28
+ #ifndef __AVXVNNIINTRIN_H
29
+ #define __AVXVNNIINTRIN_H
30
+
31
+ /* Below intrinsics defined in avx512vlvnniintrin.h can be used for AVXVNNI */
32
+ /// \fn __m256i _mm256_dpbusd_epi32(__m256i __S, __m256i __A, __m256i __B)
33
+ /// \fn __m256i _mm256_dpbusds_epi32(__m256i __S, __m256i __A, __m256i __B)
34
+ /// \fn __m256i _mm256_dpwssd_epi32(__m256i __S, __m256i __A, __m256i __B)
35
+ /// \fn __m256i _mm256_dpwssds_epi32(__m256i __S, __m256i __A, __m256i __B)
36
+ /// \fn __m128i _mm_dpbusd_epi32(__m128i __S, __m128i __A, __m128i __B)
37
+ /// \fn __m128i _mm_dpbusds_epi32(__m128i __S, __m128i __A, __m128i __B)
38
+ /// \fn __m128i _mm_dpwssd_epi32(__m128i __S, __m128i __A, __m128i __B)
39
+ /// \fn __m128i _mm_dpwssds_epi32(__m128i __S, __m128i __A, __m128i __B)
40
+
41
+ /* Intrinsics with _avx_ prefix are for compatibility with msvc. */
42
+ /* Define the default attributes for the functions in this file. */
43
+ #define __DEFAULT_FN_ATTRS256 __attribute__((__always_inline__, __nodebug__, __target__("avxvnni"), __min_vector_width__(256)))
44
+ #define __DEFAULT_FN_ATTRS128 __attribute__((__always_inline__, __nodebug__, __target__("avxvnni"), __min_vector_width__(128)))
45
+
46
+ /// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in \a __A with
47
+ /// corresponding signed 8-bit integers in \a __B, producing 4 intermediate signed
48
+ /// 16-bit results. Sum these 4 results with the corresponding 32-bit integer
49
+ /// in \a __S, and store the packed 32-bit results in DST.
50
+ ///
51
+ /// This intrinsic corresponds to the <c> VPDPBUSD </c> instructions.
52
+ ///
53
+ /// \code{.operation}
54
+ /// FOR j := 0 to 7
55
+ /// tmp1.word := Signed(ZeroExtend16(__A.byte[4*j]) * SignExtend16(__B.byte[4*j]))
56
+ /// tmp2.word := Signed(ZeroExtend16(__A.byte[4*j+1]) * SignExtend16(__B.byte[4*j+1]))
57
+ /// tmp3.word := Signed(ZeroExtend16(__A.byte[4*j+2]) * SignExtend16(__B.byte[4*j+2]))
58
+ /// tmp4.word := Signed(ZeroExtend16(__A.byte[4*j+3]) * SignExtend16(__B.byte[4*j+3]))
59
+ /// DST.dword[j] := __S.dword[j] + tmp1 + tmp2 + tmp3 + tmp4
60
+ /// ENDFOR
61
+ /// DST[MAX:256] := 0
62
+ /// \endcode
63
+ static __inline__ __m256i __DEFAULT_FN_ATTRS256
64
+ _mm256_dpbusd_avx_epi32(__m256i __S, __m256i __A, __m256i __B)
65
+ {
66
+ return (__m256i)__builtin_ia32_vpdpbusd256((__v8si)__S, (__v32qu)__A,
67
+ (__v32qi)__B);
68
+ }
69
+
70
+ /// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in \a __A with
71
+ /// corresponding signed 8-bit integers in \a __B, producing 4 intermediate signed
72
+ /// 16-bit results. Sum these 4 results with the corresponding 32-bit integer
73
+ /// in \a __S using signed saturation, and store the packed 32-bit results in DST.
74
+ ///
75
+ /// This intrinsic corresponds to the <c> VPDPBUSDS </c> instructions.
76
+ ///
77
+ /// \code{.operation}
78
+ /// FOR j := 0 to 7
79
+ /// tmp1.word := Signed(ZeroExtend16(__A.byte[4*j]) * SignExtend16(__B.byte[4*j]))
80
+ /// tmp2.word := Signed(ZeroExtend16(__A.byte[4*j+1]) * SignExtend16(__B.byte[4*j+1]))
81
+ /// tmp3.word := Signed(ZeroExtend16(__A.byte[4*j+2]) * SignExtend16(__B.byte[4*j+2]))
82
+ /// tmp4.word := Signed(ZeroExtend16(__A.byte[4*j+3]) * SignExtend16(__B.byte[4*j+3]))
83
+ /// DST.dword[j] := Saturate32(__S.dword[j] + tmp1 + tmp2 + tmp3 + tmp4)
84
+ /// ENDFOR
85
+ /// DST[MAX:256] := 0
86
+ /// \endcode
87
+ static __inline__ __m256i __DEFAULT_FN_ATTRS256
88
+ _mm256_dpbusds_avx_epi32(__m256i __S, __m256i __A, __m256i __B)
89
+ {
90
+ return (__m256i)__builtin_ia32_vpdpbusds256((__v8si)__S, (__v32qu)__A,
91
+ (__v32qi)__B);
92
+ }
93
+
94
+ /// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
95
+ /// corresponding 16-bit integers in \a __B, producing 2 intermediate signed 32-bit
96
+ /// results. Sum these 2 results with the corresponding 32-bit integer in \a __S,
97
+ /// and store the packed 32-bit results in DST.
98
+ ///
99
+ /// This intrinsic corresponds to the <c> VPDPWSSD </c> instructions.
100
+ ///
101
+ /// \code{.operation}
102
+ /// FOR j := 0 to 7
103
+ /// tmp1.dword := SignExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
104
+ /// tmp2.dword := SignExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
105
+ /// DST.dword[j] := __S.dword[j] + tmp1 + tmp2
106
+ /// ENDFOR
107
+ /// DST[MAX:256] := 0
108
+ /// \endcode
109
+ static __inline__ __m256i __DEFAULT_FN_ATTRS256
110
+ _mm256_dpwssd_avx_epi32(__m256i __S, __m256i __A, __m256i __B)
111
+ {
112
+ return (__m256i)__builtin_ia32_vpdpwssd256((__v8si)__S, (__v16hi)__A,
113
+ (__v16hi)__B);
114
+ }
115
+
116
+ /// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
117
+ /// corresponding 16-bit integers in \a __B, producing 2 intermediate signed 32-bit
118
+ /// results. Sum these 2 results with the corresponding 32-bit integer in \a __S
119
+ /// using signed saturation, and store the packed 32-bit results in DST.
120
+ ///
121
+ /// This intrinsic corresponds to the <c> VPDPWSSDS </c> instructions.
122
+ ///
123
+ /// \code{.operation}
124
+ /// FOR j := 0 to 7
125
+ /// tmp1.dword := SignExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
126
+ /// tmp2.dword := SignExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
127
+ /// DST.dword[j] := Saturate32(__S.dword[j] + tmp1 + tmp2)
128
+ /// ENDFOR
129
+ /// DST[MAX:256] := 0
130
+ /// \endcode
131
+ static __inline__ __m256i __DEFAULT_FN_ATTRS256
132
+ _mm256_dpwssds_avx_epi32(__m256i __S, __m256i __A, __m256i __B)
133
+ {
134
+ return (__m256i)__builtin_ia32_vpdpwssds256((__v8si)__S, (__v16hi)__A,
135
+ (__v16hi)__B);
136
+ }
137
+
138
+ /// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in \a __A with
139
+ /// corresponding signed 8-bit integers in \a __B, producing 4 intermediate signed
140
+ /// 16-bit results. Sum these 4 results with the corresponding 32-bit integer
141
+ /// in \a __S, and store the packed 32-bit results in DST.
142
+ ///
143
+ /// This intrinsic corresponds to the <c> VPDPBUSD </c> instructions.
144
+ ///
145
+ /// \code{.operation}
146
+ /// FOR j := 0 to 3
147
+ /// tmp1.word := Signed(ZeroExtend16(__A.byte[4*j]) * SignExtend16(__B.byte[4*j]))
148
+ /// tmp2.word := Signed(ZeroExtend16(__A.byte[4*j+1]) * SignExtend16(__B.byte[4*j+1]))
149
+ /// tmp3.word := Signed(ZeroExtend16(__A.byte[4*j+2]) * SignExtend16(__B.byte[4*j+2]))
150
+ /// tmp4.word := Signed(ZeroExtend16(__A.byte[4*j+3]) * SignExtend16(__B.byte[4*j+3]))
151
+ /// DST.dword[j] := __S.dword[j] + tmp1 + tmp2 + tmp3 + tmp4
152
+ /// ENDFOR
153
+ /// DST[MAX:128] := 0
154
+ /// \endcode
155
+ static __inline__ __m128i __DEFAULT_FN_ATTRS128
156
+ _mm_dpbusd_avx_epi32(__m128i __S, __m128i __A, __m128i __B)
157
+ {
158
+ return (__m128i)__builtin_ia32_vpdpbusd128((__v4si)__S, (__v16qu)__A,
159
+ (__v16qi)__B);
160
+ }
161
+
162
+ /// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in \a __A with
163
+ /// corresponding signed 8-bit integers in \a __B, producing 4 intermediate signed
164
+ /// 16-bit results. Sum these 4 results with the corresponding 32-bit integer
165
+ /// in \a __S using signed saturation, and store the packed 32-bit results in DST.
166
+ ///
167
+ /// This intrinsic corresponds to the <c> VPDPBUSDS </c> instructions.
168
+ ///
169
+ /// \code{.operation}
170
+ /// FOR j := 0 to 3
171
+ /// tmp1.word := Signed(ZeroExtend16(__A.byte[4*j]) * SignExtend16(__B.byte[4*j]))
172
+ /// tmp2.word := Signed(ZeroExtend16(__A.byte[4*j+1]) * SignExtend16(__B.byte[4*j+1]))
173
+ /// tmp3.word := Signed(ZeroExtend16(__A.byte[4*j+2]) * SignExtend16(__B.byte[4*j+2]))
174
+ /// tmp4.word := Signed(ZeroExtend16(__A.byte[4*j+3]) * SignExtend16(__B.byte[4*j+3]))
175
+ /// DST.dword[j] := Saturate32(__S.dword[j] + tmp1 + tmp2 + tmp3 + tmp4)
176
+ /// ENDFOR
177
+ /// DST[MAX:128] := 0
178
+ /// \endcode
179
+ static __inline__ __m128i __DEFAULT_FN_ATTRS128
180
+ _mm_dpbusds_avx_epi32(__m128i __S, __m128i __A, __m128i __B)
181
+ {
182
+ return (__m128i)__builtin_ia32_vpdpbusds128((__v4si)__S, (__v16qu)__A,
183
+ (__v16qi)__B);
184
+ }
185
+
186
+ /// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
187
+ /// corresponding 16-bit integers in \a __B, producing 2 intermediate signed 32-bit
188
+ /// results. Sum these 2 results with the corresponding 32-bit integer in \a __S,
189
+ /// and store the packed 32-bit results in DST.
190
+ ///
191
+ /// This intrinsic corresponds to the <c> VPDPWSSD </c> instructions.
192
+ ///
193
+ /// \code{.operation}
194
+ /// FOR j := 0 to 3
195
+ /// tmp1.dword := SignExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
196
+ /// tmp2.dword := SignExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
197
+ /// DST.dword[j] := __S.dword[j] + tmp1 + tmp2
198
+ /// ENDFOR
199
+ /// DST[MAX:128] := 0
200
+ /// \endcode
201
+ static __inline__ __m128i __DEFAULT_FN_ATTRS128
202
+ _mm_dpwssd_avx_epi32(__m128i __S, __m128i __A, __m128i __B)
203
+ {
204
+ return (__m128i)__builtin_ia32_vpdpwssd128((__v4si)__S, (__v8hi)__A,
205
+ (__v8hi)__B);
206
+ }
207
+
208
+ /// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
209
+ /// corresponding 16-bit integers in \a __B, producing 2 intermediate signed 32-bit
210
+ /// results. Sum these 2 results with the corresponding 32-bit integer in \a __S
211
+ /// using signed saturation, and store the packed 32-bit results in DST.
212
+ ///
213
+ /// This intrinsic corresponds to the <c> VPDPWSSDS </c> instructions.
214
+ ///
215
+ /// \code{.operation}
216
+ /// FOR j := 0 to 3
217
+ /// tmp1.dword := SignExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
218
+ /// tmp2.dword := SignExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
219
+ /// DST.dword[j] := Saturate32(__S.dword[j] + tmp1 + tmp2)
220
+ /// ENDFOR
221
+ /// DST[MAX:128] := 0
222
+ /// \endcode
223
+ static __inline__ __m128i __DEFAULT_FN_ATTRS128
224
+ _mm_dpwssds_avx_epi32(__m128i __S, __m128i __A, __m128i __B)
225
+ {
226
+ return (__m128i)__builtin_ia32_vpdpwssds128((__v4si)__S, (__v8hi)__A,
227
+ (__v8hi)__B);
228
+ }
229
+
230
+ #undef __DEFAULT_FN_ATTRS128
231
+ #undef __DEFAULT_FN_ATTRS256
232
+
233
+ #endif // __AVXVNNIINTRIN_H
@@ -0,0 +1,253 @@
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
+ #if defined(__cplusplus) && (__cplusplus >= 201103L)
19
+ #define __DEFAULT_FN_ATTRS \
20
+ __attribute__((__always_inline__, __nodebug__, __target__("bmi2"))) constexpr
21
+ #else
22
+ #define __DEFAULT_FN_ATTRS \
23
+ __attribute__((__always_inline__, __nodebug__, __target__("bmi2")))
24
+ #endif
25
+
26
+ /// Copies the unsigned 32-bit integer \a __X and zeroes the upper bits
27
+ /// starting at bit number \a __Y.
28
+ ///
29
+ /// \code{.operation}
30
+ /// i := __Y[7:0]
31
+ /// result := __X
32
+ /// IF i < 32
33
+ /// result[31:i] := 0
34
+ /// FI
35
+ /// \endcode
36
+ ///
37
+ /// \headerfile <immintrin.h>
38
+ ///
39
+ /// This intrinsic corresponds to the \c BZHI instruction.
40
+ ///
41
+ /// \param __X
42
+ /// The 32-bit source value to copy.
43
+ /// \param __Y
44
+ /// The lower 8 bits specify the bit number of the lowest bit to zero.
45
+ /// \returns The partially zeroed 32-bit value.
46
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
47
+ _bzhi_u32(unsigned int __X, unsigned int __Y) {
48
+ return __builtin_ia32_bzhi_si(__X, __Y);
49
+ }
50
+
51
+ /// Deposit (scatter) low-order bits from the unsigned 32-bit integer \a __X
52
+ /// into the 32-bit result, according to the mask in the unsigned 32-bit
53
+ /// integer \a __Y. All other bits of the result are zero.
54
+ ///
55
+ /// \code{.operation}
56
+ /// i := 0
57
+ /// result := 0
58
+ /// FOR m := 0 TO 31
59
+ /// IF __Y[m] == 1
60
+ /// result[m] := __X[i]
61
+ /// i := i + 1
62
+ /// ENDIF
63
+ /// ENDFOR
64
+ /// \endcode
65
+ ///
66
+ /// \headerfile <immintrin.h>
67
+ ///
68
+ /// This intrinsic corresponds to the \c PDEP instruction.
69
+ ///
70
+ /// \param __X
71
+ /// The 32-bit source value to copy.
72
+ /// \param __Y
73
+ /// The 32-bit mask specifying where to deposit source bits.
74
+ /// \returns The 32-bit result.
75
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
76
+ _pdep_u32(unsigned int __X, unsigned int __Y) {
77
+ return __builtin_ia32_pdep_si(__X, __Y);
78
+ }
79
+
80
+ /// Extract (gather) bits from the unsigned 32-bit integer \a __X into the
81
+ /// low-order bits of the 32-bit result, according to the mask in the
82
+ /// unsigned 32-bit integer \a __Y. All other bits of the result are zero.
83
+ ///
84
+ /// \code{.operation}
85
+ /// i := 0
86
+ /// result := 0
87
+ /// FOR m := 0 TO 31
88
+ /// IF __Y[m] == 1
89
+ /// result[i] := __X[m]
90
+ /// i := i + 1
91
+ /// ENDIF
92
+ /// ENDFOR
93
+ /// \endcode
94
+ ///
95
+ /// \headerfile <immintrin.h>
96
+ ///
97
+ /// This intrinsic corresponds to the \c PEXT instruction.
98
+ ///
99
+ /// \param __X
100
+ /// The 32-bit source value to copy.
101
+ /// \param __Y
102
+ /// The 32-bit mask specifying which source bits to extract.
103
+ /// \returns The 32-bit result.
104
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
105
+ _pext_u32(unsigned int __X, unsigned int __Y) {
106
+ return __builtin_ia32_pext_si(__X, __Y);
107
+ }
108
+
109
+ /// Multiplies the unsigned 32-bit integers \a __X and \a __Y to form a
110
+ /// 64-bit product. Stores the upper 32 bits of the product in the
111
+ /// memory at \a __P and returns the lower 32 bits.
112
+ ///
113
+ /// \code{.operation}
114
+ /// Store32(__P, (__X * __Y)[63:32])
115
+ /// result := (__X * __Y)[31:0]
116
+ /// \endcode
117
+ ///
118
+ /// \headerfile <immintrin.h>
119
+ ///
120
+ /// This intrinsic corresponds to the \c MULX instruction.
121
+ ///
122
+ /// \param __X
123
+ /// An unsigned 32-bit multiplicand.
124
+ /// \param __Y
125
+ /// An unsigned 32-bit multiplicand.
126
+ /// \param __P
127
+ /// A pointer to memory for storing the upper half of the product.
128
+ /// \returns The lower half of the product.
129
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
130
+ _mulx_u32(unsigned int __X, unsigned int __Y, unsigned int *__P) {
131
+ unsigned long long __res = (unsigned long long) __X * __Y;
132
+ *__P = (unsigned int)(__res >> 32);
133
+ return (unsigned int)__res;
134
+ }
135
+
136
+ #ifdef __x86_64__
137
+
138
+ /// Copies the unsigned 64-bit integer \a __X and zeroes the upper bits
139
+ /// starting at bit number \a __Y.
140
+ ///
141
+ /// \code{.operation}
142
+ /// i := __Y[7:0]
143
+ /// result := __X
144
+ /// IF i < 64
145
+ /// result[63:i] := 0
146
+ /// FI
147
+ /// \endcode
148
+ ///
149
+ /// \headerfile <immintrin.h>
150
+ ///
151
+ /// This intrinsic corresponds to the \c BZHI instruction.
152
+ ///
153
+ /// \param __X
154
+ /// The 64-bit source value to copy.
155
+ /// \param __Y
156
+ /// The lower 8 bits specify the bit number of the lowest bit to zero.
157
+ /// \returns The partially zeroed 64-bit value.
158
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
159
+ _bzhi_u64(unsigned long long __X, unsigned long long __Y) {
160
+ return __builtin_ia32_bzhi_di(__X, __Y);
161
+ }
162
+
163
+ /// Deposit (scatter) low-order bits from the unsigned 64-bit integer \a __X
164
+ /// into the 64-bit result, according to the mask in the unsigned 64-bit
165
+ /// integer \a __Y. All other bits of the result are zero.
166
+ ///
167
+ /// \code{.operation}
168
+ /// i := 0
169
+ /// result := 0
170
+ /// FOR m := 0 TO 63
171
+ /// IF __Y[m] == 1
172
+ /// result[m] := __X[i]
173
+ /// i := i + 1
174
+ /// ENDIF
175
+ /// ENDFOR
176
+ /// \endcode
177
+ ///
178
+ /// \headerfile <immintrin.h>
179
+ ///
180
+ /// This intrinsic corresponds to the \c PDEP instruction.
181
+ ///
182
+ /// \param __X
183
+ /// The 64-bit source value to copy.
184
+ /// \param __Y
185
+ /// The 64-bit mask specifying where to deposit source bits.
186
+ /// \returns The 64-bit result.
187
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
188
+ _pdep_u64(unsigned long long __X, unsigned long long __Y) {
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
+ return __builtin_ia32_pext_di(__X, __Y);
219
+ }
220
+
221
+ /// Multiplies the unsigned 64-bit integers \a __X and \a __Y to form a
222
+ /// 128-bit product. Stores the upper 64 bits of the product to the
223
+ /// memory addressed by \a __P and returns the lower 64 bits.
224
+ ///
225
+ /// \code{.operation}
226
+ /// Store64(__P, (__X * __Y)[127:64])
227
+ /// result := (__X * __Y)[63:0]
228
+ /// \endcode
229
+ ///
230
+ /// \headerfile <immintrin.h>
231
+ ///
232
+ /// This intrinsic corresponds to the \c MULX instruction.
233
+ ///
234
+ /// \param __X
235
+ /// An unsigned 64-bit multiplicand.
236
+ /// \param __Y
237
+ /// An unsigned 64-bit multiplicand.
238
+ /// \param __P
239
+ /// A pointer to memory for storing the upper half of the product.
240
+ /// \returns The lower half of the product.
241
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
242
+ _mulx_u64 (unsigned long long __X, unsigned long long __Y,
243
+ unsigned long long *__P) {
244
+ unsigned __int128 __res = (unsigned __int128) __X * __Y;
245
+ *__P = (unsigned long long) (__res >> 64);
246
+ return (unsigned long long) __res;
247
+ }
248
+
249
+ #endif /* __x86_64__ */
250
+
251
+ #undef __DEFAULT_FN_ATTRS
252
+
253
+ #endif /* __BMI2INTRIN_H */