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

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 (164) hide show
  1. package/LICENSE.TXT +279 -0
  2. package/README.md +7 -0
  3. package/bin/clang-tidy.exe +4 -0
  4. package/lib/clang/12.0.1/include/__clang_cuda_builtin_vars.h +121 -0
  5. package/lib/clang/12.0.1/include/__clang_cuda_cmath.h +512 -0
  6. package/lib/clang/12.0.1/include/__clang_cuda_complex_builtins.h +285 -0
  7. package/lib/clang/12.0.1/include/__clang_cuda_device_functions.h +1486 -0
  8. package/lib/clang/12.0.1/include/__clang_cuda_intrinsics.h +486 -0
  9. package/lib/clang/12.0.1/include/__clang_cuda_libdevice_declares.h +462 -0
  10. package/lib/clang/12.0.1/include/__clang_cuda_math.h +348 -0
  11. package/lib/clang/12.0.1/include/__clang_cuda_math_forward_declares.h +284 -0
  12. package/lib/clang/12.0.1/include/__clang_cuda_runtime_wrapper.h +443 -0
  13. package/lib/clang/12.0.1/include/__clang_hip_cmath.h +664 -0
  14. package/lib/clang/12.0.1/include/__clang_hip_libdevice_declares.h +334 -0
  15. package/lib/clang/12.0.1/include/__clang_hip_math.h +1275 -0
  16. package/lib/clang/12.0.1/include/__clang_hip_runtime_wrapper.h +69 -0
  17. package/lib/clang/12.0.1/include/__stddef_max_align_t.h +27 -0
  18. package/lib/clang/12.0.1/include/__wmmintrin_aes.h +140 -0
  19. package/lib/clang/12.0.1/include/__wmmintrin_pclmul.h +48 -0
  20. package/lib/clang/12.0.1/include/adxintrin.h +72 -0
  21. package/lib/clang/12.0.1/include/altivec.h +18239 -0
  22. package/lib/clang/12.0.1/include/ammintrin.h +179 -0
  23. package/lib/clang/12.0.1/include/amxintrin.h +278 -0
  24. package/lib/clang/12.0.1/include/arm64intr.h +35 -0
  25. package/lib/clang/12.0.1/include/arm_acle.h +716 -0
  26. package/lib/clang/12.0.1/include/arm_bf16.h +20 -0
  27. package/lib/clang/12.0.1/include/arm_cde.h +410 -0
  28. package/lib/clang/12.0.1/include/arm_cmse.h +217 -0
  29. package/lib/clang/12.0.1/include/arm_fp16.h +596 -0
  30. package/lib/clang/12.0.1/include/arm_mve.h +19187 -0
  31. package/lib/clang/12.0.1/include/arm_neon.h +68982 -0
  32. package/lib/clang/12.0.1/include/arm_sve.h +18148 -0
  33. package/lib/clang/12.0.1/include/armintr.h +31 -0
  34. package/lib/clang/12.0.1/include/avx2intrin.h +1148 -0
  35. package/lib/clang/12.0.1/include/avx512bf16intrin.h +279 -0
  36. package/lib/clang/12.0.1/include/avx512bitalgintrin.h +83 -0
  37. package/lib/clang/12.0.1/include/avx512bwintrin.h +2024 -0
  38. package/lib/clang/12.0.1/include/avx512cdintrin.h +123 -0
  39. package/lib/clang/12.0.1/include/avx512dqintrin.h +1377 -0
  40. package/lib/clang/12.0.1/include/avx512erintrin.h +271 -0
  41. package/lib/clang/12.0.1/include/avx512fintrin.h +9618 -0
  42. package/lib/clang/12.0.1/include/avx512ifmaintrin.h +68 -0
  43. package/lib/clang/12.0.1/include/avx512ifmavlintrin.h +119 -0
  44. package/lib/clang/12.0.1/include/avx512pfintrin.h +97 -0
  45. package/lib/clang/12.0.1/include/avx512vbmi2intrin.h +357 -0
  46. package/lib/clang/12.0.1/include/avx512vbmiintrin.h +105 -0
  47. package/lib/clang/12.0.1/include/avx512vbmivlintrin.h +188 -0
  48. package/lib/clang/12.0.1/include/avx512vlbf16intrin.h +474 -0
  49. package/lib/clang/12.0.1/include/avx512vlbitalgintrin.h +145 -0
  50. package/lib/clang/12.0.1/include/avx512vlbwintrin.h +2809 -0
  51. package/lib/clang/12.0.1/include/avx512vlcdintrin.h +225 -0
  52. package/lib/clang/12.0.1/include/avx512vldqintrin.h +1167 -0
  53. package/lib/clang/12.0.1/include/avx512vlintrin.h +8445 -0
  54. package/lib/clang/12.0.1/include/avx512vlvbmi2intrin.h +689 -0
  55. package/lib/clang/12.0.1/include/avx512vlvnniintrin.h +304 -0
  56. package/lib/clang/12.0.1/include/avx512vlvp2intersectintrin.h +121 -0
  57. package/lib/clang/12.0.1/include/avx512vnniintrin.h +115 -0
  58. package/lib/clang/12.0.1/include/avx512vp2intersectintrin.h +77 -0
  59. package/lib/clang/12.0.1/include/avx512vpopcntdqintrin.h +54 -0
  60. package/lib/clang/12.0.1/include/avx512vpopcntdqvlintrin.h +91 -0
  61. package/lib/clang/12.0.1/include/avxintrin.h +5053 -0
  62. package/lib/clang/12.0.1/include/avxvnniintrin.h +225 -0
  63. package/lib/clang/12.0.1/include/bmi2intrin.h +81 -0
  64. package/lib/clang/12.0.1/include/bmiintrin.h +427 -0
  65. package/lib/clang/12.0.1/include/cet.h +66 -0
  66. package/lib/clang/12.0.1/include/cetintrin.h +99 -0
  67. package/lib/clang/12.0.1/include/cldemoteintrin.h +36 -0
  68. package/lib/clang/12.0.1/include/clflushoptintrin.h +27 -0
  69. package/lib/clang/12.0.1/include/clwbintrin.h +38 -0
  70. package/lib/clang/12.0.1/include/clzerointrin.h +36 -0
  71. package/lib/clang/12.0.1/include/cpuid.h +319 -0
  72. package/lib/clang/12.0.1/include/cuda_wrappers/algorithm +116 -0
  73. package/lib/clang/12.0.1/include/cuda_wrappers/complex +82 -0
  74. package/lib/clang/12.0.1/include/cuda_wrappers/new +106 -0
  75. package/lib/clang/12.0.1/include/emmintrin.h +4981 -0
  76. package/lib/clang/12.0.1/include/enqcmdintrin.h +63 -0
  77. package/lib/clang/12.0.1/include/f16cintrin.h +162 -0
  78. package/lib/clang/12.0.1/include/float.h +152 -0
  79. package/lib/clang/12.0.1/include/fma4intrin.h +218 -0
  80. package/lib/clang/12.0.1/include/fmaintrin.h +216 -0
  81. package/lib/clang/12.0.1/include/fxsrintrin.h +91 -0
  82. package/lib/clang/12.0.1/include/gfniintrin.h +193 -0
  83. package/lib/clang/12.0.1/include/hresetintrin.h +49 -0
  84. package/lib/clang/12.0.1/include/htmintrin.h +212 -0
  85. package/lib/clang/12.0.1/include/htmxlintrin.h +345 -0
  86. package/lib/clang/12.0.1/include/ia32intrin.h +441 -0
  87. package/lib/clang/12.0.1/include/immintrin.h +600 -0
  88. package/lib/clang/12.0.1/include/intrin.h +585 -0
  89. package/lib/clang/12.0.1/include/inttypes.h +97 -0
  90. package/lib/clang/12.0.1/include/invpcidintrin.h +23 -0
  91. package/lib/clang/12.0.1/include/iso646.h +27 -0
  92. package/lib/clang/12.0.1/include/keylockerintrin.h +506 -0
  93. package/lib/clang/12.0.1/include/limits.h +102 -0
  94. package/lib/clang/12.0.1/include/lwpintrin.h +136 -0
  95. package/lib/clang/12.0.1/include/lzcntintrin.h +104 -0
  96. package/lib/clang/12.0.1/include/mm3dnow.h +157 -0
  97. package/lib/clang/12.0.1/include/mm_malloc.h +67 -0
  98. package/lib/clang/12.0.1/include/mmintrin.h +1558 -0
  99. package/lib/clang/12.0.1/include/module.modulemap +164 -0
  100. package/lib/clang/12.0.1/include/movdirintrin.h +49 -0
  101. package/lib/clang/12.0.1/include/msa.h +573 -0
  102. package/lib/clang/12.0.1/include/mwaitxintrin.h +33 -0
  103. package/lib/clang/12.0.1/include/nmmintrin.h +16 -0
  104. package/lib/clang/12.0.1/include/opencl-c-base.h +589 -0
  105. package/lib/clang/12.0.1/include/opencl-c.h +17162 -0
  106. package/lib/clang/12.0.1/include/openmp_wrappers/__clang_openmp_device_functions.h +42 -0
  107. package/lib/clang/12.0.1/include/openmp_wrappers/cmath +78 -0
  108. package/lib/clang/12.0.1/include/openmp_wrappers/complex +52 -0
  109. package/lib/clang/12.0.1/include/openmp_wrappers/complex.h +27 -0
  110. package/lib/clang/12.0.1/include/openmp_wrappers/complex_cmath.h +388 -0
  111. package/lib/clang/12.0.1/include/openmp_wrappers/math.h +51 -0
  112. package/lib/clang/12.0.1/include/openmp_wrappers/new +70 -0
  113. package/lib/clang/12.0.1/include/pconfigintrin.h +40 -0
  114. package/lib/clang/12.0.1/include/pkuintrin.h +34 -0
  115. package/lib/clang/12.0.1/include/pmmintrin.h +290 -0
  116. package/lib/clang/12.0.1/include/popcntintrin.h +59 -0
  117. package/lib/clang/12.0.1/include/ppc_wrappers/emmintrin.h +2324 -0
  118. package/lib/clang/12.0.1/include/ppc_wrappers/mm_malloc.h +50 -0
  119. package/lib/clang/12.0.1/include/ppc_wrappers/mmintrin.h +1450 -0
  120. package/lib/clang/12.0.1/include/ppc_wrappers/pmmintrin.h +150 -0
  121. package/lib/clang/12.0.1/include/ppc_wrappers/smmintrin.h +109 -0
  122. package/lib/clang/12.0.1/include/ppc_wrappers/tmmintrin.h +495 -0
  123. package/lib/clang/12.0.1/include/ppc_wrappers/xmmintrin.h +1843 -0
  124. package/lib/clang/12.0.1/include/prfchwintrin.h +55 -0
  125. package/lib/clang/12.0.1/include/ptwriteintrin.h +37 -0
  126. package/lib/clang/12.0.1/include/rdseedintrin.h +42 -0
  127. package/lib/clang/12.0.1/include/rtmintrin.h +45 -0
  128. package/lib/clang/12.0.1/include/s390intrin.h +25 -0
  129. package/lib/clang/12.0.1/include/serializeintrin.h +30 -0
  130. package/lib/clang/12.0.1/include/sgxintrin.h +60 -0
  131. package/lib/clang/12.0.1/include/shaintrin.h +61 -0
  132. package/lib/clang/12.0.1/include/smmintrin.h +2430 -0
  133. package/lib/clang/12.0.1/include/stdalign.h +21 -0
  134. package/lib/clang/12.0.1/include/stdarg.h +35 -0
  135. package/lib/clang/12.0.1/include/stdatomic.h +176 -0
  136. package/lib/clang/12.0.1/include/stdbool.h +31 -0
  137. package/lib/clang/12.0.1/include/stddef.h +121 -0
  138. package/lib/clang/12.0.1/include/stdint.h +693 -0
  139. package/lib/clang/12.0.1/include/stdnoreturn.h +16 -0
  140. package/lib/clang/12.0.1/include/tbmintrin.h +140 -0
  141. package/lib/clang/12.0.1/include/tgmath.h +1368 -0
  142. package/lib/clang/12.0.1/include/tmmintrin.h +771 -0
  143. package/lib/clang/12.0.1/include/tsxldtrkintrin.h +56 -0
  144. package/lib/clang/12.0.1/include/uintrintrin.h +150 -0
  145. package/lib/clang/12.0.1/include/unwind.h +327 -0
  146. package/lib/clang/12.0.1/include/vadefs.h +51 -0
  147. package/lib/clang/12.0.1/include/vaesintrin.h +84 -0
  148. package/lib/clang/12.0.1/include/varargs.h +12 -0
  149. package/lib/clang/12.0.1/include/vecintrin.h +10998 -0
  150. package/lib/clang/12.0.1/include/vpclmulqdqintrin.h +28 -0
  151. package/lib/clang/12.0.1/include/waitpkgintrin.h +42 -0
  152. package/lib/clang/12.0.1/include/wasm_simd128.h +1167 -0
  153. package/lib/clang/12.0.1/include/wbnoinvdintrin.h +24 -0
  154. package/lib/clang/12.0.1/include/wmmintrin.h +19 -0
  155. package/lib/clang/12.0.1/include/x86gprintrin.h +23 -0
  156. package/lib/clang/12.0.1/include/x86intrin.h +63 -0
  157. package/lib/clang/12.0.1/include/xmmintrin.h +3008 -0
  158. package/lib/clang/12.0.1/include/xopintrin.h +770 -0
  159. package/lib/clang/12.0.1/include/xsavecintrin.h +34 -0
  160. package/lib/clang/12.0.1/include/xsaveintrin.h +63 -0
  161. package/lib/clang/12.0.1/include/xsaveoptintrin.h +34 -0
  162. package/lib/clang/12.0.1/include/xsavesintrin.h +44 -0
  163. package/lib/clang/12.0.1/include/xtestintrin.h +27 -0
  164. package/package.json +32 -0
