From 60bf1a6543f37ede832d7aa94521f5506a932fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 8 Aug 2024 23:24:53 +0200 Subject: [PATCH] std.Target: Sort Arch tags in a hopefully more sensible way. --- lib/std/Target.zig | 48 +++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/lib/std/Target.zig b/lib/std/Target.zig index 759c1156c38b9f341b7aa24bd7f8b9ccec125f71..f04c636628d6032769579873038d34685dd3e939 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -1001,17 +1001,22 @@ pub const Cpu = struct { }; pub const Arch = enum { + amdgcn, + arc, arm, armeb, + thumb, + thumbeb, aarch64, aarch64_be, - arc, avr, bpfel, bpfeb, csky, dxil, hexagon, + kalimba, + lanai, loongarch32, loongarch64, m68k, @@ -1020,51 +1025,46 @@ pub const Cpu = struct { mips64, mips64el, msp430, + nvptx, + nvptx64, powerpc, powerpcle, powerpc64, powerpc64le, - amdgcn, riscv32, riscv64, + s390x, sparc, sparc64, - s390x, - thumb, - thumbeb, - x86, - x86_64, - xcore, - xtensa, - nvptx, - nvptx64, spirv, spirv32, spirv64, - kalimba, - lanai, + spu_2, + ve, wasm32, wasm64, - ve, - spu_2, + x86, + x86_64, + xcore, + xtensa, // LLVM tags deliberately omitted: // - aarch64_32 - // - r600 - // - sparcel - // - tce - // - tcele - // - le32 - // - le64 // - amdil // - amdil64 + // - le32 + // - le64 + // - r600 // - hsail // - hsail64 - // - spir - // - spir64 - // - shave // - renderscript32 // - renderscript64 + // - shave + // - sparcel + // - spir + // - spir64 + // - tce + // - tcele pub inline fn isX86(arch: Arch) bool { return switch (arch) { -- 2.54.0