| ... | ... | @@ -1,14 +1,10 @@ |
| 1 | | // SPDX-License-Identifier: MIT |
| 2 | | // Copyright (c) 2015-2021 Zig Contributors |
| 3 | | // This file is part of [zig](https://ziglang.org/), which is MIT licensed. |
| 4 | | // The MIT license requires this copyright notice to be included in all copies |
| 5 | | // and substantial portions of the software. |
| 1 | //! This file is auto-generated by tools/update_cpu_features.zig. |
| 2 | |
| 6 | 3 | const std = @import("../std.zig"); |
| 7 | 4 | const CpuFeature = std.Target.Cpu.Feature; |
| 8 | 5 | const CpuModel = std.Target.Cpu.Model; |
| 9 | 6 | |
| 10 | 7 | pub const Feature = enum { |
| 11 | | a34, |
| 12 | 8 | a65, |
| 13 | 9 | a76, |
| 14 | 10 | aes, |
| ... | ... | @@ -17,8 +13,6 @@ pub const Feature = enum { |
| 17 | 13 | altnzcv, |
| 18 | 14 | am, |
| 19 | 15 | amvs, |
| 20 | | apple_a10, |
| 21 | | apple_a11, |
| 22 | 16 | apple_a12, |
| 23 | 17 | apple_a13, |
| 24 | 18 | apple_a7, |
| ... | ... | @@ -26,6 +20,7 @@ pub const Feature = enum { |
| 26 | 20 | arith_cbz_fusion, |
| 27 | 21 | balance_fp_ops, |
| 28 | 22 | bf16, |
| 23 | brbe, |
| 29 | 24 | bti, |
| 30 | 25 | call_saved_x10, |
| 31 | 26 | call_saved_x11, |
| ... | ... | @@ -39,8 +34,11 @@ pub const Feature = enum { |
| 39 | 34 | ccdp, |
| 40 | 35 | ccidx, |
| 41 | 36 | ccpp, |
| 37 | cmp_bcc_fusion, |
| 42 | 38 | complxnum, |
| 43 | | context_id_rel2, |
| 39 | contextidr_el2, |
| 40 | cortex_a78c, |
| 41 | cortex_r82, |
| 44 | 42 | crc, |
| 45 | 43 | crypto, |
| 46 | 44 | custom_cheap_as_move, |
| ... | ... | @@ -50,14 +48,14 @@ pub const Feature = enum { |
| 50 | 48 | ecv, |
| 51 | 49 | ete, |
| 52 | 50 | exynos_cheap_as_move, |
| 53 | | exynosm4, |
| 51 | exynos_m4, |
| 54 | 52 | f32mm, |
| 55 | 53 | f64mm, |
| 56 | 54 | fgt, |
| 57 | | fmi, |
| 55 | flagm, |
| 58 | 56 | force_32bit_jump_tables, |
| 59 | | fp_armv8, |
| 60 | 57 | fp16fml, |
| 58 | fp_armv8, |
| 61 | 59 | fptoint, |
| 62 | 60 | fullfp16, |
| 63 | 61 | fuse_address, |
| ... | ... | @@ -68,9 +66,11 @@ pub const Feature = enum { |
| 68 | 66 | fuse_literals, |
| 69 | 67 | harden_sls_blr, |
| 70 | 68 | harden_sls_retbr, |
| 69 | hcx, |
| 71 | 70 | i8mm, |
| 72 | 71 | jsconv, |
| 73 | 72 | lor, |
| 73 | ls64, |
| 74 | 74 | lse, |
| 75 | 75 | lsl_fast, |
| 76 | 76 | mpam, |
| ... | ... | @@ -83,9 +83,9 @@ pub const Feature = enum { |
| 83 | 83 | no_neg_immediates, |
| 84 | 84 | nv, |
| 85 | 85 | outline_atomics, |
| 86 | | pa, |
| 87 | 86 | pan, |
| 88 | 87 | pan_rwv, |
| 88 | pauth, |
| 89 | 89 | perfmon, |
| 90 | 90 | pmu, |
| 91 | 91 | predictable_select_expensive, |
| ... | ... | @@ -129,6 +129,7 @@ pub const Feature = enum { |
| 129 | 129 | slow_strqro_store, |
| 130 | 130 | sm4, |
| 131 | 131 | spe, |
| 132 | spe_eef, |
| 132 | 133 | specrestrict, |
| 133 | 134 | ssbs, |
| 134 | 135 | strict_align, |
| ... | ... | @@ -151,15 +152,18 @@ pub const Feature = enum { |
| 151 | 152 | use_experimental_zeroing_pseudos, |
| 152 | 153 | use_postra_scheduler, |
| 153 | 154 | use_reciprocal_square_root, |
| 154 | | v8a, |
| 155 | 155 | v8_1a, |
| 156 | 156 | v8_2a, |
| 157 | 157 | v8_3a, |
| 158 | 158 | v8_4a, |
| 159 | 159 | v8_5a, |
| 160 | 160 | v8_6a, |
| 161 | v8_7a, |
| 162 | v8a, |
| 161 | 163 | v8r, |
| 162 | 164 | vh, |
| 165 | wfxt, |
| 166 | xs, |
| 163 | 167 | zcm, |
| 164 | 168 | zcz, |
| 165 | 169 | zcz_fp, |
| ... | ... | @@ -174,26 +178,16 @@ pub const all_features = blk: { |
| 174 | 178 | const len = @typeInfo(Feature).Enum.fields.len; |
| 175 | 179 | std.debug.assert(len <= CpuFeature.Set.needed_bit_count); |
| 176 | 180 | var result: [len]CpuFeature = undefined; |
| 177 | | result[@enumToInt(Feature.a34)] = .{ |
| 178 | | .llvm_name = "a35", |
| 179 | | .description = "Cortex-A34 ARM processors", |
| 180 | | .dependencies = featureSet(&[_]Feature{ |
| 181 | | .crc, |
| 182 | | .crypto, |
| 183 | | .perfmon, |
| 184 | | .v8a, |
| 185 | | }), |
| 186 | | }; |
| 187 | 181 | result[@enumToInt(Feature.a65)] = .{ |
| 188 | 182 | .llvm_name = "a65", |
| 189 | 183 | .description = "Cortex-A65 ARM processors", |
| 190 | 184 | .dependencies = featureSet(&[_]Feature{ |
| 191 | 185 | .crypto, |
| 192 | 186 | .dotprod, |
| 193 | | .fp_armv8, |
| 194 | 187 | .fullfp16, |
| 195 | | .neon, |
| 196 | | .ras, |
| 188 | .fuse_address, |
| 189 | .fuse_aes, |
| 190 | .fuse_literals, |
| 197 | 191 | .rcpc, |
| 198 | 192 | .ssbs, |
| 199 | 193 | .v8_2a, |
| ... | ... | @@ -206,6 +200,7 @@ pub const all_features = blk: { |
| 206 | 200 | .crypto, |
| 207 | 201 | .dotprod, |
| 208 | 202 | .fullfp16, |
| 203 | .fuse_aes, |
| 209 | 204 | .rcpc, |
| 210 | 205 | .ssbs, |
| 211 | 206 | .v8_2a, |
| ... | ... | @@ -245,49 +240,6 @@ pub const all_features = blk: { |
| 245 | 240 | .am, |
| 246 | 241 | }), |
| 247 | 242 | }; |
| 248 | | result[@enumToInt(Feature.apple_a10)] = .{ |
| 249 | | .llvm_name = "apple-a10", |
| 250 | | .description = "Apple A10", |
| 251 | | .dependencies = featureSet(&[_]Feature{ |
| 252 | | .alternate_sextload_cvt_f32_pattern, |
| 253 | | .arith_bcc_fusion, |
| 254 | | .arith_cbz_fusion, |
| 255 | | .crc, |
| 256 | | .crypto, |
| 257 | | .disable_latency_sched_heuristic, |
| 258 | | .fp_armv8, |
| 259 | | .fuse_aes, |
| 260 | | .fuse_crypto_eor, |
| 261 | | .lor, |
| 262 | | .neon, |
| 263 | | .pan, |
| 264 | | .perfmon, |
| 265 | | .rdm, |
| 266 | | .vh, |
| 267 | | .zcm, |
| 268 | | .zcz, |
| 269 | | }), |
| 270 | | }; |
| 271 | | result[@enumToInt(Feature.apple_a11)] = .{ |
| 272 | | .llvm_name = "apple-a11", |
| 273 | | .description = "Apple A11", |
| 274 | | .dependencies = featureSet(&[_]Feature{ |
| 275 | | .alternate_sextload_cvt_f32_pattern, |
| 276 | | .arith_bcc_fusion, |
| 277 | | .arith_cbz_fusion, |
| 278 | | .crypto, |
| 279 | | .disable_latency_sched_heuristic, |
| 280 | | .fp_armv8, |
| 281 | | .fullfp16, |
| 282 | | .fuse_aes, |
| 283 | | .fuse_crypto_eor, |
| 284 | | .neon, |
| 285 | | .perfmon, |
| 286 | | .v8_2a, |
| 287 | | .zcm, |
| 288 | | .zcz, |
| 289 | | }), |
| 290 | | }; |
| 291 | 243 | result[@enumToInt(Feature.apple_a12)] = .{ |
| 292 | 244 | .llvm_name = "apple-a12", |
| 293 | 245 | .description = "Apple A12", |
| ... | ... | @@ -297,11 +249,9 @@ pub const all_features = blk: { |
| 297 | 249 | .arith_cbz_fusion, |
| 298 | 250 | .crypto, |
| 299 | 251 | .disable_latency_sched_heuristic, |
| 300 | | .fp_armv8, |
| 301 | 252 | .fullfp16, |
| 302 | 253 | .fuse_aes, |
| 303 | 254 | .fuse_crypto_eor, |
| 304 | | .neon, |
| 305 | 255 | .perfmon, |
| 306 | 256 | .v8_3a, |
| 307 | 257 | .zcm, |
| ... | ... | @@ -317,12 +267,9 @@ pub const all_features = blk: { |
| 317 | 267 | .arith_cbz_fusion, |
| 318 | 268 | .crypto, |
| 319 | 269 | .disable_latency_sched_heuristic, |
| 320 | | .fp_armv8, |
| 321 | 270 | .fp16fml, |
| 322 | | .fullfp16, |
| 323 | 271 | .fuse_aes, |
| 324 | 272 | .fuse_crypto_eor, |
| 325 | | .neon, |
| 326 | 273 | .perfmon, |
| 327 | 274 | .sha3, |
| 328 | 275 | .v8_4a, |
| ... | ... | @@ -339,10 +286,8 @@ pub const all_features = blk: { |
| 339 | 286 | .arith_cbz_fusion, |
| 340 | 287 | .crypto, |
| 341 | 288 | .disable_latency_sched_heuristic, |
| 342 | | .fp_armv8, |
| 343 | 289 | .fuse_aes, |
| 344 | 290 | .fuse_crypto_eor, |
| 345 | | .neon, |
| 346 | 291 | .perfmon, |
| 347 | 292 | .zcm, |
| 348 | 293 | .zcz, |
| ... | ... | @@ -369,6 +314,11 @@ pub const all_features = blk: { |
| 369 | 314 | .description = "Enable BFloat16 Extension", |
| 370 | 315 | .dependencies = featureSet(&[_]Feature{}), |
| 371 | 316 | }; |
| 317 | result[@enumToInt(Feature.brbe)] = .{ |
| 318 | .llvm_name = "brbe", |
| 319 | .description = "Enable Branch Record Buffer Extension", |
| 320 | .dependencies = featureSet(&[_]Feature{}), |
| 321 | }; |
| 372 | 322 | result[@enumToInt(Feature.bti)] = .{ |
| 373 | 323 | .llvm_name = "bti", |
| 374 | 324 | .description = "Enable Branch Target Identification", |
| ... | ... | @@ -434,6 +384,11 @@ pub const all_features = blk: { |
| 434 | 384 | .description = "Enable v8.2 data Cache Clean to Point of Persistence", |
| 435 | 385 | .dependencies = featureSet(&[_]Feature{}), |
| 436 | 386 | }; |
| 387 | result[@enumToInt(Feature.cmp_bcc_fusion)] = .{ |
| 388 | .llvm_name = "cmp-bcc-fusion", |
| 389 | .description = "CPU fuses cmp+bcc operations", |
| 390 | .dependencies = featureSet(&[_]Feature{}), |
| 391 | }; |
| 437 | 392 | result[@enumToInt(Feature.complxnum)] = .{ |
| 438 | 393 | .llvm_name = "complxnum", |
| 439 | 394 | .description = "Enable v8.3-A Floating-point complex number support", |
| ... | ... | @@ -441,11 +396,38 @@ pub const all_features = blk: { |
| 441 | 396 | .neon, |
| 442 | 397 | }), |
| 443 | 398 | }; |
| 444 | | result[@enumToInt(Feature.context_id_rel2)] = .{ |
| 399 | result[@enumToInt(Feature.contextidr_el2)] = .{ |
| 445 | 400 | .llvm_name = "CONTEXTIDREL2", |
| 446 | | .description = "Enable RW operand CONTEXTIDR_EL2", |
| 401 | .description = "Enable RW operand Context ID Register (EL2)", |
| 447 | 402 | .dependencies = featureSet(&[_]Feature{}), |
| 448 | 403 | }; |
| 404 | result[@enumToInt(Feature.cortex_a78c)] = .{ |
| 405 | .llvm_name = "cortex-a78c", |
| 406 | .description = "Cortex-A78C ARM processors", |
| 407 | .dependencies = featureSet(&[_]Feature{ |
| 408 | .cmp_bcc_fusion, |
| 409 | .crypto, |
| 410 | .dotprod, |
| 411 | .flagm, |
| 412 | .fp16fml, |
| 413 | .fuse_aes, |
| 414 | .pauth, |
| 415 | .perfmon, |
| 416 | .rcpc, |
| 417 | .spe, |
| 418 | .ssbs, |
| 419 | .use_postra_scheduler, |
| 420 | .v8_2a, |
| 421 | }), |
| 422 | }; |
| 423 | result[@enumToInt(Feature.cortex_r82)] = .{ |
| 424 | .llvm_name = "cortex-r82", |
| 425 | .description = "Cortex-R82 ARM Processors", |
| 426 | .dependencies = featureSet(&[_]Feature{ |
| 427 | .use_postra_scheduler, |
| 428 | .v8r, |
| 429 | }), |
| 430 | }; |
| 449 | 431 | result[@enumToInt(Feature.crc)] = .{ |
| 450 | 432 | .llvm_name = "crc", |
| 451 | 433 | .description = "Enable ARMv8 CRC-32 checksum instructions", |
| ... | ... | @@ -456,7 +438,6 @@ pub const all_features = blk: { |
| 456 | 438 | .description = "Enable cryptographic instructions", |
| 457 | 439 | .dependencies = featureSet(&[_]Feature{ |
| 458 | 440 | .aes, |
| 459 | | .neon, |
| 460 | 441 | .sha2, |
| 461 | 442 | }), |
| 462 | 443 | }; |
| ... | ... | @@ -499,7 +480,7 @@ pub const all_features = blk: { |
| 499 | 480 | .custom_cheap_as_move, |
| 500 | 481 | }), |
| 501 | 482 | }; |
| 502 | | result[@enumToInt(Feature.exynosm4)] = .{ |
| 483 | result[@enumToInt(Feature.exynos_m4)] = .{ |
| 503 | 484 | .llvm_name = "exynosm4", |
| 504 | 485 | .description = "Samsung Exynos-M4 processors", |
| 505 | 486 | .dependencies = featureSet(&[_]Feature{ |
| ... | ... | @@ -541,8 +522,8 @@ pub const all_features = blk: { |
| 541 | 522 | .description = "Enable fine grained virtualization traps extension", |
| 542 | 523 | .dependencies = featureSet(&[_]Feature{}), |
| 543 | 524 | }; |
| 544 | | result[@enumToInt(Feature.fmi)] = .{ |
| 545 | | .llvm_name = "fmi", |
| 525 | result[@enumToInt(Feature.flagm)] = .{ |
| 526 | .llvm_name = "flagm", |
| 546 | 527 | .description = "Enable v8.4-A Flag Manipulation Instructions", |
| 547 | 528 | .dependencies = featureSet(&[_]Feature{}), |
| 548 | 529 | }; |
| ... | ... | @@ -551,11 +532,6 @@ pub const all_features = blk: { |
| 551 | 532 | .description = "Force jump table entries to be 32-bits wide except at MinSize", |
| 552 | 533 | .dependencies = featureSet(&[_]Feature{}), |
| 553 | 534 | }; |
| 554 | | result[@enumToInt(Feature.fp_armv8)] = .{ |
| 555 | | .llvm_name = "fp-armv8", |
| 556 | | .description = "Enable ARMv8 FP", |
| 557 | | .dependencies = featureSet(&[_]Feature{}), |
| 558 | | }; |
| 559 | 535 | result[@enumToInt(Feature.fp16fml)] = .{ |
| 560 | 536 | .llvm_name = "fp16fml", |
| 561 | 537 | .description = "Enable FP16 FML instructions", |
| ... | ... | @@ -563,6 +539,11 @@ pub const all_features = blk: { |
| 563 | 539 | .fullfp16, |
| 564 | 540 | }), |
| 565 | 541 | }; |
| 542 | result[@enumToInt(Feature.fp_armv8)] = .{ |
| 543 | .llvm_name = "fp-armv8", |
| 544 | .description = "Enable ARMv8 FP", |
| 545 | .dependencies = featureSet(&[_]Feature{}), |
| 546 | }; |
| 566 | 547 | result[@enumToInt(Feature.fptoint)] = .{ |
| 567 | 548 | .llvm_name = "fptoint", |
| 568 | 549 | .description = "Enable FRInt[32|64][Z|X] instructions that round a floating-point number to an integer (in FP format) forcing it to fit into a 32- or 64-bit int", |
| ... | ... | @@ -615,6 +596,11 @@ pub const all_features = blk: { |
| 615 | 596 | .description = "Harden against straight line speculation across RET and BR instructions", |
| 616 | 597 | .dependencies = featureSet(&[_]Feature{}), |
| 617 | 598 | }; |
| 599 | result[@enumToInt(Feature.hcx)] = .{ |
| 600 | .llvm_name = "hcx", |
| 601 | .description = "Enable Armv8.7-A HCRX_EL2 system register", |
| 602 | .dependencies = featureSet(&[_]Feature{}), |
| 603 | }; |
| 618 | 604 | result[@enumToInt(Feature.i8mm)] = .{ |
| 619 | 605 | .llvm_name = "i8mm", |
| 620 | 606 | .description = "Enable Matrix Multiply Int8 Extension", |
| ... | ... | @@ -632,6 +618,11 @@ pub const all_features = blk: { |
| 632 | 618 | .description = "Enables ARM v8.1 Limited Ordering Regions extension", |
| 633 | 619 | .dependencies = featureSet(&[_]Feature{}), |
| 634 | 620 | }; |
| 621 | result[@enumToInt(Feature.ls64)] = .{ |
| 622 | .llvm_name = "ls64", |
| 623 | .description = "Enable Armv8.7-A LD64B/ST64B Accelerator Extension", |
| 624 | .dependencies = featureSet(&[_]Feature{}), |
| 625 | }; |
| 635 | 626 | result[@enumToInt(Feature.lse)] = .{ |
| 636 | 627 | .llvm_name = "lse", |
| 637 | 628 | .description = "Enable ARMv8.1 Large System Extension (LSE) atomic instructions", |
| ... | ... | @@ -665,9 +656,7 @@ pub const all_features = blk: { |
| 665 | 656 | .dependencies = featureSet(&[_]Feature{ |
| 666 | 657 | .crypto, |
| 667 | 658 | .dotprod, |
| 668 | | .fp_armv8, |
| 669 | 659 | .fullfp16, |
| 670 | | .neon, |
| 671 | 660 | .rcpc, |
| 672 | 661 | .ssbs, |
| 673 | 662 | .v8_2a, |
| ... | ... | @@ -679,9 +668,7 @@ pub const all_features = blk: { |
| 679 | 668 | .dependencies = featureSet(&[_]Feature{ |
| 680 | 669 | .crypto, |
| 681 | 670 | .dotprod, |
| 682 | | .fp_armv8, |
| 683 | 671 | .fullfp16, |
| 684 | | .neon, |
| 685 | 672 | .rcpc, |
| 686 | 673 | .spe, |
| 687 | 674 | .ssbs, |
| ... | ... | @@ -696,9 +683,7 @@ pub const all_features = blk: { |
| 696 | 683 | .ete, |
| 697 | 684 | .i8mm, |
| 698 | 685 | .mte, |
| 699 | | .sve2, |
| 700 | 686 | .sve2_bitperm, |
| 701 | | .trbe, |
| 702 | 687 | .v8_5a, |
| 703 | 688 | }), |
| 704 | 689 | }; |
| ... | ... | @@ -709,12 +694,9 @@ pub const all_features = blk: { |
| 709 | 694 | .bf16, |
| 710 | 695 | .ccdp, |
| 711 | 696 | .crypto, |
| 712 | | .fp_armv8, |
| 713 | 697 | .fp16fml, |
| 714 | | .fullfp16, |
| 715 | 698 | .fuse_aes, |
| 716 | 699 | .i8mm, |
| 717 | | .neon, |
| 718 | 700 | .perfmon, |
| 719 | 701 | .rand, |
| 720 | 702 | .spe, |
| ... | ... | @@ -731,7 +713,7 @@ pub const all_features = blk: { |
| 731 | 713 | }; |
| 732 | 714 | result[@enumToInt(Feature.nv)] = .{ |
| 733 | 715 | .llvm_name = "nv", |
| 734 | | .description = "Enable v8.4-A Nested Virtualization extension", |
| 716 | .description = "Enable v8.4-A Nested Virtualization Enchancement", |
| 735 | 717 | .dependencies = featureSet(&[_]Feature{}), |
| 736 | 718 | }; |
| 737 | 719 | result[@enumToInt(Feature.outline_atomics)] = .{ |
| ... | ... | @@ -739,11 +721,6 @@ pub const all_features = blk: { |
| 739 | 721 | .description = "Enable out of line atomics to support LSE instructions", |
| 740 | 722 | .dependencies = featureSet(&[_]Feature{}), |
| 741 | 723 | }; |
| 742 | | result[@enumToInt(Feature.pa)] = .{ |
| 743 | | .llvm_name = "pa", |
| 744 | | .description = "Enable v8.3-A Pointer Authentication extension", |
| 745 | | .dependencies = featureSet(&[_]Feature{}), |
| 746 | | }; |
| 747 | 724 | result[@enumToInt(Feature.pan)] = .{ |
| 748 | 725 | .llvm_name = "pan", |
| 749 | 726 | .description = "Enables ARM v8.1 Privileged Access-Never extension", |
| ... | ... | @@ -756,6 +733,11 @@ pub const all_features = blk: { |
| 756 | 733 | .pan, |
| 757 | 734 | }), |
| 758 | 735 | }; |
| 736 | result[@enumToInt(Feature.pauth)] = .{ |
| 737 | .llvm_name = "pauth", |
| 738 | .description = "Enable v8.3-A Pointer Authentication extension", |
| 739 | .dependencies = featureSet(&[_]Feature{}), |
| 740 | }; |
| 759 | 741 | result[@enumToInt(Feature.perfmon)] = .{ |
| 760 | 742 | .llvm_name = "perfmon", |
| 761 | 743 | .description = "Enable ARMv8 PMUv3 Performance Monitors extension", |
| ... | ... | @@ -949,7 +931,6 @@ pub const all_features = blk: { |
| 949 | 931 | .llvm_name = "sha3", |
| 950 | 932 | .description = "Enable SHA512 and SHA3 support", |
| 951 | 933 | .dependencies = featureSet(&[_]Feature{ |
| 952 | | .neon, |
| 953 | 934 | .sha2, |
| 954 | 935 | }), |
| 955 | 936 | }; |
| ... | ... | @@ -980,6 +961,11 @@ pub const all_features = blk: { |
| 980 | 961 | .description = "Enable Statistical Profiling extension", |
| 981 | 962 | .dependencies = featureSet(&[_]Feature{}), |
| 982 | 963 | }; |
| 964 | result[@enumToInt(Feature.spe_eef)] = .{ |
| 965 | .llvm_name = "spe-eef", |
| 966 | .description = "Enable extra register in the Statistical Profiling Extension", |
| 967 | .dependencies = featureSet(&[_]Feature{}), |
| 968 | }; |
| 983 | 969 | result[@enumToInt(Feature.specrestrict)] = .{ |
| 984 | 970 | .llvm_name = "specrestrict", |
| 985 | 971 | .description = "Enable architectural speculation restriction", |
| ... | ... | @@ -998,7 +984,9 @@ pub const all_features = blk: { |
| 998 | 984 | result[@enumToInt(Feature.sve)] = .{ |
| 999 | 985 | .llvm_name = "sve", |
| 1000 | 986 | .description = "Enable Scalable Vector Extension (SVE) instructions", |
| 1001 | | .dependencies = featureSet(&[_]Feature{}), |
| 987 | .dependencies = featureSet(&[_]Feature{ |
| 988 | .fullfp16, |
| 989 | }), |
| 1002 | 990 | }; |
| 1003 | 991 | result[@enumToInt(Feature.sve2)] = .{ |
| 1004 | 992 | .llvm_name = "sve2", |
| ... | ... | @@ -1103,14 +1091,6 @@ pub const all_features = blk: { |
| 1103 | 1091 | .description = "Use the reciprocal square root approximation", |
| 1104 | 1092 | .dependencies = featureSet(&[_]Feature{}), |
| 1105 | 1093 | }; |
| 1106 | | result[@enumToInt(Feature.v8a)] = .{ |
| 1107 | | .llvm_name = null, |
| 1108 | | .description = "Support ARM v8a instructions", |
| 1109 | | .dependencies = featureSet(&[_]Feature{ |
| 1110 | | .fp_armv8, |
| 1111 | | .neon, |
| 1112 | | }), |
| 1113 | | }; |
| 1114 | 1094 | result[@enumToInt(Feature.v8_1a)] = .{ |
| 1115 | 1095 | .llvm_name = "v8.1a", |
| 1116 | 1096 | .description = "Support ARM v8.1a instructions", |
| ... | ... | @@ -1120,8 +1100,8 @@ pub const all_features = blk: { |
| 1120 | 1100 | .lse, |
| 1121 | 1101 | .pan, |
| 1122 | 1102 | .rdm, |
| 1123 | | .vh, |
| 1124 | 1103 | .v8a, |
| 1104 | .vh, |
| 1125 | 1105 | }), |
| 1126 | 1106 | }; |
| 1127 | 1107 | result[@enumToInt(Feature.v8_2a)] = .{ |
| ... | ... | @@ -1142,7 +1122,7 @@ pub const all_features = blk: { |
| 1142 | 1122 | .ccidx, |
| 1143 | 1123 | .complxnum, |
| 1144 | 1124 | .jsconv, |
| 1145 | | .pa, |
| 1125 | .pauth, |
| 1146 | 1126 | .rcpc, |
| 1147 | 1127 | .v8_2a, |
| 1148 | 1128 | }), |
| ... | ... | @@ -1154,7 +1134,7 @@ pub const all_features = blk: { |
| 1154 | 1134 | .am, |
| 1155 | 1135 | .dit, |
| 1156 | 1136 | .dotprod, |
| 1157 | | .fmi, |
| 1137 | .flagm, |
| 1158 | 1138 | .mpam, |
| 1159 | 1139 | .nv, |
| 1160 | 1140 | .pmu, |
| ... | ... | @@ -1192,13 +1172,73 @@ pub const all_features = blk: { |
| 1192 | 1172 | .v8_5a, |
| 1193 | 1173 | }), |
| 1194 | 1174 | }; |
| 1175 | result[@enumToInt(Feature.v8_7a)] = .{ |
| 1176 | .llvm_name = "v8.7a", |
| 1177 | .description = "Support ARM v8.7a instructions", |
| 1178 | .dependencies = featureSet(&[_]Feature{ |
| 1179 | .hcx, |
| 1180 | .v8_6a, |
| 1181 | .wfxt, |
| 1182 | .xs, |
| 1183 | }), |
| 1184 | }; |
| 1185 | result[@enumToInt(Feature.v8a)] = .{ |
| 1186 | .llvm_name = null, |
| 1187 | .description = "Support ARM v8a instructions", |
| 1188 | .dependencies = featureSet(&[_]Feature{ |
| 1189 | .neon, |
| 1190 | }), |
| 1191 | }; |
| 1192 | result[@enumToInt(Feature.v8r)] = .{ |
| 1193 | .llvm_name = "v8r", |
| 1194 | .description = "Support ARM v8r instructions", |
| 1195 | .dependencies = featureSet(&[_]Feature{ |
| 1196 | .ccidx, |
| 1197 | .ccpp, |
| 1198 | .complxnum, |
| 1199 | .contextidr_el2, |
| 1200 | .crc, |
| 1201 | .dit, |
| 1202 | .dotprod, |
| 1203 | .flagm, |
| 1204 | .fp16fml, |
| 1205 | .jsconv, |
| 1206 | .lse, |
| 1207 | .pan_rwv, |
| 1208 | .pauth, |
| 1209 | .perfmon, |
| 1210 | .predres, |
| 1211 | .ras, |
| 1212 | .rcpc_immo, |
| 1213 | .rdm, |
| 1214 | .sb, |
| 1215 | .sel2, |
| 1216 | .sha3, |
| 1217 | .sm4, |
| 1218 | .specrestrict, |
| 1219 | .ssbs, |
| 1220 | .tlb_rmi, |
| 1221 | .tracev8_4, |
| 1222 | .uaops, |
| 1223 | }), |
| 1224 | }; |
| 1195 | 1225 | result[@enumToInt(Feature.vh)] = .{ |
| 1196 | 1226 | .llvm_name = "vh", |
| 1197 | 1227 | .description = "Enables ARM v8.1 Virtual Host extension", |
| 1198 | 1228 | .dependencies = featureSet(&[_]Feature{ |
| 1199 | | .context_id_rel2, |
| 1229 | .contextidr_el2, |
| 1200 | 1230 | }), |
| 1201 | 1231 | }; |
| 1232 | result[@enumToInt(Feature.wfxt)] = .{ |
| 1233 | .llvm_name = "wfxt", |
| 1234 | .description = "Enable Armv8.7-A WFET and WFIT instruction", |
| 1235 | .dependencies = featureSet(&[_]Feature{}), |
| 1236 | }; |
| 1237 | result[@enumToInt(Feature.xs)] = .{ |
| 1238 | .llvm_name = "xs", |
| 1239 | .description = "Enable Armv8.7-A limited-TLB-maintenance instruction", |
| 1240 | .dependencies = featureSet(&[_]Feature{}), |
| 1241 | }; |
| 1202 | 1242 | result[@enumToInt(Feature.zcm)] = .{ |
| 1203 | 1243 | .llvm_name = "zcm", |
| 1204 | 1244 | .description = "Has zero-cycle register moves", |
| ... | ... | @@ -1240,11 +1280,11 @@ pub const cpu = struct { |
| 1240 | 1280 | .name = "a64fx", |
| 1241 | 1281 | .llvm_name = "a64fx", |
| 1242 | 1282 | .features = featureSet(&[_]Feature{ |
| 1283 | .aggressive_fma, |
| 1284 | .arith_bcc_fusion, |
| 1243 | 1285 | .complxnum, |
| 1244 | | .fp_armv8, |
| 1245 | | .fullfp16, |
| 1246 | | .neon, |
| 1247 | 1286 | .perfmon, |
| 1287 | .predictable_select_expensive, |
| 1248 | 1288 | .sha2, |
| 1249 | 1289 | .sve, |
| 1250 | 1290 | .use_postra_scheduler, |
| ... | ... | @@ -1255,14 +1295,39 @@ pub const cpu = struct { |
| 1255 | 1295 | .name = "apple_a10", |
| 1256 | 1296 | .llvm_name = "apple-a10", |
| 1257 | 1297 | .features = featureSet(&[_]Feature{ |
| 1258 | | .apple_a10, |
| 1298 | .alternate_sextload_cvt_f32_pattern, |
| 1299 | .arith_bcc_fusion, |
| 1300 | .arith_cbz_fusion, |
| 1301 | .crc, |
| 1302 | .crypto, |
| 1303 | .disable_latency_sched_heuristic, |
| 1304 | .fuse_aes, |
| 1305 | .fuse_crypto_eor, |
| 1306 | .lor, |
| 1307 | .pan, |
| 1308 | .perfmon, |
| 1309 | .rdm, |
| 1310 | .vh, |
| 1311 | .zcm, |
| 1312 | .zcz, |
| 1259 | 1313 | }), |
| 1260 | 1314 | }; |
| 1261 | 1315 | pub const apple_a11 = CpuModel{ |
| 1262 | 1316 | .name = "apple_a11", |
| 1263 | 1317 | .llvm_name = "apple-a11", |
| 1264 | 1318 | .features = featureSet(&[_]Feature{ |
| 1265 | | .apple_a11, |
| 1319 | .alternate_sextload_cvt_f32_pattern, |
| 1320 | .arith_bcc_fusion, |
| 1321 | .arith_cbz_fusion, |
| 1322 | .crypto, |
| 1323 | .disable_latency_sched_heuristic, |
| 1324 | .fullfp16, |
| 1325 | .fuse_aes, |
| 1326 | .fuse_crypto_eor, |
| 1327 | .perfmon, |
| 1328 | .v8_2a, |
| 1329 | .zcm, |
| 1330 | .zcz, |
| 1266 | 1331 | }), |
| 1267 | 1332 | }; |
| 1268 | 1333 | pub const apple_a12 = CpuModel{ |
| ... | ... | @@ -1279,6 +1344,37 @@ pub const cpu = struct { |
| 1279 | 1344 | .apple_a13, |
| 1280 | 1345 | }), |
| 1281 | 1346 | }; |
| 1347 | pub const apple_a14 = CpuModel{ |
| 1348 | .name = "apple_a14", |
| 1349 | .llvm_name = "apple-a14", |
| 1350 | .features = featureSet(&[_]Feature{ |
| 1351 | .aggressive_fma, |
| 1352 | .alternate_sextload_cvt_f32_pattern, |
| 1353 | .altnzcv, |
| 1354 | .arith_bcc_fusion, |
| 1355 | .arith_cbz_fusion, |
| 1356 | .ccdp, |
| 1357 | .crypto, |
| 1358 | .disable_latency_sched_heuristic, |
| 1359 | .fp16fml, |
| 1360 | .fptoint, |
| 1361 | .fuse_address, |
| 1362 | .fuse_aes, |
| 1363 | .fuse_arith_logic, |
| 1364 | .fuse_crypto_eor, |
| 1365 | .fuse_csel, |
| 1366 | .fuse_literals, |
| 1367 | .perfmon, |
| 1368 | .predres, |
| 1369 | .sb, |
| 1370 | .sha3, |
| 1371 | .specrestrict, |
| 1372 | .ssbs, |
| 1373 | .v8_4a, |
| 1374 | .zcm, |
| 1375 | .zcz, |
| 1376 | }), |
| 1377 | }; |
| 1282 | 1378 | pub const apple_a7 = CpuModel{ |
| 1283 | 1379 | .name = "apple_a7", |
| 1284 | 1380 | .llvm_name = "apple-a7", |
| ... | ... | @@ -1327,7 +1423,6 @@ pub const cpu = struct { |
| 1327 | 1423 | .features = featureSet(&[_]Feature{ |
| 1328 | 1424 | .crypto, |
| 1329 | 1425 | .fullfp16, |
| 1330 | | .neon, |
| 1331 | 1426 | .v8_2a, |
| 1332 | 1427 | }), |
| 1333 | 1428 | }; |
| ... | ... | @@ -1335,14 +1430,20 @@ pub const cpu = struct { |
| 1335 | 1430 | .name = "cortex_a34", |
| 1336 | 1431 | .llvm_name = "cortex-a34", |
| 1337 | 1432 | .features = featureSet(&[_]Feature{ |
| 1338 | | .a34, |
| 1433 | .crc, |
| 1434 | .crypto, |
| 1435 | .perfmon, |
| 1436 | .v8a, |
| 1339 | 1437 | }), |
| 1340 | 1438 | }; |
| 1341 | 1439 | pub const cortex_a35 = CpuModel{ |
| 1342 | 1440 | .name = "cortex_a35", |
| 1343 | 1441 | .llvm_name = "cortex-a35", |
| 1344 | 1442 | .features = featureSet(&[_]Feature{ |
| 1345 | | .a34, |
| 1443 | .crc, |
| 1444 | .crypto, |
| 1445 | .perfmon, |
| 1446 | .v8a, |
| 1346 | 1447 | }), |
| 1347 | 1448 | }; |
| 1348 | 1449 | pub const cortex_a53 = CpuModel{ |
| ... | ... | @@ -1410,6 +1511,7 @@ pub const cpu = struct { |
| 1410 | 1511 | .crc, |
| 1411 | 1512 | .crypto, |
| 1412 | 1513 | .fuse_aes, |
| 1514 | .fuse_literals, |
| 1413 | 1515 | .perfmon, |
| 1414 | 1516 | .v8a, |
| 1415 | 1517 | }), |
| ... | ... | @@ -1456,11 +1558,11 @@ pub const cpu = struct { |
| 1456 | 1558 | .name = "cortex_a77", |
| 1457 | 1559 | .llvm_name = "cortex-a77", |
| 1458 | 1560 | .features = featureSet(&[_]Feature{ |
| 1561 | .cmp_bcc_fusion, |
| 1459 | 1562 | .crypto, |
| 1460 | 1563 | .dotprod, |
| 1461 | | .fp_armv8, |
| 1462 | 1564 | .fullfp16, |
| 1463 | | .neon, |
| 1565 | .fuse_aes, |
| 1464 | 1566 | .rcpc, |
| 1465 | 1567 | .v8_2a, |
| 1466 | 1568 | }), |
| ... | ... | @@ -1469,12 +1571,11 @@ pub const cpu = struct { |
| 1469 | 1571 | .name = "cortex_a78", |
| 1470 | 1572 | .llvm_name = "cortex-a78", |
| 1471 | 1573 | .features = featureSet(&[_]Feature{ |
| 1574 | .cmp_bcc_fusion, |
| 1472 | 1575 | .crypto, |
| 1473 | 1576 | .dotprod, |
| 1474 | | .fp_armv8, |
| 1475 | 1577 | .fullfp16, |
| 1476 | 1578 | .fuse_aes, |
| 1477 | | .neon, |
| 1478 | 1579 | .perfmon, |
| 1479 | 1580 | .rcpc, |
| 1480 | 1581 | .spe, |
| ... | ... | @@ -1483,24 +1584,29 @@ pub const cpu = struct { |
| 1483 | 1584 | .v8_2a, |
| 1484 | 1585 | }), |
| 1485 | 1586 | }; |
| 1587 | pub const cortex_a78c = CpuModel{ |
| 1588 | .name = "cortex_a78c", |
| 1589 | .llvm_name = "cortex-a78c", |
| 1590 | .features = featureSet(&[_]Feature{ |
| 1591 | .cortex_a78c, |
| 1592 | }), |
| 1593 | }; |
| 1486 | 1594 | pub const cortex_r82 = CpuModel{ |
| 1487 | 1595 | .name = "cortex_r82", |
| 1488 | 1596 | .llvm_name = "cortex-r82", |
| 1489 | 1597 | .features = featureSet(&[_]Feature{ |
| 1490 | | .use_postra_scheduler, |
| 1491 | | .v8r, |
| 1598 | .cortex_r82, |
| 1492 | 1599 | }), |
| 1493 | 1600 | }; |
| 1494 | 1601 | pub const cortex_x1 = CpuModel{ |
| 1495 | 1602 | .name = "cortex_x1", |
| 1496 | 1603 | .llvm_name = "cortex-x1", |
| 1497 | 1604 | .features = featureSet(&[_]Feature{ |
| 1605 | .cmp_bcc_fusion, |
| 1498 | 1606 | .crypto, |
| 1499 | 1607 | .dotprod, |
| 1500 | | .fp_armv8, |
| 1501 | 1608 | .fullfp16, |
| 1502 | 1609 | .fuse_aes, |
| 1503 | | .neon, |
| 1504 | 1610 | .perfmon, |
| 1505 | 1611 | .rcpc, |
| 1506 | 1612 | .spe, |
| ... | ... | @@ -1574,14 +1680,14 @@ pub const cpu = struct { |
| 1574 | 1680 | .name = "exynos_m4", |
| 1575 | 1681 | .llvm_name = "exynos-m4", |
| 1576 | 1682 | .features = featureSet(&[_]Feature{ |
| 1577 | | .exynosm4, |
| 1683 | .exynos_m4, |
| 1578 | 1684 | }), |
| 1579 | 1685 | }; |
| 1580 | 1686 | pub const exynos_m5 = CpuModel{ |
| 1581 | 1687 | .name = "exynos_m5", |
| 1582 | 1688 | .llvm_name = "exynos-m5", |
| 1583 | 1689 | .features = featureSet(&[_]Feature{ |
| 1584 | | .exynosm4, |
| 1690 | .exynos_m4, |
| 1585 | 1691 | }), |
| 1586 | 1692 | }; |
| 1587 | 1693 | pub const falkor = CpuModel{ |
| ... | ... | @@ -1607,9 +1713,9 @@ pub const cpu = struct { |
| 1607 | 1713 | .features = featureSet(&[_]Feature{ |
| 1608 | 1714 | .ete, |
| 1609 | 1715 | .fuse_aes, |
| 1716 | .neon, |
| 1610 | 1717 | .perfmon, |
| 1611 | 1718 | .use_postra_scheduler, |
| 1612 | | .v8a, |
| 1613 | 1719 | }), |
| 1614 | 1720 | }; |
| 1615 | 1721 | pub const kryo = CpuModel{ |
| ... | ... | @@ -1623,8 +1729,8 @@ pub const cpu = struct { |
| 1623 | 1729 | .perfmon, |
| 1624 | 1730 | .predictable_select_expensive, |
| 1625 | 1731 | .use_postra_scheduler, |
| 1626 | | .zcz, |
| 1627 | 1732 | .v8a, |
| 1733 | .zcz, |
| 1628 | 1734 | }), |
| 1629 | 1735 | }; |
| 1630 | 1736 | pub const neoverse_e1 = CpuModel{ |
| ... | ... | @@ -1688,9 +1794,7 @@ pub const cpu = struct { |
| 1688 | 1794 | .features = featureSet(&[_]Feature{ |
| 1689 | 1795 | .aggressive_fma, |
| 1690 | 1796 | .arith_bcc_fusion, |
| 1691 | | .crc, |
| 1692 | 1797 | .crypto, |
| 1693 | | .lse, |
| 1694 | 1798 | .predictable_select_expensive, |
| 1695 | 1799 | .use_postra_scheduler, |
| 1696 | 1800 | .v8_1a, |
| ... | ... | @@ -1703,12 +1807,7 @@ pub const cpu = struct { |
| 1703 | 1807 | .aggressive_fma, |
| 1704 | 1808 | .arith_bcc_fusion, |
| 1705 | 1809 | .balance_fp_ops, |
| 1706 | | .crc, |
| 1707 | 1810 | .crypto, |
| 1708 | | .fp_armv8, |
| 1709 | | .lse, |
| 1710 | | .neon, |
| 1711 | | .pa, |
| 1712 | 1811 | .perfmon, |
| 1713 | 1812 | .predictable_select_expensive, |
| 1714 | 1813 | .strict_align, |
| ... | ... | @@ -1761,7 +1860,6 @@ pub const cpu = struct { |
| 1761 | 1860 | .custom_cheap_as_move, |
| 1762 | 1861 | .dotprod, |
| 1763 | 1862 | .fp16fml, |
| 1764 | | .fullfp16, |
| 1765 | 1863 | .fuse_aes, |
| 1766 | 1864 | .perfmon, |
| 1767 | 1865 | .spe, |