@cpp-linter/clang-tidy-win32-x64 21.1.0 → 23.1.3

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 (326) hide show
  1. package/README.md +2 -2
  2. package/bin/clang-tidy.exe +2 -2
  3. package/lib/clang/23/include/__clang_cuda_complex_builtins.h +236 -0
  4. package/lib/clang/{21 → 23}/include/__clang_cuda_device_functions.h +1 -1
  5. package/lib/clang/{21 → 23}/include/__clang_cuda_intrinsics.h +207 -226
  6. package/lib/clang/{21 → 23}/include/__clang_cuda_math_forward_declares.h +5 -0
  7. package/lib/clang/{21 → 23}/include/__clang_cuda_runtime_wrapper.h +27 -5
  8. package/lib/clang/23/include/__clang_gpu_builtin_vars.h +71 -0
  9. package/lib/clang/23/include/__clang_gpu_device_functions.h +411 -0
  10. package/lib/clang/23/include/__clang_gpu_intrinsics.h +242 -0
  11. package/lib/clang/{21 → 23}/include/__clang_hip_libdevice_declares.h +14 -121
  12. package/lib/clang/{21 → 23}/include/__clang_hip_math.h +5 -5
  13. package/lib/clang/{21 → 23}/include/__clang_hip_runtime_wrapper.h +9 -1
  14. package/lib/clang/{21 → 23}/include/__clang_spirv_builtins.h +12 -12
  15. package/lib/clang/23/include/__clang_spirv_libdevice_declares.h +170 -0
  16. package/lib/clang/23/include/__clang_spirv_math.h +719 -0
  17. package/lib/clang/{21/include/float.h → 23/include/__float_float.h} +13 -24
  18. package/lib/clang/23/include/__float_header_macro.h +12 -0
  19. package/lib/clang/23/include/__float_infinity_nan.h +20 -0
  20. package/lib/clang/{21 → 23}/include/altivec.h +79 -9
  21. package/lib/clang/{21 → 23}/include/amdgpuintrin.h +2 -29
  22. package/lib/clang/23/include/amdhsa_abi.h +83 -0
  23. package/lib/clang/23/include/amo.h +220 -0
  24. package/lib/clang/{21 → 23}/include/amxavx512intrin.h +215 -1
  25. package/lib/clang/{21 → 23}/include/amxintrin.h +0 -2
  26. package/lib/clang/{21 → 23}/include/andes_vector.h +5 -0
  27. package/lib/clang/23/include/arm64_neon.h +21 -0
  28. package/lib/clang/{21 → 23}/include/arm64intr.h +10 -0
  29. package/lib/clang/{21 → 23}/include/arm_acle.h +38 -27
  30. package/lib/clang/{21 → 23}/include/arm_neon.h +4140 -3836
  31. package/lib/clang/{21 → 23}/include/arm_sme.h +20 -8
  32. package/lib/clang/{21 → 23}/include/arm_sve.h +4582 -3782
  33. package/lib/clang/{21 → 23}/include/avx10_2_512bf16intrin.h +19 -12
  34. package/lib/clang/{21 → 23}/include/avx10_2_512convertintrin.h +1 -1
  35. package/lib/clang/{21 → 23}/include/avx10_2_512niintrin.h +25 -25
  36. package/lib/clang/{21 → 23}/include/avx10_2_512satcvtdsintrin.h +1 -1
  37. package/lib/clang/{21 → 23}/include/avx10_2bf16intrin.h +54 -45
  38. package/lib/clang/{21 → 23}/include/avx10_2convertintrin.h +2 -2
  39. package/lib/clang/{21 → 23}/include/avx10_2copyintrin.h +1 -1
  40. package/lib/clang/{21 → 23}/include/avx10_2niintrin.h +2 -2
  41. package/lib/clang/{21 → 23}/include/avx10_2satcvtdsintrin.h +2 -2
  42. package/lib/clang/{21 → 23}/include/avx2intrin.h +279 -382
  43. package/lib/clang/{21 → 23}/include/avx512bf16intrin.h +25 -16
  44. package/lib/clang/{21 → 23}/include/avx512bitalgintrin.h +19 -30
  45. package/lib/clang/23/include/avx512bmmintrin.h +174 -0
  46. package/lib/clang/23/include/avx512bmmvlintrin.h +245 -0
  47. package/lib/clang/{21 → 23}/include/avx512bwintrin.h +405 -534
  48. package/lib/clang/23/include/avx512cdintrin.h +112 -0
  49. package/lib/clang/{21 → 23}/include/avx512dqintrin.h +132 -161
  50. package/lib/clang/{21 → 23}/include/avx512fintrin.h +1049 -1485
  51. package/lib/clang/{21 → 23}/include/avx512fp16intrin.h +124 -128
  52. package/lib/clang/23/include/avx512ifmaintrin.h +68 -0
  53. package/lib/clang/23/include/avx512ifmavlintrin.h +138 -0
  54. package/lib/clang/{21 → 23}/include/avx512vbmi2intrin.h +55 -48
  55. package/lib/clang/{21 → 23}/include/avx512vbmiintrin.h +19 -27
  56. package/lib/clang/{21 → 23}/include/avx512vbmivlintrin.h +35 -49
  57. package/lib/clang/{21 → 23}/include/avx512vlbf16intrin.h +32 -22
  58. package/lib/clang/{21 → 23}/include/avx512vlbitalgintrin.h +37 -53
  59. package/lib/clang/{21 → 23}/include/avx512vlbwintrin.h +494 -609
  60. package/lib/clang/23/include/avx512vlcdintrin.h +202 -0
  61. package/lib/clang/{21 → 23}/include/avx512vldqintrin.h +110 -127
  62. package/lib/clang/{21 → 23}/include/avx512vlfp16intrin.h +130 -111
  63. package/lib/clang/{21 → 23}/include/avx512vlintrin.h +1025 -1395
  64. package/lib/clang/{21 → 23}/include/avx512vlvbmi2intrin.h +102 -95
  65. package/lib/clang/{21 → 23}/include/avx512vlvnniintrin.h +50 -52
  66. package/lib/clang/{21 → 23}/include/avx512vlvp2intersectintrin.h +2 -2
  67. package/lib/clang/{21 → 23}/include/avx512vnniintrin.h +42 -45
  68. package/lib/clang/{21 → 23}/include/avx512vp2intersectintrin.h +2 -3
  69. package/lib/clang/{21 → 23}/include/avx512vpopcntdqintrin.h +8 -10
  70. package/lib/clang/{21 → 23}/include/avx512vpopcntdqvlintrin.h +17 -15
  71. package/lib/clang/{21 → 23}/include/avxifmaintrin.h +16 -0
  72. package/lib/clang/{21 → 23}/include/avxintrin.h +165 -241
  73. package/lib/clang/{21 → 23}/include/avxvnniint16intrin.h +118 -99
  74. package/lib/clang/{21 → 23}/include/avxvnniint8intrin.h +56 -32
  75. package/lib/clang/{21 → 23}/include/avxvnniintrin.h +39 -26
  76. package/lib/clang/{21 → 23}/include/cpuid.h +101 -4
  77. package/lib/clang/{21 → 23}/include/crc32intrin.h +10 -8
  78. package/lib/clang/23/include/cuda_wrappers/__utility/declval.h +28 -0
  79. package/lib/clang/{21 → 23}/include/emmintrin.h +176 -176
  80. package/lib/clang/23/include/endian.h +91 -0
  81. package/lib/clang/{21 → 23}/include/f16cintrin.h +23 -9
  82. package/lib/clang/23/include/float.h +48 -0
  83. package/lib/clang/23/include/fma4intrin.h +220 -0
  84. package/lib/clang/{21 → 23}/include/fmaintrin.h +96 -66
  85. package/lib/clang/{21 → 23}/include/gfniintrin.h +21 -16
  86. package/lib/clang/{21 → 23}/include/gpuintrin.h +129 -109
  87. package/lib/clang/{21 → 23}/include/hexagon_types.h +23 -20
  88. package/lib/clang/23/include/hlsl/hlsl_alias_intrinsics.h +222 -0
  89. package/lib/clang/{21/include/hlsl/hlsl_alias_intrinsics.h → 23/include/hlsl/hlsl_alias_intrinsics_gen.inc} +2090 -1032
  90. package/lib/clang/23/include/hlsl/hlsl_basic_types.h +370 -0
  91. package/lib/clang/{21 → 23}/include/hlsl/hlsl_compat_overloads.h +150 -18
  92. package/lib/clang/{21 → 23}/include/hlsl/hlsl_detail.h +6 -4
  93. package/lib/clang/23/include/hlsl/hlsl_inline_intrinsics_gen.inc +546 -0
  94. package/lib/clang/{21 → 23}/include/hlsl/hlsl_intrinsic_helpers.h +71 -45
  95. package/lib/clang/23/include/hlsl/hlsl_intrinsics.h +331 -0
  96. package/lib/clang/{21 → 23}/include/hvx_hexagon_protos.h +724 -913
  97. package/lib/clang/{21 → 23}/include/immintrin.h +4 -14
  98. package/lib/clang/{21 → 23}/include/intrin.h +24 -10
  99. package/lib/clang/{21 → 23}/include/larchintrin.h +2 -0
  100. package/lib/clang/{21 → 23}/include/lasxintrin.h +113 -0
  101. package/lib/clang/{21 → 23}/include/llvm_libc_wrappers/assert.h +3 -5
  102. package/lib/clang/23/include/llvm_libc_wrappers/ctype.h +29 -0
  103. package/lib/clang/{21 → 23}/include/llvm_libc_wrappers/inttypes.h +3 -5
  104. package/lib/clang/23/include/llvm_libc_wrappers/stdio.h +52 -0
  105. package/lib/clang/23/include/llvm_libc_wrappers/stdlib.h +32 -0
  106. package/lib/clang/23/include/llvm_libc_wrappers/string.h +29 -0
  107. package/lib/clang/{21 → 23}/include/llvm_libc_wrappers/time.h +4 -10
  108. package/lib/clang/{21 → 23}/include/mmintrin.h +188 -257
  109. package/lib/clang/{21 → 23}/include/module.modulemap +39 -5
  110. package/lib/clang/{21 → 23}/include/movrs_avx10_2_512intrin.h +2 -2
  111. package/lib/clang/{21 → 23}/include/movrs_avx10_2intrin.h +4 -4
  112. package/lib/clang/{21 → 23}/include/nvptxintrin.h +15 -26
  113. package/lib/clang/{21 → 23}/include/opencl-c-base.h +7 -93
  114. package/lib/clang/{21 → 23}/include/opencl-c.h +225 -118
  115. package/lib/clang/{21 → 23}/include/openmp_wrappers/__clang_openmp_device_functions.h +14 -0
  116. package/lib/clang/{21 → 23}/include/openmp_wrappers/complex +7 -1
  117. package/lib/clang/{21 → 23}/include/openmp_wrappers/complex.h +6 -0
  118. package/lib/clang/{21 → 23}/include/openmp_wrappers/math.h +10 -0
  119. package/lib/clang/{21 → 23}/include/pmmintrin.h +12 -24
  120. package/lib/clang/{21 → 23}/include/ptrauth.h +104 -12
  121. package/lib/clang/{21 → 23}/include/riscv_bitmanip.h +7 -0
  122. package/lib/clang/{21 → 23}/include/riscv_corev_alu.h +2 -0
  123. package/lib/clang/{21 → 23}/include/riscv_crypto.h +8 -0
  124. package/lib/clang/23/include/riscv_mips.h +36 -0
  125. package/lib/clang/23/include/riscv_nds.h +92 -0
  126. package/lib/clang/{21 → 23}/include/riscv_ntlh.h +2 -0
  127. package/lib/clang/23/include/riscv_packed_simd.h +644 -0
  128. package/lib/clang/{21 → 23}/include/riscv_vector.h +43 -0
  129. package/lib/clang/{21 → 23}/include/sifive_vector.h +76 -2
  130. package/lib/clang/{21 → 23}/include/sm4evexintrin.h +2 -2
  131. package/lib/clang/{21 → 23}/include/smmintrin.h +77 -59
  132. package/lib/clang/23/include/spirvintrin.h +167 -0
  133. package/lib/clang/23/include/stddefer.h +19 -0
  134. package/lib/clang/{21 → 23}/include/stdint.h +5 -14
  135. package/lib/clang/{21 → 23}/include/tmmintrin.h +116 -147
  136. package/lib/clang/{21 → 23}/include/vaesintrin.h +1 -2
  137. package/lib/clang/{21 → 23}/include/vecintrin.h +1 -1
  138. package/lib/clang/{21 → 23}/include/wasm_simd128.h +17 -0
  139. package/lib/clang/{21 → 23}/include/xmmintrin.h +50 -75
  140. package/lib/clang/{21 → 23}/include/xopintrin.h +20 -10
  141. package/lib/clang/23/include/zos_wrappers/grp.h +19 -0
  142. package/lib/clang/23/include/zos_wrappers/locale.h +19 -0
  143. package/lib/clang/23/include/zos_wrappers/math.h +31 -0
  144. package/lib/clang/23/include/zos_wrappers/poll.h +19 -0
  145. package/lib/clang/23/include/zos_wrappers/stdlib.h +20 -0
  146. package/lib/clang/23/include/zos_wrappers/string.h +19 -0
  147. package/lib/clang/23/include/zos_wrappers/time.h +19 -0
  148. package/lib/clang/23/include/zos_wrappers/variant.h +19 -0
  149. package/package.json +6 -6
  150. package/lib/clang/21/include/__clang_cuda_complex_builtins.h +0 -285
  151. package/lib/clang/21/include/amxbf16transposeintrin.h +0 -94
  152. package/lib/clang/21/include/amxcomplextransposeintrin.h +0 -303
  153. package/lib/clang/21/include/amxfp16transposeintrin.h +0 -94
  154. package/lib/clang/21/include/amxmovrstransposeintrin.h +0 -200
  155. package/lib/clang/21/include/amxtf32intrin.h +0 -108
  156. package/lib/clang/21/include/amxtf32transposeintrin.h +0 -105
  157. package/lib/clang/21/include/amxtransposeintrin.h +0 -248
  158. package/lib/clang/21/include/avx512cdintrin.h +0 -125
  159. package/lib/clang/21/include/avx512ifmaintrin.h +0 -70
  160. package/lib/clang/21/include/avx512ifmavlintrin.h +0 -111
  161. package/lib/clang/21/include/avx512vlcdintrin.h +0 -230
  162. package/lib/clang/21/include/fma4intrin.h +0 -218
  163. package/lib/clang/21/include/hlsl/hlsl_basic_types.h +0 -120
  164. package/lib/clang/21/include/hlsl/hlsl_intrinsics.h +0 -526
  165. package/lib/clang/21/include/llvm_libc_wrappers/ctype.h +0 -140
  166. package/lib/clang/21/include/llvm_libc_wrappers/stdio.h +0 -80
  167. package/lib/clang/21/include/llvm_libc_wrappers/stdlib.h +0 -53
  168. package/lib/clang/21/include/llvm_libc_wrappers/string.h +0 -96
  169. /package/lib/clang/{21 → 23}/include/__clang_cuda_builtin_vars.h +0 -0
  170. /package/lib/clang/{21 → 23}/include/__clang_cuda_cmath.h +0 -0
  171. /package/lib/clang/{21 → 23}/include/__clang_cuda_libdevice_declares.h +0 -0
  172. /package/lib/clang/{21 → 23}/include/__clang_cuda_math.h +0 -0
  173. /package/lib/clang/{21 → 23}/include/__clang_cuda_texture_intrinsics.h +0 -0
  174. /package/lib/clang/{21 → 23}/include/__clang_hip_cmath.h +0 -0
  175. /package/lib/clang/{21 → 23}/include/__clang_hip_stdlib.h +0 -0
  176. /package/lib/clang/{21 → 23}/include/__stdarg___gnuc_va_list.h +0 -0
  177. /package/lib/clang/{21 → 23}/include/__stdarg___va_copy.h +0 -0
  178. /package/lib/clang/{21 → 23}/include/__stdarg_header_macro.h +0 -0
  179. /package/lib/clang/{21 → 23}/include/__stdarg_va_arg.h +0 -0
  180. /package/lib/clang/{21 → 23}/include/__stdarg_va_copy.h +0 -0
  181. /package/lib/clang/{21 → 23}/include/__stdarg_va_list.h +0 -0
  182. /package/lib/clang/{21 → 23}/include/__stddef_header_macro.h +0 -0
  183. /package/lib/clang/{21 → 23}/include/__stddef_max_align_t.h +0 -0
  184. /package/lib/clang/{21 → 23}/include/__stddef_null.h +0 -0
  185. /package/lib/clang/{21 → 23}/include/__stddef_nullptr_t.h +0 -0
  186. /package/lib/clang/{21 → 23}/include/__stddef_offsetof.h +0 -0
  187. /package/lib/clang/{21 → 23}/include/__stddef_ptrdiff_t.h +0 -0
  188. /package/lib/clang/{21 → 23}/include/__stddef_rsize_t.h +0 -0
  189. /package/lib/clang/{21 → 23}/include/__stddef_size_t.h +0 -0
  190. /package/lib/clang/{21 → 23}/include/__stddef_unreachable.h +0 -0
  191. /package/lib/clang/{21 → 23}/include/__stddef_wchar_t.h +0 -0
  192. /package/lib/clang/{21 → 23}/include/__stddef_wint_t.h +0 -0
  193. /package/lib/clang/{21 → 23}/include/__wmmintrin_aes.h +0 -0
  194. /package/lib/clang/{21 → 23}/include/__wmmintrin_pclmul.h +0 -0
  195. /package/lib/clang/{21 → 23}/include/adcintrin.h +0 -0
  196. /package/lib/clang/{21 → 23}/include/adxintrin.h +0 -0
  197. /package/lib/clang/{21 → 23}/include/ammintrin.h +0 -0
  198. /package/lib/clang/{21 → 23}/include/amxcomplexintrin.h +0 -0
  199. /package/lib/clang/{21 → 23}/include/amxfp16intrin.h +0 -0
  200. /package/lib/clang/{21 → 23}/include/amxfp8intrin.h +0 -0
  201. /package/lib/clang/{21 → 23}/include/amxmovrsintrin.h +0 -0
  202. /package/lib/clang/{21 → 23}/include/arm_bf16.h +0 -0
  203. /package/lib/clang/{21 → 23}/include/arm_cde.h +0 -0
  204. /package/lib/clang/{21 → 23}/include/arm_cmse.h +0 -0
  205. /package/lib/clang/{21 → 23}/include/arm_fp16.h +0 -0
  206. /package/lib/clang/{21 → 23}/include/arm_mve.h +0 -0
  207. /package/lib/clang/{21 → 23}/include/arm_neon_sve_bridge.h +0 -0
  208. /package/lib/clang/{21 → 23}/include/arm_vector_types.h +0 -0
  209. /package/lib/clang/{21 → 23}/include/armintr.h +0 -0
  210. /package/lib/clang/{21 → 23}/include/avx10_2_512minmaxintrin.h +0 -0
  211. /package/lib/clang/{21 → 23}/include/avx10_2_512satcvtintrin.h +0 -0
  212. /package/lib/clang/{21 → 23}/include/avx10_2minmaxintrin.h +0 -0
  213. /package/lib/clang/{21 → 23}/include/avx10_2satcvtintrin.h +0 -0
  214. /package/lib/clang/{21 → 23}/include/avxneconvertintrin.h +0 -0
  215. /package/lib/clang/{21 → 23}/include/bmi2intrin.h +0 -0
  216. /package/lib/clang/{21 → 23}/include/bmiintrin.h +0 -0
  217. /package/lib/clang/{21 → 23}/include/builtins.h +0 -0
  218. /package/lib/clang/{21 → 23}/include/cet.h +0 -0
  219. /package/lib/clang/{21 → 23}/include/cetintrin.h +0 -0
  220. /package/lib/clang/{21 → 23}/include/cldemoteintrin.h +0 -0
  221. /package/lib/clang/{21 → 23}/include/clflushoptintrin.h +0 -0
  222. /package/lib/clang/{21 → 23}/include/clwbintrin.h +0 -0
  223. /package/lib/clang/{21 → 23}/include/clzerointrin.h +0 -0
  224. /package/lib/clang/{21 → 23}/include/cmpccxaddintrin.h +0 -0
  225. /package/lib/clang/{21 → 23}/include/cuda_wrappers/algorithm +0 -0
  226. /package/lib/clang/{21 → 23}/include/cuda_wrappers/bits/basic_string.h +0 -0
  227. /package/lib/clang/{21 → 23}/include/cuda_wrappers/bits/basic_string.tcc +0 -0
  228. /package/lib/clang/{21 → 23}/include/cuda_wrappers/bits/c++config.h +0 -0
  229. /package/lib/clang/{21 → 23}/include/cuda_wrappers/bits/shared_ptr_base.h +0 -0
  230. /package/lib/clang/{21 → 23}/include/cuda_wrappers/cmath +0 -0
  231. /package/lib/clang/{21 → 23}/include/cuda_wrappers/complex +0 -0
  232. /package/lib/clang/{21 → 23}/include/cuda_wrappers/new +0 -0
  233. /package/lib/clang/{21 → 23}/include/enqcmdintrin.h +0 -0
  234. /package/lib/clang/{21 → 23}/include/fxsrintrin.h +0 -0
  235. /package/lib/clang/{21 → 23}/include/hexagon_circ_brev_intrinsics.h +0 -0
  236. /package/lib/clang/{21 → 23}/include/hexagon_protos.h +0 -0
  237. /package/lib/clang/{21 → 23}/include/hlsl/hlsl_spirv.h +0 -0
  238. /package/lib/clang/{21 → 23}/include/hlsl.h +0 -0
  239. /package/lib/clang/{21 → 23}/include/hresetintrin.h +0 -0
  240. /package/lib/clang/{21 → 23}/include/htmintrin.h +0 -0
  241. /package/lib/clang/{21 → 23}/include/htmxlintrin.h +0 -0
  242. /package/lib/clang/{21 → 23}/include/ia32intrin.h +0 -0
  243. /package/lib/clang/{21 → 23}/include/intrin0.h +0 -0
  244. /package/lib/clang/{21 → 23}/include/inttypes.h +0 -0
  245. /package/lib/clang/{21 → 23}/include/invpcidintrin.h +0 -0
  246. /package/lib/clang/{21 → 23}/include/iso646.h +0 -0
  247. /package/lib/clang/{21 → 23}/include/keylockerintrin.h +0 -0
  248. /package/lib/clang/{21 → 23}/include/limits.h +0 -0
  249. /package/lib/clang/{21 → 23}/include/llvm_offload_wrappers/__llvm_offload.h +0 -0
  250. /package/lib/clang/{21 → 23}/include/llvm_offload_wrappers/__llvm_offload_device.h +0 -0
  251. /package/lib/clang/{21 → 23}/include/llvm_offload_wrappers/__llvm_offload_host.h +0 -0
  252. /package/lib/clang/{21 → 23}/include/lsxintrin.h +0 -0
  253. /package/lib/clang/{21 → 23}/include/lwpintrin.h +0 -0
  254. /package/lib/clang/{21 → 23}/include/lzcntintrin.h +0 -0
  255. /package/lib/clang/{21 → 23}/include/mm3dnow.h +0 -0
  256. /package/lib/clang/{21 → 23}/include/mm_malloc.h +0 -0
  257. /package/lib/clang/{21 → 23}/include/movdirintrin.h +0 -0
  258. /package/lib/clang/{21 → 23}/include/movrsintrin.h +0 -0
  259. /package/lib/clang/{21 → 23}/include/msa.h +0 -0
  260. /package/lib/clang/{21 → 23}/include/mwaitxintrin.h +0 -0
  261. /package/lib/clang/{21 → 23}/include/nmmintrin.h +0 -0
  262. /package/lib/clang/{21 → 23}/include/openmp_wrappers/cmath +0 -0
  263. /package/lib/clang/{21 → 23}/include/openmp_wrappers/complex_cmath.h +0 -0
  264. /package/lib/clang/{21 → 23}/include/openmp_wrappers/new +0 -0
  265. /package/lib/clang/{21 → 23}/include/pconfigintrin.h +0 -0
  266. /package/lib/clang/{21 → 23}/include/pkuintrin.h +0 -0
  267. /package/lib/clang/{21 → 23}/include/popcntintrin.h +0 -0
  268. /package/lib/clang/{21 → 23}/include/ppc_wrappers/bmi2intrin.h +0 -0
  269. /package/lib/clang/{21 → 23}/include/ppc_wrappers/bmiintrin.h +0 -0
  270. /package/lib/clang/{21 → 23}/include/ppc_wrappers/emmintrin.h +0 -0
  271. /package/lib/clang/{21 → 23}/include/ppc_wrappers/immintrin.h +0 -0
  272. /package/lib/clang/{21 → 23}/include/ppc_wrappers/mm_malloc.h +0 -0
  273. /package/lib/clang/{21 → 23}/include/ppc_wrappers/mmintrin.h +0 -0
  274. /package/lib/clang/{21 → 23}/include/ppc_wrappers/nmmintrin.h +0 -0
  275. /package/lib/clang/{21 → 23}/include/ppc_wrappers/pmmintrin.h +0 -0
  276. /package/lib/clang/{21 → 23}/include/ppc_wrappers/smmintrin.h +0 -0
  277. /package/lib/clang/{21 → 23}/include/ppc_wrappers/tmmintrin.h +0 -0
  278. /package/lib/clang/{21 → 23}/include/ppc_wrappers/x86gprintrin.h +0 -0
  279. /package/lib/clang/{21 → 23}/include/ppc_wrappers/x86intrin.h +0 -0
  280. /package/lib/clang/{21 → 23}/include/ppc_wrappers/xmmintrin.h +0 -0
  281. /package/lib/clang/{21 → 23}/include/prfchiintrin.h +0 -0
  282. /package/lib/clang/{21 → 23}/include/prfchwintrin.h +0 -0
  283. /package/lib/clang/{21 → 23}/include/ptwriteintrin.h +0 -0
  284. /package/lib/clang/{21 → 23}/include/raointintrin.h +0 -0
  285. /package/lib/clang/{21 → 23}/include/rdpruintrin.h +0 -0
  286. /package/lib/clang/{21 → 23}/include/rdseedintrin.h +0 -0
  287. /package/lib/clang/{21 → 23}/include/rtmintrin.h +0 -0
  288. /package/lib/clang/{21 → 23}/include/s390intrin.h +0 -0
  289. /package/lib/clang/{21 → 23}/include/serializeintrin.h +0 -0
  290. /package/lib/clang/{21 → 23}/include/sgxintrin.h +0 -0
  291. /package/lib/clang/{21 → 23}/include/sha512intrin.h +0 -0
  292. /package/lib/clang/{21 → 23}/include/shaintrin.h +0 -0
  293. /package/lib/clang/{21 → 23}/include/sm3intrin.h +0 -0
  294. /package/lib/clang/{21 → 23}/include/sm4intrin.h +0 -0
  295. /package/lib/clang/{21 → 23}/include/stdalign.h +0 -0
  296. /package/lib/clang/{21 → 23}/include/stdarg.h +0 -0
  297. /package/lib/clang/{21 → 23}/include/stdatomic.h +0 -0
  298. /package/lib/clang/{21 → 23}/include/stdbool.h +0 -0
  299. /package/lib/clang/{21 → 23}/include/stdckdint.h +0 -0
  300. /package/lib/clang/{21 → 23}/include/stdcountof.h +0 -0
  301. /package/lib/clang/{21 → 23}/include/stddef.h +0 -0
  302. /package/lib/clang/{21 → 23}/include/stdnoreturn.h +0 -0
  303. /package/lib/clang/{21 → 23}/include/tbmintrin.h +0 -0
  304. /package/lib/clang/{21 → 23}/include/tgmath.h +0 -0
  305. /package/lib/clang/{21 → 23}/include/tsxldtrkintrin.h +0 -0
  306. /package/lib/clang/{21 → 23}/include/uintrintrin.h +0 -0
  307. /package/lib/clang/{21 → 23}/include/unwind.h +0 -0
  308. /package/lib/clang/{21 → 23}/include/usermsrintrin.h +0 -0
  309. /package/lib/clang/{21 → 23}/include/vadefs.h +0 -0
  310. /package/lib/clang/{21 → 23}/include/varargs.h +0 -0
  311. /package/lib/clang/{21 → 23}/include/velintrin.h +0 -0
  312. /package/lib/clang/{21 → 23}/include/velintrin_approx.h +0 -0
  313. /package/lib/clang/{21 → 23}/include/velintrin_gen.h +0 -0
  314. /package/lib/clang/{21 → 23}/include/vpclmulqdqintrin.h +0 -0
  315. /package/lib/clang/{21 → 23}/include/waitpkgintrin.h +0 -0
  316. /package/lib/clang/{21 → 23}/include/wbnoinvdintrin.h +0 -0
  317. /package/lib/clang/{21 → 23}/include/wmmintrin.h +0 -0
  318. /package/lib/clang/{21 → 23}/include/x86gprintrin.h +0 -0
  319. /package/lib/clang/{21 → 23}/include/x86intrin.h +0 -0
  320. /package/lib/clang/{21 → 23}/include/xsavecintrin.h +0 -0
  321. /package/lib/clang/{21 → 23}/include/xsaveintrin.h +0 -0
  322. /package/lib/clang/{21 → 23}/include/xsaveoptintrin.h +0 -0
  323. /package/lib/clang/{21 → 23}/include/xsavesintrin.h +0 -0
  324. /package/lib/clang/{21 → 23}/include/xtestintrin.h +0 -0
  325. /package/lib/clang/{21 → 23}/include/yvals_core.h +0 -0
  326. /package/lib/clang/{21 → 23}/include/zos_wrappers/builtins.h +0 -0
