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 {
10011001 };
10021002
10031003 pub const Arch = enum {
1004 amdgcn,
1005 arc,
10041006 arm,
10051007 armeb,
1008 thumb,
1009 thumbeb,
10061010 aarch64,
10071011 aarch64_be,
1008 arc,
10091012 avr,
10101013 bpfel,
10111014 bpfeb,
10121015 csky,
10131016 dxil,
10141017 hexagon,
1018 kalimba,
1019 lanai,
10151020 loongarch32,
10161021 loongarch64,
10171022 m68k,
......@@ -1020,51 +1025,46 @@ pub const Cpu = struct {
10201025 mips64,
10211026 mips64el,
10221027 msp430,
1028 nvptx,
1029 nvptx64,
10231030 powerpc,
10241031 powerpcle,
10251032 powerpc64,
10261033 powerpc64le,
1027 amdgcn,
10281034 riscv32,
10291035 riscv64,
1036 s390x,
10301037 sparc,
10311038 sparc64,
1032 s390x,
1033 thumb,
1034 thumbeb,
1035 x86,
1036 x86_64,
1037 xcore,
1038 xtensa,
1039 nvptx,
1040 nvptx64,
10411039 spirv,
10421040 spirv32,
10431041 spirv64,
1044 kalimba,
1045 lanai,
1042 spu_2,
1043 ve,
10461044 wasm32,
10471045 wasm64,
1048 ve,
1049 spu_2,
1046 x86,
1047 x86_64,
1048 xcore,
1049 xtensa,
10501050
10511051 // LLVM tags deliberately omitted:
10521052 // - aarch64_32
1053 // - r600
1054 // - sparcel
1055 // - tce
1056 // - tcele
1057 // - le32
1058 // - le64
10591053 // - amdil
10601054 // - amdil64
1055 // - le32
1056 // - le64
1057 // - r600
10611058 // - hsail
10621059 // - hsail64
1063 // - spir
1064 // - spir64
1065 // - shave
10661060 // - renderscript32
10671061 // - renderscript64
1062 // - shave
1063 // - sparcel
1064 // - spir
1065 // - spir64
1066 // - tce
1067 // - tcele
10681068
10691069 pub inline fn isX86(arch: Arch) bool {
10701070 return switch (arch) {