@cpp-linter/clang-tidy-win32-x64 12.0.1 → 14.0.0

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 (178) hide show
  1. package/README.md +2 -2
  2. package/bin/clang-tidy.exe +2 -2
  3. package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_cuda_complex_builtins.h +3 -3
  4. package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_cuda_device_functions.h +174 -102
  5. package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_cuda_intrinsics.h +32 -0
  6. package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_cuda_libdevice_declares.h +6 -0
  7. package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_cuda_math.h +3 -3
  8. package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_cuda_runtime_wrapper.h +68 -8
  9. package/lib/clang/14.0.0/include/__clang_cuda_texture_intrinsics.h +740 -0
  10. package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_hip_cmath.h +272 -94
  11. package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_hip_libdevice_declares.h +24 -12
  12. package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_hip_math.h +48 -2
  13. package/lib/clang/14.0.0/include/__clang_hip_runtime_wrapper.h +137 -0
  14. package/lib/clang/{12.0.1 → 14.0.0}/include/__wmmintrin_aes.h +1 -1
  15. package/lib/clang/{12.0.1 → 14.0.0}/include/altivec.h +1348 -496
  16. package/lib/clang/{12.0.1 → 14.0.0}/include/ammintrin.h +4 -0
  17. package/lib/clang/14.0.0/include/amxintrin.h +494 -0
  18. package/lib/clang/{12.0.1 → 14.0.0}/include/arm_acle.h +61 -0
  19. package/lib/clang/{12.0.1 → 14.0.0}/include/arm_neon.h +5544 -4634
  20. package/lib/clang/14.0.0/include/arm_neon_sve_bridge.h +184 -0
  21. package/lib/clang/{12.0.1 → 14.0.0}/include/arm_sve.h +11791 -5896
  22. package/lib/clang/{12.0.1 → 14.0.0}/include/avx2intrin.h +181 -181
  23. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512bf16intrin.h +3 -3
  24. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512bwintrin.h +71 -71
  25. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512dqintrin.h +365 -365
  26. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512erintrin.h +102 -102
  27. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512fintrin.h +1750 -1606
  28. package/lib/clang/14.0.0/include/avx512fp16intrin.h +3349 -0
  29. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vbmi2intrin.h +48 -48
  30. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vlbf16intrin.h +51 -3
  31. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vlbwintrin.h +94 -94
  32. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vldqintrin.h +134 -134
  33. package/lib/clang/14.0.0/include/avx512vlfp16intrin.h +2068 -0
  34. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vlintrin.h +563 -563
  35. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vlvbmi2intrin.h +96 -96
  36. package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vlvnniintrin.h +8 -8
  37. package/lib/clang/{12.0.1 → 14.0.0}/include/avxintrin.h +189 -192
  38. package/lib/clang/14.0.0/include/builtins.h +16 -0
  39. package/lib/clang/{12.0.1 → 14.0.0}/include/cetintrin.h +10 -0
  40. package/lib/clang/{12.0.1 → 14.0.0}/include/cpuid.h +2 -1
  41. package/lib/clang/14.0.0/include/crc32intrin.h +100 -0
  42. package/lib/clang/{12.0.1 → 14.0.0}/include/cuda_wrappers/complex +8 -0
  43. package/lib/clang/{12.0.1 → 14.0.0}/include/emmintrin.h +21 -17
  44. package/lib/clang/{12.0.1 → 14.0.0}/include/f16cintrin.h +4 -4
  45. package/lib/clang/{12.0.1 → 14.0.0}/include/float.h +15 -6
  46. package/lib/clang/{12.0.1 → 14.0.0}/include/gfniintrin.h +47 -48
  47. package/lib/clang/14.0.0/include/hexagon_circ_brev_intrinsics.h +298 -0
  48. package/lib/clang/14.0.0/include/hexagon_protos.h +8439 -0
  49. package/lib/clang/14.0.0/include/hexagon_types.h +2621 -0
  50. package/lib/clang/14.0.0/include/hvx_hexagon_protos.h +5183 -0
  51. package/lib/clang/{12.0.1 → 14.0.0}/include/ia32intrin.h +6 -6
  52. package/lib/clang/{12.0.1 → 14.0.0}/include/immintrin.h +31 -13
  53. package/lib/clang/{12.0.1 → 14.0.0}/include/intrin.h +63 -19
  54. package/lib/clang/{12.0.1 → 14.0.0}/include/keylockerintrin.h +32 -8
  55. package/lib/clang/{12.0.1 → 14.0.0}/include/limits.h +20 -0
  56. package/lib/clang/{12.0.1 → 14.0.0}/include/mmintrin.h +4 -0
  57. package/lib/clang/{12.0.1 → 14.0.0}/include/nmmintrin.h +4 -0
  58. package/lib/clang/{12.0.1 → 14.0.0}/include/opencl-c-base.h +206 -7
  59. package/lib/clang/{12.0.1 → 14.0.0}/include/opencl-c.h +2187 -797
  60. package/lib/clang/14.0.0/include/openmp_wrappers/__clang_openmp_device_functions.h +106 -0
  61. package/lib/clang/{12.0.1 → 14.0.0}/include/openmp_wrappers/cmath +54 -0
  62. package/lib/clang/{12.0.1 → 14.0.0}/include/openmp_wrappers/complex +11 -8
  63. package/lib/clang/{12.0.1 → 14.0.0}/include/openmp_wrappers/complex.h +9 -1
  64. package/lib/clang/{12.0.1 → 14.0.0}/include/openmp_wrappers/math.h +10 -0
  65. package/lib/clang/{12.0.1 → 14.0.0}/include/openmp_wrappers/new +2 -24
  66. package/lib/clang/{12.0.1 → 14.0.0}/include/pmmintrin.h +4 -0
  67. package/lib/clang/{12.0.1 → 14.0.0}/include/ppc_wrappers/emmintrin.h +3 -2
  68. package/lib/clang/{12.0.1 → 14.0.0}/include/ppc_wrappers/mm_malloc.h +2 -2
  69. package/lib/clang/{12.0.1 → 14.0.0}/include/ppc_wrappers/mmintrin.h +3 -2
  70. package/lib/clang/{12.0.1 → 14.0.0}/include/ppc_wrappers/pmmintrin.h +3 -2
  71. package/lib/clang/{12.0.1 → 14.0.0}/include/ppc_wrappers/smmintrin.h +4 -3
  72. package/lib/clang/{12.0.1 → 14.0.0}/include/ppc_wrappers/tmmintrin.h +3 -2
  73. package/lib/clang/{12.0.1 → 14.0.0}/include/ppc_wrappers/xmmintrin.h +3 -2
  74. package/lib/clang/{12.0.1 → 14.0.0}/include/prfchwintrin.h +5 -2
  75. package/lib/clang/14.0.0/include/riscv_vector.h +95423 -0
  76. package/lib/clang/{12.0.1 → 14.0.0}/include/smmintrin.h +80 -159
  77. package/lib/clang/{12.0.1 → 14.0.0}/include/stdatomic.h +14 -1
  78. package/lib/clang/{12.0.1 → 14.0.0}/include/stdint.h +168 -0
  79. package/lib/clang/{12.0.1 → 14.0.0}/include/tmmintrin.h +10 -6
  80. package/lib/clang/{12.0.1 → 14.0.0}/include/uintrintrin.h +7 -0
  81. package/lib/clang/{12.0.1 → 14.0.0}/include/unwind.h +2 -1
  82. package/lib/clang/{12.0.1 → 14.0.0}/include/vaesintrin.h +22 -21
  83. package/lib/clang/{12.0.1 → 14.0.0}/include/vecintrin.h +206 -77
  84. package/lib/clang/{12.0.1 → 14.0.0}/include/vpclmulqdqintrin.h +8 -6
  85. package/lib/clang/14.0.0/include/wasm_simd128.h +1877 -0
  86. package/lib/clang/{12.0.1 → 14.0.0}/include/wmmintrin.h +4 -0
  87. package/lib/clang/{12.0.1 → 14.0.0}/include/x86gprintrin.h +12 -0
  88. package/lib/clang/{12.0.1 → 14.0.0}/include/xmmintrin.h +9 -5
  89. package/lib/clang/{12.0.1 → 14.0.0}/include/xopintrin.h +31 -31
  90. package/package.json +6 -6
  91. package/lib/clang/12.0.1/include/__clang_hip_runtime_wrapper.h +0 -69
  92. package/lib/clang/12.0.1/include/amxintrin.h +0 -278
  93. package/lib/clang/12.0.1/include/openmp_wrappers/__clang_openmp_device_functions.h +0 -42
  94. package/lib/clang/12.0.1/include/wasm_simd128.h +0 -1167
  95. /package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_cuda_builtin_vars.h +0 -0
  96. /package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_cuda_cmath.h +0 -0
  97. /package/lib/clang/{12.0.1 → 14.0.0}/include/__clang_cuda_math_forward_declares.h +0 -0
  98. /package/lib/clang/{12.0.1 → 14.0.0}/include/__stddef_max_align_t.h +0 -0
  99. /package/lib/clang/{12.0.1 → 14.0.0}/include/__wmmintrin_pclmul.h +0 -0
  100. /package/lib/clang/{12.0.1 → 14.0.0}/include/adxintrin.h +0 -0
  101. /package/lib/clang/{12.0.1 → 14.0.0}/include/arm64intr.h +0 -0
  102. /package/lib/clang/{12.0.1 → 14.0.0}/include/arm_bf16.h +0 -0
  103. /package/lib/clang/{12.0.1 → 14.0.0}/include/arm_cde.h +0 -0
  104. /package/lib/clang/{12.0.1 → 14.0.0}/include/arm_cmse.h +0 -0
  105. /package/lib/clang/{12.0.1 → 14.0.0}/include/arm_fp16.h +0 -0
  106. /package/lib/clang/{12.0.1 → 14.0.0}/include/arm_mve.h +0 -0
  107. /package/lib/clang/{12.0.1 → 14.0.0}/include/armintr.h +0 -0
  108. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512bitalgintrin.h +0 -0
  109. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512cdintrin.h +0 -0
  110. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512ifmaintrin.h +0 -0
  111. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512ifmavlintrin.h +0 -0
  112. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512pfintrin.h +0 -0
  113. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vbmiintrin.h +0 -0
  114. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vbmivlintrin.h +0 -0
  115. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vlbitalgintrin.h +0 -0
  116. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vlcdintrin.h +0 -0
  117. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vlvp2intersectintrin.h +0 -0
  118. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vnniintrin.h +0 -0
  119. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vp2intersectintrin.h +0 -0
  120. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vpopcntdqintrin.h +0 -0
  121. /package/lib/clang/{12.0.1 → 14.0.0}/include/avx512vpopcntdqvlintrin.h +0 -0
  122. /package/lib/clang/{12.0.1 → 14.0.0}/include/avxvnniintrin.h +0 -0
  123. /package/lib/clang/{12.0.1 → 14.0.0}/include/bmi2intrin.h +0 -0
  124. /package/lib/clang/{12.0.1 → 14.0.0}/include/bmiintrin.h +0 -0
  125. /package/lib/clang/{12.0.1 → 14.0.0}/include/cet.h +0 -0
  126. /package/lib/clang/{12.0.1 → 14.0.0}/include/cldemoteintrin.h +0 -0
  127. /package/lib/clang/{12.0.1 → 14.0.0}/include/clflushoptintrin.h +0 -0
  128. /package/lib/clang/{12.0.1 → 14.0.0}/include/clwbintrin.h +0 -0
  129. /package/lib/clang/{12.0.1 → 14.0.0}/include/clzerointrin.h +0 -0
  130. /package/lib/clang/{12.0.1 → 14.0.0}/include/cuda_wrappers/algorithm +0 -0
  131. /package/lib/clang/{12.0.1 → 14.0.0}/include/cuda_wrappers/new +0 -0
  132. /package/lib/clang/{12.0.1 → 14.0.0}/include/enqcmdintrin.h +0 -0
  133. /package/lib/clang/{12.0.1 → 14.0.0}/include/fma4intrin.h +0 -0
  134. /package/lib/clang/{12.0.1 → 14.0.0}/include/fmaintrin.h +0 -0
  135. /package/lib/clang/{12.0.1 → 14.0.0}/include/fxsrintrin.h +0 -0
  136. /package/lib/clang/{12.0.1 → 14.0.0}/include/hresetintrin.h +0 -0
  137. /package/lib/clang/{12.0.1 → 14.0.0}/include/htmintrin.h +0 -0
  138. /package/lib/clang/{12.0.1 → 14.0.0}/include/htmxlintrin.h +0 -0
  139. /package/lib/clang/{12.0.1 → 14.0.0}/include/inttypes.h +0 -0
  140. /package/lib/clang/{12.0.1 → 14.0.0}/include/invpcidintrin.h +0 -0
  141. /package/lib/clang/{12.0.1 → 14.0.0}/include/iso646.h +0 -0
  142. /package/lib/clang/{12.0.1 → 14.0.0}/include/lwpintrin.h +0 -0
  143. /package/lib/clang/{12.0.1 → 14.0.0}/include/lzcntintrin.h +0 -0
  144. /package/lib/clang/{12.0.1 → 14.0.0}/include/mm3dnow.h +0 -0
  145. /package/lib/clang/{12.0.1 → 14.0.0}/include/mm_malloc.h +0 -0
  146. /package/lib/clang/{12.0.1 → 14.0.0}/include/module.modulemap +0 -0
  147. /package/lib/clang/{12.0.1 → 14.0.0}/include/movdirintrin.h +0 -0
  148. /package/lib/clang/{12.0.1 → 14.0.0}/include/msa.h +0 -0
  149. /package/lib/clang/{12.0.1 → 14.0.0}/include/mwaitxintrin.h +0 -0
  150. /package/lib/clang/{12.0.1 → 14.0.0}/include/openmp_wrappers/complex_cmath.h +0 -0
  151. /package/lib/clang/{12.0.1 → 14.0.0}/include/pconfigintrin.h +0 -0
  152. /package/lib/clang/{12.0.1 → 14.0.0}/include/pkuintrin.h +0 -0
  153. /package/lib/clang/{12.0.1 → 14.0.0}/include/popcntintrin.h +0 -0
  154. /package/lib/clang/{12.0.1 → 14.0.0}/include/ptwriteintrin.h +0 -0
  155. /package/lib/clang/{12.0.1 → 14.0.0}/include/rdseedintrin.h +0 -0
  156. /package/lib/clang/{12.0.1 → 14.0.0}/include/rtmintrin.h +0 -0
  157. /package/lib/clang/{12.0.1 → 14.0.0}/include/s390intrin.h +0 -0
  158. /package/lib/clang/{12.0.1 → 14.0.0}/include/serializeintrin.h +0 -0
  159. /package/lib/clang/{12.0.1 → 14.0.0}/include/sgxintrin.h +0 -0
  160. /package/lib/clang/{12.0.1 → 14.0.0}/include/shaintrin.h +0 -0
  161. /package/lib/clang/{12.0.1 → 14.0.0}/include/stdalign.h +0 -0
  162. /package/lib/clang/{12.0.1 → 14.0.0}/include/stdarg.h +0 -0
  163. /package/lib/clang/{12.0.1 → 14.0.0}/include/stdbool.h +0 -0
  164. /package/lib/clang/{12.0.1 → 14.0.0}/include/stddef.h +0 -0
  165. /package/lib/clang/{12.0.1 → 14.0.0}/include/stdnoreturn.h +0 -0
  166. /package/lib/clang/{12.0.1 → 14.0.0}/include/tbmintrin.h +0 -0
  167. /package/lib/clang/{12.0.1 → 14.0.0}/include/tgmath.h +0 -0
  168. /package/lib/clang/{12.0.1 → 14.0.0}/include/tsxldtrkintrin.h +0 -0
  169. /package/lib/clang/{12.0.1 → 14.0.0}/include/vadefs.h +0 -0
  170. /package/lib/clang/{12.0.1 → 14.0.0}/include/varargs.h +0 -0
  171. /package/lib/clang/{12.0.1 → 14.0.0}/include/waitpkgintrin.h +0 -0
  172. /package/lib/clang/{12.0.1 → 14.0.0}/include/wbnoinvdintrin.h +0 -0
  173. /package/lib/clang/{12.0.1 → 14.0.0}/include/x86intrin.h +0 -0
  174. /package/lib/clang/{12.0.1 → 14.0.0}/include/xsavecintrin.h +0 -0
  175. /package/lib/clang/{12.0.1 → 14.0.0}/include/xsaveintrin.h +0 -0
  176. /package/lib/clang/{12.0.1 → 14.0.0}/include/xsaveoptintrin.h +0 -0
  177. /package/lib/clang/{12.0.1 → 14.0.0}/include/xsavesintrin.h +0 -0
  178. /package/lib/clang/{12.0.1 → 14.0.0}/include/xtestintrin.h +0 -0