@@ -449,33 +449,33 @@ inline __device__ double2 __ldg(const double2 *ptr) {
449
449
  inline __device__ unsigned __funnelshift_l(unsigned low32, unsigned high32,
450
450
  unsigned shiftWidth) {
451
451
  unsigned result;
452
- asm("shf.l.wrap.b32 %0, %1, %2, %3;"
453
- : "=r"(result)
454
- : "r"(low32), "r"(high32), "r"(shiftWidth));
452
+ __asm__("shf.l.wrap.b32 %0, %1, %2, %3;"
453
+ : "=r"(result)
454
+ : "r"(low32), "r"(high32), "r"(shiftWidth));
455
455
  return result;
456
456
  }
457
457
  inline __device__ unsigned __funnelshift_lc(unsigned low32, unsigned high32,
458
458
  unsigned shiftWidth) {
459
459
  unsigned result;
460
- asm("shf.l.clamp.b32 %0, %1, %2, %3;"
461
- : "=r"(result)
462
- : "r"(low32), "r"(high32), "r"(shiftWidth));
460
+ __asm__("shf.l.clamp.b32 %0, %1, %2, %3;"
461
+ : "=r"(result)
462
+ : "r"(low32), "r"(high32), "r"(shiftWidth));
463
463
  return result;
464
464
  }
465
465
  inline __device__ unsigned __funnelshift_r(unsigned low32, unsigned high32,
466
466
  unsigned shiftWidth) {
467
467
  unsigned result;
468
- asm("shf.r.wrap.b32 %0, %1, %2, %3;"
469
- : "=r"(result)
470
- : "r"(low32), "r"(high32), "r"(shiftWidth));
468
+ __asm__("shf.r.wrap.b32 %0, %1, %2, %3;"
469
+ : "=r"(result)
470
+ : "r"(low32), "r"(high32), "r"(shiftWidth));
471
471
  return result;
472
472
  }
473
473
  inline __device__ unsigned __funnelshift_rc(unsigned low32, unsigned high32,
474
474
  unsigned shiftWidth) {
475
475
  unsigned ret;
476
- asm("shf.r.clamp.b32 %0, %1, %2, %3;"
477
- : "=r"(ret)
478
- : "r"(low32), "r"(high32), "r"(shiftWidth));
476
+ __asm__("shf.r.clamp.b32 %0, %1, %2, %3;"
477
+ : "=r"(ret)
478
+ : "r"(low32), "r"(high32), "r"(shiftWidth));
479
479
  return ret;
480
480
  }
481
481
 
@@ -483,38 +483,40 @@ inline __device__ unsigned __funnelshift_rc(unsigned low32, unsigned high32,
483
483
 
484
484
  #pragma push_macro("__INTRINSIC_LOAD")
485
485
  #define __INTRINSIC_LOAD(__FnName, __AsmOp, __DeclType, __TmpType, __AsmType, \
486
- __Clobber) \
486
+ __Volatile, __Clobber) \
487
487
  inline __device__ __DeclType __FnName(const __DeclType *__ptr) { \
488
488
  __TmpType __ret; \
489
- asm(__AsmOp " %0, [%1];" : __AsmType(__ret) : "l"(__ptr)__Clobber); \
489
+ __asm__ __Volatile(__AsmOp " %0, [%1];" \
490
+ : __AsmType(__ret) \
491
+ : "l"(__ptr)__Clobber); \
490
492
  return (__DeclType)__ret; \
491
493
  }
