| ... | ... | @@ -10,60 +10,10 @@ const CpuModel = std.Target.Cpu.Model; |
| 10 | 10 | pub const Feature = enum { |
| 11 | 11 | @"32bit", |
| 12 | 12 | @"8msecext", |
| 13 | | a12, |
| 14 | | a15, |
| 15 | | a17, |
| 16 | | a32, |
| 17 | | a35, |
| 18 | | a5, |
| 19 | | a53, |
| 20 | | a55, |
| 21 | | a57, |
| 22 | | a7, |
| 23 | | a72, |
| 24 | | a73, |
| 25 | | a75, |
| 26 | 13 | a76, |
| 27 | | a77, |
| 28 | | a8, |
| 29 | | a9, |
| 30 | 14 | aclass, |
| 31 | 15 | acquire_release, |
| 32 | 16 | aes, |
| 33 | | armv2, |
| 34 | | armv2a, |
| 35 | | armv3, |
| 36 | | armv3m, |
| 37 | | armv4, |
| 38 | | armv4t, |
| 39 | | armv5t, |
| 40 | | armv5te, |
| 41 | | armv5tej, |
| 42 | | armv6, |
| 43 | | armv6_m, |
| 44 | | armv6j, |
| 45 | | armv6k, |
| 46 | | armv6kz, |
| 47 | | armv6s_m, |
| 48 | | armv6t2, |
| 49 | | armv7_a, |
| 50 | | armv7_m, |
| 51 | | armv7_r, |
| 52 | | armv7e_m, |
| 53 | | armv7k, |
| 54 | | armv7s, |
| 55 | | armv7ve, |
| 56 | | armv8_a, |
| 57 | | armv8_m_base, |
| 58 | | armv8_m_main, |
| 59 | | armv8_r, |
| 60 | | armv8_1_a, |
| 61 | | armv8_1_m_main, |
| 62 | | armv8_2_a, |
| 63 | | armv8_3_a, |
| 64 | | armv8_4_a, |
| 65 | | armv8_5_a, |
| 66 | | armv8_6_a, |
| 67 | 17 | avoid_movs_shop, |
| 68 | 18 | avoid_partial_cpsr, |
| 69 | 19 | bf16, |
| ... | ... | @@ -77,8 +27,6 @@ pub const Feature = enum { |
| 77 | 27 | cdecp6, |
| 78 | 28 | cdecp7, |
| 79 | 29 | cheap_predicable_cpsr, |
| 80 | | cortex_a78, |
| 81 | | cortex_x1, |
| 82 | 30 | crc, |
| 83 | 31 | crypto, |
| 84 | 32 | d32, |
| ... | ... | @@ -91,13 +39,13 @@ pub const Feature = enum { |
| 91 | 39 | execute_only, |
| 92 | 40 | expand_fp_mlx, |
| 93 | 41 | exynos, |
| 42 | fp16, |
| 43 | fp16fml, |
| 44 | fp64, |
| 94 | 45 | fp_armv8, |
| 95 | 46 | fp_armv8d16, |
| 96 | 47 | fp_armv8d16sp, |
| 97 | 48 | fp_armv8sp, |
| 98 | | fp16, |
| 99 | | fp16fml, |
| 100 | | fp64, |
| 101 | 49 | fpao, |
| 102 | 50 | fpregs, |
| 103 | 51 | fpregs16, |
| ... | ... | @@ -105,13 +53,30 @@ pub const Feature = enum { |
| 105 | 53 | fullfp16, |
| 106 | 54 | fuse_aes, |
| 107 | 55 | fuse_literals, |
| 56 | has_v4t, |
| 57 | has_v5t, |
| 58 | has_v5te, |
| 59 | has_v6, |
| 60 | has_v6k, |
| 61 | has_v6m, |
| 62 | has_v6t2, |
| 63 | has_v7, |
| 64 | has_v7clrex, |
| 65 | has_v8_1a, |
| 66 | has_v8_1m_main, |
| 67 | has_v8_2a, |
| 68 | has_v8_3a, |
| 69 | has_v8_4a, |
| 70 | has_v8_5a, |
| 71 | has_v8_6a, |
| 72 | has_v8, |
| 73 | has_v8m, |
| 74 | has_v8m_main, |
| 108 | 75 | hwdiv, |
| 109 | 76 | hwdiv_arm, |
| 110 | | _i8mm, |
| 77 | i8mm, |
| 111 | 78 | iwmmxt, |
| 112 | 79 | iwmmxt2, |
| 113 | | krait, |
| 114 | | kryo, |
| 115 | 80 | lob, |
| 116 | 81 | long_calls, |
| 117 | 82 | loop_align, |
| ... | ... | @@ -128,7 +93,6 @@ pub const Feature = enum { |
| 128 | 93 | neon, |
| 129 | 94 | neon_fpmovs, |
| 130 | 95 | neonfp, |
| 131 | | neoverse_v1, |
| 132 | 96 | no_branch_predictor, |
| 133 | 97 | no_movt, |
| 134 | 98 | no_neg_immediates, |
| ... | ... | @@ -139,9 +103,6 @@ pub const Feature = enum { |
| 139 | 103 | prefer_vmovsr, |
| 140 | 104 | prof_unpr, |
| 141 | 105 | r4, |
| 142 | | r5, |
| 143 | | r52, |
| 144 | | r7, |
| 145 | 106 | ras, |
| 146 | 107 | rclass, |
| 147 | 108 | read_tp_hard, |
| ... | ... | @@ -160,20 +121,37 @@ pub const Feature = enum { |
| 160 | 121 | splat_vfp_neon, |
| 161 | 122 | strict_align, |
| 162 | 123 | swift, |
| 163 | | thumb_mode, |
| 164 | 124 | thumb2, |
| 125 | thumb_mode, |
| 165 | 126 | trustzone, |
| 166 | 127 | use_misched, |
| 128 | v2, |
| 129 | v2a, |
| 130 | v3, |
| 131 | v3m, |
| 132 | v4, |
| 167 | 133 | v4t, |
| 168 | 134 | v5t, |
| 169 | 135 | v5te, |
| 136 | v5tej, |
| 170 | 137 | v6, |
| 138 | v6j, |
| 171 | 139 | v6k, |
| 140 | v6kz, |
| 172 | 141 | v6m, |
| 142 | v6sm, |
| 173 | 143 | v6t2, |
| 174 | | v7, |
| 175 | | v7clrex, |
| 176 | | v8, |
| 144 | v7a, |
| 145 | v7em, |
| 146 | v7k, |
| 147 | v7m, |
| 148 | v7r, |
| 149 | v7s, |
| 150 | v7ve, |
| 151 | v8a, |
| 152 | v8m, |
| 153 | v8m_main, |
| 154 | v8r, |
| 177 | 155 | v8_1a, |
| 178 | 156 | v8_1m_main, |
| 179 | 157 | v8_2a, |
| ... | ... | @@ -181,8 +159,6 @@ pub const Feature = enum { |
| 181 | 159 | v8_4a, |
| 182 | 160 | v8_5a, |
| 183 | 161 | v8_6a, |
| 184 | | v8m, |
| 185 | | v8m_main, |
| 186 | 162 | vfp2, |
| 187 | 163 | vfp2sp, |
| 188 | 164 | vfp3, |
| ... | ... | @@ -219,91 +195,11 @@ pub const all_features = blk: { |
| 219 | 195 | .description = "Enable support for ARMv8-M Security Extensions", |
| 220 | 196 | .dependencies = featureSet(&[_]Feature{}), |
| 221 | 197 | }; |
| 222 | | result[@enumToInt(Feature.a12)] = .{ |
| 223 | | .llvm_name = "a12", |
| 224 | | .description = "Cortex-A12 ARM processors", |
| 225 | | .dependencies = featureSet(&[_]Feature{}), |
| 226 | | }; |
| 227 | | result[@enumToInt(Feature.a15)] = .{ |
| 228 | | .llvm_name = "a15", |
| 229 | | .description = "Cortex-A15 ARM processors", |
| 230 | | .dependencies = featureSet(&[_]Feature{}), |
| 231 | | }; |
| 232 | | result[@enumToInt(Feature.a17)] = .{ |
| 233 | | .llvm_name = "a17", |
| 234 | | .description = "Cortex-A17 ARM processors", |
| 235 | | .dependencies = featureSet(&[_]Feature{}), |
| 236 | | }; |
| 237 | | result[@enumToInt(Feature.a32)] = .{ |
| 238 | | .llvm_name = "a32", |
| 239 | | .description = "Cortex-A32 ARM processors", |
| 240 | | .dependencies = featureSet(&[_]Feature{}), |
| 241 | | }; |
| 242 | | result[@enumToInt(Feature.a35)] = .{ |
| 243 | | .llvm_name = "a35", |
| 244 | | .description = "Cortex-A35 ARM processors", |
| 245 | | .dependencies = featureSet(&[_]Feature{}), |
| 246 | | }; |
| 247 | | result[@enumToInt(Feature.a5)] = .{ |
| 248 | | .llvm_name = "a5", |
| 249 | | .description = "Cortex-A5 ARM processors", |
| 250 | | .dependencies = featureSet(&[_]Feature{}), |
| 251 | | }; |
| 252 | | result[@enumToInt(Feature.a53)] = .{ |
| 253 | | .llvm_name = "a53", |
| 254 | | .description = "Cortex-A53 ARM processors", |
| 255 | | .dependencies = featureSet(&[_]Feature{}), |
| 256 | | }; |
| 257 | | result[@enumToInt(Feature.a55)] = .{ |
| 258 | | .llvm_name = "a55", |
| 259 | | .description = "Cortex-A55 ARM processors", |
| 260 | | .dependencies = featureSet(&[_]Feature{}), |
| 261 | | }; |
| 262 | | result[@enumToInt(Feature.a57)] = .{ |
| 263 | | .llvm_name = "a57", |
| 264 | | .description = "Cortex-A57 ARM processors", |
| 265 | | .dependencies = featureSet(&[_]Feature{}), |
| 266 | | }; |
| 267 | | result[@enumToInt(Feature.a7)] = .{ |
| 268 | | .llvm_name = "a7", |
| 269 | | .description = "Cortex-A7 ARM processors", |
| 270 | | .dependencies = featureSet(&[_]Feature{}), |
| 271 | | }; |
| 272 | | result[@enumToInt(Feature.a72)] = .{ |
| 273 | | .llvm_name = "a72", |
| 274 | | .description = "Cortex-A72 ARM processors", |
| 275 | | .dependencies = featureSet(&[_]Feature{}), |
| 276 | | }; |
| 277 | | result[@enumToInt(Feature.a73)] = .{ |
| 278 | | .llvm_name = "a73", |
| 279 | | .description = "Cortex-A73 ARM processors", |
| 280 | | .dependencies = featureSet(&[_]Feature{}), |
| 281 | | }; |
| 282 | | result[@enumToInt(Feature.a75)] = .{ |
| 283 | | .llvm_name = "a75", |
| 284 | | .description = "Cortex-A75 ARM processors", |
| 285 | | .dependencies = featureSet(&[_]Feature{}), |
| 286 | | }; |
| 287 | 198 | result[@enumToInt(Feature.a76)] = .{ |
| 288 | 199 | .llvm_name = "a76", |
| 289 | 200 | .description = "Cortex-A76 ARM processors", |
| 290 | 201 | .dependencies = featureSet(&[_]Feature{}), |
| 291 | 202 | }; |
| 292 | | result[@enumToInt(Feature.a77)] = .{ |
| 293 | | .llvm_name = "a77", |
| 294 | | .description = "Cortex-A77 ARM processors", |
| 295 | | .dependencies = featureSet(&[_]Feature{}), |
| 296 | | }; |
| 297 | | result[@enumToInt(Feature.a8)] = .{ |
| 298 | | .llvm_name = "a8", |
| 299 | | .description = "Cortex-A8 ARM processors", |
| 300 | | .dependencies = featureSet(&[_]Feature{}), |
| 301 | | }; |
| 302 | | result[@enumToInt(Feature.a9)] = .{ |
| 303 | | .llvm_name = "a9", |
| 304 | | .description = "Cortex-A9 ARM processors", |
| 305 | | .dependencies = featureSet(&[_]Feature{}), |
| 306 | | }; |
| 307 | 203 | result[@enumToInt(Feature.aclass)] = .{ |
| 308 | 204 | .llvm_name = "aclass", |
| 309 | 205 | .description = "Is application profile ('A' series)", |
| ... | ... | @@ -321,387 +217,6 @@ pub const all_features = blk: { |
| 321 | 217 | .neon, |
| 322 | 218 | }), |
| 323 | 219 | }; |
| 324 | | result[@enumToInt(Feature.armv2)] = .{ |
| 325 | | .llvm_name = "armv2", |
| 326 | | .description = "ARMv2 architecture", |
| 327 | | .dependencies = featureSet(&[_]Feature{}), |
| 328 | | }; |
| 329 | | result[@enumToInt(Feature.armv2a)] = .{ |
| 330 | | .llvm_name = "armv2a", |
| 331 | | .description = "ARMv2a architecture", |
| 332 | | .dependencies = featureSet(&[_]Feature{}), |
| 333 | | }; |
| 334 | | result[@enumToInt(Feature.armv3)] = .{ |
| 335 | | .llvm_name = "armv3", |
| 336 | | .description = "ARMv3 architecture", |
| 337 | | .dependencies = featureSet(&[_]Feature{}), |
| 338 | | }; |
| 339 | | result[@enumToInt(Feature.armv3m)] = .{ |
| 340 | | .llvm_name = "armv3m", |
| 341 | | .description = "ARMv3m architecture", |
| 342 | | .dependencies = featureSet(&[_]Feature{}), |
| 343 | | }; |
| 344 | | result[@enumToInt(Feature.armv4)] = .{ |
| 345 | | .llvm_name = "armv4", |
| 346 | | .description = "ARMv4 architecture", |
| 347 | | .dependencies = featureSet(&[_]Feature{}), |
| 348 | | }; |
| 349 | | result[@enumToInt(Feature.armv4t)] = .{ |
| 350 | | .llvm_name = "armv4t", |
| 351 | | .description = "ARMv4t architecture", |
| 352 | | .dependencies = featureSet(&[_]Feature{ |
| 353 | | .v4t, |
| 354 | | }), |
| 355 | | }; |
| 356 | | result[@enumToInt(Feature.armv5t)] = .{ |
| 357 | | .llvm_name = "armv5t", |
| 358 | | .description = "ARMv5t architecture", |
| 359 | | .dependencies = featureSet(&[_]Feature{ |
| 360 | | .v5t, |
| 361 | | }), |
| 362 | | }; |
| 363 | | result[@enumToInt(Feature.armv5te)] = .{ |
| 364 | | .llvm_name = "armv5te", |
| 365 | | .description = "ARMv5te architecture", |
| 366 | | .dependencies = featureSet(&[_]Feature{ |
| 367 | | .v5te, |
| 368 | | }), |
| 369 | | }; |
| 370 | | result[@enumToInt(Feature.armv5tej)] = .{ |
| 371 | | .llvm_name = "armv5tej", |
| 372 | | .description = "ARMv5tej architecture", |
| 373 | | .dependencies = featureSet(&[_]Feature{ |
| 374 | | .v5te, |
| 375 | | }), |
| 376 | | }; |
| 377 | | result[@enumToInt(Feature.armv6)] = .{ |
| 378 | | .llvm_name = "armv6", |
| 379 | | .description = "ARMv6 architecture", |
| 380 | | .dependencies = featureSet(&[_]Feature{ |
| 381 | | .dsp, |
| 382 | | .v6, |
| 383 | | }), |
| 384 | | }; |
| 385 | | result[@enumToInt(Feature.armv6_m)] = .{ |
| 386 | | .llvm_name = "armv6-m", |
| 387 | | .description = "ARMv6m architecture", |
| 388 | | .dependencies = featureSet(&[_]Feature{ |
| 389 | | .db, |
| 390 | | .mclass, |
| 391 | | .noarm, |
| 392 | | .strict_align, |
| 393 | | .thumb_mode, |
| 394 | | .v6m, |
| 395 | | }), |
| 396 | | }; |
| 397 | | result[@enumToInt(Feature.armv6j)] = .{ |
| 398 | | .llvm_name = "armv6j", |
| 399 | | .description = "ARMv7a architecture", |
| 400 | | .dependencies = featureSet(&[_]Feature{ |
| 401 | | .armv6, |
| 402 | | }), |
| 403 | | }; |
| 404 | | result[@enumToInt(Feature.armv6k)] = .{ |
| 405 | | .llvm_name = "armv6k", |
| 406 | | .description = "ARMv6k architecture", |
| 407 | | .dependencies = featureSet(&[_]Feature{ |
| 408 | | .v6k, |
| 409 | | }), |
| 410 | | }; |
| 411 | | result[@enumToInt(Feature.armv6kz)] = .{ |
| 412 | | .llvm_name = "armv6kz", |
| 413 | | .description = "ARMv6kz architecture", |
| 414 | | .dependencies = featureSet(&[_]Feature{ |
| 415 | | .trustzone, |
| 416 | | .v6k, |
| 417 | | }), |
| 418 | | }; |
| 419 | | result[@enumToInt(Feature.armv6s_m)] = .{ |
| 420 | | .llvm_name = "armv6s-m", |
| 421 | | .description = "ARMv6sm architecture", |
| 422 | | .dependencies = featureSet(&[_]Feature{ |
| 423 | | .db, |
| 424 | | .mclass, |
| 425 | | .noarm, |
| 426 | | .strict_align, |
| 427 | | .thumb_mode, |
| 428 | | .v6m, |
| 429 | | }), |
| 430 | | }; |
| 431 | | result[@enumToInt(Feature.armv6t2)] = .{ |
| 432 | | .llvm_name = "armv6t2", |
| 433 | | .description = "ARMv6t2 architecture", |
| 434 | | .dependencies = featureSet(&[_]Feature{ |
| 435 | | .dsp, |
| 436 | | .v6t2, |
| 437 | | }), |
| 438 | | }; |
| 439 | | result[@enumToInt(Feature.armv7_a)] = .{ |
| 440 | | .llvm_name = "armv7-a", |
| 441 | | .description = "ARMv7a architecture", |
| 442 | | .dependencies = featureSet(&[_]Feature{ |
| 443 | | .aclass, |
| 444 | | .db, |
| 445 | | .dsp, |
| 446 | | .neon, |
| 447 | | .v7, |
| 448 | | }), |
| 449 | | }; |
| 450 | | result[@enumToInt(Feature.armv7_m)] = .{ |
| 451 | | .llvm_name = "armv7-m", |
| 452 | | .description = "ARMv7m architecture", |
| 453 | | .dependencies = featureSet(&[_]Feature{ |
| 454 | | .db, |
| 455 | | .hwdiv, |
| 456 | | .mclass, |
| 457 | | .noarm, |
| 458 | | .thumb_mode, |
| 459 | | .thumb2, |
| 460 | | .v7, |
| 461 | | }), |
| 462 | | }; |
| 463 | | result[@enumToInt(Feature.armv7_r)] = .{ |
| 464 | | .llvm_name = "armv7-r", |
| 465 | | .description = "ARMv7r architecture", |
| 466 | | .dependencies = featureSet(&[_]Feature{ |
| 467 | | .db, |
| 468 | | .dsp, |
| 469 | | .hwdiv, |
| 470 | | .rclass, |
| 471 | | .v7, |
| 472 | | }), |
| 473 | | }; |
| 474 | | result[@enumToInt(Feature.armv7e_m)] = .{ |
| 475 | | .llvm_name = "armv7e-m", |
| 476 | | .description = "ARMv7em architecture", |
| 477 | | .dependencies = featureSet(&[_]Feature{ |
| 478 | | .db, |
| 479 | | .dsp, |
| 480 | | .hwdiv, |
| 481 | | .mclass, |
| 482 | | .noarm, |
| 483 | | .thumb_mode, |
| 484 | | .thumb2, |
| 485 | | .v7, |
| 486 | | }), |
| 487 | | }; |
| 488 | | result[@enumToInt(Feature.armv7k)] = .{ |
| 489 | | .llvm_name = "armv7k", |
| 490 | | .description = "ARMv7a architecture", |
| 491 | | .dependencies = featureSet(&[_]Feature{ |
| 492 | | .armv7_a, |
| 493 | | }), |
| 494 | | }; |
| 495 | | result[@enumToInt(Feature.armv7s)] = .{ |
| 496 | | .llvm_name = "armv7s", |
| 497 | | .description = "ARMv7a architecture", |
| 498 | | .dependencies = featureSet(&[_]Feature{ |
| 499 | | .armv7_a, |
| 500 | | }), |
| 501 | | }; |
| 502 | | result[@enumToInt(Feature.armv7ve)] = .{ |
| 503 | | .llvm_name = "armv7ve", |
| 504 | | .description = "ARMv7ve architecture", |
| 505 | | .dependencies = featureSet(&[_]Feature{ |
| 506 | | .aclass, |
| 507 | | .db, |
| 508 | | .dsp, |
| 509 | | .mp, |
| 510 | | .neon, |
| 511 | | .trustzone, |
| 512 | | .v7, |
| 513 | | .virtualization, |
| 514 | | }), |
| 515 | | }; |
| 516 | | result[@enumToInt(Feature.armv8_a)] = .{ |
| 517 | | .llvm_name = "armv8-a", |
| 518 | | .description = "ARMv8a architecture", |
| 519 | | .dependencies = featureSet(&[_]Feature{ |
| 520 | | .aclass, |
| 521 | | .crc, |
| 522 | | .crypto, |
| 523 | | .db, |
| 524 | | .dsp, |
| 525 | | .fp_armv8, |
| 526 | | .mp, |
| 527 | | .neon, |
| 528 | | .trustzone, |
| 529 | | .v8, |
| 530 | | .virtualization, |
| 531 | | }), |
| 532 | | }; |
| 533 | | result[@enumToInt(Feature.armv8_m_base)] = .{ |
| 534 | | .llvm_name = "armv8-m.base", |
| 535 | | .description = "ARMv8mBaseline architecture", |
| 536 | | .dependencies = featureSet(&[_]Feature{ |
| 537 | | .@"8msecext", |
| 538 | | .acquire_release, |
| 539 | | .db, |
| 540 | | .hwdiv, |
| 541 | | .mclass, |
| 542 | | .noarm, |
| 543 | | .strict_align, |
| 544 | | .thumb_mode, |
| 545 | | .v7clrex, |
| 546 | | .v8m, |
| 547 | | }), |
| 548 | | }; |
| 549 | | result[@enumToInt(Feature.armv8_m_main)] = .{ |
| 550 | | .llvm_name = "armv8-m.main", |
| 551 | | .description = "ARMv8mMainline architecture", |
| 552 | | .dependencies = featureSet(&[_]Feature{ |
| 553 | | .@"8msecext", |
| 554 | | .acquire_release, |
| 555 | | .db, |
| 556 | | .hwdiv, |
| 557 | | .mclass, |
| 558 | | .noarm, |
| 559 | | .thumb_mode, |
| 560 | | .v8m_main, |
| 561 | | }), |
| 562 | | }; |
| 563 | | result[@enumToInt(Feature.armv8_r)] = .{ |
| 564 | | .llvm_name = "armv8-r", |
| 565 | | .description = "ARMv8r architecture", |
| 566 | | .dependencies = featureSet(&[_]Feature{ |
| 567 | | .crc, |
| 568 | | .db, |
| 569 | | .dfb, |
| 570 | | .dsp, |
| 571 | | .fp_armv8, |
| 572 | | .mp, |
| 573 | | .neon, |
| 574 | | .rclass, |
| 575 | | .v8, |
| 576 | | .virtualization, |
| 577 | | }), |
| 578 | | }; |
| 579 | | result[@enumToInt(Feature.armv8_1_a)] = .{ |
| 580 | | .llvm_name = "armv8.1-a", |
| 581 | | .description = "ARMv81a architecture", |
| 582 | | .dependencies = featureSet(&[_]Feature{ |
| 583 | | .aclass, |
| 584 | | .crc, |
| 585 | | .crypto, |
| 586 | | .db, |
| 587 | | .dsp, |
| 588 | | .fp_armv8, |
| 589 | | .mp, |
| 590 | | .neon, |
| 591 | | .trustzone, |
| 592 | | .v8_1a, |
| 593 | | .virtualization, |
| 594 | | }), |
| 595 | | }; |
| 596 | | result[@enumToInt(Feature.armv8_1_m_main)] = .{ |
| 597 | | .llvm_name = "armv8.1-m.main", |
| 598 | | .description = "ARMv81mMainline architecture", |
| 599 | | .dependencies = featureSet(&[_]Feature{ |
| 600 | | .@"8msecext", |
| 601 | | .acquire_release, |
| 602 | | .db, |
| 603 | | .hwdiv, |
| 604 | | .lob, |
| 605 | | .mclass, |
| 606 | | .noarm, |
| 607 | | .ras, |
| 608 | | .thumb_mode, |
| 609 | | .v8_1m_main, |
| 610 | | }), |
| 611 | | }; |
| 612 | | result[@enumToInt(Feature.armv8_2_a)] = .{ |
| 613 | | .llvm_name = "armv8.2-a", |
| 614 | | .description = "ARMv82a architecture", |
| 615 | | .dependencies = featureSet(&[_]Feature{ |
| 616 | | .aclass, |
| 617 | | .crc, |
| 618 | | .crypto, |
| 619 | | .db, |
| 620 | | .dsp, |
| 621 | | .fp_armv8, |
| 622 | | .mp, |
| 623 | | .neon, |
| 624 | | .ras, |
| 625 | | .trustzone, |
| 626 | | .v8_2a, |
| 627 | | .virtualization, |
| 628 | | }), |
| 629 | | }; |
| 630 | | result[@enumToInt(Feature.armv8_3_a)] = .{ |
| 631 | | .llvm_name = "armv8.3-a", |
| 632 | | .description = "ARMv83a architecture", |
| 633 | | .dependencies = featureSet(&[_]Feature{ |
| 634 | | .aclass, |
| 635 | | .crc, |
| 636 | | .crypto, |
| 637 | | .db, |
| 638 | | .dsp, |
| 639 | | .fp_armv8, |
| 640 | | .mp, |
| 641 | | .neon, |
| 642 | | .ras, |
| 643 | | .trustzone, |
| 644 | | .v8_3a, |
| 645 | | .virtualization, |
| 646 | | }), |
| 647 | | }; |
| 648 | | result[@enumToInt(Feature.armv8_4_a)] = .{ |
| 649 | | .llvm_name = "armv8.4-a", |
| 650 | | .description = "ARMv84a architecture", |
| 651 | | .dependencies = featureSet(&[_]Feature{ |
| 652 | | .aclass, |
| 653 | | .crc, |
| 654 | | .crypto, |
| 655 | | .db, |
| 656 | | .dotprod, |
| 657 | | .dsp, |
| 658 | | .fp_armv8, |
| 659 | | .mp, |
| 660 | | .neon, |
| 661 | | .ras, |
| 662 | | .trustzone, |
| 663 | | .v8_4a, |
| 664 | | .virtualization, |
| 665 | | }), |
| 666 | | }; |
| 667 | | result[@enumToInt(Feature.armv8_5_a)] = .{ |
| 668 | | .llvm_name = "armv8.5-a", |
| 669 | | .description = "ARMv85a architecture", |
| 670 | | .dependencies = featureSet(&[_]Feature{ |
| 671 | | .aclass, |
| 672 | | .crc, |
| 673 | | .crypto, |
| 674 | | .db, |
| 675 | | .dotprod, |
| 676 | | .dsp, |
| 677 | | .fp_armv8, |
| 678 | | .mp, |
| 679 | | .neon, |
| 680 | | .ras, |
| 681 | | .trustzone, |
| 682 | | .v8_5a, |
| 683 | | .virtualization, |
| 684 | | }), |
| 685 | | }; |
| 686 | | result[@enumToInt(Feature.armv8_6_a)] = .{ |
| 687 | | .llvm_name = "armv8.6-a", |
| 688 | | .description = "ARMv86a architecture", |
| 689 | | .dependencies = featureSet(&[_]Feature{ |
| 690 | | .aclass, |
| 691 | | .crc, |
| 692 | | .crypto, |
| 693 | | .db, |
| 694 | | .dotprod, |
| 695 | | .dsp, |
| 696 | | .fp_armv8, |
| 697 | | .mp, |
| 698 | | .neon, |
| 699 | | .ras, |
| 700 | | .trustzone, |
| 701 | | .v8_6a, |
| 702 | | .virtualization, |
| 703 | | }), |
| 704 | | }; |
| 705 | 220 | result[@enumToInt(Feature.avoid_movs_shop)] = .{ |
| 706 | 221 | .llvm_name = "avoid-movs-shop", |
| 707 | 222 | .description = "Avoid movs instructions with shifter operand", |
| ... | ... | @@ -787,16 +302,6 @@ pub const all_features = blk: { |
| 787 | 302 | .description = "Disable +1 predication cost for instructions updating CPSR", |
| 788 | 303 | .dependencies = featureSet(&[_]Feature{}), |
| 789 | 304 | }; |
| 790 | | result[@enumToInt(Feature.cortex_a78)] = .{ |
| 791 | | .llvm_name = "cortex-a78", |
| 792 | | .description = "Cortex-A78 ARM processors", |
| 793 | | .dependencies = featureSet(&[_]Feature{}), |
| 794 | | }; |
| 795 | | result[@enumToInt(Feature.cortex_x1)] = .{ |
| 796 | | .llvm_name = "cortex-x1", |
| 797 | | .description = "Cortex-X1 ARM processors", |
| 798 | | .dependencies = featureSet(&[_]Feature{}), |
| 799 | | }; |
| 800 | 305 | result[@enumToInt(Feature.crc)] = .{ |
| 801 | 306 | .llvm_name = "crc", |
| 802 | 307 | .description = "Enable support for CRC instructions", |
| ... | ... | @@ -881,6 +386,25 @@ pub const all_features = blk: { |
| 881 | 386 | .zcz, |
| 882 | 387 | }), |
| 883 | 388 | }; |
| 389 | result[@enumToInt(Feature.fp16)] = .{ |
| 390 | .llvm_name = "fp16", |
| 391 | .description = "Enable half-precision floating point", |
| 392 | .dependencies = featureSet(&[_]Feature{}), |
| 393 | }; |
| 394 | result[@enumToInt(Feature.fp16fml)] = .{ |
| 395 | .llvm_name = "fp16fml", |
| 396 | .description = "Enable full half-precision floating point fml instructions", |
| 397 | .dependencies = featureSet(&[_]Feature{ |
| 398 | .fullfp16, |
| 399 | }), |
| 400 | }; |
| 401 | result[@enumToInt(Feature.fp64)] = .{ |
| 402 | .llvm_name = "fp64", |
| 403 | .description = "Floating point unit supports double precision", |
| 404 | .dependencies = featureSet(&[_]Feature{ |
| 405 | .fpregs64, |
| 406 | }), |
| 407 | }; |
| 884 | 408 | result[@enumToInt(Feature.fp_armv8)] = .{ |
| 885 | 409 | .llvm_name = "fp-armv8", |
| 886 | 410 | .description = "Enable ARMv8 FP", |
| ... | ... | @@ -915,66 +439,185 @@ pub const all_features = blk: { |
| 915 | 439 | .vfp4sp, |
| 916 | 440 | }), |
| 917 | 441 | }; |
| 918 | | result[@enumToInt(Feature.fp16)] = .{ |
| 919 | | .llvm_name = "fp16", |
| 920 | | .description = "Enable half-precision floating point", |
| 442 | result[@enumToInt(Feature.fpao)] = .{ |
| 443 | .llvm_name = "fpao", |
| 444 | .description = "Enable fast computation of positive address offsets", |
| 921 | 445 | .dependencies = featureSet(&[_]Feature{}), |
| 922 | 446 | }; |
| 923 | | result[@enumToInt(Feature.fp16fml)] = .{ |
| 924 | | .llvm_name = "fp16fml", |
| 925 | | .description = "Enable full half-precision floating point fml instructions", |
| 447 | result[@enumToInt(Feature.fpregs)] = .{ |
| 448 | .llvm_name = "fpregs", |
| 449 | .description = "Enable FP registers", |
| 450 | .dependencies = featureSet(&[_]Feature{}), |
| 451 | }; |
| 452 | result[@enumToInt(Feature.fpregs16)] = .{ |
| 453 | .llvm_name = "fpregs16", |
| 454 | .description = "Enable 16-bit FP registers", |
| 455 | .dependencies = featureSet(&[_]Feature{ |
| 456 | .fpregs, |
| 457 | }), |
| 458 | }; |
| 459 | result[@enumToInt(Feature.fpregs64)] = .{ |
| 460 | .llvm_name = "fpregs64", |
| 461 | .description = "Enable 64-bit FP registers", |
| 462 | .dependencies = featureSet(&[_]Feature{ |
| 463 | .fpregs, |
| 464 | }), |
| 465 | }; |
| 466 | result[@enumToInt(Feature.fullfp16)] = .{ |
| 467 | .llvm_name = "fullfp16", |
| 468 | .description = "Enable full half-precision floating point", |
| 469 | .dependencies = featureSet(&[_]Feature{ |
| 470 | .fp_armv8d16sp, |
| 471 | .fpregs16, |
| 472 | }), |
| 473 | }; |
| 474 | result[@enumToInt(Feature.fuse_aes)] = .{ |
| 475 | .llvm_name = "fuse-aes", |
| 476 | .description = "CPU fuses AES crypto operations", |
| 477 | .dependencies = featureSet(&[_]Feature{}), |
| 478 | }; |
| 479 | result[@enumToInt(Feature.fuse_literals)] = .{ |
| 480 | .llvm_name = "fuse-literals", |
| 481 | .description = "CPU fuses literal generation operations", |
| 482 | .dependencies = featureSet(&[_]Feature{}), |
| 483 | }; |
| 484 | result[@enumToInt(Feature.has_v4t)] = .{ |
| 485 | .llvm_name = "v4t", |
| 486 | .description = "Support ARM v4T instructions", |
| 487 | .dependencies = featureSet(&[_]Feature{}), |
| 488 | }; |
| 489 | result[@enumToInt(Feature.has_v5t)] = .{ |
| 490 | .llvm_name = "v5t", |
| 491 | .description = "Support ARM v5T instructions", |
| 492 | .dependencies = featureSet(&[_]Feature{ |
| 493 | .has_v4t, |
| 494 | }), |
| 495 | }; |
| 496 | result[@enumToInt(Feature.has_v5te)] = .{ |
| 497 | .llvm_name = "v5te", |
| 498 | .description = "Support ARM v5TE, v5TEj, and v5TExp instructions", |
| 499 | .dependencies = featureSet(&[_]Feature{ |
| 500 | .has_v5t, |
| 501 | }), |
| 502 | }; |
| 503 | result[@enumToInt(Feature.has_v6)] = .{ |
| 504 | .llvm_name = "v6", |
| 505 | .description = "Support ARM v6 instructions", |
| 506 | .dependencies = featureSet(&[_]Feature{ |
| 507 | .has_v5te, |
| 508 | }), |
| 509 | }; |
| 510 | result[@enumToInt(Feature.has_v6k)] = .{ |
| 511 | .llvm_name = "v6k", |
| 512 | .description = "Support ARM v6k instructions", |
| 513 | .dependencies = featureSet(&[_]Feature{ |
| 514 | .has_v6, |
| 515 | }), |
| 516 | }; |
| 517 | result[@enumToInt(Feature.has_v6m)] = .{ |
| 518 | .llvm_name = "v6m", |
| 519 | .description = "Support ARM v6M instructions", |
| 520 | .dependencies = featureSet(&[_]Feature{ |
| 521 | .has_v6, |
| 522 | }), |
| 523 | }; |
| 524 | result[@enumToInt(Feature.has_v6t2)] = .{ |
| 525 | .llvm_name = "v6t2", |
| 526 | .description = "Support ARM v6t2 instructions", |
| 527 | .dependencies = featureSet(&[_]Feature{ |
| 528 | .thumb2, |
| 529 | .has_v6k, |
| 530 | .has_v8m, |
| 531 | }), |
| 532 | }; |
| 533 | result[@enumToInt(Feature.has_v7)] = .{ |
| 534 | .llvm_name = "v7", |
| 535 | .description = "Support ARM v7 instructions", |
| 536 | .dependencies = featureSet(&[_]Feature{ |
| 537 | .perfmon, |
| 538 | .has_v6t2, |
| 539 | .has_v7clrex, |
| 540 | }), |
| 541 | }; |
| 542 | result[@enumToInt(Feature.has_v7clrex)] = .{ |
| 543 | .llvm_name = "v7clrex", |
| 544 | .description = "Has v7 clrex instruction", |
| 545 | .dependencies = featureSet(&[_]Feature{}), |
| 546 | }; |
| 547 | result[@enumToInt(Feature.has_v8)] = .{ |
| 548 | .llvm_name = "v8", |
| 549 | .description = "Support ARM v8 instructions", |
| 550 | .dependencies = featureSet(&[_]Feature{ |
| 551 | .acquire_release, |
| 552 | .has_v7, |
| 553 | }), |
| 554 | }; |
| 555 | result[@enumToInt(Feature.has_v8_1a)] = .{ |
| 556 | .llvm_name = "v8.1a", |
| 557 | .description = "Support ARM v8.1a instructions", |
| 926 | 558 | .dependencies = featureSet(&[_]Feature{ |
| 927 | | .fullfp16, |
| 559 | .has_v8, |
| 928 | 560 | }), |
| 929 | 561 | }; |
| 930 | | result[@enumToInt(Feature.fp64)] = .{ |
| 931 | | .llvm_name = "fp64", |
| 932 | | .description = "Floating point unit supports double precision", |
| 562 | result[@enumToInt(Feature.has_v8_1m_main)] = .{ |
| 563 | .llvm_name = "v8.1m.main", |
| 564 | .description = "Support ARM v8-1M Mainline instructions", |
| 933 | 565 | .dependencies = featureSet(&[_]Feature{ |
| 934 | | .fpregs64, |
| 566 | .has_v8m_main, |
| 935 | 567 | }), |
| 936 | 568 | }; |
| 937 | | result[@enumToInt(Feature.fpao)] = .{ |
| 938 | | .llvm_name = "fpao", |
| 939 | | .description = "Enable fast computation of positive address offsets", |
| 940 | | .dependencies = featureSet(&[_]Feature{}), |
| 569 | result[@enumToInt(Feature.has_v8_2a)] = .{ |
| 570 | .llvm_name = "v8.2a", |
| 571 | .description = "Support ARM v8.2a instructions", |
| 572 | .dependencies = featureSet(&[_]Feature{ |
| 573 | .has_v8_1a, |
| 574 | }), |
| 941 | 575 | }; |
| 942 | | result[@enumToInt(Feature.fpregs)] = .{ |
| 943 | | .llvm_name = "fpregs", |
| 944 | | .description = "Enable FP registers", |
| 945 | | .dependencies = featureSet(&[_]Feature{}), |
| 576 | result[@enumToInt(Feature.has_v8_3a)] = .{ |
| 577 | .llvm_name = "v8.3a", |
| 578 | .description = "Support ARM v8.3a instructions", |
| 579 | .dependencies = featureSet(&[_]Feature{ |
| 580 | .has_v8_2a, |
| 581 | }), |
| 946 | 582 | }; |
| 947 | | result[@enumToInt(Feature.fpregs16)] = .{ |
| 948 | | .llvm_name = "fpregs16", |
| 949 | | .description = "Enable 16-bit FP registers", |
| 583 | result[@enumToInt(Feature.has_v8_4a)] = .{ |
| 584 | .llvm_name = "v8.4a", |
| 585 | .description = "Support ARM v8.4a instructions", |
| 950 | 586 | .dependencies = featureSet(&[_]Feature{ |
| 951 | | .fpregs, |
| 587 | .dotprod, |
| 588 | .has_v8_3a, |
| 952 | 589 | }), |
| 953 | 590 | }; |
| 954 | | result[@enumToInt(Feature.fpregs64)] = .{ |
| 955 | | .llvm_name = "fpregs64", |
| 956 | | .description = "Enable 64-bit FP registers", |
| 591 | result[@enumToInt(Feature.has_v8_5a)] = .{ |
| 592 | .llvm_name = "v8.5a", |
| 593 | .description = "Support ARM v8.5a instructions", |
| 957 | 594 | .dependencies = featureSet(&[_]Feature{ |
| 958 | | .fpregs, |
| 595 | .sb, |
| 596 | .has_v8_4a, |
| 959 | 597 | }), |
| 960 | 598 | }; |
| 961 | | result[@enumToInt(Feature.fullfp16)] = .{ |
| 962 | | .llvm_name = "fullfp16", |
| 963 | | .description = "Enable full half-precision floating point", |
| 599 | result[@enumToInt(Feature.has_v8_6a)] = .{ |
| 600 | .llvm_name = "v8.6a", |
| 601 | .description = "Support ARM v8.6a instructions", |
| 964 | 602 | .dependencies = featureSet(&[_]Feature{ |
| 965 | | .fp_armv8d16sp, |
| 966 | | .fpregs16, |
| 603 | .bf16, |
| 604 | .i8mm, |
| 605 | .has_v8_5a, |
| 967 | 606 | }), |
| 968 | 607 | }; |
| 969 | | result[@enumToInt(Feature.fuse_aes)] = .{ |
| 970 | | .llvm_name = "fuse-aes", |
| 971 | | .description = "CPU fuses AES crypto operations", |
| 972 | | .dependencies = featureSet(&[_]Feature{}), |
| 608 | result[@enumToInt(Feature.has_v8m)] = .{ |
| 609 | .llvm_name = "v8m", |
| 610 | .description = "Support ARM v8M Baseline instructions", |
| 611 | .dependencies = featureSet(&[_]Feature{ |
| 612 | .has_v6m, |
| 613 | }), |
| 973 | 614 | }; |
| 974 | | result[@enumToInt(Feature.fuse_literals)] = .{ |
| 975 | | .llvm_name = "fuse-literals", |
| 976 | | .description = "CPU fuses literal generation operations", |
| 977 | | .dependencies = featureSet(&[_]Feature{}), |
| 615 | result[@enumToInt(Feature.has_v8m_main)] = .{ |
| 616 | .llvm_name = "v8m.main", |
| 617 | .description = "Support ARM v8M Mainline instructions", |
| 618 | .dependencies = featureSet(&[_]Feature{ |
| 619 | .has_v7, |
| 620 | }), |
| 978 | 621 | }; |
| 979 | 622 | result[@enumToInt(Feature.hwdiv)] = .{ |
| 980 | 623 | .llvm_name = "hwdiv", |
| ... | ... | @@ -986,7 +629,7 @@ pub const all_features = blk: { |
| 986 | 629 | .description = "Enable divide instructions in ARM mode", |
| 987 | 630 | .dependencies = featureSet(&[_]Feature{}), |
| 988 | 631 | }; |
| 989 | | result[@enumToInt(Feature._i8mm)] = .{ |
| 632 | result[@enumToInt(Feature.i8mm)] = .{ |
| 990 | 633 | .llvm_name = "i8mm", |
| 991 | 634 | .description = "Enable Matrix Multiply Int8 Extension", |
| 992 | 635 | .dependencies = featureSet(&[_]Feature{ |
| ... | ... | @@ -997,26 +640,16 @@ pub const all_features = blk: { |
| 997 | 640 | .llvm_name = "iwmmxt", |
| 998 | 641 | .description = "ARMv5te architecture", |
| 999 | 642 | .dependencies = featureSet(&[_]Feature{ |
| 1000 | | .armv5te, |
| 643 | .has_v5te, |
| 1001 | 644 | }), |
| 1002 | 645 | }; |
| 1003 | 646 | result[@enumToInt(Feature.iwmmxt2)] = .{ |
| 1004 | 647 | .llvm_name = "iwmmxt2", |
| 1005 | 648 | .description = "ARMv5te architecture", |
| 1006 | 649 | .dependencies = featureSet(&[_]Feature{ |
| 1007 | | .armv5te, |
| 650 | .has_v5te, |
| 1008 | 651 | }), |
| 1009 | 652 | }; |
| 1010 | | result[@enumToInt(Feature.krait)] = .{ |
| 1011 | | .llvm_name = "krait", |
| 1012 | | .description = "Qualcomm Krait processors", |
| 1013 | | .dependencies = featureSet(&[_]Feature{}), |
| 1014 | | }; |
| 1015 | | result[@enumToInt(Feature.kryo)] = .{ |
| 1016 | | .llvm_name = "kryo", |
| 1017 | | .description = "Qualcomm Kryo processors", |
| 1018 | | .dependencies = featureSet(&[_]Feature{}), |
| 1019 | | }; |
| 1020 | 653 | result[@enumToInt(Feature.lob)] = .{ |
| 1021 | 654 | .llvm_name = "lob", |
| 1022 | 655 | .description = "Enable Low Overhead Branch extensions", |
| ... | ... | @@ -1059,7 +692,7 @@ pub const all_features = blk: { |
| 1059 | 692 | .dsp, |
| 1060 | 693 | .fpregs16, |
| 1061 | 694 | .fpregs64, |
| 1062 | | .v8_1m_main, |
| 695 | .has_v8_1m_main, |
| 1063 | 696 | }), |
| 1064 | 697 | }; |
| 1065 | 698 | result[@enumToInt(Feature.mve_fp)] = .{ |
| ... | ... | @@ -1108,11 +741,6 @@ pub const all_features = blk: { |
| 1108 | 741 | .description = "Use NEON for single precision FP", |
| 1109 | 742 | .dependencies = featureSet(&[_]Feature{}), |
| 1110 | 743 | }; |
| 1111 | | result[@enumToInt(Feature.neoverse_v1)] = .{ |
| 1112 | | .llvm_name = "neoverse-v1", |
| 1113 | | .description = "Neoverse-V1 ARM processors", |
| 1114 | | .dependencies = featureSet(&[_]Feature{}), |
| 1115 | | }; |
| 1116 | 744 | result[@enumToInt(Feature.no_branch_predictor)] = .{ |
| 1117 | 745 | .llvm_name = "no-branch-predictor", |
| 1118 | 746 | .description = "Has no branch predictor", |
| ... | ... | @@ -1163,21 +791,6 @@ pub const all_features = blk: { |
| 1163 | 791 | .description = "Cortex-R4 ARM processors", |
| 1164 | 792 | .dependencies = featureSet(&[_]Feature{}), |
| 1165 | 793 | }; |
| 1166 | | result[@enumToInt(Feature.r5)] = .{ |
| 1167 | | .llvm_name = "r5", |
| 1168 | | .description = "Cortex-R5 ARM processors", |
| 1169 | | .dependencies = featureSet(&[_]Feature{}), |
| 1170 | | }; |
| 1171 | | result[@enumToInt(Feature.r52)] = .{ |
| 1172 | | .llvm_name = "r52", |
| 1173 | | .description = "Cortex-R52 ARM processors", |
| 1174 | | .dependencies = featureSet(&[_]Feature{}), |
| 1175 | | }; |
| 1176 | | result[@enumToInt(Feature.r7)] = .{ |
| 1177 | | .llvm_name = "r7", |
| 1178 | | .description = "Cortex-R7 ARM processors", |
| 1179 | | .dependencies = featureSet(&[_]Feature{}), |
| 1180 | | }; |
| 1181 | 794 | result[@enumToInt(Feature.ras)] = .{ |
| 1182 | 795 | .llvm_name = "ras", |
| 1183 | 796 | .description = "Enable Reliability, Availability and Serviceability extensions", |
| ... | ... | @@ -1272,16 +885,16 @@ pub const all_features = blk: { |
| 1272 | 885 | .description = "Swift ARM processors", |
| 1273 | 886 | .dependencies = featureSet(&[_]Feature{}), |
| 1274 | 887 | }; |
| 1275 | | result[@enumToInt(Feature.thumb_mode)] = .{ |
| 1276 | | .llvm_name = "thumb-mode", |
| 1277 | | .description = "Thumb mode", |
| 1278 | | .dependencies = featureSet(&[_]Feature{}), |
| 1279 | | }; |
| 1280 | 888 | result[@enumToInt(Feature.thumb2)] = .{ |
| 1281 | 889 | .llvm_name = "thumb2", |
| 1282 | 890 | .description = "Enable Thumb2 instructions", |
| 1283 | 891 | .dependencies = featureSet(&[_]Feature{}), |
| 1284 | 892 | }; |
| 893 | result[@enumToInt(Feature.thumb_mode)] = .{ |
| 894 | .llvm_name = "thumb-mode", |
| 895 | .description = "Thumb mode", |
| 896 | .dependencies = featureSet(&[_]Feature{}), |
| 897 | }; |
| 1285 | 898 | result[@enumToInt(Feature.trustzone)] = .{ |
| 1286 | 899 | .llvm_name = "trustzone", |
| 1287 | 900 | .description = "Enable support for TrustZone security extensions", |
| ... | ... | @@ -1292,142 +905,399 @@ pub const all_features = blk: { |
| 1292 | 905 | .description = "Use the MachineScheduler", |
| 1293 | 906 | .dependencies = featureSet(&[_]Feature{}), |
| 1294 | 907 | }; |
| 908 | result[@enumToInt(Feature.v2)] = .{ |
| 909 | .llvm_name = "armv2", |
| 910 | .description = "ARMv2 architecture", |
| 911 | .dependencies = featureSet(&[_]Feature{ |
| 912 | .strict_align, |
| 913 | }), |
| 914 | }; |
| 915 | result[@enumToInt(Feature.v2a)] = .{ |
| 916 | .llvm_name = "armv2a", |
| 917 | .description = "ARMv2a architecture", |
| 918 | .dependencies = featureSet(&[_]Feature{ |
| 919 | .strict_align, |
| 920 | }), |
| 921 | }; |
| 922 | result[@enumToInt(Feature.v3)] = .{ |
| 923 | .llvm_name = "armv3", |
| 924 | .description = "ARMv3 architecture", |
| 925 | .dependencies = featureSet(&[_]Feature{ |
| 926 | .strict_align, |
| 927 | }), |
| 928 | }; |
| 929 | result[@enumToInt(Feature.v3m)] = .{ |
| 930 | .llvm_name = "armv3m", |
| 931 | .description = "ARMv3m architecture", |
| 932 | .dependencies = featureSet(&[_]Feature{ |
| 933 | .strict_align, |
| 934 | }), |
| 935 | }; |
| 936 | result[@enumToInt(Feature.v4)] = .{ |
| 937 | .llvm_name = "armv4", |
| 938 | .description = "ARMv4 architecture", |
| 939 | .dependencies = featureSet(&[_]Feature{ |
| 940 | .strict_align, |
| 941 | }), |
| 942 | }; |
| 1295 | 943 | result[@enumToInt(Feature.v4t)] = .{ |
| 1296 | | .llvm_name = "v4t", |
| 1297 | | .description = "Support ARM v4T instructions", |
| 1298 | | .dependencies = featureSet(&[_]Feature{}), |
| 944 | .llvm_name = "armv4t", |
| 945 | .description = "ARMv4t architecture", |
| 946 | .dependencies = featureSet(&[_]Feature{ |
| 947 | .strict_align, |
| 948 | .has_v4t, |
| 949 | }), |
| 1299 | 950 | }; |
| 1300 | 951 | result[@enumToInt(Feature.v5t)] = .{ |
| 1301 | | .llvm_name = "v5t", |
| 1302 | | .description = "Support ARM v5T instructions", |
| 952 | .llvm_name = "armv5t", |
| 953 | .description = "ARMv5t architecture", |
| 1303 | 954 | .dependencies = featureSet(&[_]Feature{ |
| 1304 | | .v4t, |
| 955 | .strict_align, |
| 956 | .has_v5t, |
| 1305 | 957 | }), |
| 1306 | 958 | }; |
| 1307 | 959 | result[@enumToInt(Feature.v5te)] = .{ |
| 1308 | | .llvm_name = "v5te", |
| 1309 | | .description = "Support ARM v5TE, v5TEj, and v5TExp instructions", |
| 960 | .llvm_name = "armv5te", |
| 961 | .description = "ARMv5te architecture", |
| 1310 | 962 | .dependencies = featureSet(&[_]Feature{ |
| 1311 | | .v5t, |
| 963 | .strict_align, |
| 964 | .has_v5te, |
| 965 | }), |
| 966 | }; |
| 967 | result[@enumToInt(Feature.v5tej)] = .{ |
| 968 | .llvm_name = "armv5tej", |
| 969 | .description = "ARMv5tej architecture", |
| 970 | .dependencies = featureSet(&[_]Feature{ |
| 971 | .strict_align, |
| 972 | .has_v5te, |
| 1312 | 973 | }), |
| 1313 | 974 | }; |
| 1314 | 975 | result[@enumToInt(Feature.v6)] = .{ |
| 1315 | | .llvm_name = "v6", |
| 1316 | | .description = "Support ARM v6 instructions", |
| 976 | .llvm_name = "armv6", |
| 977 | .description = "ARMv6 architecture", |
| 1317 | 978 | .dependencies = featureSet(&[_]Feature{ |
| 1318 | | .v5te, |
| 979 | .dsp, |
| 980 | .has_v6, |
| 1319 | 981 | }), |
| 1320 | 982 | }; |
| 1321 | | result[@enumToInt(Feature.v6k)] = .{ |
| 1322 | | .llvm_name = "v6k", |
| 1323 | | .description = "Support ARM v6k instructions", |
| 983 | result[@enumToInt(Feature.v6m)] = .{ |
| 984 | .llvm_name = "armv6-m", |
| 985 | .description = "ARMv6m architecture", |
| 986 | .dependencies = featureSet(&[_]Feature{ |
| 987 | .db, |
| 988 | .mclass, |
| 989 | .noarm, |
| 990 | .strict_align, |
| 991 | .thumb_mode, |
| 992 | .has_v6m, |
| 993 | }), |
| 994 | }; |
| 995 | result[@enumToInt(Feature.v6j)] = .{ |
| 996 | .llvm_name = "armv6j", |
| 997 | .description = "ARMv7a architecture", |
| 1324 | 998 | .dependencies = featureSet(&[_]Feature{ |
| 1325 | 999 | .v6, |
| 1326 | 1000 | }), |
| 1327 | 1001 | }; |
| 1328 | | result[@enumToInt(Feature.v6m)] = .{ |
| 1329 | | .llvm_name = "v6m", |
| 1330 | | .description = "Support ARM v6M instructions", |
| 1002 | result[@enumToInt(Feature.v6k)] = .{ |
| 1003 | .llvm_name = "armv6k", |
| 1004 | .description = "ARMv6k architecture", |
| 1005 | .dependencies = featureSet(&[_]Feature{ |
| 1006 | .has_v6k, |
| 1007 | }), |
| 1008 | }; |
| 1009 | result[@enumToInt(Feature.v6kz)] = .{ |
| 1010 | .llvm_name = "armv6kz", |
| 1011 | .description = "ARMv6kz architecture", |
| 1012 | .dependencies = featureSet(&[_]Feature{ |
| 1013 | .trustzone, |
| 1014 | .has_v6k, |
| 1015 | }), |
| 1016 | }; |
| 1017 | result[@enumToInt(Feature.v6sm)] = .{ |
| 1018 | .llvm_name = "armv6s-m", |
| 1019 | .description = "ARMv6sm architecture", |
| 1020 | .dependencies = featureSet(&[_]Feature{ |
| 1021 | .db, |
| 1022 | .mclass, |
| 1023 | .noarm, |
| 1024 | .strict_align, |
| 1025 | .thumb_mode, |
| 1026 | .has_v6m, |
| 1027 | }), |
| 1028 | }; |
| 1029 | result[@enumToInt(Feature.v6t2)] = .{ |
| 1030 | .llvm_name = "armv6t2", |
| 1031 | .description = "ARMv6t2 architecture", |
| 1032 | .dependencies = featureSet(&[_]Feature{ |
| 1033 | .dsp, |
| 1034 | .has_v6t2, |
| 1035 | }), |
| 1036 | }; |
| 1037 | result[@enumToInt(Feature.v7a)] = .{ |
| 1038 | .llvm_name = "armv7-a", |
| 1039 | .description = "ARMv7a architecture", |
| 1040 | .dependencies = featureSet(&[_]Feature{ |
| 1041 | .aclass, |
| 1042 | .db, |
| 1043 | .dsp, |
| 1044 | .neon, |
| 1045 | .has_v7, |
| 1046 | }), |
| 1047 | }; |
| 1048 | result[@enumToInt(Feature.v7m)] = .{ |
| 1049 | .llvm_name = "armv7-m", |
| 1050 | .description = "ARMv7m architecture", |
| 1051 | .dependencies = featureSet(&[_]Feature{ |
| 1052 | .db, |
| 1053 | .hwdiv, |
| 1054 | .mclass, |
| 1055 | .noarm, |
| 1056 | .thumb_mode, |
| 1057 | .thumb2, |
| 1058 | .has_v7, |
| 1059 | }), |
| 1060 | }; |
| 1061 | result[@enumToInt(Feature.v7r)] = .{ |
| 1062 | .llvm_name = "armv7-r", |
| 1063 | .description = "ARMv7r architecture", |
| 1064 | .dependencies = featureSet(&[_]Feature{ |
| 1065 | .db, |
| 1066 | .dsp, |
| 1067 | .hwdiv, |
| 1068 | .rclass, |
| 1069 | .has_v7, |
| 1070 | }), |
| 1071 | }; |
| 1072 | result[@enumToInt(Feature.v7em)] = .{ |
| 1073 | .llvm_name = "armv7e-m", |
| 1074 | .description = "ARMv7em architecture", |
| 1075 | .dependencies = featureSet(&[_]Feature{ |
| 1076 | .db, |
| 1077 | .dsp, |
| 1078 | .hwdiv, |
| 1079 | .mclass, |
| 1080 | .noarm, |
| 1081 | .thumb_mode, |
| 1082 | .thumb2, |
| 1083 | .has_v7, |
| 1084 | }), |
| 1085 | }; |
| 1086 | result[@enumToInt(Feature.v7k)] = .{ |
| 1087 | .llvm_name = "armv7k", |
| 1088 | .description = "ARMv7a architecture", |
| 1089 | .dependencies = featureSet(&[_]Feature{ |
| 1090 | .v7a, |
| 1091 | }), |
| 1092 | }; |
| 1093 | result[@enumToInt(Feature.v7s)] = .{ |
| 1094 | .llvm_name = "armv7s", |
| 1095 | .description = "ARMv7a architecture", |
| 1096 | .dependencies = featureSet(&[_]Feature{ |
| 1097 | .v7a, |
| 1098 | }), |
| 1099 | }; |
| 1100 | result[@enumToInt(Feature.v7ve)] = .{ |
| 1101 | .llvm_name = "armv7ve", |
| 1102 | .description = "ARMv7ve architecture", |
| 1103 | .dependencies = featureSet(&[_]Feature{ |
| 1104 | .aclass, |
| 1105 | .db, |
| 1106 | .dsp, |
| 1107 | .mp, |
| 1108 | .neon, |
| 1109 | .trustzone, |
| 1110 | .has_v7, |
| 1111 | .virtualization, |
| 1112 | }), |
| 1113 | }; |
| 1114 | result[@enumToInt(Feature.v8a)] = .{ |
| 1115 | .llvm_name = "armv8-a", |
| 1116 | .description = "ARMv8a architecture", |
| 1331 | 1117 | .dependencies = featureSet(&[_]Feature{ |
| 1332 | | .v6, |
| 1118 | .aclass, |
| 1119 | .crc, |
| 1120 | .crypto, |
| 1121 | .db, |
| 1122 | .dsp, |
| 1123 | .fp_armv8, |
| 1124 | .mp, |
| 1125 | .neon, |
| 1126 | .trustzone, |
| 1127 | .has_v8, |
| 1128 | .virtualization, |
| 1333 | 1129 | }), |
| 1334 | 1130 | }; |
| 1335 | | result[@enumToInt(Feature.v6t2)] = .{ |
| 1336 | | .llvm_name = "v6t2", |
| 1337 | | .description = "Support ARM v6t2 instructions", |
| 1131 | result[@enumToInt(Feature.v8m)] = .{ |
| 1132 | .llvm_name = "armv8-m.base", |
| 1133 | .description = "ARMv8mBaseline architecture", |
| 1338 | 1134 | .dependencies = featureSet(&[_]Feature{ |
| 1339 | | .thumb2, |
| 1340 | | .v6k, |
| 1341 | | .v8m, |
| 1135 | .@"8msecext", |
| 1136 | .acquire_release, |
| 1137 | .db, |
| 1138 | .hwdiv, |
| 1139 | .mclass, |
| 1140 | .noarm, |
| 1141 | .strict_align, |
| 1142 | .thumb_mode, |
| 1143 | .has_v7clrex, |
| 1144 | .has_v8m, |
| 1342 | 1145 | }), |
| 1343 | 1146 | }; |
| 1344 | | result[@enumToInt(Feature.v7)] = .{ |
| 1345 | | .llvm_name = "v7", |
| 1346 | | .description = "Support ARM v7 instructions", |
| 1147 | result[@enumToInt(Feature.v8m_main)] = .{ |
| 1148 | .llvm_name = "armv8-m.main", |
| 1149 | .description = "ARMv8mMainline architecture", |
| 1347 | 1150 | .dependencies = featureSet(&[_]Feature{ |
| 1348 | | .perfmon, |
| 1349 | | .v6t2, |
| 1350 | | .v7clrex, |
| 1151 | .@"8msecext", |
| 1152 | .acquire_release, |
| 1153 | .db, |
| 1154 | .hwdiv, |
| 1155 | .mclass, |
| 1156 | .noarm, |
| 1157 | .thumb_mode, |
| 1158 | .has_v8m_main, |
| 1351 | 1159 | }), |
| 1352 | 1160 | }; |
| 1353 | | result[@enumToInt(Feature.v7clrex)] = .{ |
| 1354 | | .llvm_name = "v7clrex", |
| 1355 | | .description = "Has v7 clrex instruction", |
| 1356 | | .dependencies = featureSet(&[_]Feature{}), |
| 1357 | | }; |
| 1358 | | result[@enumToInt(Feature.v8)] = .{ |
| 1359 | | .llvm_name = "v8", |
| 1360 | | .description = "Support ARM v8 instructions", |
| 1161 | result[@enumToInt(Feature.v8r)] = .{ |
| 1162 | .llvm_name = "armv8-r", |
| 1163 | .description = "ARMv8r architecture", |
| 1361 | 1164 | .dependencies = featureSet(&[_]Feature{ |
| 1362 | | .acquire_release, |
| 1363 | | .v7, |
| 1165 | .crc, |
| 1166 | .db, |
| 1167 | .dfb, |
| 1168 | .dsp, |
| 1169 | .fp_armv8, |
| 1170 | .mp, |
| 1171 | .neon, |
| 1172 | .rclass, |
| 1173 | .has_v8, |
| 1174 | .virtualization, |
| 1364 | 1175 | }), |
| 1365 | 1176 | }; |
| 1366 | 1177 | result[@enumToInt(Feature.v8_1a)] = .{ |
| 1367 | | .llvm_name = "v8.1a", |
| 1368 | | .description = "Support ARM v8.1a instructions", |
| 1178 | .llvm_name = "armv8.1-a", |
| 1179 | .description = "ARMv81a architecture", |
| 1369 | 1180 | .dependencies = featureSet(&[_]Feature{ |
| 1370 | | .v8, |
| 1181 | .aclass, |
| 1182 | .crc, |
| 1183 | .crypto, |
| 1184 | .db, |
| 1185 | .dsp, |
| 1186 | .fp_armv8, |
| 1187 | .mp, |
| 1188 | .neon, |
| 1189 | .trustzone, |
| 1190 | .has_v8_1a, |
| 1191 | .virtualization, |
| 1371 | 1192 | }), |
| 1372 | 1193 | }; |
| 1373 | 1194 | result[@enumToInt(Feature.v8_1m_main)] = .{ |
| 1374 | | .llvm_name = "v8.1m.main", |
| 1375 | | .description = "Support ARM v8-1M Mainline instructions", |
| 1195 | .llvm_name = "armv8.1-m.main", |
| 1196 | .description = "ARMv81mMainline architecture", |
| 1376 | 1197 | .dependencies = featureSet(&[_]Feature{ |
| 1377 | | .v8m_main, |
| 1198 | .@"8msecext", |
| 1199 | .acquire_release, |
| 1200 | .db, |
| 1201 | .hwdiv, |
| 1202 | .lob, |
| 1203 | .mclass, |
| 1204 | .noarm, |
| 1205 | .ras, |
| 1206 | .thumb_mode, |
| 1207 | .has_v8_1m_main, |
| 1378 | 1208 | }), |
| 1379 | 1209 | }; |
| 1380 | 1210 | result[@enumToInt(Feature.v8_2a)] = .{ |
| 1381 | | .llvm_name = "v8.2a", |
| 1382 | | .description = "Support ARM v8.2a instructions", |
| 1211 | .llvm_name = "armv8.2-a", |
| 1212 | .description = "ARMv82a architecture", |
| 1383 | 1213 | .dependencies = featureSet(&[_]Feature{ |
| 1384 | | .v8_1a, |
| 1214 | .aclass, |
| 1215 | .crc, |
| 1216 | .crypto, |
| 1217 | .db, |
| 1218 | .dsp, |
| 1219 | .fp_armv8, |
| 1220 | .mp, |
| 1221 | .neon, |
| 1222 | .ras, |
| 1223 | .trustzone, |
| 1224 | .has_v8_2a, |
| 1225 | .virtualization, |
| 1385 | 1226 | }), |
| 1386 | 1227 | }; |
| 1387 | 1228 | result[@enumToInt(Feature.v8_3a)] = .{ |
| 1388 | | .llvm_name = "v8.3a", |
| 1389 | | .description = "Support ARM v8.3a instructions", |
| 1229 | .llvm_name = "armv8.3-a", |
| 1230 | .description = "ARMv83a architecture", |
| 1390 | 1231 | .dependencies = featureSet(&[_]Feature{ |
| 1391 | | .v8_2a, |
| 1232 | .aclass, |
| 1233 | .crc, |
| 1234 | .crypto, |
| 1235 | .db, |
| 1236 | .dsp, |
| 1237 | .fp_armv8, |
| 1238 | .mp, |
| 1239 | .neon, |
| 1240 | .ras, |
| 1241 | .trustzone, |
| 1242 | .has_v8_3a, |
| 1243 | .virtualization, |
| 1392 | 1244 | }), |
| 1393 | 1245 | }; |
| 1394 | 1246 | result[@enumToInt(Feature.v8_4a)] = .{ |
| 1395 | | .llvm_name = "v8.4a", |
| 1396 | | .description = "Support ARM v8.4a instructions", |
| 1247 | .llvm_name = "armv8.4-a", |
| 1248 | .description = "ARMv84a architecture", |
| 1397 | 1249 | .dependencies = featureSet(&[_]Feature{ |
| 1250 | .aclass, |
| 1251 | .crc, |
| 1252 | .crypto, |
| 1253 | .db, |
| 1398 | 1254 | .dotprod, |
| 1399 | | .v8_3a, |
| 1255 | .dsp, |
| 1256 | .fp_armv8, |
| 1257 | .mp, |
| 1258 | .neon, |
| 1259 | .ras, |
| 1260 | .trustzone, |
| 1261 | .has_v8_4a, |
| 1262 | .virtualization, |
| 1400 | 1263 | }), |
| 1401 | 1264 | }; |
| 1402 | 1265 | result[@enumToInt(Feature.v8_5a)] = .{ |
| 1403 | | .llvm_name = "v8.5a", |
| 1404 | | .description = "Support ARM v8.5a instructions", |
| 1266 | .llvm_name = "armv8.5-a", |
| 1267 | .description = "ARMv85a architecture", |
| 1405 | 1268 | .dependencies = featureSet(&[_]Feature{ |
| 1406 | | .sb, |
| 1407 | | .v8_4a, |
| 1269 | .aclass, |
| 1270 | .crc, |
| 1271 | .crypto, |
| 1272 | .db, |
| 1273 | .dotprod, |
| 1274 | .dsp, |
| 1275 | .fp_armv8, |
| 1276 | .mp, |
| 1277 | .neon, |
| 1278 | .ras, |
| 1279 | .trustzone, |
| 1280 | .has_v8_5a, |
| 1281 | .virtualization, |
| 1408 | 1282 | }), |
| 1409 | 1283 | }; |
| 1410 | 1284 | result[@enumToInt(Feature.v8_6a)] = .{ |
| 1411 | | .llvm_name = "v8.6a", |
| 1412 | | .description = "Support ARM v8.6a instructions", |
| 1413 | | .dependencies = featureSet(&[_]Feature{ |
| 1414 | | .bf16, |
| 1415 | | ._i8mm, |
| 1416 | | .v8_5a, |
| 1417 | | }), |
| 1418 | | }; |
| 1419 | | result[@enumToInt(Feature.v8m)] = .{ |
| 1420 | | .llvm_name = "v8m", |
| 1421 | | .description = "Support ARM v8M Baseline instructions", |
| 1422 | | .dependencies = featureSet(&[_]Feature{ |
| 1423 | | .v6m, |
| 1424 | | }), |
| 1425 | | }; |
| 1426 | | result[@enumToInt(Feature.v8m_main)] = .{ |
| 1427 | | .llvm_name = "v8m.main", |
| 1428 | | .description = "Support ARM v8M Mainline instructions", |
| 1285 | .llvm_name = "armv8.6-a", |
| 1286 | .description = "ARMv86a architecture", |
| 1429 | 1287 | .dependencies = featureSet(&[_]Feature{ |
| 1430 | | .v7, |
| 1288 | .aclass, |
| 1289 | .crc, |
| 1290 | .crypto, |
| 1291 | .db, |
| 1292 | .dotprod, |
| 1293 | .dsp, |
| 1294 | .fp_armv8, |
| 1295 | .mp, |
| 1296 | .neon, |
| 1297 | .ras, |
| 1298 | .trustzone, |
| 1299 | .has_v8_6a, |
| 1300 | .virtualization, |
| 1431 | 1301 | }), |
| 1432 | 1302 | }; |
| 1433 | 1303 | result[@enumToInt(Feature.vfp2)] = .{ |
| ... | ... | @@ -1547,7 +1417,7 @@ pub const all_features = blk: { |
| 1547 | 1417 | .llvm_name = "xscale", |
| 1548 | 1418 | .description = "ARMv5te architecture", |
| 1549 | 1419 | .dependencies = featureSet(&[_]Feature{ |
| 1550 | | .armv5te, |
| 1420 | .has_v5te, |
| 1551 | 1421 | }), |
| 1552 | 1422 | }; |
| 1553 | 1423 | result[@enumToInt(Feature.zcz)] = .{ |
| ... | ... | @@ -1568,49 +1438,49 @@ pub const cpu = struct { |
| 1568 | 1438 | .name = "arm1020e", |
| 1569 | 1439 | .llvm_name = "arm1020e", |
| 1570 | 1440 | .features = featureSet(&[_]Feature{ |
| 1571 | | .armv5te, |
| 1441 | .v5te, |
| 1572 | 1442 | }), |
| 1573 | 1443 | }; |
| 1574 | 1444 | pub const arm1020t = CpuModel{ |
| 1575 | 1445 | .name = "arm1020t", |
| 1576 | 1446 | .llvm_name = "arm1020t", |
| 1577 | 1447 | .features = featureSet(&[_]Feature{ |
| 1578 | | .armv5t, |
| 1448 | .v5t, |
| 1579 | 1449 | }), |
| 1580 | 1450 | }; |
| 1581 | 1451 | pub const arm1022e = CpuModel{ |
| 1582 | 1452 | .name = "arm1022e", |
| 1583 | 1453 | .llvm_name = "arm1022e", |
| 1584 | 1454 | .features = featureSet(&[_]Feature{ |
| 1585 | | .armv5te, |
| 1455 | .v5te, |
| 1586 | 1456 | }), |
| 1587 | 1457 | }; |
| 1588 | 1458 | pub const arm10e = CpuModel{ |
| 1589 | 1459 | .name = "arm10e", |
| 1590 | 1460 | .llvm_name = "arm10e", |
| 1591 | 1461 | .features = featureSet(&[_]Feature{ |
| 1592 | | .armv5te, |
| 1462 | .v5te, |
| 1593 | 1463 | }), |
| 1594 | 1464 | }; |
| 1595 | 1465 | pub const arm10tdmi = CpuModel{ |
| 1596 | 1466 | .name = "arm10tdmi", |
| 1597 | 1467 | .llvm_name = "arm10tdmi", |
| 1598 | 1468 | .features = featureSet(&[_]Feature{ |
| 1599 | | .armv5t, |
| 1469 | .v5t, |
| 1600 | 1470 | }), |
| 1601 | 1471 | }; |
| 1602 | 1472 | pub const arm1136j_s = CpuModel{ |
| 1603 | 1473 | .name = "arm1136j_s", |
| 1604 | 1474 | .llvm_name = "arm1136j-s", |
| 1605 | 1475 | .features = featureSet(&[_]Feature{ |
| 1606 | | .armv6, |
| 1476 | .v6, |
| 1607 | 1477 | }), |
| 1608 | 1478 | }; |
| 1609 | 1479 | pub const arm1136jf_s = CpuModel{ |
| 1610 | 1480 | .name = "arm1136jf_s", |
| 1611 | 1481 | .llvm_name = "arm1136jf-s", |
| 1612 | 1482 | .features = featureSet(&[_]Feature{ |
| 1613 | | .armv6, |
| 1483 | .v6, |
| 1614 | 1484 | .slowfpvmlx, |
| 1615 | 1485 | .vfp2, |
| 1616 | 1486 | }), |
| ... | ... | @@ -1619,14 +1489,14 @@ pub const cpu = struct { |
| 1619 | 1489 | .name = "arm1156t2_s", |
| 1620 | 1490 | .llvm_name = "arm1156t2-s", |
| 1621 | 1491 | .features = featureSet(&[_]Feature{ |
| 1622 | | .armv6t2, |
| 1492 | .v6t2, |
| 1623 | 1493 | }), |
| 1624 | 1494 | }; |
| 1625 | 1495 | pub const arm1156t2f_s = CpuModel{ |
| 1626 | 1496 | .name = "arm1156t2f_s", |
| 1627 | 1497 | .llvm_name = "arm1156t2f-s", |
| 1628 | 1498 | .features = featureSet(&[_]Feature{ |
| 1629 | | .armv6t2, |
| 1499 | .v6t2, |
| 1630 | 1500 | .slowfpvmlx, |
| 1631 | 1501 | .vfp2, |
| 1632 | 1502 | }), |
| ... | ... | @@ -1635,21 +1505,21 @@ pub const cpu = struct { |
| 1635 | 1505 | .name = "arm1176j_s", |
| 1636 | 1506 | .llvm_name = "arm1176j-s", |
| 1637 | 1507 | .features = featureSet(&[_]Feature{ |
| 1638 | | .armv6kz, |
| 1508 | .v6kz, |
| 1639 | 1509 | }), |
| 1640 | 1510 | }; |
| 1641 | 1511 | pub const arm1176jz_s = CpuModel{ |
| 1642 | 1512 | .name = "arm1176jz_s", |
| 1643 | 1513 | .llvm_name = "arm1176jz-s", |
| 1644 | 1514 | .features = featureSet(&[_]Feature{ |
| 1645 | | .armv6kz, |
| 1515 | .v6kz, |
| 1646 | 1516 | }), |
| 1647 | 1517 | }; |
| 1648 | 1518 | pub const arm1176jzf_s = CpuModel{ |
| 1649 | 1519 | .name = "arm1176jzf_s", |
| 1650 | 1520 | .llvm_name = "arm1176jzf-s", |
| 1651 | 1521 | .features = featureSet(&[_]Feature{ |
| 1652 | | .armv6kz, |
| 1522 | .v6kz, |
| 1653 | 1523 | .slowfpvmlx, |
| 1654 | 1524 | .vfp2, |
| 1655 | 1525 | }), |
| ... | ... | @@ -1658,127 +1528,133 @@ pub const cpu = struct { |
| 1658 | 1528 | .name = "arm710t", |
| 1659 | 1529 | .llvm_name = "arm710t", |
| 1660 | 1530 | .features = featureSet(&[_]Feature{ |
| 1661 | | .armv4t, |
| 1531 | .v4t, |
| 1662 | 1532 | }), |
| 1663 | 1533 | }; |
| 1664 | 1534 | pub const arm720t = CpuModel{ |
| 1665 | 1535 | .name = "arm720t", |
| 1666 | 1536 | .llvm_name = "arm720t", |
| 1667 | 1537 | .features = featureSet(&[_]Feature{ |
| 1668 | | .armv4t, |
| 1538 | .v4t, |
| 1669 | 1539 | }), |
| 1670 | 1540 | }; |
| 1671 | 1541 | pub const arm7tdmi = CpuModel{ |
| 1672 | 1542 | .name = "arm7tdmi", |
| 1673 | 1543 | .llvm_name = "arm7tdmi", |
| 1674 | 1544 | .features = featureSet(&[_]Feature{ |
| 1675 | | .armv4t, |
| 1545 | .v4t, |
| 1676 | 1546 | }), |
| 1677 | 1547 | }; |
| 1678 | 1548 | pub const arm7tdmi_s = CpuModel{ |
| 1679 | 1549 | .name = "arm7tdmi_s", |
| 1680 | 1550 | .llvm_name = "arm7tdmi-s", |
| 1681 | 1551 | .features = featureSet(&[_]Feature{ |
| 1682 | | .armv4t, |
| 1552 | .v4t, |
| 1683 | 1553 | }), |
| 1684 | 1554 | }; |
| 1685 | 1555 | pub const arm8 = CpuModel{ |
| 1686 | 1556 | .name = "arm8", |
| 1687 | 1557 | .llvm_name = "arm8", |
| 1688 | 1558 | .features = featureSet(&[_]Feature{ |
| 1689 | | .armv4, |
| 1559 | .v4, |
| 1690 | 1560 | }), |
| 1691 | 1561 | }; |
| 1692 | 1562 | pub const arm810 = CpuModel{ |
| 1693 | 1563 | .name = "arm810", |
| 1694 | 1564 | .llvm_name = "arm810", |
| 1695 | 1565 | .features = featureSet(&[_]Feature{ |
| 1696 | | .armv4, |
| 1566 | .v4, |
| 1697 | 1567 | }), |
| 1698 | 1568 | }; |
| 1699 | 1569 | pub const arm9 = CpuModel{ |
| 1700 | 1570 | .name = "arm9", |
| 1701 | 1571 | .llvm_name = "arm9", |
| 1702 | 1572 | .features = featureSet(&[_]Feature{ |
| 1703 | | .armv4t, |
| 1573 | .v4t, |
| 1704 | 1574 | }), |
| 1705 | 1575 | }; |
| 1706 | 1576 | pub const arm920 = CpuModel{ |
| 1707 | 1577 | .name = "arm920", |
| 1708 | 1578 | .llvm_name = "arm920", |
| 1709 | 1579 | .features = featureSet(&[_]Feature{ |
| 1710 | | .armv4t, |
| 1580 | .v4t, |
| 1711 | 1581 | }), |
| 1712 | 1582 | }; |
| 1713 | 1583 | pub const arm920t = CpuModel{ |
| 1714 | 1584 | .name = "arm920t", |
| 1715 | 1585 | .llvm_name = "arm920t", |
| 1716 | 1586 | .features = featureSet(&[_]Feature{ |
| 1717 | | .armv4t, |
| 1587 | .v4t, |
| 1718 | 1588 | }), |
| 1719 | 1589 | }; |
| 1720 | 1590 | pub const arm922t = CpuModel{ |
| 1721 | 1591 | .name = "arm922t", |
| 1722 | 1592 | .llvm_name = "arm922t", |
| 1723 | 1593 | .features = featureSet(&[_]Feature{ |
| 1724 | | .armv4t, |
| 1594 | .v4t, |
| 1725 | 1595 | }), |
| 1726 | 1596 | }; |
| 1727 | 1597 | pub const arm926ej_s = CpuModel{ |
| 1728 | 1598 | .name = "arm926ej_s", |
| 1729 | 1599 | .llvm_name = "arm926ej-s", |
| 1730 | 1600 | .features = featureSet(&[_]Feature{ |
| 1731 | | .armv5te, |
| 1601 | .v5te, |
| 1732 | 1602 | }), |
| 1733 | 1603 | }; |
| 1734 | 1604 | pub const arm940t = CpuModel{ |
| 1735 | 1605 | .name = "arm940t", |
| 1736 | 1606 | .llvm_name = "arm940t", |
| 1737 | 1607 | .features = featureSet(&[_]Feature{ |
| 1738 | | .armv4t, |
| 1608 | .v4t, |
| 1739 | 1609 | }), |
| 1740 | 1610 | }; |
| 1741 | 1611 | pub const arm946e_s = CpuModel{ |
| 1742 | 1612 | .name = "arm946e_s", |
| 1743 | 1613 | .llvm_name = "arm946e-s", |
| 1744 | 1614 | .features = featureSet(&[_]Feature{ |
| 1745 | | .armv5te, |
| 1615 | .v5te, |
| 1746 | 1616 | }), |
| 1747 | 1617 | }; |
| 1748 | 1618 | pub const arm966e_s = CpuModel{ |
| 1749 | 1619 | .name = "arm966e_s", |
| 1750 | 1620 | .llvm_name = "arm966e-s", |
| 1751 | 1621 | .features = featureSet(&[_]Feature{ |
| 1752 | | .armv5te, |
| 1622 | .v5te, |
| 1753 | 1623 | }), |
| 1754 | 1624 | }; |
| 1755 | 1625 | pub const arm968e_s = CpuModel{ |
| 1756 | 1626 | .name = "arm968e_s", |
| 1757 | 1627 | .llvm_name = "arm968e-s", |
| 1758 | 1628 | .features = featureSet(&[_]Feature{ |
| 1759 | | .armv5te, |
| 1629 | .v5te, |
| 1760 | 1630 | }), |
| 1761 | 1631 | }; |
| 1762 | 1632 | pub const arm9e = CpuModel{ |
| 1763 | 1633 | .name = "arm9e", |
| 1764 | 1634 | .llvm_name = "arm9e", |
| 1765 | 1635 | .features = featureSet(&[_]Feature{ |
| 1766 | | .armv5te, |
| 1636 | .v5te, |
| 1767 | 1637 | }), |
| 1768 | 1638 | }; |
| 1769 | 1639 | pub const arm9tdmi = CpuModel{ |
| 1770 | 1640 | .name = "arm9tdmi", |
| 1771 | 1641 | .llvm_name = "arm9tdmi", |
| 1772 | 1642 | .features = featureSet(&[_]Feature{ |
| 1773 | | .armv4t, |
| 1643 | .v4t, |
| 1644 | }), |
| 1645 | }; |
| 1646 | pub const baseline = CpuModel{ |
| 1647 | .name = "baseline", |
| 1648 | .llvm_name = "generic", |
| 1649 | .features = featureSet(&[_]Feature{ |
| 1650 | .v7a, |
| 1774 | 1651 | }), |
| 1775 | 1652 | }; |
| 1776 | 1653 | pub const cortex_a12 = CpuModel{ |
| 1777 | 1654 | .name = "cortex_a12", |
| 1778 | 1655 | .llvm_name = "cortex-a12", |
| 1779 | 1656 | .features = featureSet(&[_]Feature{ |
| 1780 | | .a12, |
| 1781 | | .armv7_a, |
| 1657 | .v7a, |
| 1782 | 1658 | .avoid_partial_cpsr, |
| 1783 | 1659 | .mp, |
| 1784 | 1660 | .ret_addr_stack, |
| ... | ... | @@ -1792,8 +1668,7 @@ pub const cpu = struct { |
| 1792 | 1668 | .name = "cortex_a15", |
| 1793 | 1669 | .llvm_name = "cortex-a15", |
| 1794 | 1670 | .features = featureSet(&[_]Feature{ |
| 1795 | | .a15, |
| 1796 | | .armv7_a, |
| 1671 | .v7a, |
| 1797 | 1672 | .avoid_partial_cpsr, |
| 1798 | 1673 | .dont_widen_vmovs, |
| 1799 | 1674 | .mp, |
| ... | ... | @@ -1810,8 +1685,7 @@ pub const cpu = struct { |
| 1810 | 1685 | .name = "cortex_a17", |
| 1811 | 1686 | .llvm_name = "cortex-a17", |
| 1812 | 1687 | .features = featureSet(&[_]Feature{ |
| 1813 | | .a17, |
| 1814 | | .armv7_a, |
| 1688 | .v7a, |
| 1815 | 1689 | .avoid_partial_cpsr, |
| 1816 | 1690 | .mp, |
| 1817 | 1691 | .ret_addr_stack, |
| ... | ... | @@ -1825,31 +1699,29 @@ pub const cpu = struct { |
| 1825 | 1699 | .name = "cortex_a32", |
| 1826 | 1700 | .llvm_name = "cortex-a32", |
| 1827 | 1701 | .features = featureSet(&[_]Feature{ |
| 1828 | | .armv8_a, |
| 1829 | 1702 | .crc, |
| 1830 | 1703 | .crypto, |
| 1831 | 1704 | .hwdiv, |
| 1832 | 1705 | .hwdiv_arm, |
| 1706 | .v8a, |
| 1833 | 1707 | }), |
| 1834 | 1708 | }; |
| 1835 | 1709 | pub const cortex_a35 = CpuModel{ |
| 1836 | 1710 | .name = "cortex_a35", |
| 1837 | 1711 | .llvm_name = "cortex-a35", |
| 1838 | 1712 | .features = featureSet(&[_]Feature{ |
| 1839 | | .a35, |
| 1840 | | .armv8_a, |
| 1841 | 1713 | .crc, |
| 1842 | 1714 | .crypto, |
| 1843 | 1715 | .hwdiv, |
| 1844 | 1716 | .hwdiv_arm, |
| 1717 | .v8a, |
| 1845 | 1718 | }), |
| 1846 | 1719 | }; |
| 1847 | 1720 | pub const cortex_a5 = CpuModel{ |
| 1848 | 1721 | .name = "cortex_a5", |
| 1849 | 1722 | .llvm_name = "cortex-a5", |
| 1850 | 1723 | .features = featureSet(&[_]Feature{ |
| 1851 | | .a5, |
| 1852 | | .armv7_a, |
| 1724 | .v7a, |
| 1853 | 1725 | .mp, |
| 1854 | 1726 | .ret_addr_stack, |
| 1855 | 1727 | .slow_fp_brcc, |
| ... | ... | @@ -1864,8 +1736,7 @@ pub const cpu = struct { |
| 1864 | 1736 | .name = "cortex_a53", |
| 1865 | 1737 | .llvm_name = "cortex-a53", |
| 1866 | 1738 | .features = featureSet(&[_]Feature{ |
| 1867 | | .a53, |
| 1868 | | .armv8_a, |
| 1739 | .v8a, |
| 1869 | 1740 | .crc, |
| 1870 | 1741 | .crypto, |
| 1871 | 1742 | .fpao, |
| ... | ... | @@ -1877,8 +1748,7 @@ pub const cpu = struct { |
| 1877 | 1748 | .name = "cortex_a55", |
| 1878 | 1749 | .llvm_name = "cortex-a55", |
| 1879 | 1750 | .features = featureSet(&[_]Feature{ |
| 1880 | | .a55, |
| 1881 | | .armv8_2_a, |
| 1751 | .v8_2a, |
| 1882 | 1752 | .dotprod, |
| 1883 | 1753 | .hwdiv, |
| 1884 | 1754 | .hwdiv_arm, |
| ... | ... | @@ -1888,8 +1758,7 @@ pub const cpu = struct { |
| 1888 | 1758 | .name = "cortex_a57", |
| 1889 | 1759 | .llvm_name = "cortex-a57", |
| 1890 | 1760 | .features = featureSet(&[_]Feature{ |
| 1891 | | .a57, |
| 1892 | | .armv8_a, |
| 1761 | .v8a, |
| 1893 | 1762 | .avoid_partial_cpsr, |
| 1894 | 1763 | .cheap_predicable_cpsr, |
| 1895 | 1764 | .crc, |
| ... | ... | @@ -1903,8 +1772,7 @@ pub const cpu = struct { |
| 1903 | 1772 | .name = "cortex_a7", |
| 1904 | 1773 | .llvm_name = "cortex-a7", |
| 1905 | 1774 | .features = featureSet(&[_]Feature{ |
| 1906 | | .a7, |
| 1907 | | .armv7_a, |
| 1775 | .v7a, |
| 1908 | 1776 | .mp, |
| 1909 | 1777 | .ret_addr_stack, |
| 1910 | 1778 | .slow_fp_brcc, |
| ... | ... | @@ -1921,8 +1789,7 @@ pub const cpu = struct { |
| 1921 | 1789 | .name = "cortex_a72", |
| 1922 | 1790 | .llvm_name = "cortex-a72", |
| 1923 | 1791 | .features = featureSet(&[_]Feature{ |
| 1924 | | .a72, |
| 1925 | | .armv8_a, |
| 1792 | .v8a, |
| 1926 | 1793 | .crc, |
| 1927 | 1794 | .crypto, |
| 1928 | 1795 | .hwdiv, |
| ... | ... | @@ -1933,8 +1800,7 @@ pub const cpu = struct { |
| 1933 | 1800 | .name = "cortex_a73", |
| 1934 | 1801 | .llvm_name = "cortex-a73", |
| 1935 | 1802 | .features = featureSet(&[_]Feature{ |
| 1936 | | .a73, |
| 1937 | | .armv8_a, |
| 1803 | .v8a, |
| 1938 | 1804 | .crc, |
| 1939 | 1805 | .crypto, |
| 1940 | 1806 | .hwdiv, |
| ... | ... | @@ -1945,8 +1811,7 @@ pub const cpu = struct { |
| 1945 | 1811 | .name = "cortex_a75", |
| 1946 | 1812 | .llvm_name = "cortex-a75", |
| 1947 | 1813 | .features = featureSet(&[_]Feature{ |
| 1948 | | .a75, |
| 1949 | | .armv8_2_a, |
| 1814 | .v8_2a, |
| 1950 | 1815 | .dotprod, |
| 1951 | 1816 | .hwdiv, |
| 1952 | 1817 | .hwdiv_arm, |
| ... | ... | @@ -1957,7 +1822,7 @@ pub const cpu = struct { |
| 1957 | 1822 | .llvm_name = "cortex-a76", |
| 1958 | 1823 | .features = featureSet(&[_]Feature{ |
| 1959 | 1824 | .a76, |
| 1960 | | .armv8_2_a, |
| 1825 | .v8_2a, |
| 1961 | 1826 | .crc, |
| 1962 | 1827 | .crypto, |
| 1963 | 1828 | .dotprod, |
| ... | ... | @@ -1971,7 +1836,7 @@ pub const cpu = struct { |
| 1971 | 1836 | .llvm_name = "cortex-a76ae", |
| 1972 | 1837 | .features = featureSet(&[_]Feature{ |
| 1973 | 1838 | .a76, |
| 1974 | | .armv8_2_a, |
| 1839 | .v8_2a, |
| 1975 | 1840 | .crc, |
| 1976 | 1841 | .crypto, |
| 1977 | 1842 | .dotprod, |
| ... | ... | @@ -1984,8 +1849,7 @@ pub const cpu = struct { |
| 1984 | 1849 | .name = "cortex_a77", |
| 1985 | 1850 | .llvm_name = "cortex-a77", |
| 1986 | 1851 | .features = featureSet(&[_]Feature{ |
| 1987 | | .a77, |
| 1988 | | .armv8_2_a, |
| 1852 | .v8_2a, |
| 1989 | 1853 | .crc, |
| 1990 | 1854 | .crypto, |
| 1991 | 1855 | .dotprod, |
| ... | ... | @@ -1998,8 +1862,7 @@ pub const cpu = struct { |
| 1998 | 1862 | .name = "cortex_a78", |
| 1999 | 1863 | .llvm_name = "cortex-a78", |
| 2000 | 1864 | .features = featureSet(&[_]Feature{ |
| 2001 | | .armv8_2_a, |
| 2002 | | .cortex_a78, |
| 1865 | .v8_2a, |
| 2003 | 1866 | .crc, |
| 2004 | 1867 | .crypto, |
| 2005 | 1868 | .dotprod, |
| ... | ... | @@ -2012,8 +1875,7 @@ pub const cpu = struct { |
| 2012 | 1875 | .name = "cortex_a8", |
| 2013 | 1876 | .llvm_name = "cortex-a8", |
| 2014 | 1877 | .features = featureSet(&[_]Feature{ |
| 2015 | | .a8, |
| 2016 | | .armv7_a, |
| 1878 | .v7a, |
| 2017 | 1879 | .nonpipelined_vfp, |
| 2018 | 1880 | .ret_addr_stack, |
| 2019 | 1881 | .slow_fp_brcc, |
| ... | ... | @@ -2028,8 +1890,7 @@ pub const cpu = struct { |
| 2028 | 1890 | .name = "cortex_a9", |
| 2029 | 1891 | .llvm_name = "cortex-a9", |
| 2030 | 1892 | .features = featureSet(&[_]Feature{ |
| 2031 | | .a9, |
| 2032 | | .armv7_a, |
| 1893 | .v7a, |
| 2033 | 1894 | .avoid_partial_cpsr, |
| 2034 | 1895 | .expand_fp_mlx, |
| 2035 | 1896 | .fp16, |
| ... | ... | @@ -2048,28 +1909,28 @@ pub const cpu = struct { |
| 2048 | 1909 | .name = "cortex_m0", |
| 2049 | 1910 | .llvm_name = "cortex-m0", |
| 2050 | 1911 | .features = featureSet(&[_]Feature{ |
| 2051 | | .armv6_m, |
| 1912 | .v6m, |
| 2052 | 1913 | }), |
| 2053 | 1914 | }; |
| 2054 | 1915 | pub const cortex_m0plus = CpuModel{ |
| 2055 | 1916 | .name = "cortex_m0plus", |
| 2056 | 1917 | .llvm_name = "cortex-m0plus", |
| 2057 | 1918 | .features = featureSet(&[_]Feature{ |
| 2058 | | .armv6_m, |
| 1919 | .v6m, |
| 2059 | 1920 | }), |
| 2060 | 1921 | }; |
| 2061 | 1922 | pub const cortex_m1 = CpuModel{ |
| 2062 | 1923 | .name = "cortex_m1", |
| 2063 | 1924 | .llvm_name = "cortex-m1", |
| 2064 | 1925 | .features = featureSet(&[_]Feature{ |
| 2065 | | .armv6_m, |
| 1926 | .v6m, |
| 2066 | 1927 | }), |
| 2067 | 1928 | }; |
| 2068 | 1929 | pub const cortex_m23 = CpuModel{ |
| 2069 | 1930 | .name = "cortex_m23", |
| 2070 | 1931 | .llvm_name = "cortex-m23", |
| 2071 | 1932 | .features = featureSet(&[_]Feature{ |
| 2072 | | .armv8_m_base, |
| 1933 | .v8m, |
| 2073 | 1934 | .no_movt, |
| 2074 | 1935 | }), |
| 2075 | 1936 | }; |
| ... | ... | @@ -2077,7 +1938,7 @@ pub const cpu = struct { |
| 2077 | 1938 | .name = "cortex_m3", |
| 2078 | 1939 | .llvm_name = "cortex-m3", |
| 2079 | 1940 | .features = featureSet(&[_]Feature{ |
| 2080 | | .armv7_m, |
| 1941 | .v7m, |
| 2081 | 1942 | .loop_align, |
| 2082 | 1943 | .m3, |
| 2083 | 1944 | .no_branch_predictor, |
| ... | ... | @@ -2088,7 +1949,7 @@ pub const cpu = struct { |
| 2088 | 1949 | .name = "cortex_m33", |
| 2089 | 1950 | .llvm_name = "cortex-m33", |
| 2090 | 1951 | .features = featureSet(&[_]Feature{ |
| 2091 | | .armv8_m_main, |
| 1952 | .v8m_main, |
| 2092 | 1953 | .dsp, |
| 2093 | 1954 | .fp_armv8d16sp, |
| 2094 | 1955 | .loop_align, |
| ... | ... | @@ -2102,7 +1963,7 @@ pub const cpu = struct { |
| 2102 | 1963 | .name = "cortex_m35p", |
| 2103 | 1964 | .llvm_name = "cortex-m35p", |
| 2104 | 1965 | .features = featureSet(&[_]Feature{ |
| 2105 | | .armv8_m_main, |
| 1966 | .v8m_main, |
| 2106 | 1967 | .dsp, |
| 2107 | 1968 | .fp_armv8d16sp, |
| 2108 | 1969 | .loop_align, |
| ... | ... | @@ -2116,7 +1977,7 @@ pub const cpu = struct { |
| 2116 | 1977 | .name = "cortex_m4", |
| 2117 | 1978 | .llvm_name = "cortex-m4", |
| 2118 | 1979 | .features = featureSet(&[_]Feature{ |
| 2119 | | .armv7e_m, |
| 1980 | .v7em, |
| 2120 | 1981 | .loop_align, |
| 2121 | 1982 | .no_branch_predictor, |
| 2122 | 1983 | .slowfpvfmx, |
| ... | ... | @@ -2129,7 +1990,7 @@ pub const cpu = struct { |
| 2129 | 1990 | .name = "cortex_m55", |
| 2130 | 1991 | .llvm_name = "cortex-m55", |
| 2131 | 1992 | .features = featureSet(&[_]Feature{ |
| 2132 | | .armv8_1_m_main, |
| 1993 | .v8_1m_main, |
| 2133 | 1994 | .dsp, |
| 2134 | 1995 | .fp_armv8d16, |
| 2135 | 1996 | .loop_align, |
| ... | ... | @@ -2143,16 +2004,15 @@ pub const cpu = struct { |
| 2143 | 2004 | .name = "cortex_m7", |
| 2144 | 2005 | .llvm_name = "cortex-m7", |
| 2145 | 2006 | .features = featureSet(&[_]Feature{ |
| 2146 | | .armv7e_m, |
| 2007 | .v7em, |
| 2147 | 2008 | .fp_armv8d16, |
| 2148 | | .use_misched, |
| 2149 | 2009 | }), |
| 2150 | 2010 | }; |
| 2151 | 2011 | pub const cortex_r4 = CpuModel{ |
| 2152 | 2012 | .name = "cortex_r4", |
| 2153 | 2013 | .llvm_name = "cortex-r4", |
| 2154 | 2014 | .features = featureSet(&[_]Feature{ |
| 2155 | | .armv7_r, |
| 2015 | .v7r, |
| 2156 | 2016 | .avoid_partial_cpsr, |
| 2157 | 2017 | .r4, |
| 2158 | 2018 | .ret_addr_stack, |
| ... | ... | @@ -2162,7 +2022,7 @@ pub const cpu = struct { |
| 2162 | 2022 | .name = "cortex_r4f", |
| 2163 | 2023 | .llvm_name = "cortex-r4f", |
| 2164 | 2024 | .features = featureSet(&[_]Feature{ |
| 2165 | | .armv7_r, |
| 2025 | .v7r, |
| 2166 | 2026 | .avoid_partial_cpsr, |
| 2167 | 2027 | .r4, |
| 2168 | 2028 | .ret_addr_stack, |
| ... | ... | @@ -2176,10 +2036,9 @@ pub const cpu = struct { |
| 2176 | 2036 | .name = "cortex_r5", |
| 2177 | 2037 | .llvm_name = "cortex-r5", |
| 2178 | 2038 | .features = featureSet(&[_]Feature{ |
| 2179 | | .armv7_r, |
| 2039 | .v7r, |
| 2180 | 2040 | .avoid_partial_cpsr, |
| 2181 | 2041 | .hwdiv_arm, |
| 2182 | | .r5, |
| 2183 | 2042 | .ret_addr_stack, |
| 2184 | 2043 | .slow_fp_brcc, |
| 2185 | 2044 | .slowfpvfmx, |
| ... | ... | @@ -2191,9 +2050,8 @@ pub const cpu = struct { |
| 2191 | 2050 | .name = "cortex_r52", |
| 2192 | 2051 | .llvm_name = "cortex-r52", |
| 2193 | 2052 | .features = featureSet(&[_]Feature{ |
| 2194 | | .armv8_r, |
| 2053 | .v8r, |
| 2195 | 2054 | .fpao, |
| 2196 | | .r52, |
| 2197 | 2055 | .use_misched, |
| 2198 | 2056 | }), |
| 2199 | 2057 | }; |
| ... | ... | @@ -2201,12 +2059,11 @@ pub const cpu = struct { |
| 2201 | 2059 | .name = "cortex_r7", |
| 2202 | 2060 | .llvm_name = "cortex-r7", |
| 2203 | 2061 | .features = featureSet(&[_]Feature{ |
| 2204 | | .armv7_r, |
| 2062 | .v7r, |
| 2205 | 2063 | .avoid_partial_cpsr, |
| 2206 | 2064 | .fp16, |
| 2207 | 2065 | .hwdiv_arm, |
| 2208 | 2066 | .mp, |
| 2209 | | .r7, |
| 2210 | 2067 | .ret_addr_stack, |
| 2211 | 2068 | .slow_fp_brcc, |
| 2212 | 2069 | .slowfpvfmx, |
| ... | ... | @@ -2218,7 +2075,7 @@ pub const cpu = struct { |
| 2218 | 2075 | .name = "cortex_r8", |
| 2219 | 2076 | .llvm_name = "cortex-r8", |
| 2220 | 2077 | .features = featureSet(&[_]Feature{ |
| 2221 | | .armv7_r, |
| 2078 | .v7r, |
| 2222 | 2079 | .avoid_partial_cpsr, |
| 2223 | 2080 | .fp16, |
| 2224 | 2081 | .hwdiv_arm, |
| ... | ... | @@ -2234,8 +2091,7 @@ pub const cpu = struct { |
| 2234 | 2091 | .name = "cortex_x1", |
| 2235 | 2092 | .llvm_name = "cortex-x1", |
| 2236 | 2093 | .features = featureSet(&[_]Feature{ |
| 2237 | | .armv8_2_a, |
| 2238 | | .cortex_x1, |
| 2094 | .v8_2a, |
| 2239 | 2095 | .crc, |
| 2240 | 2096 | .crypto, |
| 2241 | 2097 | .dotprod, |
| ... | ... | @@ -2248,7 +2104,7 @@ pub const cpu = struct { |
| 2248 | 2104 | .name = "cyclone", |
| 2249 | 2105 | .llvm_name = "cyclone", |
| 2250 | 2106 | .features = featureSet(&[_]Feature{ |
| 2251 | | .armv8_a, |
| 2107 | .v8a, |
| 2252 | 2108 | .avoid_movs_shop, |
| 2253 | 2109 | .avoid_partial_cpsr, |
| 2254 | 2110 | .crypto, |
| ... | ... | @@ -2270,14 +2126,30 @@ pub const cpu = struct { |
| 2270 | 2126 | .name = "ep9312", |
| 2271 | 2127 | .llvm_name = "ep9312", |
| 2272 | 2128 | .features = featureSet(&[_]Feature{ |
| 2273 | | .armv4t, |
| 2129 | .v4t, |
| 2130 | }), |
| 2131 | }; |
| 2132 | pub const exynos_m1 = CpuModel{ |
| 2133 | .name = "exynos_m1", |
| 2134 | .llvm_name = null, |
| 2135 | .features = featureSet(&[_]Feature{ |
| 2136 | .v8a, |
| 2137 | .exynos, |
| 2138 | }), |
| 2139 | }; |
| 2140 | pub const exynos_m2 = CpuModel{ |
| 2141 | .name = "exynos_m2", |
| 2142 | .llvm_name = null, |
| 2143 | .features = featureSet(&[_]Feature{ |
| 2144 | .v8a, |
| 2145 | .exynos, |
| 2274 | 2146 | }), |
| 2275 | 2147 | }; |
| 2276 | 2148 | pub const exynos_m3 = CpuModel{ |
| 2277 | 2149 | .name = "exynos_m3", |
| 2278 | 2150 | .llvm_name = "exynos-m3", |
| 2279 | 2151 | .features = featureSet(&[_]Feature{ |
| 2280 | | .armv8_a, |
| 2152 | .v8_2a, |
| 2281 | 2153 | .exynos, |
| 2282 | 2154 | }), |
| 2283 | 2155 | }; |
| ... | ... | @@ -2285,7 +2157,7 @@ pub const cpu = struct { |
| 2285 | 2157 | .name = "exynos_m4", |
| 2286 | 2158 | .llvm_name = "exynos-m4", |
| 2287 | 2159 | .features = featureSet(&[_]Feature{ |
| 2288 | | .armv8_2_a, |
| 2160 | .v8_2a, |
| 2289 | 2161 | .dotprod, |
| 2290 | 2162 | .exynos, |
| 2291 | 2163 | .fullfp16, |
| ... | ... | @@ -2295,10 +2167,10 @@ pub const cpu = struct { |
| 2295 | 2167 | .name = "exynos_m5", |
| 2296 | 2168 | .llvm_name = "exynos-m5", |
| 2297 | 2169 | .features = featureSet(&[_]Feature{ |
| 2298 | | .armv8_2_a, |
| 2299 | 2170 | .dotprod, |
| 2300 | 2171 | .exynos, |
| 2301 | 2172 | .fullfp16, |
| 2173 | .v8_2a, |
| 2302 | 2174 | }), |
| 2303 | 2175 | }; |
| 2304 | 2176 | pub const generic = CpuModel{ |
| ... | ... | @@ -2310,21 +2182,20 @@ pub const cpu = struct { |
| 2310 | 2182 | .name = "iwmmxt", |
| 2311 | 2183 | .llvm_name = "iwmmxt", |
| 2312 | 2184 | .features = featureSet(&[_]Feature{ |
| 2313 | | .armv5te, |
| 2185 | .v5te, |
| 2314 | 2186 | }), |
| 2315 | 2187 | }; |
| 2316 | 2188 | pub const krait = CpuModel{ |
| 2317 | 2189 | .name = "krait", |
| 2318 | 2190 | .llvm_name = "krait", |
| 2319 | 2191 | .features = featureSet(&[_]Feature{ |
| 2320 | | .armv7_a, |
| 2321 | 2192 | .avoid_partial_cpsr, |
| 2322 | 2193 | .fp16, |
| 2323 | 2194 | .hwdiv, |
| 2324 | 2195 | .hwdiv_arm, |
| 2325 | | .krait, |
| 2326 | 2196 | .muxed_units, |
| 2327 | 2197 | .ret_addr_stack, |
| 2198 | .v7a, |
| 2328 | 2199 | .vfp4, |
| 2329 | 2200 | .vldn_align, |
| 2330 | 2201 | .vmlx_forwarding, |
| ... | ... | @@ -2334,19 +2205,18 @@ pub const cpu = struct { |
| 2334 | 2205 | .name = "kryo", |
| 2335 | 2206 | .llvm_name = "kryo", |
| 2336 | 2207 | .features = featureSet(&[_]Feature{ |
| 2337 | | .armv8_a, |
| 2338 | 2208 | .crc, |
| 2339 | 2209 | .crypto, |
| 2340 | 2210 | .hwdiv, |
| 2341 | 2211 | .hwdiv_arm, |
| 2342 | | .kryo, |
| 2212 | .v8a, |
| 2343 | 2213 | }), |
| 2344 | 2214 | }; |
| 2345 | 2215 | pub const mpcore = CpuModel{ |
| 2346 | 2216 | .name = "mpcore", |
| 2347 | 2217 | .llvm_name = "mpcore", |
| 2348 | 2218 | .features = featureSet(&[_]Feature{ |
| 2349 | | .armv6k, |
| 2219 | .v6k, |
| 2350 | 2220 | .slowfpvmlx, |
| 2351 | 2221 | .vfp2, |
| 2352 | 2222 | }), |
| ... | ... | @@ -2355,14 +2225,14 @@ pub const cpu = struct { |
| 2355 | 2225 | .name = "mpcorenovfp", |
| 2356 | 2226 | .llvm_name = "mpcorenovfp", |
| 2357 | 2227 | .features = featureSet(&[_]Feature{ |
| 2358 | | .armv6k, |
| 2228 | .v6k, |
| 2359 | 2229 | }), |
| 2360 | 2230 | }; |
| 2361 | 2231 | pub const neoverse_n1 = CpuModel{ |
| 2362 | 2232 | .name = "neoverse_n1", |
| 2363 | 2233 | .llvm_name = "neoverse-n1", |
| 2364 | 2234 | .features = featureSet(&[_]Feature{ |
| 2365 | | .armv8_2_a, |
| 2235 | .v8_2a, |
| 2366 | 2236 | .crc, |
| 2367 | 2237 | .crypto, |
| 2368 | 2238 | .dotprod, |
| ... | ... | @@ -2374,9 +2244,9 @@ pub const cpu = struct { |
| 2374 | 2244 | .name = "neoverse_n2", |
| 2375 | 2245 | .llvm_name = "neoverse-n2", |
| 2376 | 2246 | .features = featureSet(&[_]Feature{ |
| 2377 | | .armv8_5_a, |
| 2247 | .v8_5a, |
| 2378 | 2248 | .bf16, |
| 2379 | | ._i8mm, |
| 2249 | .i8mm, |
| 2380 | 2250 | .perfmon, |
| 2381 | 2251 | }), |
| 2382 | 2252 | }; |
| ... | ... | @@ -2384,28 +2254,28 @@ pub const cpu = struct { |
| 2384 | 2254 | .name = "neoverse_v1", |
| 2385 | 2255 | .llvm_name = "neoverse-v1", |
| 2386 | 2256 | .features = featureSet(&[_]Feature{ |
| 2387 | | .armv8_4_a, |
| 2257 | .v8_4a, |
| 2388 | 2258 | .bf16, |
| 2389 | 2259 | .crc, |
| 2390 | 2260 | .crypto, |
| 2391 | 2261 | .fullfp16, |
| 2392 | 2262 | .hwdiv, |
| 2393 | 2263 | .hwdiv_arm, |
| 2394 | | ._i8mm, |
| 2264 | .i8mm, |
| 2395 | 2265 | }), |
| 2396 | 2266 | }; |
| 2397 | 2267 | pub const sc000 = CpuModel{ |
| 2398 | 2268 | .name = "sc000", |
| 2399 | 2269 | .llvm_name = "sc000", |
| 2400 | 2270 | .features = featureSet(&[_]Feature{ |
| 2401 | | .armv6_m, |
| 2271 | .v6m, |
| 2402 | 2272 | }), |
| 2403 | 2273 | }; |
| 2404 | 2274 | pub const sc300 = CpuModel{ |
| 2405 | 2275 | .name = "sc300", |
| 2406 | 2276 | .llvm_name = "sc300", |
| 2407 | 2277 | .features = featureSet(&[_]Feature{ |
| 2408 | | .armv7_m, |
| 2278 | .v7m, |
| 2409 | 2279 | .m3, |
| 2410 | 2280 | .no_branch_predictor, |
| 2411 | 2281 | .use_misched, |
| ... | ... | @@ -2415,35 +2285,35 @@ pub const cpu = struct { |
| 2415 | 2285 | .name = "strongarm", |
| 2416 | 2286 | .llvm_name = "strongarm", |
| 2417 | 2287 | .features = featureSet(&[_]Feature{ |
| 2418 | | .armv4, |
| 2288 | .v4, |
| 2419 | 2289 | }), |
| 2420 | 2290 | }; |
| 2421 | 2291 | pub const strongarm110 = CpuModel{ |
| 2422 | 2292 | .name = "strongarm110", |
| 2423 | 2293 | .llvm_name = "strongarm110", |
| 2424 | 2294 | .features = featureSet(&[_]Feature{ |
| 2425 | | .armv4, |
| 2295 | .v4, |
| 2426 | 2296 | }), |
| 2427 | 2297 | }; |
| 2428 | 2298 | pub const strongarm1100 = CpuModel{ |
| 2429 | 2299 | .name = "strongarm1100", |
| 2430 | 2300 | .llvm_name = "strongarm1100", |
| 2431 | 2301 | .features = featureSet(&[_]Feature{ |
| 2432 | | .armv4, |
| 2302 | .v4, |
| 2433 | 2303 | }), |
| 2434 | 2304 | }; |
| 2435 | 2305 | pub const strongarm1110 = CpuModel{ |
| 2436 | 2306 | .name = "strongarm1110", |
| 2437 | 2307 | .llvm_name = "strongarm1110", |
| 2438 | 2308 | .features = featureSet(&[_]Feature{ |
| 2439 | | .armv4, |
| 2309 | .v4, |
| 2440 | 2310 | }), |
| 2441 | 2311 | }; |
| 2442 | 2312 | pub const swift = CpuModel{ |
| 2443 | 2313 | .name = "swift", |
| 2444 | 2314 | .llvm_name = "swift", |
| 2445 | 2315 | .features = featureSet(&[_]Feature{ |
| 2446 | | .armv7_a, |
| 2316 | .v7a, |
| 2447 | 2317 | .avoid_movs_shop, |
| 2448 | 2318 | .avoid_partial_cpsr, |
| 2449 | 2319 | .disable_postra_scheduler, |
| ... | ... | @@ -2471,7 +2341,7 @@ pub const cpu = struct { |
| 2471 | 2341 | .name = "xscale", |
| 2472 | 2342 | .llvm_name = "xscale", |
| 2473 | 2343 | .features = featureSet(&[_]Feature{ |
| 2474 | | .armv5te, |
| 2344 | .v5te, |
| 2475 | 2345 | }), |
| 2476 | 2346 | }; |
| 2477 | 2347 | }; |