@@ -10,6 +10,10 @@
10
10
  #ifndef __WMMINTRIN_H
11
11
  #define __WMMINTRIN_H
12
12
 
13
+ #if !defined(__i386__) && !defined(__x86_64__)
14
+ #error "This header is only meant to be used on x86 and x64 architecture"
15
+ #endif
16
+
13
17
  #include <emmintrin.h>
14
18
 
15
19
  #include <__wmmintrin_aes.h>
@@ -20,4 +20,16 @@
20
20
  #include <uintrintrin.h>
21
21
  #endif
22
22
 
23
+ #if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
24
+ defined(__CRC32__)
25
+ #include <crc32intrin.h>
26
+ #endif
27
+
28
+ #define __SSC_MARK(Tag) \
29
+ __asm__ __volatile__("mov {%%ebx, %%eax|eax, ebx}; " \
30
+ "mov {%0, %%ebx|ebx, %0}; " \
31
+ ".byte 0x64, 0x67, 0x90; " \
32
+ "mov {%%eax, %%ebx|ebx, eax};" ::"i"(Tag) \
33
+ : "%eax");
34
+
23
35
  #endif /* __X86GPRINTRIN_H */
@@ -10,6 +10,10 @@
10
10
  #ifndef __XMMINTRIN_H
11
11
  #define __XMMINTRIN_H