492
494
 
493
495
  #pragma push_macro("__INTRINSIC_LOAD2")
494
496
  #define __INTRINSIC_LOAD2(__FnName, __AsmOp, __DeclType, __TmpType, __AsmType, \
495
- __Clobber) \
497
+ __Volatile, __Clobber) \
496
498
  inline __device__ __DeclType __FnName(const __DeclType *__ptr) { \
497
499
  __DeclType __ret; \
498
500
  __TmpType __tmp; \
499
- asm(__AsmOp " {%0,%1}, [%2];" \
500
- : __AsmType(__tmp.x), __AsmType(__tmp.y) \
501
- : "l"(__ptr)__Clobber); \
501
+ __asm__ __Volatile(__AsmOp " {%0,%1}, [%2];" \
502
+ : __AsmType(__tmp.x), __AsmType(__tmp.y) \
503
+ : "l"(__ptr)__Clobber); \
502
504
  using __ElementType = decltype(__ret.x); \
503
- __ret.x = (__ElementType)(__tmp.x); \
505
+ __ret.x = (__ElementType)__tmp.x; \
504
506
  __ret.y = (__ElementType)__tmp.y; \
505
507
  return __ret; \
506
508
  }
507
509
 
508
510
  #pragma push_macro("__INTRINSIC_LOAD4")
