@cpp-linter/clang-tidy-darwin-arm64 16.0.3 → 18.1.5
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 +2 -2
- package/lib/clang/{16 → 18}/include/__clang_cuda_device_functions.h +2 -2
- package/lib/clang/{16 → 18}/include/__clang_cuda_intrinsics.h +191 -0
- package/lib/clang/{16 → 18}/include/__clang_cuda_libdevice_declares.h +2 -2
- package/lib/clang/{16 → 18}/include/__clang_cuda_math.h +3 -3
- package/lib/clang/{16 → 18}/include/__clang_cuda_runtime_wrapper.h +2 -2
- package/lib/clang/{16 → 18}/include/__clang_hip_cmath.h +1 -1
- package/lib/clang/{16 → 18}/include/__clang_hip_libdevice_declares.h +32 -30
- package/lib/clang/{16 → 18}/include/__clang_hip_math.h +244 -238
- package/lib/clang/{16 → 18}/include/__clang_hip_runtime_wrapper.h +44 -23
- package/lib/clang/18/include/__stdarg___gnuc_va_list.h +13 -0
- package/lib/clang/18/include/__stdarg___va_copy.h +12 -0
- package/lib/clang/18/include/__stdarg_va_arg.h +22 -0
- package/lib/clang/18/include/__stdarg_va_copy.h +12 -0
- package/lib/clang/18/include/__stdarg_va_list.h +13 -0
- package/lib/clang/{16 → 18}/include/__stddef_max_align_t.h +1 -1
- package/lib/clang/18/include/__stddef_null.h +29 -0
- package/lib/clang/18/include/__stddef_nullptr_t.h +29 -0
- package/lib/clang/18/include/__stddef_offsetof.h +17 -0
- package/lib/clang/18/include/__stddef_ptrdiff_t.h +20 -0
- package/lib/clang/18/include/__stddef_rsize_t.h +20 -0
- package/lib/clang/18/include/__stddef_size_t.h +20 -0
- package/lib/clang/18/include/__stddef_unreachable.h +21 -0
- package/lib/clang/18/include/__stddef_wchar_t.h +28 -0
- package/lib/clang/18/include/__stddef_wint_t.h +15 -0
- package/lib/clang/18/include/adcintrin.h +160 -0
- package/lib/clang/18/include/adxintrin.h +102 -0
- package/lib/clang/{16 → 18}/include/altivec.h +167 -136
- package/lib/clang/{16 → 18}/include/ammintrin.h +4 -4
- package/lib/clang/18/include/amxcomplexintrin.h +169 -0
- package/lib/clang/{16 → 18}/include/arm_acle.h +124 -40
- package/lib/clang/{16 → 18}/include/arm_neon.h +249 -328
- package/lib/clang/18/include/arm_sme.h +2412 -0
- package/lib/clang/{16 → 18}/include/arm_sve.h +7454 -364
- package/lib/clang/18/include/arm_vector_types.h +345 -0
- package/lib/clang/18/include/avx2intrin.h +5284 -0
- package/lib/clang/{16 → 18}/include/avx512bf16intrin.h +3 -2
- package/lib/clang/{16 → 18}/include/avx512bitalgintrin.h +4 -1
- package/lib/clang/{16 → 18}/include/avx512bwintrin.h +28 -38
- package/lib/clang/{16 → 18}/include/avx512cdintrin.h +3 -1
- package/lib/clang/{16 → 18}/include/avx512dqintrin.h +4 -2
- package/lib/clang/{16 → 18}/include/avx512fintrin.h +24 -10
- package/lib/clang/{16 → 18}/include/avx512fp16intrin.h +18 -12
- package/lib/clang/{16 → 18}/include/avx512ifmaintrin.h +3 -1
- package/lib/clang/{16 → 18}/include/avx512ifmavlintrin.h +8 -2
- package/lib/clang/{16 → 18}/include/avx512pfintrin.h +0 -5
- package/lib/clang/{16 → 18}/include/avx512vbmi2intrin.h +1 -1
- package/lib/clang/{16 → 18}/include/avx512vbmiintrin.h +3 -2
- package/lib/clang/{16 → 18}/include/avx512vbmivlintrin.h +8 -3
- package/lib/clang/{16 → 18}/include/avx512vlbf16intrin.h +8 -6
- package/lib/clang/{16 → 18}/include/avx512vlbitalgintrin.h +8 -2
- package/lib/clang/{16 → 18}/include/avx512vlbwintrin.h +8 -2
- package/lib/clang/{16 → 18}/include/avx512vlcdintrin.h +8 -3
- package/lib/clang/{16 → 18}/include/avx512vldqintrin.h +8 -2
- package/lib/clang/{16 → 18}/include/avx512vlfp16intrin.h +2 -2
- package/lib/clang/{16 → 18}/include/avx512vlintrin.h +8 -2
- package/lib/clang/{16 → 18}/include/avx512vlvbmi2intrin.h +8 -2
- package/lib/clang/{16 → 18}/include/avx512vlvnniintrin.h +8 -2
- package/lib/clang/{16 → 18}/include/avx512vlvp2intersectintrin.h +6 -4
- package/lib/clang/{16 → 18}/include/avx512vnniintrin.h +3 -2
- package/lib/clang/{16 → 18}/include/avx512vp2intersectintrin.h +3 -2
- package/lib/clang/{16 → 18}/include/avx512vpopcntdqintrin.h +3 -1
- package/lib/clang/{16 → 18}/include/avx512vpopcntdqvlintrin.h +6 -2
- package/lib/clang/{16 → 18}/include/avxintrin.h +29 -12
- package/lib/clang/18/include/avxvnniint16intrin.h +473 -0
- package/lib/clang/18/include/bmi2intrin.h +255 -0
- package/lib/clang/{16 → 18}/include/bmiintrin.h +231 -46
- package/lib/clang/{16 → 18}/include/clflushoptintrin.h +9 -0
- package/lib/clang/{16 → 18}/include/clzerointrin.h +7 -5
- package/lib/clang/18/include/cuda_wrappers/bits/basic_string.h +9 -0
- package/lib/clang/18/include/cuda_wrappers/bits/basic_string.tcc +9 -0
- package/lib/clang/18/include/cuda_wrappers/bits/shared_ptr_base.h +9 -0
- package/lib/clang/{16 → 18}/include/emmintrin.h +10 -10
- package/lib/clang/18/include/fmaintrin.h +780 -0
- package/lib/clang/{16 → 18}/include/gfniintrin.h +23 -6
- package/lib/clang/18/include/hlsl/hlsl_intrinsics.h +624 -0
- package/lib/clang/18/include/ia32intrin.h +863 -0
- package/lib/clang/{16 → 18}/include/immintrin.h +182 -11
- package/lib/clang/{16 → 18}/include/intrin.h +16 -0
- package/lib/clang/{16 → 18}/include/larchintrin.h +13 -1
- package/lib/clang/18/include/lasxintrin.h +3884 -0
- package/lib/clang/{16 → 18}/include/limits.h +7 -5
- package/lib/clang/18/include/llvm_libc_wrappers/assert.h +34 -0
- package/lib/clang/18/include/llvm_libc_wrappers/ctype.h +102 -0
- package/lib/clang/18/include/llvm_libc_wrappers/inttypes.h +34 -0
- package/lib/clang/18/include/llvm_libc_wrappers/stdio.h +80 -0
- package/lib/clang/18/include/llvm_libc_wrappers/stdlib.h +45 -0
- package/lib/clang/18/include/llvm_libc_wrappers/string.h +96 -0
- package/lib/clang/18/include/llvm_libc_wrappers/time.h +34 -0
- package/lib/clang/18/include/lsxintrin.h +3750 -0
- package/lib/clang/{16 → 18}/include/mmintrin.h +7 -5
- package/lib/clang/{16 → 18}/include/module.modulemap +155 -2
- package/lib/clang/18/include/mwaitxintrin.h +62 -0
- package/lib/clang/{16 → 18}/include/opencl-c-base.h +8 -0
- package/lib/clang/{16 → 18}/include/openmp_wrappers/__clang_openmp_device_functions.h +0 -1
- package/lib/clang/{16 → 18}/include/openmp_wrappers/cmath +1 -1
- package/lib/clang/{16 → 18}/include/openmp_wrappers/new +1 -1
- package/lib/clang/{16 → 18}/include/pmmintrin.h +15 -8
- package/lib/clang/{16 → 18}/include/ppc_wrappers/emmintrin.h +2 -1
- package/lib/clang/18/include/ppc_wrappers/nmmintrin.h +26 -0
- package/lib/clang/{16 → 18}/include/ppc_wrappers/smmintrin.h +37 -17
- package/lib/clang/18/include/rdseedintrin.h +105 -0
- package/lib/clang/18/include/riscv_bitmanip.h +195 -0
- package/lib/clang/18/include/riscv_crypto.h +170 -0
- package/lib/clang/18/include/riscv_ntlh.h +26 -0
- package/lib/clang/18/include/riscv_vector.h +431 -0
- package/lib/clang/18/include/sha512intrin.h +200 -0
- package/lib/clang/18/include/shaintrin.h +189 -0
- package/lib/clang/18/include/sifive_vector.h +16 -0
- package/lib/clang/18/include/sm3intrin.h +238 -0
- package/lib/clang/18/include/sm4intrin.h +269 -0
- package/lib/clang/{16 → 18}/include/smmintrin.h +3 -3
- package/lib/clang/{16 → 18}/include/stdalign.h +3 -0
- package/lib/clang/18/include/stdarg.h +79 -0
- package/lib/clang/{16 → 18}/include/stdatomic.h +7 -2
- package/lib/clang/18/include/stdckdint.h +42 -0
- package/lib/clang/18/include/stddef.h +123 -0
- package/lib/clang/{16 → 18}/include/stdint.h +19 -48
- package/lib/clang/{16 → 18}/include/stdnoreturn.h +2 -2
- package/lib/clang/{16 → 18}/include/tmmintrin.h +7 -2
- package/lib/clang/18/include/usermsrintrin.h +51 -0
- package/lib/clang/{16 → 18}/include/vaesintrin.h +4 -2
- package/lib/clang/{16 → 18}/include/vecintrin.h +217 -199
- package/lib/clang/{16 → 18}/include/wasm_simd128.h +132 -12
- package/lib/clang/{16 → 18}/include/x86gprintrin.h +5 -0
- package/lib/clang/{16 → 18}/include/xmmintrin.h +9 -5
- package/lib/clang/18/include/xsavecintrin.h +84 -0
- package/package.json +6 -6
- package/lib/clang/16/include/adxintrin.h +0 -72
- package/lib/clang/16/include/avx2intrin.h +0 -1148
- package/lib/clang/16/include/bmi2intrin.h +0 -81
- package/lib/clang/16/include/fmaintrin.h +0 -216
- package/lib/clang/16/include/hlsl/hlsl_intrinsics.h +0 -223
- package/lib/clang/16/include/ia32intrin.h +0 -441
- package/lib/clang/16/include/mwaitxintrin.h +0 -33
- package/lib/clang/16/include/rdseedintrin.h +0 -42
- package/lib/clang/16/include/riscv_vector.h +0 -211
- package/lib/clang/16/include/shaintrin.h +0 -61
- package/lib/clang/16/include/stdarg.h +0 -51
- package/lib/clang/16/include/stddef.h +0 -128
- package/lib/clang/16/include/xsavecintrin.h +0 -34
- /package/lib/clang/{16 → 18}/include/__clang_cuda_builtin_vars.h +0 -0
- /package/lib/clang/{16 → 18}/include/__clang_cuda_cmath.h +0 -0
- /package/lib/clang/{16 → 18}/include/__clang_cuda_complex_builtins.h +0 -0
- /package/lib/clang/{16 → 18}/include/__clang_cuda_math_forward_declares.h +0 -0
- /package/lib/clang/{16 → 18}/include/__clang_cuda_texture_intrinsics.h +0 -0
- /package/lib/clang/{16 → 18}/include/__clang_hip_stdlib.h +0 -0
- /package/lib/clang/{16 → 18}/include/__wmmintrin_aes.h +0 -0
- /package/lib/clang/{16 → 18}/include/__wmmintrin_pclmul.h +0 -0
- /package/lib/clang/{16 → 18}/include/amxfp16intrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/amxintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/arm64intr.h +0 -0
- /package/lib/clang/{16 → 18}/include/arm_bf16.h +0 -0
- /package/lib/clang/{16 → 18}/include/arm_cde.h +0 -0
- /package/lib/clang/{16 → 18}/include/arm_cmse.h +0 -0
- /package/lib/clang/{16 → 18}/include/arm_fp16.h +0 -0
- /package/lib/clang/{16 → 18}/include/arm_mve.h +0 -0
- /package/lib/clang/{16 → 18}/include/arm_neon_sve_bridge.h +0 -0
- /package/lib/clang/{16 → 18}/include/armintr.h +0 -0
- /package/lib/clang/{16 → 18}/include/avx512erintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/avxifmaintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/avxneconvertintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/avxvnniint8intrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/avxvnniintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/builtins.h +0 -0
- /package/lib/clang/{16 → 18}/include/cet.h +0 -0
- /package/lib/clang/{16 → 18}/include/cetintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/cldemoteintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/clwbintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/cmpccxaddintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/cpuid.h +0 -0
- /package/lib/clang/{16 → 18}/include/crc32intrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/cuda_wrappers/algorithm +0 -0
- /package/lib/clang/{16 → 18}/include/cuda_wrappers/cmath +0 -0
- /package/lib/clang/{16 → 18}/include/cuda_wrappers/complex +0 -0
- /package/lib/clang/{16 → 18}/include/cuda_wrappers/new +0 -0
- /package/lib/clang/{16 → 18}/include/enqcmdintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/f16cintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/float.h +0 -0
- /package/lib/clang/{16 → 18}/include/fma4intrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/fxsrintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/hexagon_circ_brev_intrinsics.h +0 -0
- /package/lib/clang/{16 → 18}/include/hexagon_protos.h +0 -0
- /package/lib/clang/{16 → 18}/include/hexagon_types.h +0 -0
- /package/lib/clang/{16 → 18}/include/hlsl/hlsl_basic_types.h +0 -0
- /package/lib/clang/{16 → 18}/include/hlsl.h +0 -0
- /package/lib/clang/{16 → 18}/include/hresetintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/htmintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/htmxlintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/hvx_hexagon_protos.h +0 -0
- /package/lib/clang/{16 → 18}/include/inttypes.h +0 -0
- /package/lib/clang/{16 → 18}/include/invpcidintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/iso646.h +0 -0
- /package/lib/clang/{16 → 18}/include/keylockerintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/lwpintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/lzcntintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/mm3dnow.h +0 -0
- /package/lib/clang/{16 → 18}/include/mm_malloc.h +0 -0
- /package/lib/clang/{16 → 18}/include/movdirintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/msa.h +0 -0
- /package/lib/clang/{16 → 18}/include/nmmintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/opencl-c.h +0 -0
- /package/lib/clang/{16 → 18}/include/openmp_wrappers/complex +0 -0
- /package/lib/clang/{16 → 18}/include/openmp_wrappers/complex.h +0 -0
- /package/lib/clang/{16 → 18}/include/openmp_wrappers/complex_cmath.h +0 -0
- /package/lib/clang/{16 → 18}/include/openmp_wrappers/math.h +0 -0
- /package/lib/clang/{16 → 18}/include/pconfigintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/pkuintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/popcntintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/ppc_wrappers/bmi2intrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/ppc_wrappers/bmiintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/ppc_wrappers/immintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/ppc_wrappers/mm_malloc.h +0 -0
- /package/lib/clang/{16 → 18}/include/ppc_wrappers/mmintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/ppc_wrappers/pmmintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/ppc_wrappers/tmmintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/ppc_wrappers/x86gprintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/ppc_wrappers/x86intrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/ppc_wrappers/xmmintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/prfchiintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/prfchwintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/ptwriteintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/raointintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/rdpruintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/rtmintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/s390intrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/serializeintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/sgxintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/stdbool.h +0 -0
- /package/lib/clang/{16 → 18}/include/tbmintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/tgmath.h +0 -0
- /package/lib/clang/{16 → 18}/include/tsxldtrkintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/uintrintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/unwind.h +0 -0
- /package/lib/clang/{16 → 18}/include/vadefs.h +0 -0
- /package/lib/clang/{16 → 18}/include/varargs.h +0 -0
- /package/lib/clang/{16 → 18}/include/velintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/velintrin_approx.h +0 -0
- /package/lib/clang/{16 → 18}/include/velintrin_gen.h +0 -0
- /package/lib/clang/{16 → 18}/include/vpclmulqdqintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/waitpkgintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/wbnoinvdintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/wmmintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/x86intrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/xopintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/xsaveintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/xsaveoptintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/xsavesintrin.h +0 -0
- /package/lib/clang/{16 → 18}/include/xtestintrin.h +0 -0
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
/*===---- riscv_vector.h - RISC-V V-extension RVVIntrinsics -------------------===
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
5
|
-
* See https://llvm.org/LICENSE.txt for license information.
|
|
6
|
-
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
7
|
-
*
|
|
8
|
-
*===-----------------------------------------------------------------------===
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#ifndef __RISCV_VECTOR_H
|
|
12
|
-
#define __RISCV_VECTOR_H
|
|
13
|
-
|
|
14
|
-
#include <stdint.h>
|
|
15
|
-
#include <stddef.h>
|
|
16
|
-
|
|
17
|
-
#ifndef __riscv_vector
|
|
18
|
-
#error "Vector intrinsics require the vector extension."
|
|
19
|
-
#endif
|
|
20
|
-
|
|
21
|
-
#ifdef __cplusplus
|
|
22
|
-
extern "C" {
|
|
23
|
-
#endif
|
|
24
|
-
|
|
25
|
-
#pragma clang riscv intrinsic vector
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
#define __riscv_vlenb() __builtin_rvv_vlenb()
|
|
29
|
-
|
|
30
|
-
enum RVV_CSR {
|
|
31
|
-
RVV_VSTART = 0,
|
|
32
|
-
RVV_VXSAT,
|
|
33
|
-
RVV_VXRM,
|
|
34
|
-
RVV_VCSR,
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
static __inline__ __attribute__((__always_inline__, __nodebug__))
|
|
38
|
-
unsigned long __riscv_vread_csr(enum RVV_CSR __csr) {
|
|
39
|
-
unsigned long __rv = 0;
|
|
40
|
-
switch (__csr) {
|
|
41
|
-
case RVV_VSTART:
|
|
42
|
-
__asm__ __volatile__ ("csrr\t%0, vstart" : "=r"(__rv) : : "memory");
|
|
43
|
-
break;
|
|
44
|
-
case RVV_VXSAT:
|
|
45
|
-
__asm__ __volatile__ ("csrr\t%0, vxsat" : "=r"(__rv) : : "memory");
|
|
46
|
-
break;
|
|
47
|
-
case RVV_VXRM:
|
|
48
|
-
__asm__ __volatile__ ("csrr\t%0, vxrm" : "=r"(__rv) : : "memory");
|
|
49
|
-
break;
|
|
50
|
-
case RVV_VCSR:
|
|
51
|
-
__asm__ __volatile__ ("csrr\t%0, vcsr" : "=r"(__rv) : : "memory");
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
return __rv;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
static __inline__ __attribute__((__always_inline__, __nodebug__))
|
|
58
|
-
void __riscv_vwrite_csr(enum RVV_CSR __csr, unsigned long __value) {
|
|
59
|
-
switch (__csr) {
|
|
60
|
-
case RVV_VSTART:
|
|
61
|
-
__asm__ __volatile__ ("csrw\tvstart, %z0" : : "rJ"(__value) : "memory");
|
|
62
|
-
break;
|
|
63
|
-
case RVV_VXSAT:
|
|
64
|
-
__asm__ __volatile__ ("csrw\tvxsat, %z0" : : "rJ"(__value) : "memory");
|
|
65
|
-
break;
|
|
66
|
-
case RVV_VXRM:
|
|
67
|
-
__asm__ __volatile__ ("csrw\tvxrm, %z0" : : "rJ"(__value) : "memory");
|
|
68
|
-
break;
|
|
69
|
-
case RVV_VCSR:
|
|
70
|
-
__asm__ __volatile__ ("csrw\tvcsr, %z0" : : "rJ"(__value) : "memory");
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
#define __riscv_vsetvl_e8mf4(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 6)
|
|
76
|
-
#define __riscv_vsetvl_e8mf2(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 7)
|
|
77
|
-
#define __riscv_vsetvl_e8m1(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 0)
|
|
78
|
-
#define __riscv_vsetvl_e8m2(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 1)
|
|
79
|
-
#define __riscv_vsetvl_e8m4(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 2)
|
|
80
|
-
#define __riscv_vsetvl_e8m8(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 3)
|
|
81
|
-
|
|
82
|
-
#define __riscv_vsetvl_e16mf2(avl) __builtin_rvv_vsetvli((size_t)(avl), 1, 7)
|
|
83
|
-
#define __riscv_vsetvl_e16m1(avl) __builtin_rvv_vsetvli((size_t)(avl), 1, 0)
|
|
84
|
-
#define __riscv_vsetvl_e16m2(avl) __builtin_rvv_vsetvli((size_t)(avl), 1, 1)
|
|
85
|
-
#define __riscv_vsetvl_e16m4(avl) __builtin_rvv_vsetvli((size_t)(avl), 1, 2)
|
|
86
|
-
#define __riscv_vsetvl_e16m8(avl) __builtin_rvv_vsetvli((size_t)(avl), 1, 3)
|
|
87
|
-
|
|
88
|
-
#define __riscv_vsetvl_e32m1(avl) __builtin_rvv_vsetvli((size_t)(avl), 2, 0)
|
|
89
|
-
#define __riscv_vsetvl_e32m2(avl) __builtin_rvv_vsetvli((size_t)(avl), 2, 1)
|
|
90
|
-
#define __riscv_vsetvl_e32m4(avl) __builtin_rvv_vsetvli((size_t)(avl), 2, 2)
|
|
91
|
-
#define __riscv_vsetvl_e32m8(avl) __builtin_rvv_vsetvli((size_t)(avl), 2, 3)
|
|
92
|
-
|
|
93
|
-
#if __riscv_v_elen >= 64
|
|
94
|
-
#define __riscv_vsetvl_e8mf8(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 5)
|
|
95
|
-
#define __riscv_vsetvl_e16mf4(avl) __builtin_rvv_vsetvli((size_t)(avl), 1, 6)
|
|
96
|
-
#define __riscv_vsetvl_e32mf2(avl) __builtin_rvv_vsetvli((size_t)(avl), 2, 7)
|
|
97
|
-
|
|
98
|
-
#define __riscv_vsetvl_e64m1(avl) __builtin_rvv_vsetvli((size_t)(avl), 3, 0)
|
|
99
|
-
#define __riscv_vsetvl_e64m2(avl) __builtin_rvv_vsetvli((size_t)(avl), 3, 1)
|
|
100
|
-
#define __riscv_vsetvl_e64m4(avl) __builtin_rvv_vsetvli((size_t)(avl), 3, 2)
|
|
101
|
-
#define __riscv_vsetvl_e64m8(avl) __builtin_rvv_vsetvli((size_t)(avl), 3, 3)
|
|
102
|
-
#endif
|
|
103
|
-
|
|
104
|
-
#define __riscv_vsetvlmax_e8mf4() __builtin_rvv_vsetvlimax(0, 6)
|
|
105
|
-
#define __riscv_vsetvlmax_e8mf2() __builtin_rvv_vsetvlimax(0, 7)
|
|
106
|
-
#define __riscv_vsetvlmax_e8m1() __builtin_rvv_vsetvlimax(0, 0)
|
|
107
|
-
#define __riscv_vsetvlmax_e8m2() __builtin_rvv_vsetvlimax(0, 1)
|
|
108
|
-
#define __riscv_vsetvlmax_e8m4() __builtin_rvv_vsetvlimax(0, 2)
|
|
109
|
-
#define __riscv_vsetvlmax_e8m8() __builtin_rvv_vsetvlimax(0, 3)
|
|
110
|
-
|
|
111
|
-
#define __riscv_vsetvlmax_e16mf2() __builtin_rvv_vsetvlimax(1, 7)
|
|
112
|
-
#define __riscv_vsetvlmax_e16m1() __builtin_rvv_vsetvlimax(1, 0)
|
|
113
|
-
#define __riscv_vsetvlmax_e16m2() __builtin_rvv_vsetvlimax(1, 1)
|
|
114
|
-
#define __riscv_vsetvlmax_e16m4() __builtin_rvv_vsetvlimax(1, 2)
|
|
115
|
-
#define __riscv_vsetvlmax_e16m8() __builtin_rvv_vsetvlimax(1, 3)
|
|
116
|
-
|
|
117
|
-
#define __riscv_vsetvlmax_e32m1() __builtin_rvv_vsetvlimax(2, 0)
|
|
118
|
-
#define __riscv_vsetvlmax_e32m2() __builtin_rvv_vsetvlimax(2, 1)
|
|
119
|
-
#define __riscv_vsetvlmax_e32m4() __builtin_rvv_vsetvlimax(2, 2)
|
|
120
|
-
#define __riscv_vsetvlmax_e32m8() __builtin_rvv_vsetvlimax(2, 3)
|
|
121
|
-
|
|
122
|
-
#if __riscv_v_elen >= 64
|
|
123
|
-
#define __riscv_vsetvlmax_e8mf8() __builtin_rvv_vsetvlimax(0, 5)
|
|
124
|
-
#define __riscv_vsetvlmax_e16mf4() __builtin_rvv_vsetvlimax(1, 6)
|
|
125
|
-
#define __riscv_vsetvlmax_e32mf2() __builtin_rvv_vsetvlimax(2, 7)
|
|
126
|
-
|
|
127
|
-
#define __riscv_vsetvlmax_e64m1() __builtin_rvv_vsetvlimax(3, 0)
|
|
128
|
-
#define __riscv_vsetvlmax_e64m2() __builtin_rvv_vsetvlimax(3, 1)
|
|
129
|
-
#define __riscv_vsetvlmax_e64m4() __builtin_rvv_vsetvlimax(3, 2)
|
|
130
|
-
#define __riscv_vsetvlmax_e64m8() __builtin_rvv_vsetvlimax(3, 3)
|
|
131
|
-
#endif
|
|
132
|
-
|
|
133
|
-
typedef __rvv_bool64_t vbool64_t;
|
|
134
|
-
typedef __rvv_bool32_t vbool32_t;
|
|
135
|
-
typedef __rvv_bool16_t vbool16_t;
|
|
136
|
-
typedef __rvv_bool8_t vbool8_t;
|
|
137
|
-
typedef __rvv_bool4_t vbool4_t;
|
|
138
|
-
typedef __rvv_bool2_t vbool2_t;
|
|
139
|
-
typedef __rvv_bool1_t vbool1_t;
|
|
140
|
-
typedef __rvv_int8mf8_t vint8mf8_t;
|
|
141
|
-
typedef __rvv_uint8mf8_t vuint8mf8_t;
|
|
142
|
-
typedef __rvv_int8mf4_t vint8mf4_t;
|
|
143
|
-
typedef __rvv_uint8mf4_t vuint8mf4_t;
|
|
144
|
-
typedef __rvv_int8mf2_t vint8mf2_t;
|
|
145
|
-
typedef __rvv_uint8mf2_t vuint8mf2_t;
|
|
146
|
-
typedef __rvv_int8m1_t vint8m1_t;
|
|
147
|
-
typedef __rvv_uint8m1_t vuint8m1_t;
|
|
148
|
-
typedef __rvv_int8m2_t vint8m2_t;
|
|
149
|
-
typedef __rvv_uint8m2_t vuint8m2_t;
|
|
150
|
-
typedef __rvv_int8m4_t vint8m4_t;
|
|
151
|
-
typedef __rvv_uint8m4_t vuint8m4_t;
|
|
152
|
-
typedef __rvv_int8m8_t vint8m8_t;
|
|
153
|
-
typedef __rvv_uint8m8_t vuint8m8_t;
|
|
154
|
-
typedef __rvv_int16mf4_t vint16mf4_t;
|
|
155
|
-
typedef __rvv_uint16mf4_t vuint16mf4_t;
|
|
156
|
-
typedef __rvv_int16mf2_t vint16mf2_t;
|
|
157
|
-
typedef __rvv_uint16mf2_t vuint16mf2_t;
|
|
158
|
-
typedef __rvv_int16m1_t vint16m1_t;
|
|
159
|
-
typedef __rvv_uint16m1_t vuint16m1_t;
|
|
160
|
-
typedef __rvv_int16m2_t vint16m2_t;
|
|
161
|
-
typedef __rvv_uint16m2_t vuint16m2_t;
|
|
162
|
-
typedef __rvv_int16m4_t vint16m4_t;
|
|
163
|
-
typedef __rvv_uint16m4_t vuint16m4_t;
|
|
164
|
-
typedef __rvv_int16m8_t vint16m8_t;
|
|
165
|
-
typedef __rvv_uint16m8_t vuint16m8_t;
|
|
166
|
-
typedef __rvv_int32mf2_t vint32mf2_t;
|
|
167
|
-
typedef __rvv_uint32mf2_t vuint32mf2_t;
|
|
168
|
-
typedef __rvv_int32m1_t vint32m1_t;
|
|
169
|
-
typedef __rvv_uint32m1_t vuint32m1_t;
|
|
170
|
-
typedef __rvv_int32m2_t vint32m2_t;
|
|
171
|
-
typedef __rvv_uint32m2_t vuint32m2_t;
|
|
172
|
-
typedef __rvv_int32m4_t vint32m4_t;
|
|
173
|
-
typedef __rvv_uint32m4_t vuint32m4_t;
|
|
174
|
-
typedef __rvv_int32m8_t vint32m8_t;
|
|
175
|
-
typedef __rvv_uint32m8_t vuint32m8_t;
|
|
176
|
-
typedef __rvv_int64m1_t vint64m1_t;
|
|
177
|
-
typedef __rvv_uint64m1_t vuint64m1_t;
|
|
178
|
-
typedef __rvv_int64m2_t vint64m2_t;
|
|
179
|
-
typedef __rvv_uint64m2_t vuint64m2_t;
|
|
180
|
-
typedef __rvv_int64m4_t vint64m4_t;
|
|
181
|
-
typedef __rvv_uint64m4_t vuint64m4_t;
|
|
182
|
-
typedef __rvv_int64m8_t vint64m8_t;
|
|
183
|
-
typedef __rvv_uint64m8_t vuint64m8_t;
|
|
184
|
-
#if defined(__riscv_zvfh)
|
|
185
|
-
typedef __rvv_float16mf4_t vfloat16mf4_t;
|
|
186
|
-
typedef __rvv_float16mf2_t vfloat16mf2_t;
|
|
187
|
-
typedef __rvv_float16m1_t vfloat16m1_t;
|
|
188
|
-
typedef __rvv_float16m2_t vfloat16m2_t;
|
|
189
|
-
typedef __rvv_float16m4_t vfloat16m4_t;
|
|
190
|
-
typedef __rvv_float16m8_t vfloat16m8_t;
|
|
191
|
-
#endif
|
|
192
|
-
#if (__riscv_v_elen_fp >= 32)
|
|
193
|
-
typedef __rvv_float32mf2_t vfloat32mf2_t;
|
|
194
|
-
typedef __rvv_float32m1_t vfloat32m1_t;
|
|
195
|
-
typedef __rvv_float32m2_t vfloat32m2_t;
|
|
196
|
-
typedef __rvv_float32m4_t vfloat32m4_t;
|
|
197
|
-
typedef __rvv_float32m8_t vfloat32m8_t;
|
|
198
|
-
#endif
|
|
199
|
-
#if (__riscv_v_elen_fp >= 64)
|
|
200
|
-
typedef __rvv_float64m1_t vfloat64m1_t;
|
|
201
|
-
typedef __rvv_float64m2_t vfloat64m2_t;
|
|
202
|
-
typedef __rvv_float64m4_t vfloat64m4_t;
|
|
203
|
-
typedef __rvv_float64m8_t vfloat64m8_t;
|
|
204
|
-
#endif
|
|
205
|
-
|
|
206
|
-
#define __riscv_v_intrinsic_overloading 1
|
|
207
|
-
|
|
208
|
-
#ifdef __cplusplus
|
|
209
|
-
}
|
|
210
|
-
#endif // __cplusplus
|
|
211
|
-
#endif // __RISCV_VECTOR_H
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/*===---- shaintrin.h - SHA intrinsics -------------------------------------===
|
|
2
|
-
*
|
|
3
|
-
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
4
|
-
* See https://llvm.org/LICENSE.txt for license information.
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
6
|
-
*
|
|
7
|
-
*===-----------------------------------------------------------------------===
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#ifndef __IMMINTRIN_H
|
|
11
|
-
#error "Never use <shaintrin.h> directly; include <immintrin.h> instead."
|
|
12
|
-
#endif
|
|
13
|
-
|
|
14
|
-
#ifndef __SHAINTRIN_H
|
|
15
|
-
#define __SHAINTRIN_H
|
|
16
|
-
|
|
17
|
-
/* Define the default attributes for the functions in this file. */
|
|
18
|
-
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("sha"), __min_vector_width__(128)))
|
|
19
|
-
|
|
20
|
-
#define _mm_sha1rnds4_epu32(V1, V2, M) \
|
|
21
|
-
__builtin_ia32_sha1rnds4((__v4si)(__m128i)(V1), (__v4si)(__m128i)(V2), (M))
|
|
22
|
-
|
|
23
|
-
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
|
24
|
-
_mm_sha1nexte_epu32(__m128i __X, __m128i __Y)
|
|
25
|
-
{
|
|
26
|
-
return (__m128i)__builtin_ia32_sha1nexte((__v4si)__X, (__v4si)__Y);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
|
30
|
-
_mm_sha1msg1_epu32(__m128i __X, __m128i __Y)
|
|
31
|
-
{
|
|
32
|
-
return (__m128i)__builtin_ia32_sha1msg1((__v4si)__X, (__v4si)__Y);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
|
36
|
-
_mm_sha1msg2_epu32(__m128i __X, __m128i __Y)
|
|
37
|
-
{
|
|
38
|
-
return (__m128i)__builtin_ia32_sha1msg2((__v4si)__X, (__v4si)__Y);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
|
42
|
-
_mm_sha256rnds2_epu32(__m128i __X, __m128i __Y, __m128i __Z)
|
|
43
|
-
{
|
|
44
|
-
return (__m128i)__builtin_ia32_sha256rnds2((__v4si)__X, (__v4si)__Y, (__v4si)__Z);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
|
48
|
-
_mm_sha256msg1_epu32(__m128i __X, __m128i __Y)
|
|
49
|
-
{
|
|
50
|
-
return (__m128i)__builtin_ia32_sha256msg1((__v4si)__X, (__v4si)__Y);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
|
54
|
-
_mm_sha256msg2_epu32(__m128i __X, __m128i __Y)
|
|
55
|
-
{
|
|
56
|
-
return (__m128i)__builtin_ia32_sha256msg2((__v4si)__X, (__v4si)__Y);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
#undef __DEFAULT_FN_ATTRS
|
|
60
|
-
|
|
61
|
-
#endif /* __SHAINTRIN_H */
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/*===---- stdarg.h - Variable argument handling ----------------------------===
|
|
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 __STDARG_H
|
|
11
|
-
|
|
12
|
-
#ifndef __GNUC_VA_LIST
|
|
13
|
-
#define __GNUC_VA_LIST
|
|
14
|
-
typedef __builtin_va_list __gnuc_va_list;
|
|
15
|
-
#endif
|
|
16
|
-
|
|
17
|
-
#ifdef __need___va_list
|
|
18
|
-
#undef __need___va_list
|
|
19
|
-
#else
|
|
20
|
-
#define __STDARG_H
|
|
21
|
-
#ifndef _VA_LIST
|
|
22
|
-
typedef __builtin_va_list va_list;
|
|
23
|
-
#define _VA_LIST
|
|
24
|
-
#endif
|
|
25
|
-
|
|
26
|
-
/* FIXME: This is using the placeholder dates Clang produces for these macros
|
|
27
|
-
in C2x mode; switch to the correct values once they've been published. */
|
|
28
|
-
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L
|
|
29
|
-
/* C2x does not require the second parameter for va_start. */
|
|
30
|
-
#define va_start(ap, ...) __builtin_va_start(ap, 0)
|
|
31
|
-
#else
|
|
32
|
-
/* Versions before C2x do require the second parameter. */
|
|
33
|
-
#define va_start(ap, param) __builtin_va_start(ap, param)
|
|
34
|
-
#endif
|
|
35
|
-
#define va_end(ap) __builtin_va_end(ap)
|
|
36
|
-
#define va_arg(ap, type) __builtin_va_arg(ap, type)
|
|
37
|
-
|
|
38
|
-
/* GCC always defines __va_copy, but does not define va_copy unless in c99 mode
|
|
39
|
-
* or -ansi is not specified, since it was not part of C90.
|
|
40
|
-
*/
|
|
41
|
-
#define __va_copy(d,s) __builtin_va_copy(d,s)
|
|
42
|
-
|
|
43
|
-
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
|
|
44
|
-
(defined(__cplusplus) && __cplusplus >= 201103L) || \
|
|
45
|
-
!defined(__STRICT_ANSI__)
|
|
46
|
-
#define va_copy(dest, src) __builtin_va_copy(dest, src)
|
|
47
|
-
#endif
|
|
48
|
-
|
|
49
|
-
#endif /* __STDARG_H */
|
|
50
|
-
|
|
51
|
-
#endif /* not __STDARG_H */
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/*===---- stddef.h - Basic type definitions --------------------------------===
|
|
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
|
-
#if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \
|
|
11
|
-
defined(__need_size_t) || defined(__need_wchar_t) || \
|
|
12
|
-
defined(__need_NULL) || defined(__need_wint_t)
|
|
13
|
-
|
|
14
|
-
#if !defined(__need_ptrdiff_t) && !defined(__need_size_t) && \
|
|
15
|
-
!defined(__need_wchar_t) && !defined(__need_NULL) && \
|
|
16
|
-
!defined(__need_wint_t)
|
|
17
|
-
/* Always define miscellaneous pieces when modules are available. */
|
|
18
|
-
#if !__has_feature(modules)
|
|
19
|
-
#define __STDDEF_H
|
|
20
|
-
#endif
|
|
21
|
-
#define __need_ptrdiff_t
|
|
22
|
-
#define __need_size_t
|
|
23
|
-
#define __need_wchar_t
|
|
24
|
-
#define __need_NULL
|
|
25
|
-
#define __need_STDDEF_H_misc
|
|
26
|
-
/* __need_wint_t is intentionally not defined here. */
|
|
27
|
-
#endif
|
|
28
|
-
|
|
29
|
-
#if defined(__need_ptrdiff_t)
|
|
30
|
-
#if !defined(_PTRDIFF_T) || __has_feature(modules)
|
|
31
|
-
/* Always define ptrdiff_t when modules are available. */
|
|
32
|
-
#if !__has_feature(modules)
|
|
33
|
-
#define _PTRDIFF_T
|
|
34
|
-
#endif
|
|
35
|
-
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
|
36
|
-
#endif
|
|
37
|
-
#undef __need_ptrdiff_t
|
|
38
|
-
#endif /* defined(__need_ptrdiff_t) */
|
|
39
|
-
|
|
40
|
-
#if defined(__need_size_t)
|
|
41
|
-
#if !defined(_SIZE_T) || __has_feature(modules)
|
|
42
|
-
/* Always define size_t when modules are available. */
|
|
43
|
-
#if !__has_feature(modules)
|
|
44
|
-
#define _SIZE_T
|
|
45
|
-
#endif
|
|
46
|
-
typedef __SIZE_TYPE__ size_t;
|
|
47
|
-
#endif
|
|
48
|
-
#undef __need_size_t
|
|
49
|
-
#endif /*defined(__need_size_t) */
|
|
50
|
-
|
|
51
|
-
#if defined(__need_STDDEF_H_misc)
|
|
52
|
-
/* ISO9899:2011 7.20 (C11 Annex K): Define rsize_t if __STDC_WANT_LIB_EXT1__ is
|
|
53
|
-
* enabled. */
|
|
54
|
-
#if (defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 && \
|
|
55
|
-
!defined(_RSIZE_T)) || __has_feature(modules)
|
|
56
|
-
/* Always define rsize_t when modules are available. */
|
|
57
|
-
#if !__has_feature(modules)
|
|
58
|
-
#define _RSIZE_T
|
|
59
|
-
#endif
|
|
60
|
-
typedef __SIZE_TYPE__ rsize_t;
|
|
61
|
-
#endif
|
|
62
|
-
#endif /* defined(__need_STDDEF_H_misc) */
|
|
63
|
-
|
|
64
|
-
#if defined(__need_wchar_t)
|
|
65
|
-
#if !defined(__cplusplus) || (defined(_MSC_VER) && !_NATIVE_WCHAR_T_DEFINED)
|
|
66
|
-
/* Always define wchar_t when modules are available. */
|
|
67
|
-
#if !defined(_WCHAR_T) || __has_feature(modules)
|
|
68
|
-
#if !__has_feature(modules)
|
|
69
|
-
#define _WCHAR_T
|
|
70
|
-
#if defined(_MSC_EXTENSIONS)
|
|
71
|
-
#define _WCHAR_T_DEFINED
|
|
72
|
-
#endif
|
|
73
|
-
#endif
|
|
74
|
-
typedef __WCHAR_TYPE__ wchar_t;
|
|
75
|
-
#endif
|
|
76
|
-
#endif
|
|
77
|
-
#undef __need_wchar_t
|
|
78
|
-
#endif /* defined(__need_wchar_t) */
|
|
79
|
-
|
|
80
|
-
#if defined(__need_NULL)
|
|
81
|
-
#undef NULL
|
|
82
|
-
#ifdef __cplusplus
|
|
83
|
-
# if !defined(__MINGW32__) && !defined(_MSC_VER)
|
|
84
|
-
# define NULL __null
|
|
85
|
-
# else
|
|
86
|
-
# define NULL 0
|
|
87
|
-
# endif
|
|
88
|
-
#else
|
|
89
|
-
# define NULL ((void*)0)
|
|
90
|
-
#endif
|
|
91
|
-
#ifdef __cplusplus
|
|
92
|
-
#if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED)
|
|
93
|
-
namespace std { typedef decltype(nullptr) nullptr_t; }
|
|
94
|
-
using ::std::nullptr_t;
|
|
95
|
-
#endif
|
|
96
|
-
#endif
|
|
97
|
-
#undef __need_NULL
|
|
98
|
-
#endif /* defined(__need_NULL) */
|
|
99
|
-
|
|
100
|
-
/* FIXME: This is using the placeholder dates Clang produces for these macros
|
|
101
|
-
in C2x mode; switch to the correct values once they've been published. */
|
|
102
|
-
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L
|
|
103
|
-
typedef typeof(nullptr) nullptr_t;
|
|
104
|
-
#endif /* defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L */
|
|
105
|
-
|
|
106
|
-
#if defined(__need_STDDEF_H_misc)
|
|
107
|
-
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || \
|
|
108
|
-
(defined(__cplusplus) && __cplusplus >= 201103L)
|
|
109
|
-
#include "__stddef_max_align_t.h"
|
|
110
|
-
#endif
|
|
111
|
-
#define offsetof(t, d) __builtin_offsetof(t, d)
|
|
112
|
-
#undef __need_STDDEF_H_misc
|
|
113
|
-
#endif /* defined(__need_STDDEF_H_misc) */
|
|
114
|
-
|
|
115
|
-
/* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use
|
|
116
|
-
__WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */
|
|
117
|
-
#if defined(__need_wint_t)
|
|
118
|
-
/* Always define wint_t when modules are available. */
|
|
119
|
-
#if !defined(_WINT_T) || __has_feature(modules)
|
|
120
|
-
#if !__has_feature(modules)
|
|
121
|
-
#define _WINT_T
|
|
122
|
-
#endif
|
|
123
|
-
typedef __WINT_TYPE__ wint_t;
|
|
124
|
-
#endif
|
|
125
|
-
#undef __need_wint_t
|
|
126
|
-
#endif /* __need_wint_t */
|
|
127
|
-
|
|
128
|
-
#endif
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*===---- xsavecintrin.h - XSAVEC intrinsic --------------------------------===
|
|
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 <xsavecintrin.h> directly; include <immintrin.h> instead."
|
|
12
|
-
#endif
|
|
13
|
-
|
|
14
|
-
#ifndef __XSAVECINTRIN_H
|
|
15
|
-
#define __XSAVECINTRIN_H
|
|
16
|
-
|
|
17
|
-
/* Define the default attributes for the functions in this file. */
|
|
18
|
-
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("xsavec")))
|
|
19
|
-
|
|
20
|
-
static __inline__ void __DEFAULT_FN_ATTRS
|
|
21
|
-
_xsavec(void *__p, unsigned long long __m) {
|
|
22
|
-
__builtin_ia32_xsavec(__p, __m);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
#ifdef __x86_64__
|
|
26
|
-
static __inline__ void __DEFAULT_FN_ATTRS
|
|
27
|
-
_xsavec64(void *__p, unsigned long long __m) {
|
|
28
|
-
__builtin_ia32_xsavec64(__p, __m);
|
|
29
|
-
}
|
|
30
|
-
#endif
|
|
31
|
-
|
|
32
|
-
#undef __DEFAULT_FN_ATTRS
|
|
33
|
-
|
|
34
|
-
#endif
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|