12
12
 
13
+ #if !defined(__i386__) && !defined(__x86_64__)
14
+ #error "This header is only meant to be used on x86 and x64 architecture"
15
+ #endif
16
+
13
17
  #include <mmintrin.h>
14
18
 
15
19
  typedef int __v4si __attribute__((__vector_size__(16)));
@@ -2181,7 +2185,7 @@ void _mm_sfence(void);
2181
2185
  /// 3: Bits [63:48] are copied to the destination.
2182
2186
  /// \returns A 16-bit integer containing the extracted 16 bits of packed data.
2183
2187
  #define _mm_extract_pi16(a, n) \
2184
- (int)__builtin_ia32_vec_ext_v4hi((__v4hi)a, (int)n)
2188
+ ((int)__builtin_ia32_vec_ext_v4hi((__v4hi)a, (int)n))
2185
2189
 
2186
2190
  /// Copies data from the 64-bit vector of [4 x i16] to the destination,
2187
2191
  /// and inserts the lower 16-bits of an integer operand at the 16-bit offset
@@ -2212,7 +2216,7 @@ void _mm_sfence(void);
2212
2216
  /// \returns A 64-bit integer vector containing the copied packed data from the
2213
2217
  /// operands.
2214
2218
  #define _mm_insert_pi16(a, d, n) \
