| ... | @@ -413,21 +413,21 @@ pub const Target = union(enum) { | ... | @@ -413,21 +413,21 @@ pub const Target = union(enum) { |
| 413 | /// All CPU features Zig is aware of, sorted lexicographically by name. | 413 | /// All CPU features Zig is aware of, sorted lexicographically by name. |
| 414 | pub fn allFeaturesList(arch: Arch) []const Cpu.Feature { | 414 | pub fn allFeaturesList(arch: Arch) []const Cpu.Feature { |
| 415 | return switch (arch) { | 415 | return switch (arch) { |
| 416 | // TODO .arm, .armeb, .thumb, .thumbeb => arm.all_features, | 416 | .arm, .armeb, .thumb, .thumbeb => arm.all_features, |
| 417 | .aarch64, .aarch64_be, .aarch64_32 => &aarch64.all_features, | 417 | .aarch64, .aarch64_be, .aarch64_32 => &aarch64.all_features, |
| 418 | // TODO .avr => avr.all_features, | 418 | .avr => avr.all_features, |
| 419 | // TODO .bpfel, .bpfeb => bpf.all_features, | 419 | .bpfel, .bpfeb => bpf.all_features, |
| 420 | // TODO .hexagon => hexagon.all_features, | 420 | .hexagon => hexagon.all_features, |
| 421 | // TODO .mips, .mipsel, .mips64, .mips64el => mips.all_features, | 421 | .mips, .mipsel, .mips64, .mips64el => mips.all_features, |
| 422 | // TODO .msp430 => msp430.all_features, | 422 | .msp430 => msp430.all_features, |
| 423 | // TODO .powerpc, .powerpc64, .powerpc64le => powerpc.all_features, | 423 | .powerpc, .powerpc64, .powerpc64le => powerpc.all_features, |
| 424 | // TODO .amdgcn => amdgpu.all_features, | 424 | .amdgcn => amdgpu.all_features, |
| 425 | // TODO .riscv32, .riscv64 => riscv.all_features, | 425 | .riscv32, .riscv64 => riscv.all_features, |
| 426 | // TODO .sparc, .sparcv9, .sparcel => sparc.all_features, | 426 | .sparc, .sparcv9, .sparcel => sparc.all_features, |
| 427 | // TODO .s390x => systemz.all_features, | 427 | .s390x => systemz.all_features, |
| 428 | .i386, .x86_64 => &x86.all_features, | 428 | .i386, .x86_64 => &x86.all_features, |
| 429 | // TODO .nvptx, .nvptx64 => nvptx.all_features, | 429 | .nvptx, .nvptx64 => nvptx.all_features, |
| 430 | // TODO .wasm32, .wasm64 => wasm.all_features, | 430 | .wasm32, .wasm64 => wasm.all_features, |
| 431 | | 431 | |
| 432 | else => &[0]Cpu.Feature{}, | 432 | else => &[0]Cpu.Feature{}, |
| 433 | }; | 433 | }; |
| ... | @@ -437,22 +437,23 @@ pub const Target = union(enum) { | ... | @@ -437,22 +437,23 @@ pub const Target = union(enum) { |
| 437 | /// of features that is expected to be supported on most available hardware. | 437 | /// of features that is expected to be supported on most available hardware. |
| 438 | pub fn baselineFeatures(arch: Arch) Cpu.Feature.Set { | 438 | pub fn baselineFeatures(arch: Arch) Cpu.Feature.Set { |
| 439 | return switch (arch) { | 439 | return switch (arch) { |
| 440 | // TODO .arm, .armeb, .thumb, .thumbeb => arm.baseline_features, | 440 | .arm, .armeb, .thumb, .thumbeb => arm.cpu.generic.features, |
| 441 | .aarch64, .aarch64_be, .aarch64_32 => aarch64.cpu.generic.features, | 441 | .aarch64, .aarch64_be, .aarch64_32 => aarch64.cpu.generic.features, |
| 442 | // TODO .avr => avr.baseline_features, | 442 | .avr => avr.cpu.generic.features, |
| 443 | // TODO .bpfel, .bpfeb => bpf.baseline_features, | 443 | .bpfel, .bpfeb => bpf.cpu.generic.features, |
| 444 | // TODO .hexagon => hexagon.baseline_features, | 444 | .hexagon => hexagon.cpu.generic.features, |
| 445 | // TODO .mips, .mipsel, .mips64, .mips64el => mips.baseline_features, | 445 | .mips, .mipsel, .mips64, .mips64el => mips.cpu.generic.features, |
| 446 | // TODO .msp430 => msp430.baseline_features, | 446 | .msp430 => msp430.cpu.generic.features, |
| 447 | // TODO .powerpc, .powerpc64, .powerpc64le => powerpc.baseline_features, | 447 | .powerpc, .powerpc64, .powerpc64le => powerpc.cpu.generic.features, |
| 448 | // TODO .amdgcn => amdgpu.baseline_features, | 448 | .amdgcn => amdgpu.cpu.generic.features, |
| 449 | // TODO .riscv32, .riscv64 => riscv.baseline_features, | 449 | .riscv32 => riscv.baseline_32_features, |
| 450 | // TODO .sparc, .sparcv9, .sparcel => sparc.baseline_features, | 450 | .riscv64 => riscv.baseline_64_features, |
| 451 | // TODO .s390x => systemz.baseline_features, | 451 | .sparc, .sparcv9, .sparcel => sparc.cpu.generic.features, |
| | 452 | .s390x => systemz.cpu.generic.features, |
| 452 | .i386 => x86.cpu.pentium4.features, | 453 | .i386 => x86.cpu.pentium4.features, |
| 453 | .x86_64 => x86.cpu.x86_64.features, | 454 | .x86_64 => x86.cpu.x86_64.features, |
| 454 | // TODO .nvptx, .nvptx64 => nvptx.baseline_features, | 455 | .nvptx, .nvptx64 => nvptx.cpu.generic.features, |
| 455 | // TODO .wasm32, .wasm64 => wasm.baseline_features, | 456 | .wasm32, .wasm64 => wasm.cpu.generic.features, |
| 456 | | 457 | |
| 457 | else => 0, | 458 | else => 0, |
| 458 | }; | 459 | }; |
| ... | @@ -461,21 +462,21 @@ pub const Target = union(enum) { | ... | @@ -461,21 +462,21 @@ pub const Target = union(enum) { |
| 461 | /// All CPUs Zig is aware of, sorted lexicographically by name. | 462 | /// All CPUs Zig is aware of, sorted lexicographically by name. |
| 462 | pub fn allCpus(arch: Arch) []const *const Cpu { | 463 | pub fn allCpus(arch: Arch) []const *const Cpu { |
| 463 | return switch (arch) { | 464 | return switch (arch) { |
| 464 | // TODO .arm, .armeb, .thumb, .thumbeb => arm.all_cpus, | 465 | .arm, .armeb, .thumb, .thumbeb => arm.all_cpus, |
| 465 | .aarch64, .aarch64_be, .aarch64_32 => aarch64.all_cpus, | 466 | .aarch64, .aarch64_be, .aarch64_32 => aarch64.all_cpus, |
| 466 | // TODO .avr => avr.all_cpus, | 467 | .avr => avr.all_cpus, |
| 467 | // TODO .bpfel, .bpfeb => bpf.all_cpus, | 468 | .bpfel, .bpfeb => bpf.all_cpus, |
| 468 | // TODO .hexagon => hexagon.all_cpus, | 469 | .hexagon => hexagon.all_cpus, |
| 469 | // TODO .mips, .mipsel, .mips64, .mips64el => mips.all_cpus, | 470 | .mips, .mipsel, .mips64, .mips64el => mips.all_cpus, |
| 470 | // TODO .msp430 => msp430.all_cpus, | 471 | .msp430 => msp430.all_cpus, |
| 471 | // TODO .powerpc, .powerpc64, .powerpc64le => powerpc.all_cpus, | 472 | .powerpc, .powerpc64, .powerpc64le => powerpc.all_cpus, |
| 472 | // TODO .amdgcn => amdgpu.all_cpus, | 473 | .amdgcn => amdgpu.all_cpus, |
| 473 | // TODO .riscv32, .riscv64 => riscv.all_cpus, | 474 | .riscv32, .riscv64 => riscv.all_cpus, |
| 474 | // TODO .sparc, .sparcv9, .sparcel => sparc.all_cpus, | 475 | .sparc, .sparcv9, .sparcel => sparc.all_cpus, |
| 475 | // TODO .s390x => systemz.all_cpus, | 476 | .s390x => systemz.all_cpus, |
| 476 | .i386, .x86_64 => x86.all_cpus, | 477 | .i386, .x86_64 => x86.all_cpus, |
| 477 | // TODO .nvptx, .nvptx64 => nvptx.all_cpus, | 478 | .nvptx, .nvptx64 => nvptx.all_cpus, |
| 478 | // TODO .wasm32, .wasm64 => wasm.all_cpus, | 479 | .wasm32, .wasm64 => wasm.all_cpus, |
| 479 | | 480 | |
| 480 | else => &[0]*const Cpu{}, | 481 | else => &[0]*const Cpu{}, |
| 481 | }; | 482 | }; |