@@ -0,0 +1,56 @@
1
+ /*===------------- tsxldtrkintrin.h - tsxldtrk 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 <tsxldtrkintrin.h> directly; include <immintrin.h> instead."
12
+ #endif
13
+
14
+ #ifndef __TSXLDTRKINTRIN_H
15
+ #define __TSXLDTRKINTRIN_H
16
+
17
+ /* Define the default attributes for the functions in this file */
18
+ #define _DEFAULT_FN_ATTRS \
19
+ __attribute__((__always_inline__, __nodebug__, __target__("tsxldtrk")))
20
+
21
+ /// Marks the start of an TSX (RTM) suspend load address tracking region. If
22
+ /// this intrinsic is used inside a transactional region, subsequent loads
23
+ /// are not added to the read set of the transaction. If it's used inside a
24
+ /// suspend load address tracking region it will cause transaction abort.
25
+ /// If it's used outside of a transactional region it behaves like a NOP.
26
+ ///
27
+ /// \headerfile <x86intrin.h>
28
+ ///
29
+ /// This intrinsic corresponds to the \c XSUSLDTRK instruction.
30
+ ///
31
+ static __inline__ void _DEFAULT_FN_ATTRS
32
+ _xsusldtrk (void)
33
+ {
34
+ __builtin_ia32_xsusldtrk();
35
+ }
36
+
37
+ /// Marks the end of an TSX (RTM) suspend load address tracking region. If this
38
+ /// intrinsic is used inside a suspend load address tracking region it will
39
+ /// end the suspend region and all following load addresses will be added to
40
+ /// the transaction read set. If it's used inside an active transaction but
41
+ /// not in a suspend region it will cause transaction abort. If it's used
42
+ /// outside of a transactional region it behaves like a NOP.
43
+ ///
44
+ /// \headerfile <x86intrin.h>
45
+ ///
46
+ /// This intrinsic corresponds to the \c XRESLDTRK instruction.
47
+ ///
48
+ static __inline__ void _DEFAULT_FN_ATTRS
49
+ _xresldtrk (void)
50
+ {
51
+ __builtin_ia32_xresldtrk();
52
+ }
53
+
54
+ #undef _DEFAULT_FN_ATTRS
55
+
56
+ #endif /* __TSXLDTRKINTRIN_H */
@@ -0,0 +1,150 @@
1
+ /*===------------------ uintrintrin.h - UINTR 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 __X86GPRINTRIN_H
11
+ #error "Never use <uintrintrin.h> directly; include <x86gprintrin.h> instead."
12
+ #endif
13
+
14
+ #ifndef __UINTRINTRIN_H
15
+ #define __UINTRINTRIN_H
16
+
17
+ /* Define the default attributes for the functions in this file */
18
+ #define __DEFAULT_FN_ATTRS \
19
+ __attribute__((__always_inline__, __nodebug__, __target__("uintr")))
20
+
21
+ #ifdef __x86_64__
22
+
23
+ /// Clears the user interrupt flag (UIF). Its effect takes place immediately: a
24
+ /// user interrupt cannot be delivered on the instruction boundary following
25
+ /// CLUI. Can be executed only if CR4.UINT = 1, the logical processor is in
26
+ /// 64-bit mode, and software is not executing inside an enclave; otherwise,
27
+ /// each causes an invalid-opcode exception. Causes a transactional abort if
28
+ /// executed inside a transactional region; the abort loads EAX as it would
29
+ /// had it been due to an execution of CLI.
30
+ ///
31
+ /// \headerfile <x86gprintrin.h>
32
+ ///
33
+ /// This intrinsic corresponds to the <c> CLUI </c> instruction.
34
+ ///
35
+ /// \operation
36
+ /// UIF := 0
37
+ /// \endoperation
38
+ static __inline__ void __DEFAULT_FN_ATTRS
39
+ _clui (void)
40
+ {
41
+ __builtin_ia32_clui();
42
+ }
43
+
44
+ /// Sets the user interrupt flag (UIF). Its effect takes place immediately; a
45
+ /// user interrupt may be delivered on the instruction boundary following
46
+ /// STUI. Can be executed only if CR4.UINT = 1, the logical processor is in
47
+ /// 64-bit mode, and software is not executing inside an enclave; otherwise,
48
+ /// each causes an invalid-opcode exception. Causes a transactional abort if
49
+ /// executed inside a transactional region; the abort loads EAX as it would
50
+ /// had it been due to an execution of STI.
51
+ ///
52
+ /// \headerfile <x86gprintrin.h>
53
+ ///
54
+ /// This intrinsic corresponds to the <c> STUI </c> instruction.
55
+ ///
56
+ /// \operation
57
+ /// UIF := 1
58
+ /// \endoperation
59
+ static __inline__ void __DEFAULT_FN_ATTRS
60
+ _stui (void)
61
+ {
62
+ __builtin_ia32_stui();
63
+ }
64
+
65
+ /// Get the current value of the user interrupt flag (UIF). Can be executed
66
+ /// regardless of CPL and inside a transactional region. Can be executed only
67
+ /// if CR4.UINT = 1, the logical processor is in 64-bit mode, and software is
68
+ /// not executing inside an enclave; otherwise, it causes an invalid-opcode
69
+ /// exception.
70
+ ///
71
+ /// \headerfile <x86gprintrin.h>
72
+ ///
73
+ /// This intrinsic corresponds to the <c> TESTUI </c> instruction.
74
+ ///
75
+ /// \returns The current value of the user interrupt flag (UIF).
76
+ ///
77
+ /// \operation
78
+ /// CF := UIF
79
+ /// ZF := 0
80
+ /// AF := 0
81
+ /// OF := 0
82
+ /// PF := 0
83
+ /// SF := 0
84
+ /// dst := CF
85
+ /// \endoperation
86
+ static __inline__ unsigned char __DEFAULT_FN_ATTRS
87
+ _testui (void)
88
+ {
89
+ return __builtin_ia32_testui();
90
+ }
91
+
92
+ /// Send interprocessor user interrupt. Can be executed only if
93
+ /// CR4.UINT = IA32_UINT_TT[0] = 1, the logical processor is in 64-bit mode,
94
+ /// and software is not executing inside an enclave; otherwise, it causes an
95
+ /// invalid-opcode exception. May be executed at any privilege level, all of
96
+ /// its memory accesses are performed with supervisor privilege.
97
+ ///
98
+ /// \headerfile <x86gprintrin.h>
99
+ ///
100
+ /// This intrinsic corresponds to the <c> SENDUIPI </c> instruction
101
+ ///
102
+ /// \param __a
103
+ /// Index of user-interrupt target table entry in user-interrupt target
104
+ /// table.
105
+ ///
106
+ /// \operation
107
+ /// IF __a > UITTSZ
108
+ /// GP (0)
109
+ /// FI
110
+ /// tempUITTE := MEM[UITTADDR + (a<<4)]
111
+ /// // tempUITTE must be valid, and can't have any reserved bit set
112
+ /// IF (tempUITTE.V == 0 OR tempUITTE[7:1] != 0)
113
+ /// GP (0)
114
+ /// FI
115
+ /// tempUPID := MEM[tempUITTE.UPIDADDR] // under lock
116
+ /// // tempUPID can't have any reserved bit set
117
+ /// IF (tempUPID[15:2] != 0 OR tempUPID[31:24] != 0)
118
+ /// GP (0) // release lock
119
+ /// FI
120
+ /// tempUPID.PIR[tempUITTE.UV] := 1;
121
+ /// IF (tempUPID.SN == 0 AND tempUPID.ON == 0)
122
+ /// tempUPID.ON := 1
123
+ /// sendNotify := 1
124
+ /// ELSE
125
+ /// sendNotify := 0
126
+ /// FI
127
+ /// MEM[tempUITTE.UPIDADDR] := tempUPID // release lock
128
+ /// IF sendNotify == 1
129
+ /// IF IA32_APIC_BASE[10] == 1 // local APIC is in x2APIC mode
130
+ /// // send ordinary IPI with vector tempUPID.NV to 32-bit physical APIC
131
+ /// // ID tempUPID.NDST
132
+ /// SendOrdinaryIPI(tempUPID.NV, tempUPID.NDST)
133
+ /// ELSE
134
+ /// // send ordinary IPI with vector tempUPID.NV to 8-bit physical APIC
135
+ /// // ID tempUPID.NDST[15:8]
136
+ /// SendOrdinaryIPI(tempUPID.NV, tempUPID.NDST[15:8])
137
+ /// FI
138
+ /// FI
139
+ /// \endoperation
140
+ static __inline__ void __DEFAULT_FN_ATTRS
141
+ _senduipi (unsigned long long __a)
142
+ {
143
+ __builtin_ia32_senduipi(__a);
144
+ }
145
+
146
+ #endif /* __x86_64__ */
147
+
148
+ #undef __DEFAULT_FN_ATTRS
149
+
150
+ #endif /* __UINTRINTRIN_H */
@@ -0,0 +1,327 @@
1
+ /*===---- unwind.h - Stack unwinding ----------------------------------------===
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
+ /* See "Data Definitions for libgcc_s" in the Linux Standard Base.*/
11
+
12
+ #ifndef __CLANG_UNWIND_H
13
+ #define __CLANG_UNWIND_H
14
+
15
+ #if defined(__APPLE__) && __has_include_next(<unwind.h>)
16
+ /* Darwin (from 11.x on) provide an unwind.h. If that's available,
17
+ * use it. libunwind wraps some of its definitions in #ifdef _GNU_SOURCE,
18
+ * so define that around the include.*/
19
+ # ifndef _GNU_SOURCE
20
+ # define _SHOULD_UNDEFINE_GNU_SOURCE
21
+ # define _GNU_SOURCE
22
+ # endif
23
+ // libunwind's unwind.h reflects the current visibility. However, Mozilla
24
+ // builds with -fvisibility=hidden and relies on gcc's unwind.h to reset the
25
+ // visibility to default and export its contents. gcc also allows users to
26
+ // override its override by #defining HIDE_EXPORTS (but note, this only obeys
27
+ // the user's -fvisibility setting; it doesn't hide any exports on its own). We
28
+ // imitate gcc's header here:
29
+ # ifdef HIDE_EXPORTS
30
+ # include_next <unwind.h>
31
+ # else
32
+ # pragma GCC visibility push(default)
33
+ # include_next <unwind.h>
34
+ # pragma GCC visibility pop
35
+ # endif
36
+ # ifdef _SHOULD_UNDEFINE_GNU_SOURCE
37
+ # undef _GNU_SOURCE
38
+ # undef _SHOULD_UNDEFINE_GNU_SOURCE
39
+ # endif
40
+ #else
41
+
42
+ #include <stdint.h>
43
+
44
+ #ifdef __cplusplus
45
+ extern "C" {
46
+ #endif
47
+
48
+ /* It is a bit strange for a header to play with the visibility of the
49
+ symbols it declares, but this matches gcc's behavior and some programs
50
+ depend on it */
51
+ #ifndef HIDE_EXPORTS
52
+ #pragma GCC visibility push(default)
53
+ #endif
54
+
55
+ typedef uintptr_t _Unwind_Word __attribute__((__mode__(__unwind_word__)));
56
+ typedef intptr_t _Unwind_Sword __attribute__((__mode__(__unwind_word__)));
57
+ typedef uintptr_t _Unwind_Ptr;
58
+ typedef uintptr_t _Unwind_Internal_Ptr;
59
+ typedef uint64_t _Unwind_Exception_Class;
60
+
61
+ typedef intptr_t _sleb128_t;
62
+ typedef uintptr_t _uleb128_t;
63
+
64
+ struct _Unwind_Context;
65
+ #if defined(__arm__) && !(defined(__USING_SJLJ_EXCEPTIONS__) || defined(__ARM_DWARF_EH__))
66
+ struct _Unwind_Control_Block;
67
+ typedef struct _Unwind_Control_Block _Unwind_Exception; /* Alias */
68
+ #else
69
+ struct _Unwind_Exception;
70
+ typedef struct _Unwind_Exception _Unwind_Exception;
71
+ #endif
72
+ typedef enum {
73
+ _URC_NO_REASON = 0,
74
+ #if defined(__arm__) && !defined(__USING_SJLJ_EXCEPTIONS__) && \
75
+ !defined(__ARM_DWARF_EH__)
76
+ _URC_OK = 0, /* used by ARM EHABI */
77
+ #endif
78
+ _URC_FOREIGN_EXCEPTION_CAUGHT = 1,
79
+
80
+ _URC_FATAL_PHASE2_ERROR = 2,
81
+ _URC_FATAL_PHASE1_ERROR = 3,
82
+ _URC_NORMAL_STOP = 4,
83
+
84
+ _URC_END_OF_STACK = 5,
85
+ _URC_HANDLER_FOUND = 6,
86
+ _URC_INSTALL_CONTEXT = 7,
87
+ _URC_CONTINUE_UNWIND = 8,
88
+ #if defined(__arm__) && !defined(__USING_SJLJ_EXCEPTIONS__) && \
89
+ !defined(__ARM_DWARF_EH__)
90
+ _URC_FAILURE = 9 /* used by ARM EHABI */
91
+ #endif
92
+ } _Unwind_Reason_Code;
93
+
94
+ typedef enum {
95
+ _UA_SEARCH_PHASE = 1,
96
+ _UA_CLEANUP_PHASE = 2,
97
+
98
+ _UA_HANDLER_FRAME = 4,
99
+ _UA_FORCE_UNWIND = 8,
100
+ _UA_END_OF_STACK = 16 /* gcc extension to C++ ABI */
101
+ } _Unwind_Action;
102
+
103
+ typedef void (*_Unwind_Exception_Cleanup_Fn)(_Unwind_Reason_Code,
104
+ _Unwind_Exception *);
105
+
106
+ #if defined(__arm__) && !(defined(__USING_SJLJ_EXCEPTIONS__) || defined(__ARM_DWARF_EH__))
107
+ typedef struct _Unwind_Control_Block _Unwind_Control_Block;
108
+ typedef uint32_t _Unwind_EHT_Header;
109
+
110
+ struct _Unwind_Control_Block {
111
+ uint64_t exception_class;
112
+ void (*exception_cleanup)(_Unwind_Reason_Code, _Unwind_Control_Block *);
113
+ /* unwinder cache (private fields for the unwinder's use) */
114
+ struct {
115
+ uint32_t reserved1; /* forced unwind stop function, 0 if not forced */
116
+ uint32_t reserved2; /* personality routine */
117
+ uint32_t reserved3; /* callsite */
118
+ uint32_t reserved4; /* forced unwind stop argument */
119
+ uint32_t reserved5;
120
+ } unwinder_cache;
121
+ /* propagation barrier cache (valid after phase 1) */
122
+ struct {
123
+ uint32_t sp;
124
+ uint32_t bitpattern[5];
125
+ } barrier_cache;
126
+ /* cleanup cache (preserved over cleanup) */
127
+ struct {
128
+ uint32_t bitpattern[4];
129
+ } cleanup_cache;
130
+ /* personality cache (for personality's benefit) */
131
+ struct {
132
+ uint32_t fnstart; /* function start address */
133
+ _Unwind_EHT_Header *ehtp; /* pointer to EHT entry header word */
134
+ uint32_t additional; /* additional data */
135
+ uint32_t reserved1;
136
+ } pr_cache;
137
+ long long int : 0; /* force alignment of next item to 8-byte boundary */
138
+ } __attribute__((__aligned__(8)));
139
+ #else
140
+ struct _Unwind_Exception {
141
+ _Unwind_Exception_Class exception_class;
142
+ _Unwind_Exception_Cleanup_Fn exception_cleanup;
143
+ #if !defined (__USING_SJLJ_EXCEPTIONS__) && defined (__SEH__)
144
+ _Unwind_Word private_[6];
145
+ #else
146
+ _Unwind_Word private_1;
147
+ _Unwind_Word private_2;
148
+ #endif
149
+ /* The Itanium ABI requires that _Unwind_Exception objects are "double-word
150
+ * aligned". GCC has interpreted this to mean "use the maximum useful
151
+ * alignment for the target"; so do we. */
152
+ } __attribute__((__aligned__));
153
+ #endif
154
+
155
+ typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn)(int, _Unwind_Action,
156
+ _Unwind_Exception_Class,
157
+ _Unwind_Exception *,
158
+ struct _Unwind_Context *,
159
+ void *);
160
+
161
+ typedef _Unwind_Reason_Code (*_Unwind_Personality_Fn)(int, _Unwind_Action,
162
+ _Unwind_Exception_Class,
163
+ _Unwind_Exception *,
164
+ struct _Unwind_Context *);
165
+ typedef _Unwind_Personality_Fn __personality_routine;
166
+
167
+ typedef _Unwind_Reason_Code (*_Unwind_Trace_Fn)(struct _Unwind_Context *,
168
+ void *);
169
+
170
+ #if defined(__arm__) && !(defined(__USING_SJLJ_EXCEPTIONS__) || defined(__ARM_DWARF_EH__))
171
+ typedef enum {
172
+ _UVRSC_CORE = 0, /* integer register */
173
+ _UVRSC_VFP = 1, /* vfp */
174
+ _UVRSC_WMMXD = 3, /* Intel WMMX data register */
175
+ _UVRSC_WMMXC = 4 /* Intel WMMX control register */
176
+ } _Unwind_VRS_RegClass;
177
+
178
+ typedef enum {
179
+ _UVRSD_UINT32 = 0,
180
+ _UVRSD_VFPX = 1,
181
+ _UVRSD_UINT64 = 3,
182
+ _UVRSD_FLOAT = 4,
183
+ _UVRSD_DOUBLE = 5
184
+ } _Unwind_VRS_DataRepresentation;
185
+
186
+ typedef enum {
187
+ _UVRSR_OK = 0,
188
+ _UVRSR_NOT_IMPLEMENTED = 1,
189
+ _UVRSR_FAILED = 2
190
+ } _Unwind_VRS_Result;
191
+
192
+ typedef uint32_t _Unwind_State;
193
+ #define _US_VIRTUAL_UNWIND_FRAME ((_Unwind_State)0)
194
+ #define _US_UNWIND_FRAME_STARTING ((_Unwind_State)1)
195
+ #define _US_UNWIND_FRAME_RESUME ((_Unwind_State)2)
196
+ #define _US_ACTION_MASK ((_Unwind_State)3)
197
+ #define _US_FORCE_UNWIND ((_Unwind_State)8)
198
+
199
+ _Unwind_VRS_Result _Unwind_VRS_Get(struct _Unwind_Context *__context,
200
+ _Unwind_VRS_RegClass __regclass,
201
+ uint32_t __regno,
202
+ _Unwind_VRS_DataRepresentation __representation,
203
+ void *__valuep);
204
+
205
+ _Unwind_VRS_Result _Unwind_VRS_Set(struct _Unwind_Context *__context,
206
+ _Unwind_VRS_RegClass __regclass,
207
+ uint32_t __regno,
208
+ _Unwind_VRS_DataRepresentation __representation,
209
+ void *__valuep);
210
+
211
+ static __inline__
212
+ _Unwind_Word _Unwind_GetGR(struct _Unwind_Context *__context, int __index) {
213
+ _Unwind_Word __value;
214
+ _Unwind_VRS_Get(__context, _UVRSC_CORE, __index, _UVRSD_UINT32, &__value);
215
+ return __value;
216
+ }
217
+
218
+ static __inline__
219
+ void _Unwind_SetGR(struct _Unwind_Context *__context, int __index,
220
+ _Unwind_Word __value) {
221
+ _Unwind_VRS_Set(__context, _UVRSC_CORE, __index, _UVRSD_UINT32, &__value);
222
+ }
223
+
224
+ static __inline__
225
+ _Unwind_Word _Unwind_GetIP(struct _Unwind_Context *__context) {
226
+ _Unwind_Word __ip = _Unwind_GetGR(__context, 15);
227
+ return __ip & ~(_Unwind_Word)(0x1); /* Remove thumb mode bit. */
228
+ }
229
+
230
+ static __inline__
231
+ void _Unwind_SetIP(struct _Unwind_Context *__context, _Unwind_Word __value) {
232
+ _Unwind_Word __thumb_mode_bit = _Unwind_GetGR(__context, 15) & 0x1;
233
+ _Unwind_SetGR(__context, 15, __value | __thumb_mode_bit);
234
+ }
235
+ #else
236
+ _Unwind_Word _Unwind_GetGR(struct _Unwind_Context *, int);
237
+ void _Unwind_SetGR(struct _Unwind_Context *, int, _Unwind_Word);
238
+
239
+ _Unwind_Word _Unwind_GetIP(struct _Unwind_Context *);
240
+ void _Unwind_SetIP(struct _Unwind_Context *, _Unwind_Word);
241
+ #endif
242
+
243
+
244
+ _Unwind_Word _Unwind_GetIPInfo(struct _Unwind_Context *, int *);
245
+
246
+ _Unwind_Word _Unwind_GetCFA(struct _Unwind_Context *);
247
+
248
+ _Unwind_Word _Unwind_GetBSP(struct _Unwind_Context *);
249
+
250
+ void *_Unwind_GetLanguageSpecificData(struct _Unwind_Context *);
251
+
252
+ _Unwind_Ptr _Unwind_GetRegionStart(struct _Unwind_Context *);
253
+
254
+ /* DWARF EH functions; currently not available on Darwin/ARM */
255
+ #if !defined(__APPLE__) || !defined(__arm__)
256
+ _Unwind_Reason_Code _Unwind_RaiseException(_Unwind_Exception *);
257
+ _Unwind_Reason_Code _Unwind_ForcedUnwind(_Unwind_Exception *, _Unwind_Stop_Fn,
258
+ void *);
259
+ void _Unwind_DeleteException(_Unwind_Exception *);
260
+ void _Unwind_Resume(_Unwind_Exception *);
261
+ _Unwind_Reason_Code _Unwind_Resume_or_Rethrow(_Unwind_Exception *);
262
+
263
+ #endif
264
+
265
+ _Unwind_Reason_Code _Unwind_Backtrace(_Unwind_Trace_Fn, void *);
266
+
267
+ /* setjmp(3)/longjmp(3) stuff */
268
+ typedef struct SjLj_Function_Context *_Unwind_FunctionContext_t;
269
+
270
+ void _Unwind_SjLj_Register(_Unwind_FunctionContext_t);
271
+ void _Unwind_SjLj_Unregister(_Unwind_FunctionContext_t);
272
+ _Unwind_Reason_Code _Unwind_SjLj_RaiseException(_Unwind_Exception *);
273
+ _Unwind_Reason_Code _Unwind_SjLj_ForcedUnwind(_Unwind_Exception *,
274
+ _Unwind_Stop_Fn, void *);
275
+ void _Unwind_SjLj_Resume(_Unwind_Exception *);
276
+ _Unwind_Reason_Code _Unwind_SjLj_Resume_or_Rethrow(_Unwind_Exception *);
277
+
278
+ void *_Unwind_FindEnclosingFunction(void *);
279
+
280
+ #ifdef __APPLE__
281
+
282
+ _Unwind_Ptr _Unwind_GetDataRelBase(struct _Unwind_Context *)
283
+ __attribute__((__unavailable__));
284
+ _Unwind_Ptr _Unwind_GetTextRelBase(struct _Unwind_Context *)
285
+ __attribute__((__unavailable__));
286
+
287
+ /* Darwin-specific functions */
288
+ void __register_frame(const void *);
289
+ void __deregister_frame(const void *);
290
+
291
+ struct dwarf_eh_bases {
292
+ uintptr_t tbase;
293
+ uintptr_t dbase;
294
+ uintptr_t func;
295
+ };
296
+ void *_Unwind_Find_FDE(const void *, struct dwarf_eh_bases *);
297
+
298
+ void __register_frame_info_bases(const void *, void *, void *, void *)
299
+ __attribute__((__unavailable__));
300
+ void __register_frame_info(const void *, void *) __attribute__((__unavailable__));
301
+ void __register_frame_info_table_bases(const void *, void*, void *, void *)
302
+ __attribute__((__unavailable__));
303
+ void __register_frame_info_table(const void *, void *)
304
+ __attribute__((__unavailable__));
305
+ void __register_frame_table(const void *) __attribute__((__unavailable__));
306
+ void __deregister_frame_info(const void *) __attribute__((__unavailable__));
307
+ void __deregister_frame_info_bases(const void *)__attribute__((__unavailable__));
308
+
309
+ #else
310
+
311
+ _Unwind_Ptr _Unwind_GetDataRelBase(struct _Unwind_Context *);
312
+ _Unwind_Ptr _Unwind_GetTextRelBase(struct _Unwind_Context *);
313
+
314
+ #endif
315
+
316
+
317
+ #ifndef HIDE_EXPORTS
318
+ #pragma GCC visibility pop
319
+ #endif
320
+
321
+ #ifdef __cplusplus
322
+ }
323
+ #endif
324
+
325
+ #endif
326
+
327
+ #endif /* __CLANG_UNWIND_H */
@@ -0,0 +1,51 @@
1
+ /* ===-------- vadefs.h ---------------------------------------------------===
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
+ /* Only include this if we are aiming for MSVC compatibility. */
11
+ #ifndef _MSC_VER
12
+ #include_next <vadefs.h>
13
+ #else
14
+
15
+ #ifndef __clang_vadefs_h
16
+ #define __clang_vadefs_h
17
+
18
+ #include_next <vadefs.h>
19
+
20
+ /* Override macros from vadefs.h with definitions that work with Clang. */
21
+ #ifdef _crt_va_start
22
+ #undef _crt_va_start
23
+ #define _crt_va_start(ap, param) __builtin_va_start(ap, param)
24
+ #endif
25
+ #ifdef _crt_va_end
26
+ #undef _crt_va_end
27
+ #define _crt_va_end(ap) __builtin_va_end(ap)
28
+ #endif
29
+ #ifdef _crt_va_arg
30
+ #undef _crt_va_arg
31
+ #define _crt_va_arg(ap, type) __builtin_va_arg(ap, type)
32
+ #endif
33
+
34
+ /* VS 2015 switched to double underscore names, which is an improvement, but now
35
+ * we have to intercept those names too.
36
+ */
37
+ #ifdef __crt_va_start
38
+ #undef __crt_va_start
39
+ #define __crt_va_start(ap, param) __builtin_va_start(ap, param)
40
+ #endif
41
+ #ifdef __crt_va_end
42
+ #undef __crt_va_end
43
+ #define __crt_va_end(ap) __builtin_va_end(ap)
44
+ #endif
45
+ #ifdef __crt_va_arg
46
+ #undef __crt_va_arg
47
+ #define __crt_va_arg(ap, type) __builtin_va_arg(ap, type)
48
+ #endif
49
+
50
+ #endif
51
+ #endif
@@ -0,0 +1,84 @@
1
+ /*===------------------ vaesintrin.h - VAES intrinsics ---------------------===
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
+ #ifndef __IMMINTRIN_H
11
+ #error "Never use <vaesintrin.h> directly; include <immintrin.h> instead."
12
+ #endif
13
+
14
+ #ifndef __VAESINTRIN_H
15
+ #define __VAESINTRIN_H
16
+
17
+ /* Default attributes for YMM forms. */
18
+ #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("vaes"), __min_vector_width__(256)))
19
+
20
+ /* Default attributes for ZMM forms. */
21
+ #define __DEFAULT_FN_ATTRS_F __attribute__((__always_inline__, __nodebug__, __target__("avx512f,vaes"), __min_vector_width__(512)))
22
+
23
+
24
+ static __inline__ __m256i __DEFAULT_FN_ATTRS
25
+ _mm256_aesenc_epi128(__m256i __A, __m256i __B)
26
+ {
27
+ return (__m256i) __builtin_ia32_aesenc256((__v4di) __A,
28
+ (__v4di) __B);
29
+ }
30
+
31
+ static __inline__ __m512i __DEFAULT_FN_ATTRS_F
32
+ _mm512_aesenc_epi128(__m512i __A, __m512i __B)
33
+ {
34
+ return (__m512i) __builtin_ia32_aesenc512((__v8di) __A,
35
+ (__v8di) __B);
36
+ }
37
+
38
+ static __inline__ __m256i __DEFAULT_FN_ATTRS
39
+ _mm256_aesdec_epi128(__m256i __A, __m256i __B)
40
+ {
41
+ return (__m256i) __builtin_ia32_aesdec256((__v4di) __A,
42
+ (__v4di) __B);
43
+ }
44
+
45
+ static __inline__ __m512i __DEFAULT_FN_ATTRS_F
46
+ _mm512_aesdec_epi128(__m512i __A, __m512i __B)
47
+ {
48
+ return (__m512i) __builtin_ia32_aesdec512((__v8di) __A,
49
+ (__v8di) __B);
50
+ }
51
+
52
+ static __inline__ __m256i __DEFAULT_FN_ATTRS
53
+ _mm256_aesenclast_epi128(__m256i __A, __m256i __B)
54
+ {
55
+ return (__m256i) __builtin_ia32_aesenclast256((__v4di) __A,
56
+ (__v4di) __B);
57
+ }
58
+
59
+ static __inline__ __m512i __DEFAULT_FN_ATTRS_F
60
+ _mm512_aesenclast_epi128(__m512i __A, __m512i __B)
61
+ {
62
+ return (__m512i) __builtin_ia32_aesenclast512((__v8di) __A,
63
+ (__v8di) __B);
64
+ }
65
+
66
+ static __inline__ __m256i __DEFAULT_FN_ATTRS
67
+ _mm256_aesdeclast_epi128(__m256i __A, __m256i __B)
68
+ {
69
+ return (__m256i) __builtin_ia32_aesdeclast256((__v4di) __A,
70
+ (__v4di) __B);
71
+ }
72
+
73
+ static __inline__ __m512i __DEFAULT_FN_ATTRS_F
74
+ _mm512_aesdeclast_epi128(__m512i __A, __m512i __B)
75
+ {
76
+ return (__m512i) __builtin_ia32_aesdeclast512((__v8di) __A,
77
+ (__v8di) __B);
78
+ }
79
+
80
+
81
+ #undef __DEFAULT_FN_ATTRS
82
+ #undef __DEFAULT_FN_ATTRS_F
83
+
84
+ #endif
@@ -0,0 +1,12 @@
1
+ /*===---- varargs.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
+ #ifndef __VARARGS_H
10
+ #define __VARARGS_H
11
+ #error "Please use <stdarg.h> instead of <varargs.h>"
12
+ #endif