2215
- (__m64)__builtin_ia32_vec_set_v4hi((__v4hi)a, (int)d, (int)n)
2219
+ ((__m64)__builtin_ia32_vec_set_v4hi((__v4hi)a, (int)d, (int)n))
2216
2220
 
2217
2221
  /// Compares each of the corresponding packed 16-bit integer values of
2218
2222
  /// the 64-bit integer vectors, and writes the greater value to the
@@ -2359,7 +2363,7 @@ _mm_mulhi_pu16(__m64 __a, __m64 __b)
2359
2363
  /// 11: assigned from bits [63:48] of \a a.
2360
2364
  /// \returns A 64-bit integer vector containing the shuffled values.
2361
2365
  #define _mm_shuffle_pi16(a, n) \
2362
- (__m64)__builtin_ia32_pshufw((__v4hi)(__m64)(a), (n))
2366
+ ((__m64)__builtin_ia32_pshufw((__v4hi)(__m64)(a), (n)))
2363
2367
 
2364
2368
  /// Conditionally copies the values from each 8-bit element in the first
2365
2369
  /// 64-bit integer vector operand to the specified memory location, as
@@ -2601,8 +2605,8 @@ void _mm_setcsr(unsigned int __i);
2601
2605
  /// 11: Bits [127:96] copied from the specified operand.
2602
2606
  /// \returns A 128-bit vector of [4 x float] containing the shuffled values.
2603
2607
  #define _mm_shuffle_ps(a, b, mask) \
2604
- (__m128)__builtin_ia32_shufps((__v4sf)(__m128)(a), (__v4sf)(__m128)(b), \
2605
- (int)(mask))
2608
+ ((__m128)__builtin_ia32_shufps((__v4sf)(__m128)(a), (__v4sf)(__m128)(b), \
2609
+ (int)(mask)))
2606
2610
 
2607
2611
  /// Unpacks the high-order (index 2,3) values from two 128-bit vectors of
2608
2612
  /// [4 x float] and interleaves them into a 128-bit vector of [4 x float].
@@ -225,16 +225,16 @@ _mm_rot_epi64(__m128i __A, __m128i __B)
225
225
  }
226
226
 
227
227
  #define _mm_roti_epi8(A, N) \
228
- (__m128i)__builtin_ia32_vprotbi((__v16qi)(__m128i)(A), (N))
228
+ ((__m128i)__builtin_ia32_vprotbi((__v16qi)(__m128i)(A), (N)))
229
229
 
230
230
  #define _mm_roti_epi16(A, N) \
231
- (__m128i)__builtin_ia32_vprotwi((__v8hi)(__m128i)(A), (N))
231
+ ((__m128i)__builtin_ia32_vprotwi((__v8hi)(__m128i)(A), (N)))
232
232
 
233
233
  #define _mm_roti_epi32(A, N) \
234
- (__m128i)__builtin_ia32_vprotdi((__v4si)(__m128i)(A), (N))
234
+ ((__m128i)__builtin_ia32_vprotdi((__v4si)(__m128i)(A), (N)))
235
235
 
236
236
  #define _mm_roti_epi64(A, N) \
237
- (__m128i)__builtin_ia32_vprotqi((__v2di)(__m128i)(A), (N))
237
+ ((__m128i)__builtin_ia32_vprotqi((__v2di)(__m128i)(A), (N)))
238
238
 
239
239
  static __inline__ __m128i __DEFAULT_FN_ATTRS
240
240
  _mm_shl_epi8(__m128i __A, __m128i __B)
@@ -285,36 +285,36 @@ _mm_sha_epi64(__m128i __A, __m128i __B)
285
285
  }
286
286
 
287
287
  #define _mm_com_epu8(A, B, N) \
288
- (__m128i)__builtin_ia32_vpcomub((__v16qi)(__m128i)(A), \
289
- (__v16qi)(__m128i)(B), (N))
288
+ ((__m128i)__builtin_ia32_vpcomub((__v16qi)(__m128i)(A), \
289
+ (__v16qi)(__m128i)(B), (N)))
290
290
 
