| ... | @@ -1001,17 +1001,22 @@ pub const Cpu = struct { | ... | @@ -1001,17 +1001,22 @@ pub const Cpu = struct { |
| 1001 | }; | 1001 | }; |
| 1002 | | 1002 | |
| 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, |
| 1050 | | 1050 | |
| 1051 | // LLVM tags deliberately omitted: | 1051 | // LLVM tags deliberately omitted: |
| 1052 | // - aarch64_32 | 1052 | // - aarch64_32 |
| 1053 | // - r600 | | |
| 1054 | // - sparcel | | |
| 1055 | // - tce | | |
| 1056 | // - tcele | | |
| 1057 | // - le32 | | |
| 1058 | // - le64 | | |
| 1059 | // - amdil | 1053 | // - amdil |
| 1060 | // - amdil64 | 1054 | // - amdil64 |
| | 1055 | // - le32 |
| | 1056 | // - le64 |
| | 1057 | // - r600 |
| 1061 | // - hsail | 1058 | // - hsail |
| 1062 | // - hsail64 | 1059 | // - hsail64 |
| 1063 | // - spir | | |
| 1064 | // - spir64 | | |
| 1065 | // - shave | | |
| 1066 | // - renderscript32 | 1060 | // - renderscript32 |
| 1067 | // - renderscript64 | 1061 | // - renderscript64 |
| | 1062 | // - shave |
| | 1063 | // - sparcel |
| | 1064 | // - spir |
| | 1065 | // - spir64 |
| | 1066 | // - tce |
| | 1067 | // - tcele |
| 1068 | | 1068 | |
| 1069 | pub inline fn isX86(arch: Arch) bool { | 1069 | pub inline fn isX86(arch: Arch) bool { |
| 1070 | return switch (arch) { | 1070 | return switch (arch) { |