509
511
  #define __INTRINSIC_LOAD4(__FnName, __AsmOp, __DeclType, __TmpType, __AsmType, \
510
- __Clobber) \
512
+ __Volatile, __Clobber) \
511
513
  inline __device__ __DeclType __FnName(const __DeclType *__ptr) { \
512
514
  __DeclType __ret; \
513
515
  __TmpType __tmp; \
514
- asm(__AsmOp " {%0,%1,%2,%3}, [%4];" \
515
- : __AsmType(__tmp.x), __AsmType(__tmp.y), __AsmType(__tmp.z), \
516
- __AsmType(__tmp.w) \
517
- : "l"(__ptr)__Clobber); \
516
+ __asm__ __Volatile(__AsmOp " {%0,%1,%2,%3}, [%4];" \
517
+ : __AsmType(__tmp.x), __AsmType(__tmp.y), \
518
+ __AsmType(__tmp.z), __AsmType(__tmp.w) \
519
+ : "l"(__ptr)__Clobber); \
518
520
  using __ElementType = decltype(__ret.x); \
519
521
  __ret.x = (__ElementType)__tmp.x; \
520
522
  __ret.y = (__ElementType)__tmp.y; \
@@ -523,179 +525,105 @@ inline __device__ unsigned __funnelshift_rc(unsigned low32, unsigned high32,
523
525
  return __ret; \
524
526
  }
525
527
 
526
- __INTRINSIC_LOAD(__ldcg, "ld.global.cg.s8", char, unsigned int, "=r", );
527
- __INTRINSIC_LOAD(__ldcg, "ld.global.cg.s8", signed char, unsigned int, "=r", );
528
- __INTRINSIC_LOAD(__ldcg, "ld.global.cg.s16", short, unsigned short, "=h", );
529
- __INTRINSIC_LOAD(__ldcg, "ld.global.cg.s32", int, unsigned int, "=r", );
530
- __INTRINSIC_LOAD(__ldcg, "ld.global.cg.s64", long long, unsigned long long,
531
- "=l", );
532
-
533
- __INTRINSIC_LOAD2(__ldcg, "ld.global.cg.v2.s8", char2, int2, "=r", );
534
- __INTRINSIC_LOAD4(__ldcg, "ld.global.cg.v4.s8", char4, int4, "=r", );
535
- __INTRINSIC_LOAD2(__ldcg, "ld.global.cg.v2.s16", short2, short2, "=h", );
536
- __INTRINSIC_LOAD4(__ldcg, "ld.global.cg.v4.s16", short4, short4, "=h", );
537
- __INTRINSIC_LOAD2(__ldcg, "ld.global.cg.v2.s32", int2, int2, "=r", );
538
- __INTRINSIC_LOAD4(__ldcg, "ld.global.cg.v4.s32", int4, int4, "=r", );
539
- __INTRINSIC_LOAD2(__ldcg, "ld.global.cg.v2.s64 ", longlong2, longlong2, "=l", );
540
-
541
- __INTRINSIC_LOAD(__ldcg, "ld.global.cg.u8", unsigned char, unsigned int,
542
- "=r", );
543
- __INTRINSIC_LOAD(__ldcg, "ld.global.cg.u16", unsigned short, unsigned short,
544
- "=h", );
545
- __INTRINSIC_LOAD(__ldcg, "ld.global.cg.u32", unsigned int, unsigned int,
546
- "=r", );
547
- __INTRINSIC_LOAD(__ldcg, "ld.global.cg.u64", unsigned long long,
548
- unsigned long long, "=l", );
549
-
550
- __INTRINSIC_LOAD2(__ldcg, "ld.global.cg.v2.u8", uchar2, int2, "=r", );
551
- __INTRINSIC_LOAD4(__ldcg, "ld.global.cg.v4.u8", uchar4, int4, "=r", );
552
- __INTRINSIC_LOAD2(__ldcg, "ld.global.cg.v2.u16", ushort2, ushort2, "=h", );
553
- __INTRINSIC_LOAD4(__ldcg, "ld.global.cg.v4.u16", ushort4, ushort4, "=h", );
554
- __INTRINSIC_LOAD2(__ldcg, "ld.global.cg.v2.u32", uint2, uint2, "=r", );
555
- __INTRINSIC_LOAD4(__ldcg, "ld.global.cg.v4.u32", uint4, uint4, "=r", );
556
- __INTRINSIC_LOAD2(__ldcg, "ld.global.cg.v2.u64", ulonglong2, ulonglong2,
557
- "=l", );
558
-
559
- __INTRINSIC_LOAD(__ldcg, "ld.global.cg.f32", float, float, "=f", );
560
- __INTRINSIC_LOAD(__ldcg, "ld.global.cg.f64", double, double, "=d", );
561
- __INTRINSIC_LOAD2(__ldcg, "ld.global.cg.v2.f32", float2, float2, "=f", );
562
- __INTRINSIC_LOAD4(__ldcg, "ld.global.cg.v4.f32", float4, float4, "=f", );
563
- __INTRINSIC_LOAD2(__ldcg, "ld.global.cg.v2.f64", double2, double2, "=d", );
564
-
565
- inline __device__ long __ldcg(const long *__ptr) {
566
- unsigned long __ret;
567
- if (sizeof(long) == 8) {
568
- asm("ld.global.cg.s64 %0, [%1];" : "=l"(__ret) : "l"(__ptr));
569
- } else {
570
- asm("ld.global.cg.s32 %0, [%1];" : "=r"(__ret) : "l"(__ptr));
528
+ #pragma push_macro("__INTRINSIC_LOAD_LONG")
529
+ #define __INTRINSIC_LOAD_LONG(__Mode) \
530
+ inline __device__ long __ld##__Mode(const long *__ptr) { \
531
+ if (__SIZEOF_LONG__ == __SIZEOF_LONG_LONG__) { \
532
+ return (long)__ld##__Mode((const long long *)__ptr); \
533
+ } else { \
534
+ return (long)__ld##__Mode((const int *)__ptr); \
535
+ } \
571
536
  }
572
- return (long)__ret;
573
- }
574
-
575
- __INTRINSIC_LOAD(__ldcv, "ld.global.cv.u8", unsigned char, unsigned int,
576
- "=r", : "memory");
577
- __INTRINSIC_LOAD(__ldcv, "ld.global.cv.u16", unsigned short, unsigned short,
578
- "=h", : "memory");
579
- __INTRINSIC_LOAD(__ldcv, "ld.global.cv.u32", unsigned int, unsigned int,
580
- "=r", : "memory");
581
- __INTRINSIC_LOAD(__ldcv, "ld.global.cv.u64", unsigned long long,
582
- unsigned long long, "=l", : "memory");
583
-
584
- __INTRINSIC_LOAD(__ldcv, "ld.global.cv.s8", char, unsigned int,
585
- "=r", : "memory");
586
- __INTRINSIC_LOAD(__ldcv, "ld.global.cv.s8", signed char, unsigned int,
587
- "=r", : "memory");
588
- __INTRINSIC_LOAD(__ldcv, "ld.global.cv.s16", short, unsigned short,
589
- "=h", : "memory");
590
- __INTRINSIC_LOAD(__ldcv, "ld.global.cv.s32", int, unsigned int,
591
- "=r", : "memory");
592
- __INTRINSIC_LOAD(__ldcv, "ld.global.cv.s64", long long, unsigned long long,
593
- "=l", : "memory");
594
-
595
- __INTRINSIC_LOAD2(__ldcv, "ld.global.cv.v2.u8", uchar2, uint2,
596
- "=r", : "memory");
597
- __INTRINSIC_LOAD4(__ldcv, "ld.global.cv.v4.u8", uchar4, uint4,
598
- "=r", : "memory");
599
- __INTRINSIC_LOAD2(__ldcv, "ld.global.cv.v2.u16", ushort2, ushort2,
600
- "=h", : "memory");
601
- __INTRINSIC_LOAD4(__ldcv, "ld.global.cv.v4.u16", ushort4, ushort4,
602
- "=h", : "memory");
603
- __INTRINSIC_LOAD2(__ldcv, "ld.global.cv.v2.u32", uint2, uint2,
604
- "=r", : "memory");
605
- __INTRINSIC_LOAD4(__ldcv, "ld.global.cv.v4.u32", uint4, uint4,
606
- "=r", : "memory");
607
- __INTRINSIC_LOAD2(__ldcv, "ld.global.cv.v2.u64", ulonglong2, ulonglong2,
608
- "=l", : "memory");
609
-
610
- __INTRINSIC_LOAD2(__ldcv, "ld.global.cv.v2.s8", char2, int2, "=r", : "memory");
611
- __INTRINSIC_LOAD4(__ldcv, "ld.global.cv.v4.s8", char4, int4, "=r", : "memory");
612
- __INTRINSIC_LOAD2(__ldcv, "ld.global.cv.v2.s16", short2, short2,
613
- "=h", : "memory");
614
- __INTRINSIC_LOAD4(__ldcv, "ld.global.cv.v4.s16", short4, short4,
615
- "=h", : "memory");
616
- __INTRINSIC_LOAD2(__ldcv, "ld.global.cv.v2.s32", int2, int2, "=r", : "memory");
617
- __INTRINSIC_LOAD4(__ldcv, "ld.global.cv.v4.s32", int4, int4, "=r", : "memory");
618
- __INTRINSIC_LOAD2(__ldcv, "ld.global.cv.v2.s64", longlong2, longlong2,
619
- "=l", : "memory");
620
-
621
- __INTRINSIC_LOAD(__ldcv, "ld.global.cv.f32", float, float, "=f", : "memory");
622
- __INTRINSIC_LOAD(__ldcv, "ld.global.cv.f64", double, double, "=d", : "memory");
623
-
624
- __INTRINSIC_LOAD2(__ldcv, "ld.global.cv.v2.f32", float2, float2,
625
- "=f", : "memory");
626
- __INTRINSIC_LOAD4(__ldcv, "ld.global.cv.v4.f32", float4, float4,
627
- "=f", : "memory");
628
- __INTRINSIC_LOAD2(__ldcv, "ld.global.cv.v2.f64", double2, double2,
629
- "=d", : "memory");
630
-
631
- inline __device__ long __ldcv(const long *__ptr) {
632
- unsigned long __ret;
633
- if (sizeof(long) == 8) {
634
- asm("ld.global.cv.s64 %0, [%1];" : "=l"(__ret) : "l"(__ptr));
635
- } else {
636
- asm("ld.global.cv.s32 %0, [%1];" : "=r"(__ret) : "l"(__ptr));
537
+
538
+ #pragma push_macro("__INTRINSIC_LOAD_ULONG")
539
+ #define __INTRINSIC_LOAD_ULONG(__Mode) \
540
+ inline __device__ unsigned long __ld##__Mode(const unsigned long *__ptr) { \
541
+ if (__SIZEOF_LONG__ == __SIZEOF_LONG_LONG__) { \
542
+ return (unsigned long)__ld##__Mode((const unsigned long long *)__ptr); \
543
+ } else { \
544
+ return (unsigned long)__ld##__Mode((const unsigned int *)__ptr); \
545
+ } \
637
546
  }
638
- return (long)__ret;
639
- }
640
-
641
- __INTRINSIC_LOAD(__ldcs, "ld.global.cs.s8", char, unsigned int, "=r", );
642
- __INTRINSIC_LOAD(__ldcs, "ld.global.cs.s8", signed char, signed int, "=r", );
643
- __INTRINSIC_LOAD(__ldcs, "ld.global.cs.s16", short, unsigned short, "=h", );
644
- __INTRINSIC_LOAD(__ldcs, "ld.global.cs.s32", int, unsigned int, "=r", );
645
- __INTRINSIC_LOAD(__ldcs, "ld.global.cs.s64", long long, unsigned long long,
646
- "=l", );
647
-
648
- __INTRINSIC_LOAD2(__ldcs, "ld.global.cs.v2.s8", char2, int2, "=r", );
649
- __INTRINSIC_LOAD4(__ldcs, "ld.global.cs.v4.s8", char4, int4, "=r", );
650
- __INTRINSIC_LOAD2(__ldcs, "ld.global.cs.v2.s16", short2, short2, "=h", );
651
- __INTRINSIC_LOAD4(__ldcs, "ld.global.cs.v4.s16", short4, short4, "=h", );
652
- __INTRINSIC_LOAD2(__ldcs, "ld.global.cs.v2.s32", int2, int2, "=r", );
653
- __INTRINSIC_LOAD4(__ldcs, "ld.global.cs.v4.s32", int4, int4, "=r", );
654
- __INTRINSIC_LOAD2(__ldcs, "ld.global.cs.v2.s64", longlong2, longlong2, "=l", );
655
-
656
- __INTRINSIC_LOAD(__ldcs, "ld.global.cs.u8", unsigned char, unsigned int,
657
- "=r", );
658
- __INTRINSIC_LOAD(__ldcs, "ld.global.cs.u16", unsigned short, unsigned short,
659
- "=h", );
660
- __INTRINSIC_LOAD(__ldcs, "ld.global.cs.u32", unsigned int, unsigned int,
661
- "=r", );
662
- __INTRINSIC_LOAD(__ldcs, "ld.global.cs.u64", unsigned long long,
663
- unsigned long long, "=l", );
664
-
665
- __INTRINSIC_LOAD2(__ldcs, "ld.global.cs.v2.u8", uchar2, uint2, "=r", );
666
- __INTRINSIC_LOAD4(__ldcs, "ld.global.cs.v4.u8", uchar4, uint4, "=r", );
667
- __INTRINSIC_LOAD2(__ldcs, "ld.global.cs.v2.u16", ushort2, ushort2, "=h", );
668
- __INTRINSIC_LOAD4(__ldcs, "ld.global.cs.v4.u16", ushort4, ushort4, "=h", );
669
- __INTRINSIC_LOAD2(__ldcs, "ld.global.cs.v2.u32", uint2, uint2, "=r", );
670
- __INTRINSIC_LOAD4(__ldcs, "ld.global.cs.v4.u32", uint4, uint4, "=r", );
671
- __INTRINSIC_LOAD2(__ldcs, "ld.global.cs.v2.u64", ulonglong2, ulonglong2,
672
- "=l", );
673
-
674
- __INTRINSIC_LOAD(__ldcs, "ld.global.cs.f32", float, float, "=f", );
675
- __INTRINSIC_LOAD(__ldcs, "ld.global.cs.f64", double, double, "=d", );
676
- __INTRINSIC_LOAD2(__ldcs, "ld.global.cs.v2.f32", float2, float2, "=f", );
677
- __INTRINSIC_LOAD4(__ldcs, "ld.global.cs.v4.f32", float4, float4, "=f", );
678
- __INTRINSIC_LOAD2(__ldcs, "ld.global.cs.v2.f64", double2, double2, "=d", );
547
+
548
+ #define __INTRINSIC_LOAD_FAMILY(__Mode, __Volatile, __Clobber) \
549
+ __INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".s8", char, \
550
+ unsigned int, "=r", __Volatile, __Clobber) \
551
+ __INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".s8", signed char, \
552
+ unsigned int, "=r", __Volatile, __Clobber) \
553
+ __INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".s16", short, \
554
+ unsigned short, "=h", __Volatile, __Clobber) \
555
+ __INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".s32", int, \
556
+ unsigned int, "=r", __Volatile, __Clobber) \
557
+ __INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".s64", long long, \
558
+ unsigned long long, "=l", __Volatile, __Clobber) \
559
+ __INTRINSIC_LOAD2(__ld##__Mode, "ld.global." #__Mode ".v2.s8", char2, int2, \
560
+ "=r", __Volatile, __Clobber) \
561
+ __INTRINSIC_LOAD4(__ld##__Mode, "ld.global." #__Mode ".v4.s8", char4, int4, \
562
+ "=r", __Volatile, __Clobber) \
563
+ __INTRINSIC_LOAD2(__ld##__Mode, "ld.global." #__Mode ".v2.s16", short2, \
564
+ short2, "=h", __Volatile, __Clobber) \
565
+ __INTRINSIC_LOAD4(__ld##__Mode, "ld.global." #__Mode ".v4.s16", short4, \
566
+ short4, "=h", __Volatile, __Clobber) \
567
+ __INTRINSIC_LOAD2(__ld##__Mode, "ld.global." #__Mode ".v2.s32", int2, int2, \
568
+ "=r", __Volatile, __Clobber) \
569
+ __INTRINSIC_LOAD4(__ld##__Mode, "ld.global." #__Mode ".v4.s32", int4, int4, \
570
+ "=r", __Volatile, __Clobber) \
571
+ __INTRINSIC_LOAD2(__ld##__Mode, "ld.global." #__Mode ".v2.s64", longlong2, \
572
+ longlong2, "=l", __Volatile, __Clobber) \
573
+ __INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".u8", unsigned char, \
574
+ unsigned int, "=r", __Volatile, __Clobber) \
575
+ __INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".u16", unsigned short, \
576
+ unsigned short, "=h", __Volatile, __Clobber) \
577
+ __INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".u32", unsigned int, \
578
+ unsigned int, "=r", __Volatile, __Clobber) \
579
+ __INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".u64", \
580
+ unsigned long long, unsigned long long, "=l", __Volatile, \
581
+ __Clobber) \
582
+ __INTRINSIC_LOAD2(__ld##__Mode, "ld.global." #__Mode ".v2.u8", uchar2, \
583
+ uint2, "=r", __Volatile, __Clobber) \
584
+ __INTRINSIC_LOAD4(__ld##__Mode, "ld.global." #__Mode ".v4.u8", uchar4, \
585
+ uint4, "=r", __Volatile, __Clobber) \
586
+ __INTRINSIC_LOAD2(__ld##__Mode, "ld.global." #__Mode ".v2.u16", ushort2, \
587
+ ushort2, "=h", __Volatile, __Clobber) \
588
+ __INTRINSIC_LOAD4(__ld##__Mode, "ld.global." #__Mode ".v4.u16", ushort4, \
589
+ ushort4, "=h", __Volatile, __Clobber) \
590
+ __INTRINSIC_LOAD2(__ld##__Mode, "ld.global." #__Mode ".v2.u32", uint2, \
591
+ uint2, "=r", __Volatile, __Clobber) \
592
+ __INTRINSIC_LOAD4(__ld##__Mode, "ld.global." #__Mode ".v4.u32", uint4, \
593
+ uint4, "=r", __Volatile, __Clobber) \
594
+ __INTRINSIC_LOAD2(__ld##__Mode, "ld.global." #__Mode ".v2.u64", ulonglong2, \
595
+ ulonglong2, "=l", __Volatile, __Clobber) \
596
+ __INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".f32", float, float, \
597
+ "=f", __Volatile, __Clobber) \
598
+ __INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".f64", double, double, \
599
+ "=d", __Volatile, __Clobber) \
600
+ __INTRINSIC_LOAD2(__ld##__Mode, "ld.global." #__Mode ".v2.f32", float2, \
601
+ float2, "=f", __Volatile, __Clobber) \
602
+ __INTRINSIC_LOAD4(__ld##__Mode, "ld.global." #__Mode ".v4.f32", float4, \
603
+ float4, "=f", __Volatile, __Clobber) \
604
+ __INTRINSIC_LOAD2(__ld##__Mode, "ld.global." #__Mode ".v2.f64", double2, \
605
+ double2, "=d", __Volatile, __Clobber) \
606
+ __INTRINSIC_LOAD_LONG(__Mode) \
607
+ __INTRINSIC_LOAD_ULONG(__Mode)
608
+
609
+ __INTRINSIC_LOAD_FAMILY(ca, __volatile__, /* no clobber */)
610
+ __INTRINSIC_LOAD_FAMILY(cg, __volatile__, /* no clobber */)
611
+ __INTRINSIC_LOAD_FAMILY(cs, __volatile__, /* no clobber */)
612
+ __INTRINSIC_LOAD_FAMILY(cv, /* not volatile */, : "memory")
613
+ __INTRINSIC_LOAD_FAMILY(lu, /* not volatile */, : "memory")
679
614
 
