1//===- ARMTargetParser.def - ARM 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 ARM target parser's logic. 10// 11//===----------------------------------------------------------------------===// 12 13// NOTE: NO INCLUDE GUARD DESIRED! 14 15#ifndef ARM_FPU 16#define ARM_FPU(NAME, KIND, VERSION, NEON_SUPPORT, RESTRICTION) 17#endif 18ARM_FPU("invalid", FK_INVALID, FPUVersion::NONE, NeonSupportLevel::None, 19 FPURestriction::None) 20ARM_FPU("none", FK_NONE, FPUVersion::NONE, NeonSupportLevel::None, 21 FPURestriction::None) 22ARM_FPU("vfp", FK_VFP, FPUVersion::VFPV2, NeonSupportLevel::None, 23 FPURestriction::None) 24ARM_FPU("vfpv2", FK_VFPV2, FPUVersion::VFPV2, NeonSupportLevel::None, 25 FPURestriction::None) 26ARM_FPU("vfpv3", FK_VFPV3, FPUVersion::VFPV3, NeonSupportLevel::None, 27 FPURestriction::None) 28ARM_FPU("vfpv3-fp16", FK_VFPV3_FP16, FPUVersion::VFPV3_FP16, 29 NeonSupportLevel::None, FPURestriction::None) 30ARM_FPU("vfpv3-d16", FK_VFPV3_D16, FPUVersion::VFPV3, NeonSupportLevel::None, 31 FPURestriction::D16) 32ARM_FPU("vfpv3-d16-fp16", FK_VFPV3_D16_FP16, FPUVersion::VFPV3_FP16, 33 NeonSupportLevel::None, FPURestriction::D16) 34ARM_FPU("vfpv3xd", FK_VFPV3XD, FPUVersion::VFPV3, NeonSupportLevel::None, 35 FPURestriction::SP_D16) 36ARM_FPU("vfpv3xd-fp16", FK_VFPV3XD_FP16, FPUVersion::VFPV3_FP16, 37 NeonSupportLevel::None, FPURestriction::SP_D16) 38ARM_FPU("vfpv4", FK_VFPV4, FPUVersion::VFPV4, NeonSupportLevel::None, 39 FPURestriction::None) 40ARM_FPU("vfpv4-d16", FK_VFPV4_D16, FPUVersion::VFPV4, NeonSupportLevel::None, 41 FPURestriction::D16) 42ARM_FPU("fpv4-sp-d16", FK_FPV4_SP_D16, FPUVersion::VFPV4, 43 NeonSupportLevel::None, FPURestriction::SP_D16) 44ARM_FPU("fpv5-d16", FK_FPV5_D16, FPUVersion::VFPV5, NeonSupportLevel::None, 45 FPURestriction::D16) 46ARM_FPU("fpv5-sp-d16", FK_FPV5_SP_D16, FPUVersion::VFPV5, 47 NeonSupportLevel::None, FPURestriction::SP_D16) 48ARM_FPU("fp-armv8", FK_FP_ARMV8, FPUVersion::VFPV5, NeonSupportLevel::None, 49 FPURestriction::None) 50ARM_FPU("fp-armv8-fullfp16-d16", FK_FP_ARMV8_FULLFP16_D16, 51 FPUVersion::VFPV5_FULLFP16, NeonSupportLevel::None, FPURestriction::D16) 52ARM_FPU("fp-armv8-fullfp16-sp-d16", FK_FP_ARMV8_FULLFP16_SP_D16, 53 FPUVersion::VFPV5_FULLFP16, NeonSupportLevel::None, 54 FPURestriction::SP_D16) 55ARM_FPU("neon", FK_NEON, FPUVersion::VFPV3, NeonSupportLevel::Neon, 56 FPURestriction::None) 57ARM_FPU("neon-fp16", FK_NEON_FP16, FPUVersion::VFPV3_FP16, 58 NeonSupportLevel::Neon, FPURestriction::None) 59ARM_FPU("neon-vfpv4", FK_NEON_VFPV4, FPUVersion::VFPV4, NeonSupportLevel::Neon, 60 FPURestriction::None) 61ARM_FPU("neon-fp-armv8", FK_NEON_FP_ARMV8, FPUVersion::VFPV5, 62 NeonSupportLevel::Neon, FPURestriction::None) 63ARM_FPU("crypto-neon-fp-armv8", FK_CRYPTO_NEON_FP_ARMV8, FPUVersion::VFPV5, 64 NeonSupportLevel::Crypto, FPURestriction::None) 65ARM_FPU("softvfp", FK_SOFTVFP, FPUVersion::NONE, NeonSupportLevel::None, 66 FPURestriction::None) 67#undef ARM_FPU 68 69#ifndef ARM_ARCH 70#define ARM_ARCH(NAME, ID, CPU_ATTR, ARCH_FEATURE, ARCH_ATTR, ARCH_FPU, \ 71 ARCH_BASE_EXT) 72#endif 73ARM_ARCH("invalid", INVALID, "", "+", ARMBuildAttrs::CPUArch::Pre_v4, FK_NONE, 74 ARM::AEK_NONE) 75ARM_ARCH("armv4", ARMV4, "4", "+v4", ARMBuildAttrs::CPUArch::v4, FK_NONE, 76 ARM::AEK_NONE) 77ARM_ARCH("armv4t", ARMV4T, "4T", "+v4t", ARMBuildAttrs::CPUArch::v4T, FK_NONE, 78 ARM::AEK_NONE) 79ARM_ARCH("armv5t", ARMV5T, "5T", "+v5", ARMBuildAttrs::CPUArch::v5T, FK_NONE, 80 ARM::AEK_NONE) 81ARM_ARCH("armv5te", ARMV5TE, "5TE", "+v5e", ARMBuildAttrs::CPUArch::v5TE, 82 FK_NONE, ARM::AEK_DSP) 83ARM_ARCH("armv5tej", ARMV5TEJ, "5TEJ", "+v5e", ARMBuildAttrs::CPUArch::v5TEJ, 84 FK_NONE, ARM::AEK_DSP) 85ARM_ARCH("armv6", ARMV6, "6", "+v6", ARMBuildAttrs::CPUArch::v6, FK_VFPV2, 86 ARM::AEK_DSP) 87ARM_ARCH("armv6k", ARMV6K, "6K", "+v6k", ARMBuildAttrs::CPUArch::v6K, FK_VFPV2, 88 ARM::AEK_DSP) 89ARM_ARCH("armv6t2", ARMV6T2, "6T2", "+v6t2", ARMBuildAttrs::CPUArch::v6T2, 90 FK_NONE, ARM::AEK_DSP) 91ARM_ARCH("armv6kz", ARMV6KZ, "6KZ", "+v6kz", ARMBuildAttrs::CPUArch::v6KZ, 92 FK_VFPV2, (ARM::AEK_SEC | ARM::AEK_DSP)) 93ARM_ARCH("armv6-m", ARMV6M, "6-M", "+v6m", ARMBuildAttrs::CPUArch::v6_M, 94 FK_NONE, ARM::AEK_NONE) 95ARM_ARCH("armv7-a", ARMV7A, "7-A", "+v7", ARMBuildAttrs::CPUArch::v7, FK_NEON, 96 ARM::AEK_DSP) 97ARM_ARCH("armv7ve", ARMV7VE, "7VE", "+v7ve", ARMBuildAttrs::CPUArch::v7, 98 FK_NEON, 99 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 100 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP)) 101ARM_ARCH("armv7-r", ARMV7R, "7-R", "+v7r", ARMBuildAttrs::CPUArch::v7, FK_NONE, 102 (ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP)) 103ARM_ARCH("armv7-m", ARMV7M, "7-M", "+v7m", ARMBuildAttrs::CPUArch::v7, FK_NONE, 104 ARM::AEK_HWDIVTHUMB) 105ARM_ARCH("armv7e-m", ARMV7EM, "7E-M", "+v7em", ARMBuildAttrs::CPUArch::v7E_M, 106 FK_NONE, (ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP)) 107ARM_ARCH("armv8-a", ARMV8A, "8-A", "+v8a", ARMBuildAttrs::CPUArch::v8_A, 108 FK_CRYPTO_NEON_FP_ARMV8, 109 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 110 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC)) 111ARM_ARCH("armv8.1-a", ARMV8_1A, "8.1-A", "+v8.1a", ARMBuildAttrs::CPUArch::v8_A, 112 FK_CRYPTO_NEON_FP_ARMV8, 113 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 114 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC)) 115ARM_ARCH("armv8.2-a", ARMV8_2A, "8.2-A", "+v8.2a", ARMBuildAttrs::CPUArch::v8_A, 116 FK_CRYPTO_NEON_FP_ARMV8, 117 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 118 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS)) 119ARM_ARCH("armv8.3-a", ARMV8_3A, "8.3-A", "+v8.3a", ARMBuildAttrs::CPUArch::v8_A, 120 FK_CRYPTO_NEON_FP_ARMV8, 121 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 122 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS)) 123ARM_ARCH("armv8.4-a", ARMV8_4A, "8.4-A", "+v8.4a", ARMBuildAttrs::CPUArch::v8_A, 124 FK_CRYPTO_NEON_FP_ARMV8, 125 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 126 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 127 ARM::AEK_DOTPROD)) 128ARM_ARCH("armv8.5-a", ARMV8_5A, "8.5-A", "+v8.5a", ARMBuildAttrs::CPUArch::v8_A, 129 FK_CRYPTO_NEON_FP_ARMV8, 130 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 131 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 132 ARM::AEK_DOTPROD)) 133ARM_ARCH("armv8.6-a", ARMV8_6A, "8.6-A", "+v8.6a", ARMBuildAttrs::CPUArch::v8_A, 134 FK_CRYPTO_NEON_FP_ARMV8, 135 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 136 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 137 ARM::AEK_DOTPROD | ARM::AEK_BF16 | ARM::AEK_I8MM)) 138ARM_ARCH("armv8.7-a", ARMV8_7A, "8.7-A", "+v8.7a", ARMBuildAttrs::CPUArch::v8_A, 139 FK_CRYPTO_NEON_FP_ARMV8, 140 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 141 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 142 ARM::AEK_DOTPROD | ARM::AEK_BF16 | ARM::AEK_I8MM)) 143ARM_ARCH("armv8.8-a", ARMV8_8A, "8.8-A", "+v8.8a", ARMBuildAttrs::CPUArch::v8_A, 144 FK_CRYPTO_NEON_FP_ARMV8, 145 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 146 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 147 ARM::AEK_DOTPROD | ARM::AEK_BF16 | ARM::AEK_SHA2 | ARM::AEK_AES | 148 ARM::AEK_I8MM)) 149ARM_ARCH("armv8.9-a", ARMV8_9A, "8.9-A", "+v8.9a", ARMBuildAttrs::CPUArch::v8_A, 150 FK_CRYPTO_NEON_FP_ARMV8, 151 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 152 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 153 ARM::AEK_DOTPROD | ARM::AEK_BF16 | ARM::AEK_SHA2 | ARM::AEK_AES | 154 ARM::AEK_I8MM)) 155ARM_ARCH("armv9-a", ARMV9A, "9-A", "+v9a", ARMBuildAttrs::CPUArch::v9_A, 156 FK_NEON_FP_ARMV8, 157 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 158 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 159 ARM::AEK_DOTPROD)) 160ARM_ARCH("armv9.1-a", ARMV9_1A, "9.1-A", "+v9.1a", ARMBuildAttrs::CPUArch::v9_A, 161 FK_NEON_FP_ARMV8, 162 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 163 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 164 ARM::AEK_DOTPROD | ARM::AEK_BF16 | ARM::AEK_I8MM)) 165ARM_ARCH("armv9.2-a", ARMV9_2A, "9.2-A", "+v9.2a", ARMBuildAttrs::CPUArch::v9_A, 166 FK_NEON_FP_ARMV8, 167 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 168 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 169 ARM::AEK_DOTPROD | ARM::AEK_BF16 | ARM::AEK_I8MM)) 170ARM_ARCH("armv9.3-a", ARMV9_3A, "9.3-A", "+v9.3a", ARMBuildAttrs::CPUArch::v9_A, 171 FK_CRYPTO_NEON_FP_ARMV8, 172 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 173 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 174 ARM::AEK_DOTPROD | ARM::AEK_BF16 | ARM::AEK_I8MM)) 175ARM_ARCH("armv9.4-a", ARMV9_4A, "9.4-A", "+v9.4a", ARMBuildAttrs::CPUArch::v9_A, 176 FK_NEON_FP_ARMV8, 177 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 178 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 179 ARM::AEK_DOTPROD | ARM::AEK_BF16 | ARM::AEK_I8MM)) 180ARM_ARCH("armv9.5-a", ARMV9_5A, "9.5-A", "+v9.5a", ARMBuildAttrs::CPUArch::v9_A, 181 FK_NEON_FP_ARMV8, 182 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 183 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC | ARM::AEK_RAS | 184 ARM::AEK_DOTPROD | ARM::AEK_BF16 | ARM::AEK_I8MM)) 185ARM_ARCH("armv8-r", ARMV8R, "8-R", "+v8r", ARMBuildAttrs::CPUArch::v8_R, 186 FK_FPV5_SP_D16, 187 (ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 188 ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP | ARM::AEK_CRC)) 189ARM_ARCH("armv8-m.base", ARMV8MBaseline, "8-M.Baseline", "+v8m.base", 190 ARMBuildAttrs::CPUArch::v8_M_Base, FK_NONE, ARM::AEK_HWDIVTHUMB) 191ARM_ARCH("armv8-m.main", ARMV8MMainline, "8-M.Mainline", "+v8m.main", 192 ARMBuildAttrs::CPUArch::v8_M_Main, FK_FPV5_D16, ARM::AEK_HWDIVTHUMB) 193ARM_ARCH("armv8.1-m.main", ARMV8_1MMainline, "8.1-M.Mainline", "+v8.1m.main", 194 ARMBuildAttrs::CPUArch::v8_1_M_Main, FK_FP_ARMV8_FULLFP16_SP_D16, 195 ARM::AEK_HWDIVTHUMB | ARM::AEK_RAS | ARM::AEK_LOB) 196// Non-standard Arch names. 197ARM_ARCH("iwmmxt", IWMMXT, "iwmmxt", "+", ARMBuildAttrs::CPUArch::v5TE, FK_NONE, 198 ARM::AEK_NONE) 199ARM_ARCH("iwmmxt2", IWMMXT2, "iwmmxt2", "+", ARMBuildAttrs::CPUArch::v5TE, 200 FK_NONE, ARM::AEK_NONE) 201ARM_ARCH("xscale", XSCALE, "xscale", "+v5e", ARMBuildAttrs::CPUArch::v5TE, 202 FK_NONE, ARM::AEK_NONE) 203ARM_ARCH("armv7s", ARMV7S, "7-S", "+v7s", ARMBuildAttrs::CPUArch::v7, 204 FK_NEON_VFPV4, ARM::AEK_DSP) 205ARM_ARCH("armv7k", ARMV7K, "7-K", "+v7k", ARMBuildAttrs::CPUArch::v7, FK_NONE, 206 ARM::AEK_DSP) 207#undef ARM_ARCH 208 209#ifndef ARM_ARCH_EXT_NAME 210#define ARM_ARCH_EXT_NAME(NAME, ID, FEATURE, NEGFEATURE) 211#endif 212ARM_ARCH_EXT_NAME("invalid", ARM::AEK_INVALID, {}, {}) 213ARM_ARCH_EXT_NAME("none", ARM::AEK_NONE, {}, {}) 214ARM_ARCH_EXT_NAME("crc", ARM::AEK_CRC, "+crc", "-crc") 215ARM_ARCH_EXT_NAME("crypto", ARM::AEK_CRYPTO, "+crypto", "-crypto") 216ARM_ARCH_EXT_NAME("sha2", ARM::AEK_SHA2, "+sha2", "-sha2") 217ARM_ARCH_EXT_NAME("aes", ARM::AEK_AES, "+aes", "-aes") 218ARM_ARCH_EXT_NAME("dotprod", ARM::AEK_DOTPROD, "+dotprod", "-dotprod") 219ARM_ARCH_EXT_NAME("dsp", ARM::AEK_DSP, "+dsp", "-dsp") 220ARM_ARCH_EXT_NAME("fp", ARM::AEK_FP, {}, {}) 221ARM_ARCH_EXT_NAME("fp.dp", ARM::AEK_FP_DP, {}, {}) 222ARM_ARCH_EXT_NAME("mve", (ARM::AEK_DSP | ARM::AEK_SIMD), "+mve", "-mve") 223ARM_ARCH_EXT_NAME("mve.fp", (ARM::AEK_DSP | ARM::AEK_SIMD | ARM::AEK_FP), 224 "+mve.fp", "-mve.fp") 225ARM_ARCH_EXT_NAME("idiv", (ARM::AEK_HWDIVARM | ARM::AEK_HWDIVTHUMB), {}, {}) 226ARM_ARCH_EXT_NAME("mp", ARM::AEK_MP, {}, {}) 227ARM_ARCH_EXT_NAME("simd", ARM::AEK_SIMD, {}, {}) 228ARM_ARCH_EXT_NAME("sec", ARM::AEK_SEC, {}, {}) 229ARM_ARCH_EXT_NAME("virt", ARM::AEK_VIRT, {}, {}) 230ARM_ARCH_EXT_NAME("fp16", ARM::AEK_FP16, "+fullfp16", "-fullfp16") 231ARM_ARCH_EXT_NAME("ras", ARM::AEK_RAS, "+ras", "-ras") 232ARM_ARCH_EXT_NAME("os", ARM::AEK_OS, {}, {}) 233ARM_ARCH_EXT_NAME("iwmmxt", ARM::AEK_IWMMXT, {}, {}) 234ARM_ARCH_EXT_NAME("iwmmxt2", ARM::AEK_IWMMXT2, {}, {}) 235ARM_ARCH_EXT_NAME("maverick", ARM::AEK_MAVERICK, {}, {}) 236ARM_ARCH_EXT_NAME("xscale", ARM::AEK_XSCALE, {}, {}) 237ARM_ARCH_EXT_NAME("fp16fml", ARM::AEK_FP16FML, "+fp16fml", "-fp16fml") 238ARM_ARCH_EXT_NAME("bf16", ARM::AEK_BF16, "+bf16", "-bf16") 239ARM_ARCH_EXT_NAME("sb", ARM::AEK_SB, "+sb", "-sb") 240ARM_ARCH_EXT_NAME("i8mm", ARM::AEK_I8MM, "+i8mm", "-i8mm") 241ARM_ARCH_EXT_NAME("lob", ARM::AEK_LOB, "+lob", "-lob") 242ARM_ARCH_EXT_NAME("cdecp0", ARM::AEK_CDECP0, "+cdecp0", "-cdecp0") 243ARM_ARCH_EXT_NAME("cdecp1", ARM::AEK_CDECP1, "+cdecp1", "-cdecp1") 244ARM_ARCH_EXT_NAME("cdecp2", ARM::AEK_CDECP2, "+cdecp2", "-cdecp2") 245ARM_ARCH_EXT_NAME("cdecp3", ARM::AEK_CDECP3, "+cdecp3", "-cdecp3") 246ARM_ARCH_EXT_NAME("cdecp4", ARM::AEK_CDECP4, "+cdecp4", "-cdecp4") 247ARM_ARCH_EXT_NAME("cdecp5", ARM::AEK_CDECP5, "+cdecp5", "-cdecp5") 248ARM_ARCH_EXT_NAME("cdecp6", ARM::AEK_CDECP6, "+cdecp6", "-cdecp6") 249ARM_ARCH_EXT_NAME("cdecp7", ARM::AEK_CDECP7, "+cdecp7", "-cdecp7") 250ARM_ARCH_EXT_NAME("pacbti", ARM::AEK_PACBTI, "+pacbti", "-pacbti") 251#undef ARM_ARCH_EXT_NAME 252 253#ifndef ARM_HW_DIV_NAME 254#define ARM_HW_DIV_NAME(NAME, ID) 255#endif 256ARM_HW_DIV_NAME("invalid", ARM::AEK_INVALID) 257ARM_HW_DIV_NAME("none", ARM::AEK_NONE) 258ARM_HW_DIV_NAME("thumb", ARM::AEK_HWDIVTHUMB) 259ARM_HW_DIV_NAME("arm", ARM::AEK_HWDIVARM) 260ARM_HW_DIV_NAME("arm,thumb", (ARM::AEK_HWDIVARM | ARM::AEK_HWDIVTHUMB)) 261#undef ARM_HW_DIV_NAME 262 263#ifndef ARM_CPU_NAME 264#define ARM_CPU_NAME(NAME, ID, DEFAULT_FPU, IS_DEFAULT, DEFAULT_EXT) 265#endif 266ARM_CPU_NAME("arm8", ARMV4, FK_NONE, false, ARM::AEK_NONE) 267ARM_CPU_NAME("arm810", ARMV4, FK_NONE, false, ARM::AEK_NONE) 268ARM_CPU_NAME("strongarm", ARMV4, FK_NONE, true, ARM::AEK_NONE) 269ARM_CPU_NAME("strongarm110", ARMV4, FK_NONE, false, ARM::AEK_NONE) 270ARM_CPU_NAME("strongarm1100", ARMV4, FK_NONE, false, ARM::AEK_NONE) 271ARM_CPU_NAME("strongarm1110", ARMV4, FK_NONE, false, ARM::AEK_NONE) 272ARM_CPU_NAME("arm7tdmi", ARMV4T, FK_NONE, true, ARM::AEK_NONE) 273ARM_CPU_NAME("arm7tdmi-s", ARMV4T, FK_NONE, false, ARM::AEK_NONE) 274ARM_CPU_NAME("arm710t", ARMV4T, FK_NONE, false, ARM::AEK_NONE) 275ARM_CPU_NAME("arm720t", ARMV4T, FK_NONE, false, ARM::AEK_NONE) 276ARM_CPU_NAME("arm9", ARMV4T, FK_NONE, false, ARM::AEK_NONE) 277ARM_CPU_NAME("arm9tdmi", ARMV4T, FK_NONE, false, ARM::AEK_NONE) 278ARM_CPU_NAME("arm920", ARMV4T, FK_NONE, false, ARM::AEK_NONE) 279ARM_CPU_NAME("arm920t", ARMV4T, FK_NONE, false, ARM::AEK_NONE) 280ARM_CPU_NAME("arm922t", ARMV4T, FK_NONE, false, ARM::AEK_NONE) 281ARM_CPU_NAME("arm940t", ARMV4T, FK_NONE, false, ARM::AEK_NONE) 282ARM_CPU_NAME("ep9312", ARMV4T, FK_NONE, false, ARM::AEK_NONE) 283ARM_CPU_NAME("arm10tdmi", ARMV5T, FK_NONE, true, ARM::AEK_NONE) 284ARM_CPU_NAME("arm1020t", ARMV5T, FK_NONE, false, ARM::AEK_NONE) 285ARM_CPU_NAME("arm9e", ARMV5TE, FK_NONE, false, ARM::AEK_NONE) 286ARM_CPU_NAME("arm946e-s", ARMV5TE, FK_NONE, false, ARM::AEK_NONE) 287ARM_CPU_NAME("arm966e-s", ARMV5TE, FK_NONE, false, ARM::AEK_NONE) 288ARM_CPU_NAME("arm968e-s", ARMV5TE, FK_NONE, false, ARM::AEK_NONE) 289ARM_CPU_NAME("arm10e", ARMV5TE, FK_NONE, false, ARM::AEK_NONE) 290ARM_CPU_NAME("arm1020e", ARMV5TE, FK_NONE, false, ARM::AEK_NONE) 291ARM_CPU_NAME("arm1022e", ARMV5TE, FK_NONE, true, ARM::AEK_NONE) 292ARM_CPU_NAME("arm926ej-s", ARMV5TEJ, FK_NONE, true, ARM::AEK_NONE) 293ARM_CPU_NAME("arm1136j-s", ARMV6, FK_NONE, false, ARM::AEK_NONE) 294ARM_CPU_NAME("arm1136jf-s", ARMV6, FK_VFPV2, true, ARM::AEK_NONE) 295ARM_CPU_NAME("mpcore", ARMV6K, FK_VFPV2, true, ARM::AEK_NONE) 296ARM_CPU_NAME("mpcorenovfp", ARMV6K, FK_NONE, false, ARM::AEK_NONE) 297ARM_CPU_NAME("arm1176jz-s", ARMV6KZ, FK_NONE, false, ARM::AEK_NONE) 298ARM_CPU_NAME("arm1176jzf-s", ARMV6KZ, FK_VFPV2, true, ARM::AEK_NONE) 299ARM_CPU_NAME("arm1156t2-s", ARMV6T2, FK_NONE, true, ARM::AEK_NONE) 300ARM_CPU_NAME("arm1156t2f-s", ARMV6T2, FK_VFPV2, false, ARM::AEK_NONE) 301ARM_CPU_NAME("cortex-m0", ARMV6M, FK_NONE, true, ARM::AEK_NONE) 302ARM_CPU_NAME("cortex-m0plus", ARMV6M, FK_NONE, false, ARM::AEK_NONE) 303ARM_CPU_NAME("cortex-m1", ARMV6M, FK_NONE, false, ARM::AEK_NONE) 304ARM_CPU_NAME("sc000", ARMV6M, FK_NONE, false, ARM::AEK_NONE) 305ARM_CPU_NAME("cortex-a5", ARMV7A, FK_NEON_VFPV4, false, 306 (ARM::AEK_SEC | ARM::AEK_MP)) 307ARM_CPU_NAME("cortex-a7", ARMV7A, FK_NEON_VFPV4, false, 308 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 309 ARM::AEK_HWDIVTHUMB)) 310ARM_CPU_NAME("cortex-a8", ARMV7A, FK_NEON, false, ARM::AEK_SEC) 311ARM_CPU_NAME("cortex-a9", ARMV7A, FK_NEON_FP16, false, 312 (ARM::AEK_SEC | ARM::AEK_MP)) 313ARM_CPU_NAME("cortex-a12", ARMV7A, FK_NEON_VFPV4, false, 314 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 315 ARM::AEK_HWDIVTHUMB)) 316ARM_CPU_NAME("cortex-a15", ARMV7A, FK_NEON_VFPV4, false, 317 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 318 ARM::AEK_HWDIVTHUMB)) 319ARM_CPU_NAME("cortex-a17", ARMV7A, FK_NEON_VFPV4, false, 320 (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT | ARM::AEK_HWDIVARM | 321 ARM::AEK_HWDIVTHUMB)) 322ARM_CPU_NAME("krait", ARMV7A, FK_NEON_VFPV4, false, 323 (ARM::AEK_HWDIVARM | ARM::AEK_HWDIVTHUMB)) 324ARM_CPU_NAME("cortex-r4", ARMV7R, FK_NONE, true, ARM::AEK_NONE) 325ARM_CPU_NAME("cortex-r4f", ARMV7R, FK_VFPV3_D16, false, ARM::AEK_NONE) 326ARM_CPU_NAME("cortex-r5", ARMV7R, FK_VFPV3_D16, false, 327 (ARM::AEK_MP | ARM::AEK_HWDIVARM)) 328ARM_CPU_NAME("cortex-r7", ARMV7R, FK_VFPV3_D16_FP16, false, 329 (ARM::AEK_MP | ARM::AEK_HWDIVARM)) 330ARM_CPU_NAME("cortex-r8", ARMV7R, FK_VFPV3_D16_FP16, false, 331 (ARM::AEK_MP | ARM::AEK_HWDIVARM)) 332ARM_CPU_NAME("cortex-r52", ARMV8R, FK_NEON_FP_ARMV8, false, ARM::AEK_NONE) 333ARM_CPU_NAME("cortex-r52plus", ARMV8R, FK_NEON_FP_ARMV8, false, ARM::AEK_NONE) 334ARM_CPU_NAME("sc300", ARMV7M, FK_NONE, false, ARM::AEK_NONE) 335ARM_CPU_NAME("cortex-m3", ARMV7M, FK_NONE, true, ARM::AEK_NONE) 336ARM_CPU_NAME("cortex-m4", ARMV7EM, FK_FPV4_SP_D16, true, ARM::AEK_NONE) 337ARM_CPU_NAME("cortex-m7", ARMV7EM, FK_FPV5_D16, false, ARM::AEK_NONE) 338ARM_CPU_NAME("cortex-m23", ARMV8MBaseline, FK_NONE, false, ARM::AEK_NONE) 339ARM_CPU_NAME("cortex-m33", ARMV8MMainline, FK_FPV5_SP_D16, false, ARM::AEK_DSP) 340ARM_CPU_NAME("cortex-m35p", ARMV8MMainline, FK_FPV5_SP_D16, false, ARM::AEK_DSP) 341ARM_CPU_NAME("cortex-m55", ARMV8_1MMainline, FK_FP_ARMV8_FULLFP16_D16, false, 342 (ARM::AEK_DSP | ARM::AEK_SIMD | ARM::AEK_FP | ARM::AEK_FP16)) 343ARM_CPU_NAME("cortex-m85", ARMV8_1MMainline, FK_FP_ARMV8_FULLFP16_D16, false, 344 (ARM::AEK_DSP | ARM::AEK_SIMD | ARM::AEK_FP | ARM::AEK_FP16 | 345 ARM::AEK_RAS | ARM::AEK_PACBTI)) 346ARM_CPU_NAME("cortex-m52", ARMV8_1MMainline, FK_FP_ARMV8_FULLFP16_D16, false, 347 (ARM::AEK_DSP | ARM::AEK_SIMD | ARM::AEK_FP | ARM::AEK_FP16 | 348 ARM::AEK_RAS | ARM::AEK_PACBTI)) 349ARM_CPU_NAME("cortex-a32", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false, ARM::AEK_CRC) 350ARM_CPU_NAME("cortex-a35", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false, ARM::AEK_CRC) 351ARM_CPU_NAME("cortex-a53", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false, ARM::AEK_CRC) 352ARM_CPU_NAME("cortex-a55", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 353 (ARM::AEK_FP16 | ARM::AEK_DOTPROD)) 354ARM_CPU_NAME("cortex-a57", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false, ARM::AEK_CRC) 355ARM_CPU_NAME("cortex-a72", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false, ARM::AEK_CRC) 356ARM_CPU_NAME("cortex-a73", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false, ARM::AEK_CRC) 357ARM_CPU_NAME("cortex-a75", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 358 (ARM::AEK_FP16 | ARM::AEK_DOTPROD)) 359ARM_CPU_NAME("cortex-a76", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 360 (ARM::AEK_FP16 | ARM::AEK_DOTPROD)) 361ARM_CPU_NAME("cortex-a76ae", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 362 (ARM::AEK_FP16 | ARM::AEK_DOTPROD)) 363ARM_CPU_NAME("cortex-a77", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 364 (ARM::AEK_FP16 | ARM::AEK_DOTPROD)) 365ARM_CPU_NAME("cortex-a78", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 366 (ARM::AEK_FP16 | ARM::AEK_DOTPROD)) 367ARM_CPU_NAME("cortex-a78ae", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 368 (ARM::AEK_RAS | ARM::AEK_DOTPROD)) 369ARM_CPU_NAME("cortex-a78c", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 370 ARM::AEK_FP16 | ARM::AEK_DOTPROD) 371ARM_CPU_NAME("cortex-a710", ARMV9A, FK_NEON_FP_ARMV8, false, 372 (ARM::AEK_DOTPROD | ARM::AEK_FP16FML | ARM::AEK_BF16 | 373 ARM::AEK_SB | ARM::AEK_I8MM)) 374ARM_CPU_NAME("cortex-x1", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 375 (ARM::AEK_FP16 | ARM::AEK_DOTPROD)) 376ARM_CPU_NAME("cortex-x1c", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 377 (ARM::AEK_FP16 | ARM::AEK_DOTPROD)) 378ARM_CPU_NAME("neoverse-n1", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 379 (ARM::AEK_FP16 | ARM::AEK_DOTPROD)) 380ARM_CPU_NAME("neoverse-n2", ARMV9A, FK_NEON_FP_ARMV8, false, 381 (ARM::AEK_BF16 | ARM::AEK_DOTPROD | ARM::AEK_FP16FML | 382 ARM::AEK_I8MM | ARM::AEK_RAS | ARM::AEK_SB )) 383ARM_CPU_NAME("neoverse-v1", ARMV8_4A, FK_CRYPTO_NEON_FP_ARMV8, false, 384 (ARM::AEK_RAS | ARM::AEK_FP16 | ARM::AEK_BF16 | ARM::AEK_DOTPROD)) 385ARM_CPU_NAME("cyclone", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false, ARM::AEK_CRC) 386ARM_CPU_NAME("exynos-m3", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false, ARM::AEK_CRC) 387ARM_CPU_NAME("exynos-m4", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 388 (ARM::AEK_FP16 | ARM::AEK_DOTPROD)) 389ARM_CPU_NAME("exynos-m5", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false, 390 (ARM::AEK_FP16 | ARM::AEK_DOTPROD)) 391ARM_CPU_NAME("kryo", ARMV8A, FK_CRYPTO_NEON_FP_ARMV8, false, ARM::AEK_CRC) 392// Non-standard Arch names. 393ARM_CPU_NAME("iwmmxt", IWMMXT, FK_NONE, true, ARM::AEK_NONE) 394ARM_CPU_NAME("xscale", XSCALE, FK_NONE, true, ARM::AEK_NONE) 395ARM_CPU_NAME("swift", ARMV7S, FK_NEON_VFPV4, true, 396 (ARM::AEK_HWDIVARM | ARM::AEK_HWDIVTHUMB)) 397// Invalid CPU 398ARM_CPU_NAME("invalid", INVALID, FK_INVALID, true, ARM::AEK_INVALID) 399#undef ARM_CPU_NAME 400