291
291
  #define _mm_com_epu16(A, B, N) \
292
- (__m128i)__builtin_ia32_vpcomuw((__v8hi)(__m128i)(A), \
293
- (__v8hi)(__m128i)(B), (N))
292
+ ((__m128i)__builtin_ia32_vpcomuw((__v8hi)(__m128i)(A), \
293
+ (__v8hi)(__m128i)(B), (N)))
294
294
 
295
295
  #define _mm_com_epu32(A, B, N) \
296
- (__m128i)__builtin_ia32_vpcomud((__v4si)(__m128i)(A), \
297
- (__v4si)(__m128i)(B), (N))
296
+ ((__m128i)__builtin_ia32_vpcomud((__v4si)(__m128i)(A), \
297
+ (__v4si)(__m128i)(B), (N)))
298
298
 
299
299
  #define _mm_com_epu64(A, B, N) \
300
- (__m128i)__builtin_ia32_vpcomuq((__v2di)(__m128i)(A), \
301
- (__v2di)(__m128i)(B), (N))
300
+ ((__m128i)__builtin_ia32_vpcomuq((__v2di)(__m128i)(A), \
301
+ (__v2di)(__m128i)(B), (N)))
302
302
 
303
303
  #define _mm_com_epi8(A, B, N) \
304
- (__m128i)__builtin_ia32_vpcomb((__v16qi)(__m128i)(A), \
305
- (__v16qi)(__m128i)(B), (N))
304
+ ((__m128i)__builtin_ia32_vpcomb((__v16qi)(__m128i)(A), \
305
+ (__v16qi)(__m128i)(B), (N)))
306
306
 
307
307
  #define _mm_com_epi16(A, B, N) \
308
- (__m128i)__builtin_ia32_vpcomw((__v8hi)(__m128i)(A), \
309
- (__v8hi)(__m128i)(B), (N))
308
+ ((__m128i)__builtin_ia32_vpcomw((__v8hi)(__m128i)(A), \
309
+ (__v8hi)(__m128i)(B), (N)))
310
310
 
311
311
  #define _mm_com_epi32(A, B, N) \
312
- (__m128i)__builtin_ia32_vpcomd((__v4si)(__m128i)(A), \
313
- (__v4si)(__m128i)(B), (N))
312
+ ((__m128i)__builtin_ia32_vpcomd((__v4si)(__m128i)(A), \
313
+ (__v4si)(__m128i)(B), (N)))
314
314
 
315
315
  #define _mm_com_epi64(A, B, N) \
316
- (__m128i)__builtin_ia32_vpcomq((__v2di)(__m128i)(A), \
317
- (__v2di)(__m128i)(B), (N))
316
+ ((__m128i)__builtin_ia32_vpcomq((__v2di)(__m128i)(A), \
317
+ (__v2di)(__m128i)(B), (N)))
318
318
 
319
319
  #define _MM_PCOMCTRL_LT 0
320
320
  #define _MM_PCOMCTRL_LE 1
@@ -710,23 +710,23 @@ _mm_comtrue_epi64(__m128i __A, __m128i __B)
710
710
  }
711
711
 
712
712
  #define _mm_permute2_pd(X, Y, C, I) \
713
- (__m128d)__builtin_ia32_vpermil2pd((__v2df)(__m128d)(X), \
714
- (__v2df)(__m128d)(Y), \
715
- (__v2di)(__m128i)(C), (I))
713
+ ((__m128d)__builtin_ia32_vpermil2pd((__v2df)(__m128d)(X), \
714
+ (__v2df)(__m128d)(Y), \
715
+ (__v2di)(__m128i)(C), (I)))
716
716
 
717
717
  #define _mm256_permute2_pd(X, Y, C, I) \
718
- (__m256d)__builtin_ia32_vpermil2pd256((__v4df)(__m256d)(X), \
719
- (__v4df)(__m256d)(Y), \
720
- (__v4di)(__m256i)(C), (I))
718
+ ((__m256d)__builtin_ia32_vpermil2pd256((__v4df)(__m256d)(X), \
719
+ (__v4df)(__m256d)(Y), \
720
+ (__v4di)(__m256i)(C), (I)))
721
721
 
722
722
  #define _mm_permute2_ps(X, Y, C, I) \
723
- (__m128)__builtin_ia32_vpermil2ps((__v4sf)(__m128)(X), (__v4sf)(__m128)(Y), \
724
- (__v4si)(__m128i)(C), (I))
723
+ ((__m128)__builtin_ia32_vpermil2ps((__v4sf)(__m128)(X), (__v4sf)(__m128)(Y), \
724
+ (__v4si)(__m128i)(C), (I)))
725
725
 
726
726
  #define _mm256_permute2_ps(X, Y, C, I) \
727
- (__m256)__builtin_ia32_vpermil2ps256((__v8sf)(__m256)(X), \
728
- (__v8sf)(__m256)(Y), \
729
- (__v8si)(__m256i)(C), (I))
727
+ ((__m256)__builtin_ia32_vpermil2ps256((__v8sf)(__m256)(X), \
728
+ (__v8sf)(__m256)(Y), \
729
+ (__v8si)(__m256i)(C), (I)))
730
730
 
731
731
  static __inline__ __m128 __DEFAULT_FN_ATTRS
732
732
  _mm_frcz_ss(__m128 __A)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cpp-linter/clang-tidy-win32-x64",
3
- "version": "12.0.1",
4
- "description": "The Windows x64 binary for @cpp-linter/clang-tidy (LLVM 12.0.1).",
3
+ "version": "14.0.0",
4
+ "description": "The Windows x64 binary for @cpp-linter/clang-tidy (LLVM 14.0.0).",
5
5
  "license": "Apache-2.0 WITH LLVM-exception",
6
6
  "repository": {
7
7
  "type": "git",
@@ -24,9 +24,9 @@
24
24
  "lib"
25
25
  ],