680
615
  #pragma pop_macro("__INTRINSIC_LOAD")
681
616
  #pragma pop_macro("__INTRINSIC_LOAD2")
682
617
  #pragma pop_macro("__INTRINSIC_LOAD4")
683
-
684
- inline __device__ long __ldcs(const long *__ptr) {
685
- unsigned long __ret;
686
- if (sizeof(long) == 8) {
687
- asm("ld.global.cs.s64 %0, [%1];" : "=l"(__ret) : "l"(__ptr));
688
- } else {
689
- asm("ld.global.cs.s32 %0, [%1];" : "=r"(__ret) : "l"(__ptr));
690
- }
691
- return (long)__ret;
692
- }
618
+ #pragma pop_macro("__INTRINSIC_LOAD_LONG")
619
+ #pragma pop_macro("__INTRINSIC_LOAD_ULONG")
620
+ #pragma pop_macro("__INTRINSIC_LOAD_FAMILY")
693
621
 
694
622
  #pragma push_macro("__INTRINSIC_STORE")
695
623
  #define __INTRINSIC_STORE(__FnName, __AsmOp, __DeclType, __TmpType, __AsmType) \
696
624
  inline __device__ void __FnName(__DeclType *__ptr, __DeclType __value) { \
697
625
  __TmpType __tmp = (__TmpType)__value; \
698
- asm(__AsmOp " [%0], %1;" ::"l"(__ptr), __AsmType(__tmp) : "memory"); \
626
+ __asm__(__AsmOp " [%0], %1;" ::"l"(__ptr), __AsmType(__tmp) : "memory"); \
699
627
  }
