@cpp-linter/clang-tidy-win32-x64 12.0.1 → 13.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.
- package/README.md +2 -2
- package/bin/clang-tidy.exe +2 -2
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_cuda_device_functions.h +174 -102
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_cuda_runtime_wrapper.h +6 -1
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_hip_cmath.h +272 -94
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_hip_libdevice_declares.h +24 -12
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_hip_math.h +48 -2
- package/lib/clang/13.0.0/include/__clang_hip_runtime_wrapper.h +124 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/altivec.h +1165 -423
- package/lib/clang/{12.0.1 → 13.0.0}/include/amxintrin.h +234 -19
- package/lib/clang/{12.0.1 → 13.0.0}/include/arm_acle.h +55 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/arm_neon.h +1077 -165
- package/lib/clang/{12.0.1 → 13.0.0}/include/arm_sve.h +11791 -5896
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512fintrin.h +177 -37
- package/lib/clang/13.0.0/include/builtins.h +16 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/cuda_wrappers/complex +8 -0
- package/lib/clang/13.0.0/include/hexagon_circ_brev_intrinsics.h +298 -0
- package/lib/clang/13.0.0/include/hexagon_protos.h +8450 -0
- package/lib/clang/13.0.0/include/hexagon_types.h +2653 -0
- package/lib/clang/13.0.0/include/hvx_hexagon_protos.h +4392 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/intrin.h +44 -8
- package/lib/clang/{12.0.1 → 13.0.0}/include/keylockerintrin.h +30 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/opencl-c-base.h +144 -3
- package/lib/clang/{12.0.1 → 13.0.0}/include/opencl-c.h +505 -355
- package/lib/clang/13.0.0/include/openmp_wrappers/__clang_openmp_device_functions.h +106 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/openmp_wrappers/cmath +54 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/openmp_wrappers/complex +1 -7
- package/lib/clang/{12.0.1 → 13.0.0}/include/openmp_wrappers/complex.h +0 -1
- package/lib/clang/{12.0.1 → 13.0.0}/include/openmp_wrappers/math.h +10 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/openmp_wrappers/new +2 -24
- package/lib/clang/13.0.0/include/riscv_vector.h +123865 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/uintrintrin.h +7 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/vaesintrin.h +21 -20
- package/lib/clang/{12.0.1 → 13.0.0}/include/vecintrin.h +206 -77
- package/lib/clang/{12.0.1 → 13.0.0}/include/vpclmulqdqintrin.h +2 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/wasm_simd128.h +806 -239
- package/package.json +6 -6
- package/lib/clang/12.0.1/include/__clang_hip_runtime_wrapper.h +0 -69
- package/lib/clang/12.0.1/include/openmp_wrappers/__clang_openmp_device_functions.h +0 -42
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_cuda_builtin_vars.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_cuda_cmath.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_cuda_complex_builtins.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_cuda_intrinsics.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_cuda_libdevice_declares.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_cuda_math.h +2 -2
- package/lib/clang/{12.0.1 → 13.0.0}/include/__clang_cuda_math_forward_declares.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/__stddef_max_align_t.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/__wmmintrin_aes.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/__wmmintrin_pclmul.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/adxintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/ammintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/arm64intr.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/arm_bf16.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/arm_cde.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/arm_cmse.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/arm_fp16.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/arm_mve.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/armintr.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx2intrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512bf16intrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512bitalgintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512bwintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512cdintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512dqintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512erintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512ifmaintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512ifmavlintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512pfintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vbmi2intrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vbmiintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vbmivlintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vlbf16intrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vlbitalgintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vlbwintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vlcdintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vldqintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vlintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vlvbmi2intrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vlvnniintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vlvp2intersectintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vnniintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vp2intersectintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vpopcntdqintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avx512vpopcntdqvlintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avxintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/avxvnniintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/bmi2intrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/bmiintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/cet.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/cetintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/cldemoteintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/clflushoptintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/clwbintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/clzerointrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/cpuid.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/cuda_wrappers/algorithm +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/cuda_wrappers/new +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/emmintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/enqcmdintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/f16cintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/float.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/fma4intrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/fmaintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/fxsrintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/gfniintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/hresetintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/htmintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/htmxlintrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/ia32intrin.h +0 -0
- package/lib/clang/{12.0.1 → 13.0.0}/include/immintrin.h +5 -5
- /package/lib/clang/{12.0.1 → 13.0.0}/include/inttypes.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/invpcidintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/iso646.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/limits.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/lwpintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/lzcntintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/mm3dnow.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/mm_malloc.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/mmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/module.modulemap +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/movdirintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/msa.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/mwaitxintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/nmmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/openmp_wrappers/complex_cmath.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/pconfigintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/pkuintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/pmmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/popcntintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/ppc_wrappers/emmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/ppc_wrappers/mm_malloc.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/ppc_wrappers/mmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/ppc_wrappers/pmmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/ppc_wrappers/smmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/ppc_wrappers/tmmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/ppc_wrappers/xmmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/prfchwintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/ptwriteintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/rdseedintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/rtmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/s390intrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/serializeintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/sgxintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/shaintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/smmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/stdalign.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/stdarg.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/stdatomic.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/stdbool.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/stddef.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/stdint.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/stdnoreturn.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/tbmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/tgmath.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/tmmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/tsxldtrkintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/unwind.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/vadefs.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/varargs.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/waitpkgintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/wbnoinvdintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/wmmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/x86gprintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/x86intrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/xmmintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/xopintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/xsavecintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/xsaveintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/xsaveoptintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/xsavesintrin.h +0 -0
- /package/lib/clang/{12.0.1 → 13.0.0}/include/xtestintrin.h +0 -0
|
@@ -15,8 +15,13 @@
|
|
|
15
15
|
#define __AMXINTRIN_H
|
|
16
16
|
#ifdef __x86_64__
|
|
17
17
|
|
|
18
|
+
/* Define the default attributes for the functions in this file. */
|
|
18
19
|
#define __DEFAULT_FN_ATTRS_TILE \
|
|
19
20
|
__attribute__((__always_inline__, __nodebug__, __target__("amx-tile")))
|
|
21
|
+
#define __DEFAULT_FN_ATTRS_INT8 \
|
|
22
|
+
__attribute__((__always_inline__, __nodebug__, __target__("amx-int8")))
|
|
23
|
+
#define __DEFAULT_FN_ATTRS_BF16 \
|
|
24
|
+
__attribute__((__always_inline__, __nodebug__, __target__("amx-bf16")))
|
|
20
25
|
|
|
21
26
|
/// Load tile configuration from a 64-byte memory location specified by
|
|
22
27
|
/// "mem_addr". The tile configuration includes the tile type palette, the
|
|
@@ -25,7 +30,7 @@
|
|
|
25
30
|
/// config and the tile data, and the tiles are zeroed. Any invalid
|
|
26
31
|
/// configurations will result in #GP fault.
|
|
27
32
|
///
|
|
28
|
-
/// \headerfile <
|
|
33
|
+
/// \headerfile <immintrin.h>
|
|
29
34
|
///
|
|
30
35
|
/// This intrinsic corresponds to the <c> LDTILECFG </c> instruction.
|
|
31
36
|
///
|
|
@@ -41,7 +46,7 @@ _tile_loadconfig(const void *__config) {
|
|
|
41
46
|
/// palette, the number of bytes per row, and the number of rows. If tiles
|
|
42
47
|
/// are not configured, all zeroes will be stored to memory.
|
|
43
48
|
///
|
|
44
|
-
/// \headerfile <
|
|
49
|
+
/// \headerfile <immintrin.h>
|
|
45
50
|
///
|
|
46
51
|
/// This intrinsic corresponds to the <c> STTILECFG </c> instruction.
|
|
47
52
|
///
|
|
@@ -55,7 +60,7 @@ _tile_storeconfig(void *__config) {
|
|
|
55
60
|
/// Release the tile configuration to return to the init state, which
|
|
56
61
|
/// releases all storage it currently holds.
|
|
57
62
|
///
|
|
58
|
-
/// \headerfile <
|
|
63
|
+
/// \headerfile <immintrin.h>
|
|
59
64
|
///
|
|
60
65
|
/// This intrinsic corresponds to the <c> TILERELEASE </c> instruction.
|
|
61
66
|
static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
|
|
@@ -66,7 +71,7 @@ static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
|
|
|
66
71
|
/// destination tile "dst" using the tile configuration previously configured
|
|
67
72
|
/// via "_tile_loadconfig".
|
|
68
73
|
///
|
|
69
|
-
/// \headerfile <
|
|
74
|
+
/// \headerfile <immintrin.h>
|
|
70
75
|
///
|
|
71
76
|
/// This intrinsic corresponds to the <c> TILELOADD </c> instruction.
|
|
72
77
|
///
|
|
@@ -86,7 +91,7 @@ static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
|
|
|
86
91
|
/// that the data will likely not be reused in the near future and the data
|
|
87
92
|
/// caching can be optimized accordingly.
|
|
88
93
|
///
|
|
89
|
-
/// \headerfile <
|
|
94
|
+
/// \headerfile <immintrin.h>
|
|
90
95
|
///
|
|
91
96
|
/// This intrinsic corresponds to the <c> TILELOADDT1 </c> instruction.
|
|
92
97
|
///
|
|
@@ -104,7 +109,7 @@ static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
|
|
|
104
109
|
/// "stride" using the tile configuration previously configured via
|
|
105
110
|
/// "_tile_loadconfig".
|
|
106
111
|
///
|
|
107
|
-
/// \headerfile <
|
|
112
|
+
/// \headerfile <immintrin.h>
|
|
108
113
|
///
|
|
109
114
|
/// This intrinsic corresponds to the <c> TILESTORED </c> instruction.
|
|
110
115
|
///
|
|
@@ -119,7 +124,7 @@ static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
|
|
|
119
124
|
|
|
120
125
|
/// Zero the tile specified by "tdest".
|
|
121
126
|
///
|
|
122
|
-
/// \headerfile <
|
|
127
|
+
/// \headerfile <immintrin.h>
|
|
123
128
|
///
|
|
124
129
|
/// This intrinsic corresponds to the <c> TILEZERO </c> instruction.
|
|
125
130
|
///
|
|
@@ -133,7 +138,7 @@ static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
|
|
|
133
138
|
/// results. Sum these 4 results with the corresponding 32-bit integer in "dst",
|
|
134
139
|
/// and store the 32-bit result back to tile "dst".
|
|
135
140
|
///
|
|
136
|
-
/// \headerfile <
|
|
141
|
+
/// \headerfile <immintrin.h>
|
|
137
142
|
///
|
|
138
143
|
/// This intrinsic corresponds to the <c> TDPBSSD </c> instruction.
|
|
139
144
|
///
|
|
@@ -152,7 +157,7 @@ static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
|
|
|
152
157
|
/// 32-bit results. Sum these 4 results with the corresponding 32-bit integer
|
|
153
158
|
/// in "dst", and store the 32-bit result back to tile "dst".
|
|
154
159
|
///
|
|
155
|
-
/// \headerfile <
|
|
160
|
+
/// \headerfile <immintrin.h>
|
|
156
161
|
///
|
|
157
162
|
/// This intrinsic corresponds to the <c> TDPBSUD </c> instruction.
|
|
158
163
|
///
|
|
@@ -171,7 +176,7 @@ static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
|
|
|
171
176
|
/// results. Sum these 4 results with the corresponding 32-bit integer in "dst",
|
|
172
177
|
/// and store the 32-bit result back to tile "dst".
|
|
173
178
|
///
|
|
174
|
-
/// \headerfile <
|
|
179
|
+
/// \headerfile <immintrin.h>
|
|
175
180
|
///
|
|
176
181
|
/// This intrinsic corresponds to the <c> TDPBUSD </c> instruction.
|
|
177
182
|
///
|
|
@@ -190,7 +195,7 @@ static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
|
|
|
190
195
|
/// 32-bit results. Sum these 4 results with the corresponding 32-bit integer in
|
|
191
196
|
/// "dst", and store the 32-bit result back to tile "dst".
|
|
192
197
|
///
|
|
193
|
-
/// \headerfile <
|
|
198
|
+
/// \headerfile <immintrin.h>
|
|
194
199
|
///
|
|
195
200
|
/// This intrinsic corresponds to the <c> TDPBUUD </c> instruction.
|
|
196
201
|
///
|
|
@@ -208,7 +213,7 @@ static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
|
|
|
208
213
|
/// elements with elements in "dst", and store the 32-bit result back to tile
|
|
209
214
|
/// "dst".
|
|
210
215
|
///
|
|
211
|
-
/// \headerfile <
|
|
216
|
+
/// \headerfile <immintrin.h>
|
|
212
217
|
///
|
|
213
218
|
/// This intrinsic corresponds to the <c> TDPBF16PS </c> instruction.
|
|
214
219
|
///
|
|
@@ -221,10 +226,12 @@ static __inline__ void __DEFAULT_FN_ATTRS_TILE _tile_release(void) {
|
|
|
221
226
|
#define _tile_dpbf16ps(dst, src0, src1) \
|
|
222
227
|
__builtin_ia32_tdpbf16ps((dst), (src0), (src1))
|
|
223
228
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
229
|
+
/// AMX tile register size can be configured, the maximum size is 16x64=1024
|
|
230
|
+
/// bytes. Since there is no 2D type in llvm IR, we use vector type to
|
|
231
|
+
/// represent 2D tile and the fixed size is maximum amx tile register size.
|
|
227
232
|
typedef int _tile1024i __attribute__((__vector_size__(1024), __aligned__(64)));
|
|
233
|
+
|
|
234
|
+
/// This is internal intrinsic. C/C++ user should avoid calling it directly.
|
|
228
235
|
static __inline__ _tile1024i __DEFAULT_FN_ATTRS_INT8
|
|
229
236
|
_tile_loadd_internal(unsigned short m, unsigned short n, const void *base,
|
|
230
237
|
__SIZE_TYPE__ stride) {
|
|
@@ -232,12 +239,43 @@ _tile_loadd_internal(unsigned short m, unsigned short n, const void *base,
|
|
|
232
239
|
(__SIZE_TYPE__)(stride));
|
|
233
240
|
}
|
|
234
241
|
|
|
242
|
+
/// This is internal intrinsic. C/C++ user should avoid calling it directly.
|
|
243
|
+
static __inline__ _tile1024i __DEFAULT_FN_ATTRS_INT8
|
|
244
|
+
_tile_loaddt1_internal(unsigned short m, unsigned short n, const void *base,
|
|
245
|
+
__SIZE_TYPE__ stride) {
|
|
246
|
+
return __builtin_ia32_tileloaddt164_internal(m, n, base,
|
|
247
|
+
(__SIZE_TYPE__)(stride));
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/// This is internal intrinsic. C/C++ user should avoid calling it directly.
|
|
235
251
|
static __inline__ _tile1024i __DEFAULT_FN_ATTRS_INT8
|
|
236
252
|
_tile_dpbssd_internal(unsigned short m, unsigned short n, unsigned short k,
|
|
237
253
|
_tile1024i dst, _tile1024i src1, _tile1024i src2) {
|
|
238
254
|
return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
|
|
239
255
|
}
|
|
240
256
|
|
|
257
|
+
/// This is internal intrinsic. C/C++ user should avoid calling it directly.
|
|
258
|
+
static __inline__ _tile1024i __DEFAULT_FN_ATTRS_INT8
|
|
259
|
+
_tile_dpbsud_internal(unsigned short m, unsigned short n, unsigned short k,
|
|
260
|
+
_tile1024i dst, _tile1024i src1, _tile1024i src2) {
|
|
261
|
+
return __builtin_ia32_tdpbsud_internal(m, n, k, dst, src1, src2);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/// This is internal intrinsic. C/C++ user should avoid calling it directly.
|
|
265
|
+
static __inline__ _tile1024i __DEFAULT_FN_ATTRS_INT8
|
|
266
|
+
_tile_dpbusd_internal(unsigned short m, unsigned short n, unsigned short k,
|
|
267
|
+
_tile1024i dst, _tile1024i src1, _tile1024i src2) {
|
|
268
|
+
return __builtin_ia32_tdpbusd_internal(m, n, k, dst, src1, src2);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/// This is internal intrinsic. C/C++ user should avoid calling it directly.
|
|
272
|
+
static __inline__ _tile1024i __DEFAULT_FN_ATTRS_INT8
|
|
273
|
+
_tile_dpbuud_internal(unsigned short m, unsigned short n, unsigned short k,
|
|
274
|
+
_tile1024i dst, _tile1024i src1, _tile1024i src2) {
|
|
275
|
+
return __builtin_ia32_tdpbuud_internal(m, n, k, dst, src1, src2);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/// This is internal intrinsic. C/C++ user should avoid calling it directly.
|
|
241
279
|
static __inline__ void __DEFAULT_FN_ATTRS_INT8
|
|
242
280
|
_tile_stored_internal(unsigned short m, unsigned short n, void *base,
|
|
243
281
|
__SIZE_TYPE__ stride, _tile1024i tile) {
|
|
@@ -245,34 +283,211 @@ _tile_stored_internal(unsigned short m, unsigned short n, void *base,
|
|
|
245
283
|
(__SIZE_TYPE__)(stride), tile);
|
|
246
284
|
}
|
|
247
285
|
|
|
286
|
+
/// This is internal intrinsic. C/C++ user should avoid calling it directly.
|
|
287
|
+
static __inline__ _tile1024i __DEFAULT_FN_ATTRS_BF16
|
|
288
|
+
_tile_dpbf16ps_internal(unsigned short m, unsigned short n, unsigned short k,
|
|
289
|
+
_tile1024i dst, _tile1024i src1, _tile1024i src2) {
|
|
290
|
+
return __builtin_ia32_tdpbf16ps_internal(m, n, k, dst, src1, src2);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/// This struct pack the shape and tile data together for user. We suggest
|
|
294
|
+
/// initializing the struct as early as possible, because compiler depends
|
|
295
|
+
/// on the shape information to do configure. The constant value is preferred
|
|
296
|
+
/// for optimization by compiler.
|
|
248
297
|
typedef struct __tile1024i_str {
|
|
249
298
|
const unsigned short row;
|
|
250
299
|
const unsigned short col;
|
|
251
300
|
_tile1024i tile;
|
|
252
301
|
} __tile1024i;
|
|
253
302
|
|
|
303
|
+
/// Load tile rows from memory specifieid by "base" address and "stride" into
|
|
304
|
+
/// destination tile "dst".
|
|
305
|
+
///
|
|
306
|
+
/// \headerfile <immintrin.h>
|
|
307
|
+
///
|
|
308
|
+
/// This intrinsic corresponds to the <c> TILELOADD </c> instruction.
|
|
309
|
+
///
|
|
310
|
+
/// \param dst
|
|
311
|
+
/// A destination tile. Max size is 1024 Bytes.
|
|
312
|
+
/// \param base
|
|
313
|
+
/// A pointer to base address.
|
|
314
|
+
/// \param stride
|
|
315
|
+
/// The stride between the rows' data to be loaded in memory.
|
|
254
316
|
__DEFAULT_FN_ATTRS_TILE
|
|
255
317
|
static void __tile_loadd(__tile1024i *dst, const void *base,
|
|
256
318
|
__SIZE_TYPE__ stride) {
|
|
257
319
|
dst->tile = _tile_loadd_internal(dst->row, dst->col, base, stride);
|
|
258
320
|
}
|
|
259
321
|
|
|
322
|
+
/// Load tile rows from memory specifieid by "base" address and "stride" into
|
|
323
|
+
/// destination tile "dst". This intrinsic provides a hint to the implementation
|
|
324
|
+
/// that the data will likely not be reused in the near future and the data
|
|
325
|
+
/// caching can be optimized accordingly.
|
|
326
|
+
///
|
|
327
|
+
/// \headerfile <immintrin.h>
|
|
328
|
+
///
|
|
329
|
+
/// This intrinsic corresponds to the <c> TILELOADDT1 </c> instruction.
|
|
330
|
+
///
|
|
331
|
+
/// \param dst
|
|
332
|
+
/// A destination tile. Max size is 1024 Bytes.
|
|
333
|
+
/// \param base
|
|
334
|
+
/// A pointer to base address.
|
|
335
|
+
/// \param stride
|
|
336
|
+
/// The stride between the rows' data to be loaded in memory.
|
|
337
|
+
__DEFAULT_FN_ATTRS_TILE
|
|
338
|
+
static void __tile_stream_loadd(__tile1024i *dst, const void *base,
|
|
339
|
+
__SIZE_TYPE__ stride) {
|
|
340
|
+
dst->tile = _tile_loaddt1_internal(dst->row, dst->col, base, stride);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/// Compute dot-product of bytes in tiles with a source/destination accumulator.
|
|
344
|
+
/// Multiply groups of 4 adjacent pairs of signed 8-bit integers in src0 with
|
|
345
|
+
/// corresponding signed 8-bit integers in src1, producing 4 intermediate 32-bit
|
|
346
|
+
/// results. Sum these 4 results with the corresponding 32-bit integer in "dst",
|
|
347
|
+
/// and store the 32-bit result back to tile "dst".
|
|
348
|
+
///
|
|
349
|
+
/// \headerfile <immintrin.h>
|
|
350
|
+
///
|
|
351
|
+
/// This intrinsic corresponds to the <c> TDPBSSD </c> instruction.
|
|
352
|
+
///
|
|
353
|
+
/// \param dst
|
|
354
|
+
/// The destination tile. Max size is 1024 Bytes.
|
|
355
|
+
/// \param src0
|
|
356
|
+
/// The 1st source tile. Max size is 1024 Bytes.
|
|
357
|
+
/// \param src1
|
|
358
|
+
/// The 2nd source tile. Max size is 1024 Bytes.
|
|
260
359
|
__DEFAULT_FN_ATTRS_INT8
|
|
261
|
-
static void __tile_dpbssd(__tile1024i *dst, __tile1024i
|
|
262
|
-
__tile1024i
|
|
263
|
-
dst->tile = _tile_dpbssd_internal(
|
|
264
|
-
|
|
360
|
+
static void __tile_dpbssd(__tile1024i *dst, __tile1024i src0,
|
|
361
|
+
__tile1024i src1) {
|
|
362
|
+
dst->tile = _tile_dpbssd_internal(src0.row, src1.col, src0.col, dst->tile,
|
|
363
|
+
src0.tile, src1.tile);
|
|
265
364
|
}
|
|
266
365
|
|
|
366
|
+
/// Compute dot-product of bytes in tiles with a source/destination accumulator.
|
|
367
|
+
/// Multiply groups of 4 adjacent pairs of signed 8-bit integers in src0 with
|
|
368
|
+
/// corresponding unsigned 8-bit integers in src1, producing 4 intermediate
|
|
369
|
+
/// 32-bit results. Sum these 4 results with the corresponding 32-bit integer
|
|
370
|
+
/// in "dst", and store the 32-bit result back to tile "dst".
|
|
371
|
+
///
|
|
372
|
+
/// \headerfile <immintrin.h>
|
|
373
|
+
///
|
|
374
|
+
/// This intrinsic corresponds to the <c> TDPBSUD </c> instruction.
|
|
375
|
+
///
|
|
376
|
+
/// \param dst
|
|
377
|
+
/// The destination tile. Max size is 1024 Bytes.
|
|
378
|
+
/// \param src0
|
|
379
|
+
/// The 1st source tile. Max size is 1024 Bytes.
|
|
380
|
+
/// \param src1
|
|
381
|
+
/// The 2nd source tile. Max size is 1024 Bytes.
|
|
382
|
+
__DEFAULT_FN_ATTRS_INT8
|
|
383
|
+
static void __tile_dpbsud(__tile1024i *dst, __tile1024i src0,
|
|
384
|
+
__tile1024i src1) {
|
|
385
|
+
dst->tile = _tile_dpbsud_internal(src0.row, src1.col, src0.col, dst->tile,
|
|
386
|
+
src0.tile, src1.tile);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/// Compute dot-product of bytes in tiles with a source/destination accumulator.
|
|
390
|
+
/// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in src0 with
|
|
391
|
+
/// corresponding signed 8-bit integers in src1, producing 4 intermediate 32-bit
|
|
392
|
+
/// results. Sum these 4 results with the corresponding 32-bit integer in "dst",
|
|
393
|
+
/// and store the 32-bit result back to tile "dst".
|
|
394
|
+
///
|
|
395
|
+
/// \headerfile <immintrin.h>
|
|
396
|
+
///
|
|
397
|
+
/// This intrinsic corresponds to the <c> TDPBUSD </c> instruction.
|
|
398
|
+
///
|
|
399
|
+
/// \param dst
|
|
400
|
+
/// The destination tile. Max size is 1024 Bytes.
|
|
401
|
+
/// \param src0
|
|
402
|
+
/// The 1st source tile. Max size is 1024 Bytes.
|
|
403
|
+
/// \param src1
|
|
404
|
+
/// The 2nd source tile. Max size is 1024 Bytes.
|
|
405
|
+
__DEFAULT_FN_ATTRS_INT8
|
|
406
|
+
static void __tile_dpbusd(__tile1024i *dst, __tile1024i src0,
|
|
407
|
+
__tile1024i src1) {
|
|
408
|
+
dst->tile = _tile_dpbusd_internal(src0.row, src1.col, src0.col, dst->tile,
|
|
409
|
+
src0.tile, src1.tile);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/// Compute dot-product of bytes in tiles with a source/destination accumulator.
|
|
413
|
+
/// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in src0 with
|
|
414
|
+
/// corresponding unsigned 8-bit integers in src1, producing 4 intermediate
|
|
415
|
+
/// 32-bit results. Sum these 4 results with the corresponding 32-bit integer in
|
|
416
|
+
/// "dst", and store the 32-bit result back to tile "dst".
|
|
417
|
+
///
|
|
418
|
+
/// \headerfile <immintrin.h>
|
|
419
|
+
///
|
|
420
|
+
/// This intrinsic corresponds to the <c> TDPBUUD </c> instruction.
|
|
421
|
+
///
|
|
422
|
+
/// \param dst
|
|
423
|
+
/// The destination tile. Max size is 1024 Bytes.
|
|
424
|
+
/// \param src0
|
|
425
|
+
/// The 1st source tile. Max size is 1024 Bytes.
|
|
426
|
+
/// \param src1
|
|
427
|
+
/// The 2nd source tile. Max size is 1024 Bytes.
|
|
428
|
+
__DEFAULT_FN_ATTRS_INT8
|
|
429
|
+
static void __tile_dpbuud(__tile1024i *dst, __tile1024i src0,
|
|
430
|
+
__tile1024i src1) {
|
|
431
|
+
dst->tile = _tile_dpbuud_internal(src0.row, src1.col, src0.col, dst->tile,
|
|
432
|
+
src0.tile, src1.tile);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/// Store the tile specified by "src" to memory specifieid by "base" address and
|
|
436
|
+
/// "stride".
|
|
437
|
+
///
|
|
438
|
+
/// \headerfile <immintrin.h>
|
|
439
|
+
///
|
|
440
|
+
/// This intrinsic corresponds to the <c> TILESTORED </c> instruction.
|
|
441
|
+
///
|
|
442
|
+
/// \param dst
|
|
443
|
+
/// A destination tile. Max size is 1024 Bytes.
|
|
444
|
+
/// \param base
|
|
445
|
+
/// A pointer to base address.
|
|
446
|
+
/// \param stride
|
|
447
|
+
/// The stride between the rows' data to be stored in memory.
|
|
267
448
|
__DEFAULT_FN_ATTRS_TILE
|
|
268
449
|
static void __tile_stored(void *base, __SIZE_TYPE__ stride, __tile1024i src) {
|
|
269
450
|
_tile_stored_internal(src.row, src.col, base, stride, src.tile);
|
|
270
451
|
}
|
|
271
452
|
|
|
453
|
+
/// Zero the tile specified by "dst".
|
|
454
|
+
///
|
|
455
|
+
/// \headerfile <immintrin.h>
|
|
456
|
+
///
|
|
457
|
+
/// This intrinsic corresponds to the <c> TILEZERO </c> instruction.
|
|
458
|
+
///
|
|
459
|
+
/// \param dst
|
|
460
|
+
/// The destination tile to be zero. Max size is 1024 Bytes.
|
|
272
461
|
__DEFAULT_FN_ATTRS_TILE
|
|
273
462
|
static void __tile_zero(__tile1024i *dst) {
|
|
274
463
|
dst->tile = __builtin_ia32_tilezero_internal(dst->row, dst->col);
|
|
275
464
|
}
|
|
276
465
|
|
|
466
|
+
/// Compute dot-product of BF16 (16-bit) floating-point pairs in tiles src0 and
|
|
467
|
+
/// src1, accumulating the intermediate single-precision (32-bit) floating-point
|
|
468
|
+
/// elements with elements in "dst", and store the 32-bit result back to tile
|
|
469
|
+
/// "dst".
|
|
470
|
+
///
|
|
471
|
+
/// \headerfile <immintrin.h>
|
|
472
|
+
///
|
|
473
|
+
/// This intrinsic corresponds to the <c> TDPBF16PS </c> instruction.
|
|
474
|
+
///
|
|
475
|
+
/// \param dst
|
|
476
|
+
/// The destination tile. Max size is 1024 Bytes.
|
|
477
|
+
/// \param src0
|
|
478
|
+
/// The 1st source tile. Max size is 1024 Bytes.
|
|
479
|
+
/// \param src1
|
|
480
|
+
/// The 2nd source tile. Max size is 1024 Bytes.
|
|
481
|
+
__DEFAULT_FN_ATTRS_BF16
|
|
482
|
+
static void __tile_dpbf16ps(__tile1024i *dst, __tile1024i src0,
|
|
483
|
+
__tile1024i src1) {
|
|
484
|
+
dst->tile = _tile_dpbf16ps_internal(src0.row, src1.col, src0.col, dst->tile,
|
|
485
|
+
src0.tile, src1.tile);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
#undef __DEFAULT_FN_ATTRS_TILE
|
|
489
|
+
#undef __DEFAULT_FN_ATTRS_INT8
|
|
490
|
+
#undef __DEFAULT_FN_ATTRS_BF16
|
|
491
|
+
|
|
277
492
|
#endif /* __x86_64__ */
|
|
278
493
|
#endif /* __AMXINTRIN_H */
|
|
@@ -639,6 +639,49 @@ __jcvt(double __a) {
|
|
|
639
639
|
}
|
|
640
640
|
#endif
|
|
641
641
|
|
|
642
|
+
/* Armv8.5-A FP rounding intrinsics */
|
|
643
|
+
#if __ARM_64BIT_STATE && defined(__ARM_FEATURE_FRINT)
|
|
644
|
+
static __inline__ float __attribute__((__always_inline__, __nodebug__))
|
|
645
|
+
__frint32zf(float __a) {
|
|
646
|
+
return __builtin_arm_frint32zf(__a);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
static __inline__ double __attribute__((__always_inline__, __nodebug__))
|
|
650
|
+
__frint32z(double __a) {
|
|
651
|
+
return __builtin_arm_frint32z(__a);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
static __inline__ float __attribute__((__always_inline__, __nodebug__))
|
|
655
|
+
__frint64zf(float __a) {
|
|
656
|
+
return __builtin_arm_frint64zf(__a);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
static __inline__ double __attribute__((__always_inline__, __nodebug__))
|
|
660
|
+
__frint64z(double __a) {
|
|
661
|
+
return __builtin_arm_frint64z(__a);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
static __inline__ float __attribute__((__always_inline__, __nodebug__))
|
|
665
|
+
__frint32xf(float __a) {
|
|
666
|
+
return __builtin_arm_frint32xf(__a);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
static __inline__ double __attribute__((__always_inline__, __nodebug__))
|
|
670
|
+
__frint32x(double __a) {
|
|
671
|
+
return __builtin_arm_frint32x(__a);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
static __inline__ float __attribute__((__always_inline__, __nodebug__))
|
|
675
|
+
__frint64xf(float __a) {
|
|
676
|
+
return __builtin_arm_frint64xf(__a);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
static __inline__ double __attribute__((__always_inline__, __nodebug__))
|
|
680
|
+
__frint64x(double __a) {
|
|
681
|
+
return __builtin_arm_frint64x(__a);
|
|
682
|
+
}
|
|
683
|
+
#endif
|
|
684
|
+
|
|
642
685
|
/* Armv8.7-A load/store 64-byte intrinsics */
|
|
643
686
|
#if __ARM_64BIT_STATE && defined(__ARM_FEATURE_LS64)
|
|
644
687
|
typedef struct {
|
|
@@ -709,6 +752,18 @@ __arm_st64bv0(void *__addr, data512_t __value) {
|
|
|
709
752
|
|
|
710
753
|
#endif /* __ARM_FEATURE_TME */
|
|
711
754
|
|
|
755
|
+
/* Armv8.5-A Random number generation intrinsics */
|
|
756
|
+
#if __ARM_64BIT_STATE && defined(__ARM_FEATURE_RNG)
|
|
757
|
+
static __inline__ int __attribute__((__always_inline__, __nodebug__))
|
|
758
|
+
__rndr(uint64_t *__p) {
|
|
759
|
+
return __builtin_arm_rndr(__p);
|
|
760
|
+
}
|
|
761
|
+
static __inline__ int __attribute__((__always_inline__, __nodebug__))
|
|
762
|
+
__rndrrs(uint64_t *__p) {
|
|
763
|
+
return __builtin_arm_rndrrs(__p);
|
|
764
|
+
}
|
|
765
|
+
#endif
|
|
766
|
+
|
|
712
767
|
#if defined(__cplusplus)
|
|
713
768
|
}
|
|
714
769
|
#endif
|