authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-21 14:17:51+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-21 22:38:30+02:00
logdb8bc4770c37470e8807c21571d483e3a73f9f69
tree5081485f9bae36094df14010dcadeb824733f640
parent21cc5a20440e41a0f8b53b5eeac4ba5da55b64bf
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Remove the `tce`/`tcele` arch tags.

There is no obvious reason why this would be relevant for Zig to target. I rather question the value of LLVM even having target triple code for this, too. See: https://blog.llvm.org/2010/06/tce-project-co-design-of-application.html See: https://github.com/cpc/llvmtce

6 files changed, 1 insertions(+), 51 deletions(-)

lib/compiler/aro/aro/target.zig+1-11
......@@ -17,8 +17,6 @@ pub fn intMaxType(target: std.Target) Type {
1717 .riscv64,
1818 .powerpc64,
1919 .powerpc64le,
20 .tce,
21 .tcele,
2220 .ve,
2321 => return .{ .specifier = .long },
2422
......@@ -54,8 +52,6 @@ pub fn intPtrType(target: std.Target) Type {
5452 .riscv32,
5553 .xcore,
5654 .hexagon,
57 .tce,
58 .tcele,
5955 .m68k,
6056 .spir,
6157 .spirv32,
......@@ -153,7 +149,7 @@ pub fn isTlsSupported(target: std.Target) bool {
153149 return supported;
154150 }
155151 return switch (target.cpu.arch) {
156 .tce, .tcele, .bpfel, .bpfeb, .msp430, .nvptx, .nvptx64, .x86, .arm, .armeb, .thumb, .thumbeb => false,
152 .bpfel, .bpfeb, .msp430, .nvptx, .nvptx64, .x86, .arm, .armeb, .thumb, .thumbeb => false,
157153 else => true,
158154 };
159155}
......@@ -473,8 +469,6 @@ pub fn get32BitArchVariant(target: std.Target) ?std.Target {
473469 .riscv32,
474470 .sparc,
475471 .sparcel,
476 .tce,
477 .tcele,
478472 .thumb,
479473 .thumbeb,
480474 .x86,
......@@ -523,8 +517,6 @@ pub fn get64BitArchVariant(target: std.Target) ?std.Target {
523517 .msp430,
524518 .sparcel,
525519 .spu_2,
526 .tce,
527 .tcele,
528520 .xcore,
529521 .xtensa,
530522 => return null,
......@@ -611,8 +603,6 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
611603 .sparc64 => "sparc64",
612604 .sparcel => "sparcel",
613605 .s390x => "s390x",
614 .tce => "tce",
615 .tcele => "tcele",
616606 .thumb => "thumb",
617607 .thumbeb => "thumbeb",
618608 .x86 => "i386",
lib/std/Target.zig-28
......@@ -1001,8 +1001,6 @@ pub const Cpu = struct {
10011001 sparc64,
10021002 sparcel,
10031003 s390x,
1004 tce,
1005 tcele,
10061004 thumb,
10071005 thumbeb,
10081006 x86,
......@@ -1143,8 +1141,6 @@ pub const Cpu = struct {
11431141 .riscv32 => .RISCV,
11441142 .sparc => .SPARC,
11451143 .sparcel => .SPARC,
1146 .tce => .NONE,
1147 .tcele => .NONE,
11481144 .thumb => .ARM,
11491145 .thumbeb => .ARM,
11501146 .x86 => .@"386",
......@@ -1199,8 +1195,6 @@ pub const Cpu = struct {
11991195 .riscv32 => .RISCV32,
12001196 .sparc => .Unknown,
12011197 .sparcel => .Unknown,
1202 .tce => .Unknown,
1203 .tcele => .Unknown,
12041198 .thumb => .Thumb,
12051199 .thumbeb => .Thumb,
12061200 .x86 => .I386,
......@@ -1257,7 +1251,6 @@ pub const Cpu = struct {
12571251 .nvptx,
12581252 .nvptx64,
12591253 .sparcel,
1260 .tcele,
12611254 .powerpcle,
12621255 .powerpc64le,
12631256 .riscv32,
......@@ -1293,7 +1286,6 @@ pub const Cpu = struct {
12931286 .thumbeb,
12941287 .sparc,
12951288 .sparc64,
1296 .tce,
12971289 .lanai,
12981290 .s390x,
12991291 => .big,
......@@ -1749,8 +1741,6 @@ pub const DynamicLinker = struct {
17491741 .m68k,
17501742 .msp430,
17511743 .amdgcn,
1752 .tce,
1753 .tcele,
17541744 .xcore,
17551745 .spir,
17561746 .spir64,
......@@ -1846,8 +1836,6 @@ pub fn ptrBitWidth_cpu_abi(cpu: Cpu, abi: Abi) u16 {
18461836 .powerpcle,
18471837 .riscv32,
18481838 .sparcel,
1849 .tce,
1850 .tcele,
18511839 .thumb,
18521840 .thumbeb,
18531841 .x86,
......@@ -2022,12 +2010,6 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
20222010 .long, .ulong, .float, .double, .longdouble => return 32,
20232011 .longlong, .ulonglong => return 64,
20242012 },
2025 .tce, .tcele => switch (c_type) {
2026 .char => return 8,
2027 .short, .ushort => return 16,
2028 .int, .uint, .long, .ulong, .longlong, .ulonglong => return 32,
2029 .float, .double, .longdouble => return 32,
2030 },
20312013 .mips64, .mips64el => switch (c_type) {
20322014 .char => return 8,
20332015 .short, .ushort => return 16,
......@@ -2117,12 +2099,6 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
21172099 .long, .ulong, .float, .double, .longdouble => return 32,
21182100 .longlong, .ulonglong => return 64,
21192101 },
2120 .tce, .tcele => switch (c_type) {
2121 .char => return 8,
2122 .short, .ushort => return 16,
2123 .int, .uint, .long, .ulong, .longlong, .ulonglong => return 32,
2124 .float, .double, .longdouble => return 32,
2125 },
21262102 .mips64, .mips64el => switch (c_type) {
21272103 .char => return 8,
21282104 .short, .ushort => return 16,
......@@ -2370,8 +2346,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
23702346 .xcore,
23712347 .dxil,
23722348 .loongarch32,
2373 .tce,
2374 .tcele,
23752349 .spir,
23762350 .spirv32,
23772351 .kalimba,
......@@ -2481,8 +2455,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
24812455 .xcore,
24822456 .dxil,
24832457 .loongarch32,
2484 .tce,
2485 .tcele,
24862458 .spir,
24872459 .spirv32,
24882460 .kalimba,
src/Type.zig-2
......@@ -1648,8 +1648,6 @@ pub fn maxIntAlignment(target: std.Target, use_llvm: bool) u16 {
16481648 .csky,
16491649 .arc,
16501650 .m68k,
1651 .tce,
1652 .tcele,
16531651 .spir,
16541652 .kalimba,
16551653 .spirv,
src/Zcu.zig-2
......@@ -3249,8 +3249,6 @@ pub fn atomicPtrAlignment(
32493249 .riscv32,
32503250 .sparc,
32513251 .sparcel,
3252 .tce,
3253 .tcele,
32543252 .thumb,
32553253 .thumbeb,
32563254 .x86,
src/codegen/llvm.zig-6
......@@ -72,8 +72,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
7272 .sparc64 => "sparc64",
7373 .sparcel => "sparcel",
7474 .s390x => "s390x",
75 .tce => "tce",
76 .tcele => "tcele",
7775 .thumb => "thumb",
7876 .thumbeb => "thumbeb",
7977 .x86 => "i386",
......@@ -288,8 +286,6 @@ pub fn targetArch(arch_tag: std.Target.Cpu.Arch) llvm.ArchType {
288286 .sparc64 => .sparcv9, // In LLVM, sparc64 == sparcv9.
289287 .sparcel => .sparcel,
290288 .s390x => .systemz,
291 .tce => .tce,
292 .tcele => .tcele,
293289 .thumb => .thumb,
294290 .thumbeb => .thumbeb,
295291 .x86 => .x86,
......@@ -12076,8 +12072,6 @@ pub fn initializeLLVMTarget(arch: std.Target.Cpu.Arch) void {
1207612072 },
1207712073
1207812074 // LLVM backends that have no initialization functions.
12079 .tce,
12080 .tcele,
1208112075 .spir,
1208212076 .spir64,
1208312077 .spirv,
src/target.zig-2
......@@ -142,8 +142,6 @@ pub fn hasLlvmSupport(target: std.Target, ofmt: std.Target.ObjectFormat) bool {
142142 .sparc64,
143143 .sparcel,
144144 .s390x,
145 .tce,
146 .tcele,
147145 .thumb,
148146 .thumbeb,
149147 .x86,