700
628
 
701
629
  #pragma push_macro("__INTRINSIC_STORE2")
@@ -706,9 +634,9 @@ inline __device__ long __ldcs(const long *__ptr) {
706
634
  using __ElementType = decltype(__tmp.x); \
707
635
  __tmp.x = (__ElementType)(__value.x); \
708
636
  __tmp.y = (__ElementType)(__value.y); \
709
- asm(__AsmOp " [%0], {%1,%2};" ::"l"(__ptr), __AsmType(__tmp.x), \
710
- __AsmType(__tmp.y) \
711
- : "memory"); \
637
+ __asm__(__AsmOp " [%0], {%1,%2};" ::"l"(__ptr), __AsmType(__tmp.x), \
638
+ __AsmType(__tmp.y) \
639
+ : "memory"); \
712
640
  }
713
641
 
714
642
  #pragma push_macro("__INTRINSIC_STORE4")
@@ -721,49 +649,102 @@ inline __device__ long __ldcs(const long *__ptr) {
721
649
  __tmp.y = (__ElementType)(__value.y); \
722
650
  __tmp.z = (__ElementType)(__value.z); \
723
651
  __tmp.w = (__ElementType)(__value.w); \
724
- asm(__AsmOp " [%0], {%1,%2,%3,%4};" ::"l"(__ptr), __AsmType(__tmp.x), \
725
- __AsmType(__tmp.y), __AsmType(__tmp.z), __AsmType(__tmp.w) \
726
- : "memory"); \
652
+ __asm__(__AsmOp " [%0], {%1,%2,%3,%4};" ::"l"(__ptr), __AsmType(__tmp.x), \
653
+ __AsmType(__tmp.y), __AsmType(__tmp.z), __AsmType(__tmp.w) \
654
+ : "memory"); \
655
+ }
656
+
657
+ #pragma push_macro("__INTRINSIC_STORE_LONG")
658
+ #define __INTRINSIC_STORE_LONG(__Mode) \
659
+ inline __device__ void __st##__Mode(long *__ptr, long __value) { \
660
+ if (__SIZEOF_LONG__ == __SIZEOF_LONG_LONG__) { \
661
+ __st##__Mode((long long *)__ptr, (long long)__value); \
662
+ } else { \
663
+ __st##__Mode((int *)__ptr, (int)__value); \
664
+ } \
665
+ }
666
+
667
+ #pragma push_macro("__INTRINSIC_STORE_ULONG")
668
+ #define __INTRINSIC_STORE_ULONG(__Mode) \
669
+ inline __device__ void __st##__Mode(unsigned long *__ptr, \
670
+ unsigned long __value) { \
671
+ if (__SIZEOF_LONG__ == __SIZEOF_LONG_LONG__) { \
672
+ __st##__Mode((unsigned long long *)__ptr, (unsigned long long)__value); \
673
+ } else { \
674
+ __st##__Mode((unsigned int *)__ptr, (unsigned int)__value); \
675
+ } \
727
676
  }