26
26
  "staticBinary": {
27
- "release": "llvm-12.0.1-2",
28
- "file": "clang-tidy-12_windows-amd64.exe",
29
- "url": "https://github.com/cpp-linter/clang-tools-static-binaries/releases/download/llvm-12.0.1-2/clang-tidy-12_windows-amd64.exe",
30
- "sha512": "9b9a514e9858a055bbb5232e4b1b0a4bfdad643237d64758ab04789e7d6a3202dcdd4e5b3d07425278b5135a2e91ad8c5fde3d6ffa9133b22bc89d73bc6767a3"
27
+ "release": "llvm-14.0.0-2",
28
+ "file": "clang-tidy-14_windows-amd64.exe",
29
+ "url": "https://github.com/cpp-linter/clang-tools-static-binaries/releases/download/llvm-14.0.0-2/clang-tidy-14_windows-amd64.exe",
30
+ "sha512": "193551f5510289b806bfe3ee2909839afca32606c3d4fc96144fecb56981365305a2046910c9e793f680975c053d0f7dc3d149cef09faaa5fd88e9d78cacf219"
31
31
  }
32
32
  }
@@ -1,69 +0,0 @@
1
- /*===---- __clang_hip_runtime_wrapper.h - HIP runtime support ---------------===
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
- /*
11
- * WARNING: This header is intended to be directly -include'd by
12
- * the compiler and is not supposed to be included by users.
13
- *
14
- */
15
-
16
- #ifndef __CLANG_HIP_RUNTIME_WRAPPER_H__
17
- #define __CLANG_HIP_RUNTIME_WRAPPER_H__
18
-
19
- #if __HIP__
20
-
21
- #include <cmath>
22
- #include <cstdlib>
23
- #include <stdlib.h>
24
-
25
- #define __host__ __attribute__((host))
26
- #define __device__ __attribute__((device))
27
- #define __global__ __attribute__((global))
28
- #define __shared__ __attribute__((shared))
29
- #define __constant__ __attribute__((constant))
30
-
31
- #if !defined(__cplusplus) || __cplusplus < 201103L
32
- #define nullptr NULL;
33
- #endif
34
-
35
- #if __HIP_ENABLE_DEVICE_MALLOC__
36
- extern "C" __device__ void *__hip_malloc(size_t __size);
37
- extern "C" __device__ void *__hip_free(void *__ptr);
38
- static inline __device__ void *malloc(size_t __size) {
39
- return __hip_malloc(__size);
40
- }
41
- static inline __device__ void *free(void *__ptr) { return __hip_free(__ptr); }
42
- #else
43
- static inline __device__ void *malloc(size_t __size) {
44
- __builtin_trap();
45
- return nullptr;
46
- }
47
- static inline __device__ void *free(void *__ptr) {
48
- __builtin_trap();
49
- return nullptr;
50
- }
51
- #endif
52
-
53
- #include <__clang_hip_libdevice_declares.h>
54
- #include <__clang_hip_math.h>
55
-
56
- #if !_OPENMP || __HIP_ENABLE_CUDA_WRAPPER_FOR_OPENMP__
57
- #include <__clang_cuda_math_forward_declares.h>
58
- #include <__clang_hip_cmath.h>
59
- #include <__clang_cuda_complex_builtins.h>
60
-
61
- #include <algorithm>
62
- #include <complex>
63
- #include <new>
64
- #endif // !_OPENMP || __HIP_ENABLE_CUDA_WRAPPER_FOR_OPENMP__
65
-
66
- #define __CLANG_HIP_RUNTIME_WRAPPER_INCLUDED__ 1
67
-
68
- #endif // __HIP__
69
- #endif // __CLANG_HIP_RUNTIME_WRAPPER_H__
@@ -1,278 +0,0 @@
1
- /*===--------------- amxintrin.h - AMX intrinsics -*- C/C++ -*---------------===
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 <amxintrin.h> directly; include <immintrin.h> instead."
12
- #endif /* __IMMINTRIN_H */
13
-
14
- #ifndef __AMXINTRIN_H
15
- #define __AMXINTRIN_H
16
- #ifdef __x86_64__
17
-
18
- #define __DEFAULT_FN_ATTRS_TILE \
19
- __attribute__((__always_inline__, __nodebug__, __target__("amx-tile")))
20
-
21
- /// Load tile configuration from a 64-byte memory location specified by
22
- /// "mem_addr". The tile configuration includes the tile type palette, the
23
- /// number of bytes per row, and the number of rows. If the specified
24
- /// palette_id is zero, that signifies the init state for both the tile
25
- /// config and the tile data, and the tiles are zeroed. Any invalid
26
- /// configurations will result in #GP fault.
27
- ///
28
- /// \headerfile <x86intrin.h>
29
- ///
30
- /// This intrinsic corresponds to the <c> LDTILECFG </c> instruction.
31
- ///
32
- /// \param __config
33
- /// A pointer to 512-bits configuration
34
- static __inline__ void __DEFAULT_FN_ATTRS_TILE
35
- _tile_loadconfig(const void *__config) {
36
- __builtin_ia32_tile_loadconfig(__config);
37
- }
38
-
39
- /// Stores the current tile configuration to a 64-byte memory location
40
- /// specified by "mem_addr". The tile configuration includes the tile type
41
- /// palette, the number of bytes per row, and the number of rows. If tiles
42
- /// are not configured, all zeroes will be stored to memory.
43
- ///
44
- /// \headerfile <x86intrin.h>
45
- ///
46
- /// This intrinsic corresponds to the <c> STTILECFG </c> instruction.
47
- ///
48
- /// \param __config
49
- /// A pointer to 512-bits configuration
50
- static __inline__ void __DEFAULT_FN_ATTRS_TILE
51
- _tile_storeconfig(void *__config) {
52
- __builtin_ia32_tile_storeconfig(__config);
53
- }
54
-
55
- /// Release the tile configuration to return to the init state, which
56
- /// releases all storage it currently holds.
57
- ///
58
- /// \headerfile <x86intrin.h>
59
- ///
60
- /// This intrinsic corresponds to the <c> TILERELEASE </c> instruction.
61
- static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
62
- __builtin_ia32_tilerelease();
63
- }
64
-
65
- /// Load tile rows from memory specifieid by "base" address and "stride" into
66
- /// destination tile "dst" using the tile configuration previously configured
67
- /// via "_tile_loadconfig".
68
- ///
69
- /// \headerfile <x86intrin.h>
70
- ///
71
- /// This intrinsic corresponds to the <c> TILELOADD </c> instruction.
72
- ///
73
- /// \param dst
74
- /// A destination tile. Max size is 1024 Bytes.
75
- /// \param base
76
- /// A pointer to base address.
77
- /// \param stride
78
- /// The stride between the rows' data to be loaded in memory.
79
- #define _tile_loadd(dst, base, stride) \
80
- __builtin_ia32_tileloadd64((dst), ((const void *)(base)), \
81
- (__SIZE_TYPE__)(stride))
82
-
83
- /// Load tile rows from memory specifieid by "base" address and "stride" into
84
- /// destination tile "dst" using the tile configuration previously configured
85
- /// via "_tile_loadconfig". This intrinsic provides a hint to the implementation
86
- /// that the data will likely not be reused in the near future and the data
87
- /// caching can be optimized accordingly.
88
- ///
89
- /// \headerfile <x86intrin.h>
90
- ///
91
- /// This intrinsic corresponds to the <c> TILELOADDT1 </c> instruction.
92
- ///
93
- /// \param dst
94
- /// A destination tile. Max size is 1024 Bytes.
95
- /// \param base
96
- /// A pointer to base address.
97
- /// \param stride
98
- /// The stride between the rows' data to be loaded in memory.
99
- #define _tile_stream_loadd(dst, base, stride) \
100
- __builtin_ia32_tileloaddt164((dst), ((const void *)(base)), \
101
- (__SIZE_TYPE__)(stride))
102
-
103
- /// Store the tile specified by "src" to memory specifieid by "base" address and
104
- /// "stride" using the tile configuration previously configured via
105
- /// "_tile_loadconfig".
106
- ///
107
- /// \headerfile <x86intrin.h>
108
- ///
109
- /// This intrinsic corresponds to the <c> TILESTORED </c> instruction.
110
- ///
111
- /// \param dst
112
- /// A destination tile. Max size is 1024 Bytes.
113
- /// \param base
114
- /// A pointer to base address.
115
- /// \param stride
116
- /// The stride between the rows' data to be stored in memory.
117
- #define _tile_stored(dst, base, stride) \
118
- __builtin_ia32_tilestored64((dst), ((void *)(base)), (__SIZE_TYPE__)(stride))
119
-
120
- /// Zero the tile specified by "tdest".
121
- ///
122
- /// \headerfile <x86intrin.h>
123
- ///
124
- /// This intrinsic corresponds to the <c> TILEZERO </c> instruction.
125
- ///
126
- /// \param tile
127
- /// The destination tile to be zero. Max size is 1024 Bytes.
128
- #define _tile_zero(tile) __builtin_ia32_tilezero((tile))
129
-
130
- /// Compute dot-product of bytes in tiles with a source/destination accumulator.
131
- /// Multiply groups of 4 adjacent pairs of signed 8-bit integers in src0 with
132
- /// corresponding signed 8-bit integers in src1, producing 4 intermediate 32-bit
133
- /// results. Sum these 4 results with the corresponding 32-bit integer in "dst",
134
- /// and store the 32-bit result back to tile "dst".
135
- ///
136
- /// \headerfile <x86intrin.h>
137
- ///
138
- /// This intrinsic corresponds to the <c> TDPBSSD </c> instruction.
139
- ///
140
- /// \param dst
141
- /// The destination tile. Max size is 1024 Bytes.
142
- /// \param src0
143
- /// The 1st source tile. Max size is 1024 Bytes.
144
- /// \param src1
145
- /// The 2nd source tile. Max size is 1024 Bytes.
146
- #define _tile_dpbssd(dst, src0, src1) \
147
- __builtin_ia32_tdpbssd((dst), (src0), (src1))
148
-
149
- /// Compute dot-product of bytes in tiles with a source/destination accumulator.
150
- /// Multiply groups of 4 adjacent pairs of signed 8-bit integers in src0 with
151
- /// corresponding unsigned 8-bit integers in src1, producing 4 intermediate
152
- /// 32-bit results. Sum these 4 results with the corresponding 32-bit integer
153
- /// in "dst", and store the 32-bit result back to tile "dst".
154
- ///
155
- /// \headerfile <x86intrin.h>
156
- ///
157
- /// This intrinsic corresponds to the <c> TDPBSUD </c> instruction.
158
- ///
159
- /// \param dst
160
- /// The destination tile. Max size is 1024 Bytes.
161
- /// \param src0
162
- /// The 1st source tile. Max size is 1024 Bytes.
163
- /// \param src1
164
- /// The 2nd source tile. Max size is 1024 Bytes.
165
- #define _tile_dpbsud(dst, src0, src1) \
166
- __builtin_ia32_tdpbsud((dst), (src0), (src1))
167
-
168
- /// Compute dot-product of bytes in tiles with a source/destination accumulator.
169
- /// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in src0 with
170
- /// corresponding signed 8-bit integers in src1, producing 4 intermediate 32-bit
171
- /// results. Sum these 4 results with the corresponding 32-bit integer in "dst",
172
- /// and store the 32-bit result back to tile "dst".
173
- ///
174
- /// \headerfile <x86intrin.h>
175
- ///
176
- /// This intrinsic corresponds to the <c> TDPBUSD </c> instruction.
177
- ///
178
- /// \param dst
179
- /// The destination tile. Max size is 1024 Bytes.
180
- /// \param src0
181
- /// The 1st source tile. Max size is 1024 Bytes.
182
- /// \param src1
183
- /// The 2nd source tile. Max size is 1024 Bytes.
184
- #define _tile_dpbusd(dst, src0, src1) \
185
- __builtin_ia32_tdpbusd((dst), (src0), (src1))
186
-
187
- /// Compute dot-product of bytes in tiles with a source/destination accumulator.
188
- /// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in src0 with
189
- /// corresponding unsigned 8-bit integers in src1, producing 4 intermediate
190
- /// 32-bit results. Sum these 4 results with the corresponding 32-bit integer in
191
- /// "dst", and store the 32-bit result back to tile "dst".
192
- ///
193
- /// \headerfile <x86intrin.h>
194
- ///
195
- /// This intrinsic corresponds to the <c> TDPBUUD </c> instruction.
196
- ///
197
- /// \param dst
198
- /// The destination tile. Max size is 1024 Bytes.
199
- /// \param src0
200
- /// The 1st source tile. Max size is 1024 Bytes.
201
- /// \param src1
202
- /// The 2nd source tile. Max size is 1024 Bytes.
203
- #define _tile_dpbuud(dst, src0, src1) \
204
- __builtin_ia32_tdpbuud((dst), (src0), (src1))
205
-
206
- /// Compute dot-product of BF16 (16-bit) floating-point pairs in tiles src0 and
207
- /// src1, accumulating the intermediate single-precision (32-bit) floating-point
208
- /// elements with elements in "dst", and store the 32-bit result back to tile
209
- /// "dst".
210
- ///
211
- /// \headerfile <x86intrin.h>
212
- ///
213
- /// This intrinsic corresponds to the <c> TDPBF16PS </c> instruction.
214
- ///
215
- /// \param dst
216
- /// The destination tile. Max size is 1024 Bytes.
217
- /// \param src0
218
- /// The 1st source tile. Max size is 1024 Bytes.
219
- /// \param src1
220
- /// The 2nd source tile. Max size is 1024 Bytes.
221
- #define _tile_dpbf16ps(dst, src0, src1) \
222
- __builtin_ia32_tdpbf16ps((dst), (src0), (src1))
223
-
224
- #define __DEFAULT_FN_ATTRS_INT8 \
225
- __attribute__((__always_inline__, __nodebug__, __target__("amx-int8")))
226
-
227
- typedef int _tile1024i __attribute__((__vector_size__(1024), __aligned__(64)));
228
- static __inline__ _tile1024i __DEFAULT_FN_ATTRS_INT8
229
- _tile_loadd_internal(unsigned short m, unsigned short n, const void *base,
230
- __SIZE_TYPE__ stride) {
231
- return __builtin_ia32_tileloadd64_internal(m, n, base,
232
- (__SIZE_TYPE__)(stride));
233
- }
234
-
235
- static __inline__ _tile1024i __DEFAULT_FN_ATTRS_INT8
236
- _tile_dpbssd_internal(unsigned short m, unsigned short n, unsigned short k,
237
- _tile1024i dst, _tile1024i src1, _tile1024i src2) {
238
- return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
239
- }
240
-
241
- static __inline__ void __DEFAULT_FN_ATTRS_INT8
242
- _tile_stored_internal(unsigned short m, unsigned short n, void *base,
243
- __SIZE_TYPE__ stride, _tile1024i tile) {
244
- return __builtin_ia32_tilestored64_internal(m, n, base,
245
- (__SIZE_TYPE__)(stride), tile);
246
- }
247
-
248
- typedef struct __tile1024i_str {
249
- const unsigned short row;
250
- const unsigned short col;
251
- _tile1024i tile;
252
- } __tile1024i;
253
-
254
- __DEFAULT_FN_ATTRS_TILE
255
- static void __tile_loadd(__tile1024i *dst, const void *base,
256
- __SIZE_TYPE__ stride) {
257
- dst->tile = _tile_loadd_internal(dst->row, dst->col, base, stride);
258
- }
259
-
260
- __DEFAULT_FN_ATTRS_INT8
261
- static void __tile_dpbssd(__tile1024i *dst, __tile1024i src1,
262
- __tile1024i src2) {
263
- dst->tile = _tile_dpbssd_internal(src1.row, src2.col, src1.col, dst->tile,
264
- src1.tile, src2.tile);
265
- }
266
-
267
- __DEFAULT_FN_ATTRS_TILE
268
- static void __tile_stored(void *base, __SIZE_TYPE__ stride, __tile1024i src) {
269
- _tile_stored_internal(src.row, src.col, base, stride, src.tile);
270
- }
271
-
272
- __DEFAULT_FN_ATTRS_TILE
273
- static void __tile_zero(__tile1024i *dst) {
274
- dst->tile = __builtin_ia32_tilezero_internal(dst->row, dst->col);
275
- }
276
-
277
- #endif /* __x86_64__ */
278
- #endif /* __AMXINTRIN_H */
@@ -1,42 +0,0 @@
1
- /*===- __clang_openmp_device_functions.h - OpenMP device function declares -===
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 __CLANG_OPENMP_DEVICE_FUNCTIONS_H__
11
- #define __CLANG_OPENMP_DEVICE_FUNCTIONS_H__
12
-
13
- #ifndef _OPENMP
14
- #error "This file is for OpenMP compilation only."
15
- #endif
16
-
17
- #pragma omp begin declare variant match( \
18
- device = {arch(nvptx, nvptx64)}, implementation = {extension(match_any)})
19
-
20
- #ifdef __cplusplus
21
- extern "C" {
22
- #endif
23
-
24
- #define __CUDA__
25
- #define __OPENMP_NVPTX__
26
-
27
- /// Include declarations for libdevice functions.
28
- #include <__clang_cuda_libdevice_declares.h>
29
-
30
- /// Provide definitions for these functions.
31
- #include <__clang_cuda_device_functions.h>
32
-
33
- #undef __OPENMP_NVPTX__
34
- #undef __CUDA__
35
-
36
- #ifdef __cplusplus
37
- } // extern "C"
38
- #endif
39
-
40
- #pragma omp end declare variant
41
-
42
- #endif