AArch64TargetParser.def 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. //===- AARCH64TargetParser.def - AARCH64 target parsing defines ---------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file provides defines to build up the AARCH64 target parser's logic.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. // NOTE: NO INCLUDE GUARD DESIRED!
  13. #ifndef AARCH64_ARCH
  14. #define AARCH64_ARCH(NAME, ID, CPU_ATTR, SUB_ARCH, ARCH_ATTR, ARCH_FPU, ARCH_BASE_EXT)
  15. #endif
  16. AARCH64_ARCH("invalid", INVALID, "", "",
  17. ARMBuildAttrs::CPUArch::v8_A, FK_NONE, AArch64::AEK_NONE)
  18. AARCH64_ARCH("armv8-a", ARMV8A, "8-A", "v8", ARMBuildAttrs::CPUArch::v8_A,
  19. FK_CRYPTO_NEON_FP_ARMV8,
  20. (AArch64::AEK_CRYPTO | AArch64::AEK_FP | AArch64::AEK_SIMD))
  21. AARCH64_ARCH("armv8.1-a", ARMV8_1A, "8.1-A", "v8.1a",
  22. ARMBuildAttrs::CPUArch::v8_A, FK_CRYPTO_NEON_FP_ARMV8,
  23. (AArch64::AEK_CRC | AArch64::AEK_CRYPTO | AArch64::AEK_FP |
  24. AArch64::AEK_SIMD | AArch64::AEK_LSE | AArch64::AEK_RDM))
  25. AARCH64_ARCH("armv8.2-a", ARMV8_2A, "8.2-A", "v8.2a",
  26. ARMBuildAttrs::CPUArch::v8_A, FK_CRYPTO_NEON_FP_ARMV8,
  27. (AArch64::AEK_CRC | AArch64::AEK_CRYPTO | AArch64::AEK_FP |
  28. AArch64::AEK_SIMD | AArch64::AEK_RAS | AArch64::AEK_LSE |
  29. AArch64::AEK_RDM))
  30. AARCH64_ARCH("armv8.3-a", ARMV8_3A, "8.3-A", "v8.3a",
  31. ARMBuildAttrs::CPUArch::v8_A, FK_CRYPTO_NEON_FP_ARMV8,
  32. (AArch64::AEK_CRC | AArch64::AEK_CRYPTO | AArch64::AEK_FP |
  33. AArch64::AEK_SIMD | AArch64::AEK_RAS | AArch64::AEK_LSE |
  34. AArch64::AEK_RDM | AArch64::AEK_RCPC))
  35. AARCH64_ARCH("armv8.4-a", ARMV8_4A, "8.4-A", "v8.4a",
  36. ARMBuildAttrs::CPUArch::v8_A, FK_CRYPTO_NEON_FP_ARMV8,
  37. (AArch64::AEK_CRC | AArch64::AEK_CRYPTO | AArch64::AEK_FP |
  38. AArch64::AEK_SIMD | AArch64::AEK_RAS | AArch64::AEK_LSE |
  39. AArch64::AEK_RDM | AArch64::AEK_RCPC | AArch64::AEK_DOTPROD))
  40. AARCH64_ARCH("armv8.5-a", ARMV8_5A, "8.5-A", "v8.5a",
  41. ARMBuildAttrs::CPUArch::v8_A, FK_CRYPTO_NEON_FP_ARMV8,
  42. (AArch64::AEK_CRC | AArch64::AEK_CRYPTO | AArch64::AEK_FP |
  43. AArch64::AEK_SIMD | AArch64::AEK_RAS | AArch64::AEK_LSE |
  44. AArch64::AEK_RDM | AArch64::AEK_RCPC | AArch64::AEK_DOTPROD))
  45. AARCH64_ARCH("armv8.6-a", ARMV8_6A, "8.6-A", "v8.6a",
  46. ARMBuildAttrs::CPUArch::v8_A, FK_CRYPTO_NEON_FP_ARMV8,
  47. (AArch64::AEK_CRC | AArch64::AEK_FP |
  48. AArch64::AEK_SIMD | AArch64::AEK_RAS | AArch64::AEK_LSE |
  49. AArch64::AEK_RDM | AArch64::AEK_RCPC | AArch64::AEK_DOTPROD |
  50. AArch64::AEK_SM4 | AArch64::AEK_SHA3 | AArch64::AEK_BF16 |
  51. AArch64::AEK_SHA2 | AArch64::AEK_AES | AArch64::AEK_I8MM))
  52. AARCH64_ARCH("armv8.7-a", ARMV8_7A, "8.7-A", "v8.7a",
  53. ARMBuildAttrs::CPUArch::v8_A, FK_CRYPTO_NEON_FP_ARMV8,
  54. (AArch64::AEK_CRC | AArch64::AEK_FP |
  55. AArch64::AEK_SIMD | AArch64::AEK_RAS | AArch64::AEK_LSE |
  56. AArch64::AEK_RDM | AArch64::AEK_RCPC | AArch64::AEK_DOTPROD |
  57. AArch64::AEK_SM4 | AArch64::AEK_SHA3 | AArch64::AEK_BF16 |
  58. AArch64::AEK_SHA2 | AArch64::AEK_AES | AArch64::AEK_I8MM))
  59. AARCH64_ARCH("armv8.8-a", ARMV8_8A, "8.8-A", "v8.8a",
  60. ARMBuildAttrs::CPUArch::v8_A, FK_CRYPTO_NEON_FP_ARMV8,
  61. (AArch64::AEK_CRC | AArch64::AEK_FP |
  62. AArch64::AEK_SIMD | AArch64::AEK_RAS | AArch64::AEK_LSE |
  63. AArch64::AEK_RDM | AArch64::AEK_RCPC | AArch64::AEK_DOTPROD |
  64. AArch64::AEK_SM4 | AArch64::AEK_SHA3 | AArch64::AEK_BF16 |
  65. AArch64::AEK_SHA2 | AArch64::AEK_AES | AArch64::AEK_I8MM))
  66. AARCH64_ARCH("armv9-a", ARMV9A, "9-A", "v9a",
  67. ARMBuildAttrs::CPUArch::v8_A, FK_NEON_FP_ARMV8,
  68. (AArch64::AEK_CRC | AArch64::AEK_FP |
  69. AArch64::AEK_SIMD | AArch64::AEK_RAS | AArch64::AEK_LSE |
  70. AArch64::AEK_RDM | AArch64::AEK_RCPC | AArch64::AEK_DOTPROD |
  71. AArch64::AEK_SVE2))
  72. AARCH64_ARCH("armv9.1-a", ARMV9_1A, "9.1-A", "v9.1a",
  73. ARMBuildAttrs::CPUArch::v8_A, FK_NEON_FP_ARMV8,
  74. (AArch64::AEK_CRC | AArch64::AEK_FP |
  75. AArch64::AEK_SIMD | AArch64::AEK_RAS | AArch64::AEK_LSE |
  76. AArch64::AEK_RDM | AArch64::AEK_RCPC | AArch64::AEK_DOTPROD |
  77. AArch64::AEK_SVE2))
  78. AARCH64_ARCH("armv9.2-a", ARMV9_2A, "9.2-A", "v9.2a",
  79. ARMBuildAttrs::CPUArch::v8_A, FK_NEON_FP_ARMV8,
  80. (AArch64::AEK_CRC | AArch64::AEK_FP |
  81. AArch64::AEK_SIMD | AArch64::AEK_RAS | AArch64::AEK_LSE |
  82. AArch64::AEK_RDM | AArch64::AEK_RCPC | AArch64::AEK_DOTPROD |
  83. AArch64::AEK_SVE2))
  84. AARCH64_ARCH("armv9.3-a", ARMV9_3A, "9.3-A", "v9.3",
  85. ARMBuildAttrs::CPUArch::v8_A, FK_CRYPTO_NEON_FP_ARMV8,
  86. (AArch64::AEK_CRC | AArch64::AEK_FP |
  87. AArch64::AEK_SIMD | AArch64::AEK_RAS | AArch64::AEK_LSE |
  88. AArch64::AEK_RDM | AArch64::AEK_RCPC | AArch64::AEK_DOTPROD |
  89. AArch64::AEK_SVE2))
  90. // For v8-R, we do not enable crypto and align with GCC that enables a more
  91. // minimal set of optional architecture extensions.
  92. AARCH64_ARCH("armv8-r", ARMV8R, "8-R", "v8r",
  93. ARMBuildAttrs::CPUArch::v8_R, FK_CRYPTO_NEON_FP_ARMV8,
  94. (AArch64::AEK_CRC | AArch64::AEK_RDM | AArch64::AEK_SSBS |
  95. AArch64::AEK_DOTPROD | AArch64::AEK_FP | AArch64::AEK_SIMD |
  96. AArch64::AEK_FP16 | AArch64::AEK_FP16FML | AArch64::AEK_RAS |
  97. AArch64::AEK_RCPC | AArch64::AEK_SB))
  98. #undef AARCH64_ARCH
  99. #ifndef AARCH64_ARCH_EXT_NAME
  100. #define AARCH64_ARCH_EXT_NAME(NAME, ID, FEATURE, NEGFEATURE)
  101. #endif
  102. // FIXME: This would be nicer were it tablegen
  103. AARCH64_ARCH_EXT_NAME("invalid", AArch64::AEK_INVALID, nullptr, nullptr)
  104. AARCH64_ARCH_EXT_NAME("none", AArch64::AEK_NONE, nullptr, nullptr)
  105. AARCH64_ARCH_EXT_NAME("crc", AArch64::AEK_CRC, "+crc", "-crc")
  106. AARCH64_ARCH_EXT_NAME("lse", AArch64::AEK_LSE, "+lse", "-lse")
  107. AARCH64_ARCH_EXT_NAME("rdm", AArch64::AEK_RDM, "+rdm", "-rdm")
  108. AARCH64_ARCH_EXT_NAME("crypto", AArch64::AEK_CRYPTO, "+crypto", "-crypto")
  109. AARCH64_ARCH_EXT_NAME("sm4", AArch64::AEK_SM4, "+sm4", "-sm4")
  110. AARCH64_ARCH_EXT_NAME("sha3", AArch64::AEK_SHA3, "+sha3", "-sha3")
  111. AARCH64_ARCH_EXT_NAME("sha2", AArch64::AEK_SHA2, "+sha2", "-sha2")
  112. AARCH64_ARCH_EXT_NAME("aes", AArch64::AEK_AES, "+aes", "-aes")
  113. AARCH64_ARCH_EXT_NAME("dotprod", AArch64::AEK_DOTPROD, "+dotprod", "-dotprod")
  114. AARCH64_ARCH_EXT_NAME("fp", AArch64::AEK_FP, "+fp-armv8", "-fp-armv8")
  115. AARCH64_ARCH_EXT_NAME("simd", AArch64::AEK_SIMD, "+neon", "-neon")
  116. AARCH64_ARCH_EXT_NAME("fp16", AArch64::AEK_FP16, "+fullfp16", "-fullfp16")
  117. AARCH64_ARCH_EXT_NAME("fp16fml", AArch64::AEK_FP16FML, "+fp16fml", "-fp16fml")
  118. AARCH64_ARCH_EXT_NAME("profile", AArch64::AEK_PROFILE, "+spe", "-spe")
  119. AARCH64_ARCH_EXT_NAME("ras", AArch64::AEK_RAS, "+ras", "-ras")
  120. AARCH64_ARCH_EXT_NAME("sve", AArch64::AEK_SVE, "+sve", "-sve")
  121. AARCH64_ARCH_EXT_NAME("sve2", AArch64::AEK_SVE2, "+sve2", "-sve2")
  122. AARCH64_ARCH_EXT_NAME("sve2-aes", AArch64::AEK_SVE2AES, "+sve2-aes", "-sve2-aes")
  123. AARCH64_ARCH_EXT_NAME("sve2-sm4", AArch64::AEK_SVE2SM4, "+sve2-sm4", "-sve2-sm4")
  124. AARCH64_ARCH_EXT_NAME("sve2-sha3", AArch64::AEK_SVE2SHA3, "+sve2-sha3", "-sve2-sha3")
  125. AARCH64_ARCH_EXT_NAME("sve2-bitperm", AArch64::AEK_SVE2BITPERM, "+sve2-bitperm", "-sve2-bitperm")
  126. AARCH64_ARCH_EXT_NAME("rcpc", AArch64::AEK_RCPC, "+rcpc", "-rcpc")
  127. AARCH64_ARCH_EXT_NAME("rng", AArch64::AEK_RAND, "+rand", "-rand")
  128. AARCH64_ARCH_EXT_NAME("memtag", AArch64::AEK_MTE, "+mte", "-mte")
  129. AARCH64_ARCH_EXT_NAME("ssbs", AArch64::AEK_SSBS, "+ssbs", "-ssbs")
  130. AARCH64_ARCH_EXT_NAME("sb", AArch64::AEK_SB, "+sb", "-sb")
  131. AARCH64_ARCH_EXT_NAME("predres", AArch64::AEK_PREDRES, "+predres", "-predres")
  132. AARCH64_ARCH_EXT_NAME("bf16", AArch64::AEK_BF16, "+bf16", "-bf16")
  133. AARCH64_ARCH_EXT_NAME("i8mm", AArch64::AEK_I8MM, "+i8mm", "-i8mm")
  134. AARCH64_ARCH_EXT_NAME("f32mm", AArch64::AEK_F32MM, "+f32mm", "-f32mm")
  135. AARCH64_ARCH_EXT_NAME("f64mm", AArch64::AEK_F64MM, "+f64mm", "-f64mm")
  136. AARCH64_ARCH_EXT_NAME("tme", AArch64::AEK_TME, "+tme", "-tme")
  137. AARCH64_ARCH_EXT_NAME("ls64", AArch64::AEK_LS64, "+ls64", "-ls64")
  138. AARCH64_ARCH_EXT_NAME("brbe", AArch64::AEK_BRBE, "+brbe", "-brbe")
  139. AARCH64_ARCH_EXT_NAME("pauth", AArch64::AEK_PAUTH, "+pauth", "-pauth")
  140. AARCH64_ARCH_EXT_NAME("flagm", AArch64::AEK_FLAGM, "+flagm", "-flagm")
  141. AARCH64_ARCH_EXT_NAME("sme", AArch64::AEK_SME, "+sme", "-sme")
  142. AARCH64_ARCH_EXT_NAME("sme-f64", AArch64::AEK_SMEF64, "+sme-f64", "-sme-f64")
  143. AARCH64_ARCH_EXT_NAME("sme-i64", AArch64::AEK_SMEI64, "+sme-i64", "-sme-i64")
  144. AARCH64_ARCH_EXT_NAME("hbc", AArch64::AEK_HBC, "+hbc", "-hbc")
  145. AARCH64_ARCH_EXT_NAME("mops", AArch64::AEK_MOPS, "+mops", "-mops")
  146. AARCH64_ARCH_EXT_NAME("pmuv3", AArch64::AEK_PERFMON, "+perfmon", "-perfmon")
  147. #undef AARCH64_ARCH_EXT_NAME
  148. #ifndef AARCH64_CPU_NAME
  149. #define AARCH64_CPU_NAME(NAME, ID, DEFAULT_FPU, IS_DEFAULT, DEFAULT_EXT)
  150. #endif
  151. AARCH64_CPU_NAME("cortex-a34", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  152. (AArch64::AEK_CRC))
  153. AARCH64_CPU_NAME("cortex-a35", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  154. (AArch64::AEK_CRC))
  155. AARCH64_CPU_NAME("cortex-a53", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, true,
  156. (AArch64::AEK_CRC))
  157. AARCH64_CPU_NAME("cortex-a55", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  158. (AArch64::AEK_FP16 | AArch64::AEK_DOTPROD | AArch64::AEK_RCPC))
  159. AARCH64_CPU_NAME("cortex-a510", ARMV9A, FK_NEON_FP_ARMV8, false,
  160. (AArch64::AEK_BF16 | AArch64::AEK_I8MM | AArch64::AEK_SB |
  161. AArch64::AEK_PAUTH | AArch64::AEK_MTE | AArch64::AEK_SSBS |
  162. AArch64::AEK_SVE | AArch64::AEK_SVE2 | AArch64::AEK_SVE2BITPERM |
  163. AArch64::AEK_FP16FML))
  164. AARCH64_CPU_NAME("cortex-a57", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  165. (AArch64::AEK_CRC))
  166. AARCH64_CPU_NAME("cortex-a65", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  167. (AArch64::AEK_DOTPROD | AArch64::AEK_FP16 | AArch64::AEK_RAS |
  168. AArch64::AEK_RCPC | AArch64::AEK_SSBS))
  169. AARCH64_CPU_NAME("cortex-a65ae", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  170. (AArch64::AEK_DOTPROD | AArch64::AEK_FP16 | AArch64::AEK_RAS |
  171. AArch64::AEK_RCPC | AArch64::AEK_SSBS))
  172. AARCH64_CPU_NAME("cortex-a72", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  173. (AArch64::AEK_CRC))
  174. AARCH64_CPU_NAME("cortex-a73", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  175. (AArch64::AEK_CRC))
  176. AARCH64_CPU_NAME("cortex-a75", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  177. (AArch64::AEK_FP16 | AArch64::AEK_DOTPROD | AArch64::AEK_RCPC))
  178. AARCH64_CPU_NAME("cortex-a76", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  179. (AArch64::AEK_FP16 | AArch64::AEK_DOTPROD | AArch64::AEK_RCPC |
  180. AArch64::AEK_SSBS))
  181. AARCH64_CPU_NAME("cortex-a76ae", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  182. (AArch64::AEK_FP16 | AArch64::AEK_DOTPROD | AArch64::AEK_RCPC |
  183. AArch64::AEK_SSBS))
  184. AARCH64_CPU_NAME("cortex-a77", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  185. (AArch64::AEK_FP16 | AArch64::AEK_RCPC | AArch64::AEK_DOTPROD |
  186. AArch64::AEK_SSBS))
  187. AARCH64_CPU_NAME("cortex-a78", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  188. (AArch64::AEK_FP16 | AArch64::AEK_DOTPROD | AArch64::AEK_RCPC |
  189. AArch64::AEK_SSBS))
  190. AARCH64_CPU_NAME("cortex-a78c", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  191. (AArch64::AEK_FP16 | AArch64::AEK_DOTPROD | AArch64::AEK_RCPC |
  192. AArch64::AEK_SSBS))
  193. AARCH64_CPU_NAME("cortex-a710", ARMV9A, FK_NEON_FP_ARMV8, false,
  194. (AArch64::AEK_MTE | AArch64::AEK_PAUTH | AArch64::AEK_FLAGM |
  195. AArch64::AEK_SB | AArch64::AEK_I8MM | AArch64::AEK_FP16FML |
  196. AArch64::AEK_SVE | AArch64::AEK_SVE2 | AArch64::AEK_SVE2BITPERM |
  197. AArch64::AEK_BF16))
  198. AARCH64_CPU_NAME("cortex-r82", ARMV8R, FK_CRYPTO_NEON_FP_ARMV8, false,
  199. (AArch64::AEK_LSE))
  200. AARCH64_CPU_NAME("cortex-x1", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  201. (AArch64::AEK_FP16 | AArch64::AEK_DOTPROD | AArch64::AEK_RCPC |
  202. AArch64::AEK_SSBS))
  203. AARCH64_CPU_NAME("cortex-x1c", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  204. (AArch64::AEK_FP16 | AArch64::AEK_DOTPROD | AArch64::AEK_RCPC |
  205. AArch64::AEK_SSBS | AArch64::AEK_PAUTH))
  206. AARCH64_CPU_NAME("cortex-x2", ARMV9A, FK_NEON_FP_ARMV8, false,
  207. (AArch64::AEK_MTE | AArch64::AEK_BF16 | AArch64::AEK_I8MM |
  208. AArch64::AEK_PAUTH | AArch64::AEK_SSBS | AArch64::AEK_SB |
  209. AArch64::AEK_SVE | AArch64::AEK_SVE2 | AArch64::AEK_SVE2BITPERM |
  210. AArch64::AEK_FP16FML))
  211. AARCH64_CPU_NAME("neoverse-e1", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  212. (AArch64::AEK_DOTPROD | AArch64::AEK_FP16 | AArch64::AEK_RAS |
  213. AArch64::AEK_RCPC | AArch64::AEK_SSBS))
  214. AARCH64_CPU_NAME("neoverse-n1", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  215. (AArch64::AEK_DOTPROD | AArch64::AEK_FP16 |
  216. AArch64::AEK_PROFILE | AArch64::AEK_RAS | AArch64::AEK_RCPC |
  217. AArch64::AEK_SSBS))
  218. AARCH64_CPU_NAME("neoverse-n2", ARMV8_5A, FK_CRYPTO_NEON_FP_ARMV8, false,
  219. (AArch64::AEK_BF16 | AArch64::AEK_DOTPROD | AArch64::AEK_FP16 |
  220. AArch64::AEK_I8MM | AArch64::AEK_MTE | AArch64::AEK_RAS |
  221. AArch64::AEK_RCPC | AArch64::AEK_SB | AArch64::AEK_SSBS |
  222. AArch64::AEK_SVE | AArch64::AEK_SVE2 | AArch64::AEK_SVE2BITPERM))
  223. AARCH64_CPU_NAME("neoverse-512tvb", ARMV8_4A, FK_CRYPTO_NEON_FP_ARMV8, false,
  224. (AArch64::AEK_RAS | AArch64::AEK_SVE | AArch64::AEK_SSBS |
  225. AArch64::AEK_RCPC | AArch64::AEK_FP16 | AArch64::AEK_BF16 |
  226. AArch64::AEK_DOTPROD ))
  227. AARCH64_CPU_NAME("neoverse-v1", ARMV8_4A, FK_CRYPTO_NEON_FP_ARMV8, false,
  228. (AArch64::AEK_RAS | AArch64::AEK_SVE | AArch64::AEK_SSBS |
  229. AArch64::AEK_RCPC | AArch64::AEK_FP16 | AArch64::AEK_BF16 |
  230. AArch64::AEK_DOTPROD ))
  231. AARCH64_CPU_NAME("cyclone", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  232. (AArch64::AEK_NONE))
  233. AARCH64_CPU_NAME("apple-a7", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  234. (AArch64::AEK_NONE))
  235. AARCH64_CPU_NAME("apple-a8", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  236. (AArch64::AEK_NONE))
  237. AARCH64_CPU_NAME("apple-a9", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  238. (AArch64::AEK_NONE))
  239. AARCH64_CPU_NAME("apple-a10", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  240. (AArch64::AEK_CRC | AArch64::AEK_RDM))
  241. AARCH64_CPU_NAME("apple-a11", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  242. (AArch64::AEK_FP16))
  243. AARCH64_CPU_NAME("apple-a12", ARMV8_3A, FK_CRYPTO_NEON_FP_ARMV8, false,
  244. (AArch64::AEK_FP16))
  245. AARCH64_CPU_NAME("apple-a13", ARMV8_4A, FK_CRYPTO_NEON_FP_ARMV8, false,
  246. (AArch64::AEK_FP16 | AArch64::AEK_FP16FML))
  247. AARCH64_CPU_NAME("apple-a14", ARMV8_5A, FK_CRYPTO_NEON_FP_ARMV8, false,
  248. (AArch64::AEK_FP16 | AArch64::AEK_FP16FML))
  249. AARCH64_CPU_NAME("apple-m1", ARMV8_5A, FK_CRYPTO_NEON_FP_ARMV8, false,
  250. (AArch64::AEK_FP16 | AArch64::AEK_FP16FML))
  251. AARCH64_CPU_NAME("apple-s4", ARMV8_3A, FK_CRYPTO_NEON_FP_ARMV8, false,
  252. (AArch64::AEK_FP16))
  253. AARCH64_CPU_NAME("apple-s5", ARMV8_3A, FK_CRYPTO_NEON_FP_ARMV8, false,
  254. (AArch64::AEK_FP16))
  255. AARCH64_CPU_NAME("exynos-m3", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  256. (AArch64::AEK_CRC))
  257. AARCH64_CPU_NAME("exynos-m4", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  258. (AArch64::AEK_DOTPROD | AArch64::AEK_FP16))
  259. AARCH64_CPU_NAME("exynos-m5", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  260. (AArch64::AEK_DOTPROD | AArch64::AEK_FP16))
  261. AARCH64_CPU_NAME("falkor", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  262. (AArch64::AEK_CRC | AArch64::AEK_RDM))
  263. AARCH64_CPU_NAME("saphira", ARMV8_3A, FK_CRYPTO_NEON_FP_ARMV8, false,
  264. (AArch64::AEK_PROFILE))
  265. AARCH64_CPU_NAME("kryo", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  266. (AArch64::AEK_CRC))
  267. AARCH64_CPU_NAME("thunderx2t99", ARMV8_1A, FK_CRYPTO_NEON_FP_ARMV8, false,
  268. (AArch64::AEK_NONE))
  269. AARCH64_CPU_NAME("thunderx3t110", ARMV8_3A, FK_CRYPTO_NEON_FP_ARMV8, false,
  270. (AArch64::AEK_CRC | AEK_CRYPTO | AEK_FP | AEK_SIMD |
  271. AEK_LSE | AEK_RAND | AArch64::AEK_PROFILE |
  272. AArch64::AEK_RAS))
  273. AARCH64_CPU_NAME("thunderx", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  274. (AArch64::AEK_CRC | AArch64::AEK_PROFILE))
  275. AARCH64_CPU_NAME("thunderxt88", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  276. (AArch64::AEK_CRC | AArch64::AEK_PROFILE))
  277. AARCH64_CPU_NAME("thunderxt81", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  278. (AArch64::AEK_CRC | AArch64::AEK_PROFILE))
  279. AARCH64_CPU_NAME("thunderxt83", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false,
  280. (AArch64::AEK_CRC | AArch64::AEK_PROFILE))
  281. AARCH64_CPU_NAME("tsv110", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  282. (AArch64::AEK_DOTPROD |
  283. AArch64::AEK_FP16 | AArch64::AEK_FP16FML |
  284. AArch64::AEK_PROFILE))
  285. AARCH64_CPU_NAME("a64fx", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  286. (AArch64::AEK_FP16 | AArch64::AEK_SVE))
  287. AARCH64_CPU_NAME("carmel", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
  288. AArch64::AEK_FP16)
  289. AARCH64_CPU_NAME("ampere1", ARMV8_6A, FK_CRYPTO_NEON_FP_ARMV8, false,
  290. (AArch64::AEK_FP16 | AArch64::AEK_SB | AArch64::AEK_SSBS))
  291. // Invalid CPU
  292. AARCH64_CPU_NAME("invalid", INVALID, FK_INVALID, true, AArch64::AEK_INVALID)
  293. #undef AARCH64_CPU_NAME