728
677
 
729
- __INTRINSIC_STORE(__stwt, "st.global.wt.s8", char, int, "r");
730
- __INTRINSIC_STORE(__stwt, "st.global.wt.s8", signed char, int, "r");
731
- __INTRINSIC_STORE(__stwt, "st.global.wt.s16", short, short, "h");
732
- __INTRINSIC_STORE(__stwt, "st.global.wt.s32", int, int, "r");
733
- __INTRINSIC_STORE(__stwt, "st.global.wt.s64", long long, long long, "l");
734
-
735
- __INTRINSIC_STORE2(__stwt, "st.global.wt.v2.s8", char2, int2, "r");
736
- __INTRINSIC_STORE4(__stwt, "st.global.wt.v4.s8", char4, int4, "r");
737
- __INTRINSIC_STORE2(__stwt, "st.global.wt.v2.s16", short2, short2, "h");
738
- __INTRINSIC_STORE4(__stwt, "st.global.wt.v4.s16", short4, short4, "h");
739
- __INTRINSIC_STORE2(__stwt, "st.global.wt.v2.s32", int2, int2, "r");
740
- __INTRINSIC_STORE4(__stwt, "st.global.wt.v4.s32", int4, int4, "r");
741
- __INTRINSIC_STORE2(__stwt, "st.global.wt.v2.s64", longlong2, longlong2, "l");
742
-
743
- __INTRINSIC_STORE(__stwt, "st.global.wt.u8", unsigned char, int, "r");
744
- __INTRINSIC_STORE(__stwt, "st.global.wt.u16", unsigned short, unsigned short,
745
- "h");
746
- __INTRINSIC_STORE(__stwt, "st.global.wt.u32", unsigned int, unsigned int, "r");
747
- __INTRINSIC_STORE(__stwt, "st.global.wt.u64", unsigned long long,
748
- unsigned long long, "l");
749
-
750
- __INTRINSIC_STORE2(__stwt, "st.global.wt.v2.u8", uchar2, uchar2, "r");
751
- __INTRINSIC_STORE4(__stwt, "st.global.wt.v4.u8", uchar4, uint4, "r");
752
- __INTRINSIC_STORE2(__stwt, "st.global.wt.v2.u16", ushort2, ushort2, "h");
753
- __INTRINSIC_STORE4(__stwt, "st.global.wt.v4.u16", ushort4, ushort4, "h");
754
- __INTRINSIC_STORE2(__stwt, "st.global.wt.v2.u32", uint2, uint2, "r");
755
- __INTRINSIC_STORE4(__stwt, "st.global.wt.v4.u32", uint4, uint4, "r");
756
- __INTRINSIC_STORE2(__stwt, "st.global.wt.v2.u64", ulonglong2, ulonglong2, "l");
757
-
758
- __INTRINSIC_STORE(__stwt, "st.global.wt.f32", float, float, "f");
759
- __INTRINSIC_STORE(__stwt, "st.global.wt.f64", double, double, "d");
760
- __INTRINSIC_STORE2(__stwt, "st.global.wt.v2.f32", float2, float2, "f");
761
- __INTRINSIC_STORE4(__stwt, "st.global.wt.v4.f32", float4, float4, "f");
762
- __INTRINSIC_STORE2(__stwt, "st.global.wt.v2.f64", double2, double2, "d");
678
+ #pragma push_macro("__INTRINSIC_STORE_FAMILY")
679
+ #define __INTRINSIC_STORE_FAMILY(__Mode) \
680
+ __INTRINSIC_STORE(__st##__Mode, "st.global." #__Mode ".s8", char, int, "r") \
681
+ __INTRINSIC_STORE(__st##__Mode, "st.global." #__Mode ".s8", signed char, \
682
+ int, "r") \
683
+ __INTRINSIC_STORE(__st##__Mode, "st.global." #__Mode ".s16", short, short, \
684
+ "h") \
685
+ __INTRINSIC_STORE(__st##__Mode, "st.global." #__Mode ".s32", int, int, "r") \
686
+ __INTRINSIC_STORE(__st##__Mode, "st.global." #__Mode ".s64", long long, \
687
+ long long, "l") \
688
+ __INTRINSIC_STORE2(__st##__Mode, "st.global." #__Mode ".v2.s8", char2, int2, \
689
+ "r") \
690
+ __INTRINSIC_STORE4(__st##__Mode, "st.global." #__Mode ".v4.s8", char4, int4, \
691
+ "r") \
692
+ __INTRINSIC_STORE2(__st##__Mode, "st.global." #__Mode ".v2.s16", short2, \
693
+ short2, "h") \
694
+ __INTRINSIC_STORE4(__st##__Mode, "st.global." #__Mode ".v4.s16", short4, \
695
+ short4, "h") \
696
+ __INTRINSIC_STORE2(__st##__Mode, "st.global." #__Mode ".v2.s32", int2, int2, \
697
+ "r") \
698
+ __INTRINSIC_STORE4(__st##__Mode, "st.global." #__Mode ".v4.s32", int4, int4, \
699
+ "r") \
700
+ __INTRINSIC_STORE2(__st##__Mode, "st.global." #__Mode ".v2.s64", longlong2, \
701
+ longlong2, "l") \
702
+ __INTRINSIC_STORE(__st##__Mode, "st.global." #__Mode ".u8", unsigned char, \
703
+ int, "r") \
704
+ __INTRINSIC_STORE(__st##__Mode, "st.global." #__Mode ".u16", unsigned short, \
705
+ unsigned short, "h") \
706
+ __INTRINSIC_STORE(__st##__Mode, "st.global." #__Mode ".u32", unsigned int, \
707
+ unsigned int, "r") \
708
+ __INTRINSIC_STORE(__st##__Mode, "st.global." #__Mode ".u64", \
709
+ unsigned long long, unsigned long long, "l") \
710
+ __INTRINSIC_STORE2(__st##__Mode, "st.global." #__Mode ".v2.u8", uchar2, \
711
+ uchar2, "r") \
712
+ __INTRINSIC_STORE4(__st##__Mode, "st.global." #__Mode ".v4.u8", uchar4, \
713
+ uint4, "r") \
714
+ __INTRINSIC_STORE2(__st##__Mode, "st.global." #__Mode ".v2.u16", ushort2, \
715
+ ushort2, "h") \
716
+ __INTRINSIC_STORE4(__st##__Mode, "st.global." #__Mode ".v4.u16", ushort4, \
717
+ ushort4, "h") \
718
+ __INTRINSIC_STORE2(__st##__Mode, "st.global." #__Mode ".v2.u32", uint2, \
719
+ uint2, "r") \
720
+ __INTRINSIC_STORE4(__st##__Mode, "st.global." #__Mode ".v4.u32", uint4, \
721
+ uint4, "r") \
722
+ __INTRINSIC_STORE2(__st##__Mode, "st.global." #__Mode ".v2.u64", ulonglong2, \
723
+ ulonglong2, "l") \
724
+ __INTRINSIC_STORE(__st##__Mode, "st.global." #__Mode ".f32", float, float, \
725
+ "f") \
726
+ __INTRINSIC_STORE(__st##__Mode, "st.global." #__Mode ".f64", double, double, \
727
+ "d") \
728
+ __INTRINSIC_STORE2(__st##__Mode, "st.global." #__Mode ".v2.f32", float2, \
729
+ float2, "f") \
730
+ __INTRINSIC_STORE4(__st##__Mode, "st.global." #__Mode ".v4.f32", float4, \
731
+ float4, "f") \
732
+ __INTRINSIC_STORE2(__st##__Mode, "st.global." #__Mode ".v2.f64", double2, \
733
+ double2, "d") \
734
+ __INTRINSIC_STORE_LONG(__Mode) \
735
+ __INTRINSIC_STORE_ULONG(__Mode)
736
+
737
+ __INTRINSIC_STORE_FAMILY(cg)
738
+ __INTRINSIC_STORE_FAMILY(cs)
739
+ __INTRINSIC_STORE_FAMILY(wb)
740
+ __INTRINSIC_STORE_FAMILY(wt)
763
741
 
764
742
  #pragma pop_macro("__INTRINSIC_STORE")
765
743
  #pragma pop_macro("__INTRINSIC_STORE2")
766
744
  #pragma pop_macro("__INTRINSIC_STORE4")
745
+ #pragma pop_macro("__INTRINSIC_STORE_LONG")
746
+ #pragma pop_macro("__INTRINSIC_STORE_ULONG")
747
+ #pragma pop_macro("__INTRINSIC_STORE_FAMILY")
767
748
 
768
749
  #endif // defined(__cplusplus) && (__cplusplus >= 201103L)
769
750
  #endif // !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 320
@@ -70,6 +70,11 @@ __DEVICE__ double floor(double);
70
70
  __DEVICE__ float floor(float);
71
71
  __DEVICE__ double fma(double, double, double);
72
72
  __DEVICE__ float fma(float, float, float);
73
+ #ifdef _MSC_VER
74
+ // long double fma variant is not actually supported by CUDA (PTX).
75
+ // However, MS-STL requires that this is forward declared anyways.
76
+ __DEVICE__ long double fma(long double, long double, long double);
77
+ #endif
73
78
  __DEVICE__ double fmax(double, double);
74
79
  __DEVICE__ float fmax(float, float);
75
80
  __DEVICE__ double fmin(double, double);
@@ -34,16 +34,29 @@
34
34
  // Define __CUDACC__ early as libstdc++ standard headers with GNU extensions
35
35
  // enabled depend on it to avoid using __float128, which is unsupported in
36
36
  // CUDA.
37
- #define __CUDACC__
37
+ #define __CUDACC__ 1
38
38
 
39
39
  // Include some standard headers to avoid CUDA headers including them
40
40
  // while some required macros (like __THROW) are in a weird state.
41
+ #include <climits>
41
42
  #include <cmath>
42
43
  #include <cstdlib>
43
44
  #include <stdlib.h>
44
45
  #include <string.h>
45
46
  #undef __CUDACC__
46
47
 
48
+ // math_functions.h from CUDA 13.2+ defines _NV_RSQRT_SPECIFIER.
49
+ // Clang does not include it, so we need to define it ourselves.
50
+ #if defined(__GNUC__) && defined(__GLIBC_PREREQ)
51
+ #if __GLIBC_PREREQ(2, 42)
52
+ #define _NV_RSQRT_SPECIFIER noexcept(true)
53
+ #endif
54
+ #endif
55
+
56
+ #ifndef _NV_RSQRT_SPECIFIER
57
+ #define _NV_RSQRT_SPECIFIER
58
+ #endif
59
+
47
60
  // Preserve common macros that will be changed below by us or by CUDA
48
61
  // headers.
49
62
  #pragma push_macro("__THROW")
@@ -90,7 +103,7 @@
90
103
  #if CUDA_VERSION < 9000
91
104
  #define __CUDABE__
92
105
  #else
93
- #define __CUDACC__
106
+ #define __CUDACC__ 1
94
107
  #define __CUDA_LIBDEVICE__
95
108
  #endif
96
109
  // Disables definitions of device-side runtime support stubs in
@@ -107,7 +120,7 @@
107
120
  #define nv_weak weak
108
121
  #undef __CUDABE__
109
122
  #undef __CUDA_LIBDEVICE__
110
- #define __CUDACC__
123
+ #define __CUDACC__ 1
111
124
  #include "cuda_runtime.h"
112
125
 
113
126
  #pragma pop_macro("nv_weak")
@@ -253,7 +266,7 @@ static inline __device__ void __brkpt(int __c) { __brkpt(); }
253
266
  // branch of #if/else inside.
254
267
  #define __host__
255
268
  #undef __CUDABE__
256
- #define __CUDACC__
269
+ #define __CUDACC__ 1
257
270
  #if CUDA_VERSION >= 9000
258
271
  // Some atomic functions became compiler builtins in CUDA-9 , so we need their
259
272
  // declarations.
@@ -385,7 +398,12 @@ __host__ __device__ void __nv_tex_surf_handler(const char *name, T *ptr,
385
398
  #endif // CUDA_VERSION
386
399
  #endif // __cplusplus >= 201103L && CUDA_VERSION >= 9000
387
400
  #include "surface_indirect_functions.h"
401
+ #if CUDA_VERSION < 13000
402
+ // Direct texture fetch functions had been deprecated since CUDA-11.
403
+ // The file in CUDA-12 only carried unused texture types, and is no longer
404
+ // needed.
388
405
  #include "texture_fetch_functions.h"
406
+ #endif // CUDA_VERSION < 13000
389
407
  #include "texture_indirect_functions.h"
390
408
 
391
409
  // Restore state of __CUDA_ARCH__ and __THROW we had on entry.
@@ -394,7 +412,7 @@ __host__ __device__ void __nv_tex_surf_handler(const char *name, T *ptr,
394
412
 
395
413
  // Set up compiler macros expected to be seen during compilation.
396
414
  #undef __CUDABE__
397
- #define __CUDACC__
415
+ #define __CUDACC__ 1
398
416
 
399
417
  extern "C" {
400
418
  // Device-side CUDA system calls.
@@ -500,5 +518,9 @@ extern "C" unsigned __cudaPushCallConfiguration(dim3 gridDim, dim3 blockDim,
500
518
  void *stream = 0);
501
519
  #endif
502
520
 
521
+ // Enable libcudacxx cooperative groups cluster functionality when using the
522
+ // Clang CUDA runtime wrapper.
523
+ #define _CG_CLUSTER_INTRINSICS_AVAILABLE 1
524
+
503
525
  #endif // __CUDA__
504
526
  #endif // __CLANG_CUDA_RUNTIME_WRAPPER_H__