authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-08 23:24:53+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-12 08:57:10+02:00
log60bf1a6543f37ede832d7aa94521f5506a932fe7
tree55521ff599387ca53b62d6e12df23721189e672c
parent25096ed8936bb09e20589dda2bddeb09a24cfbaa
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Sort Arch tags in a hopefully more sensible way.


1 files changed, 24 insertions(+), 24 deletions(-)

lib/std/Target.zig+24-24
...@@ -1001,17 +1001,22 @@ pub const Cpu = struct {...@@ -1001,17 +1001,22 @@ pub const Cpu = struct {
1001 };1001 };
10021002
1003 pub const Arch = enum {1003 pub const Arch = enum {
1004 amdgcn,
1005 arc,
1004 arm,1006 arm,
1005 armeb,1007 armeb,
1008 thumb,
1009 thumbeb,
1006 aarch64,1010 aarch64,
1007 aarch64_be,1011 aarch64_be,
1008 arc,
1009 avr,1012 avr,
1010 bpfel,1013 bpfel,
1011 bpfeb,1014 bpfeb,
1012 csky,1015 csky,
1013 dxil,1016 dxil,
1014 hexagon,1017 hexagon,
1018 kalimba,
1019 lanai,
1015 loongarch32,1020 loongarch32,
1016 loongarch64,1021 loongarch64,
1017 m68k,1022 m68k,
...@@ -1020,51 +1025,46 @@ pub const Cpu = struct {...@@ -1020,51 +1025,46 @@ pub const Cpu = struct {
1020 mips64,1025 mips64,
1021 mips64el,1026 mips64el,
1022 msp430,1027 msp430,
1028 nvptx,
1029 nvptx64,
1023 powerpc,1030 powerpc,
1024 powerpcle,1031 powerpcle,
1025 powerpc64,1032 powerpc64,
1026 powerpc64le,1033 powerpc64le,
1027 amdgcn,
1028 riscv32,1034 riscv32,
1029 riscv64,1035 riscv64,
1036 s390x,
1030 sparc,1037 sparc,
1031 sparc64,1038 sparc64,
1032 s390x,
1033 thumb,
1034 thumbeb,
1035 x86,
1036 x86_64,
1037 xcore,
1038 xtensa,
1039 nvptx,
1040 nvptx64,
1041 spirv,1039 spirv,
1042 spirv32,1040 spirv32,
1043 spirv64,1041 spirv64,
1044 kalimba,1042 spu_2,
1045 lanai,1043 ve,
1046 wasm32,1044 wasm32,
1047 wasm64,1045 wasm64,
1048 ve,1046 x86,
1049 spu_2,1047 x86_64,
1048 xcore,
1049 xtensa,
10501050
1051 // LLVM tags deliberately omitted:1051 // LLVM tags deliberately omitted:
1052 // - aarch64_321052 // - aarch64_32
1053 // - r600
1054 // - sparcel
1055 // - tce
1056 // - tcele
1057 // - le32
1058 // - le64
1059 // - amdil1053 // - amdil
1060 // - amdil641054 // - amdil64
1055 // - le32
1056 // - le64
1057 // - r600
1061 // - hsail1058 // - hsail
1062 // - hsail641059 // - hsail64
1063 // - spir
1064 // - spir64
1065 // - shave
1066 // - renderscript321060 // - renderscript32
1067 // - renderscript641061 // - renderscript64
1062 // - shave
1063 // - sparcel
1064 // - spir
1065 // - spir64
1066 // - tce
1067 // - tcele
10681068
1069 pub inline fn isX86(arch: Arch) bool {1069 pub inline fn isX86(arch: Arch) bool {
1070 return switch (arch) {1070 return switch (arch) {