@@ -17,8 +17,6 @@ pub fn intMaxType(target: std.Target) Type {
17
17
.riscv64 ,
18
18
.powerpc64 ,
19
19
.powerpc64le ,
20
- .tce ,
21
- .tcele ,
22
20
.ve ,
23
21
= > return .{ .specifier = .long },
24
22
@@ -54,8 +52,6 @@ pub fn intPtrType(target: std.Target) Type {
54
52
.riscv32 ,
55
53
.xcore ,
56
54
.hexagon ,
57
- .tce ,
58
- .tcele ,
59
55
.m68k ,
60
56
.spir ,
61
57
.spirv32 ,
@@ -153,7 +149,7 @@ pub fn isTlsSupported(target: std.Target) bool {
153
149
return supported ;
154
150
}
155
151
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 ,
157
153
else = > true ,
158
154
};
159
155
}
@@ -470,25 +466,18 @@ pub fn get32BitArchVariant(target: std.Target) ?std.Target {
470
466
.mipsel ,
471
467
.powerpc ,
472
468
.powerpcle ,
473
- .r600 ,
474
469
.riscv32 ,
475
470
.sparc ,
476
471
.sparcel ,
477
- .tce ,
478
- .tcele ,
479
472
.thumb ,
480
473
.thumbeb ,
481
474
.x86 ,
482
475
.xcore ,
483
476
.nvptx ,
484
- .amdil ,
485
- .hsail ,
486
477
.spir ,
487
478
.kalimba ,
488
- .shave ,
489
479
.lanai ,
490
480
.wasm32 ,
491
- .renderscript32 ,
492
481
.aarch64_32 ,
493
482
.spirv32 ,
494
483
.loongarch32 ,
@@ -498,13 +487,10 @@ pub fn get32BitArchVariant(target: std.Target) ?std.Target {
498
487
499
488
.aarch64 = > copy .cpu .arch = .arm ,
500
489
.aarch64_be = > copy .cpu .arch = .armeb ,
501
- .amdil64 = > copy .cpu .arch = .amdil ,
502
490
.nvptx64 = > copy .cpu .arch = .nvptx ,
503
491
.wasm64 = > copy .cpu .arch = .wasm32 ,
504
- .hsail64 = > copy .cpu .arch = .hsail ,
505
492
.spir64 = > copy .cpu .arch = .spir ,
506
493
.spirv64 = > copy .cpu .arch = .spirv32 ,
507
- .renderscript64 = > copy .cpu .arch = .renderscript32 ,
508
494
.loongarch64 = > copy .cpu .arch = .loongarch32 ,
509
495
.mips64 = > copy .cpu .arch = .mips ,
510
496
.mips64el = > copy .cpu .arch = .mipsel ,
@@ -529,12 +515,8 @@ pub fn get64BitArchVariant(target: std.Target) ?std.Target {
529
515
.lanai ,
530
516
.m68k ,
531
517
.msp430 ,
532
- .r600 ,
533
- .shave ,
534
518
.sparcel ,
535
519
.spu_2 ,
536
- .tce ,
537
- .tcele ,
538
520
.xcore ,
539
521
.xtensa ,
540
522
= > return null ,
@@ -544,13 +526,10 @@ pub fn get64BitArchVariant(target: std.Target) ?std.Target {
544
526
.amdgcn ,
545
527
.bpfeb ,
546
528
.bpfel ,
547
- .amdil64 ,
548
529
.nvptx64 ,
549
530
.wasm64 ,
550
- .hsail64 ,
551
531
.spir64 ,
552
532
.spirv64 ,
553
- .renderscript64 ,
554
533
.loongarch64 ,
555
534
.mips64 ,
556
535
.mips64el ,
@@ -564,17 +543,14 @@ pub fn get64BitArchVariant(target: std.Target) ?std.Target {
564
543
= > {}, // Already 64 bit
565
544
566
545
.aarch64_32 = > copy .cpu .arch = .aarch64 ,
567
- .amdil = > copy .cpu .arch = .amdil64 ,
568
546
.arm = > copy .cpu .arch = .aarch64 ,
569
547
.armeb = > copy .cpu .arch = .aarch64_be ,
570
- .hsail = > copy .cpu .arch = .hsail64 ,
571
548
.loongarch32 = > copy .cpu .arch = .loongarch64 ,
572
549
.mips = > copy .cpu .arch = .mips64 ,
573
550
.mipsel = > copy .cpu .arch = .mips64el ,
574
551
.nvptx = > copy .cpu .arch = .nvptx64 ,
575
552
.powerpc = > copy .cpu .arch = .powerpc64 ,
576
553
.powerpcle = > copy .cpu .arch = .powerpc64le ,
577
- .renderscript32 = > copy .cpu .arch = .renderscript64 ,
578
554
.riscv32 = > copy .cpu .arch = .riscv64 ,
579
555
.sparc = > copy .cpu .arch = .sparc64 ,
580
556
.spir = > copy .cpu .arch = .spir64 ,
@@ -620,16 +596,13 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
620
596
.powerpcle = > "powerpcle" ,
621
597
.powerpc64 = > "powerpc64" ,
622
598
.powerpc64le = > "powerpc64le" ,
623
- .r600 = > "r600" ,
624
599
.amdgcn = > "amdgcn" ,
625
600
.riscv32 = > "riscv32" ,
626
601
.riscv64 = > "riscv64" ,
627
602
.sparc = > "sparc" ,
628
603
.sparc64 = > "sparc64" ,
629
604
.sparcel = > "sparcel" ,
630
605
.s390x = > "s390x" ,
631
- .tce = > "tce" ,
632
- .tcele = > "tcele" ,
633
606
.thumb = > "thumb" ,
634
607
.thumbeb = > "thumbeb" ,
635
608
.x86 = > "i386" ,
@@ -638,21 +611,14 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
638
611
.xtensa = > "xtensa" ,
639
612
.nvptx = > "nvptx" ,
640
613
.nvptx64 = > "nvptx64" ,
641
- .amdil = > "amdil" ,
642
- .amdil64 = > "amdil64" ,
643
- .hsail = > "hsail" ,
644
- .hsail64 = > "hsail64" ,
645
614
.spir = > "spir" ,
646
615
.spir64 = > "spir64" ,
647
616
.spirv32 = > "spirv32" ,
648
617
.spirv64 = > "spirv64" ,
649
618
.kalimba = > "kalimba" ,
650
- .shave = > "shave" ,
651
619
.lanai = > "lanai" ,
652
620
.wasm32 = > "wasm32" ,
653
621
.wasm64 = > "wasm64" ,
654
- .renderscript32 = > "renderscript32" ,
655
- .renderscript64 = > "renderscript64" ,
656
622
.ve = > "ve" ,
657
623
// Note: spu_2 is not supported in LLVM; this is the Zig arch name
658
624
.spu_2 = > "spu_2" ,
@@ -668,7 +634,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
668
634
.freebsd = > "freebsd" ,
669
635
.fuchsia = > "fuchsia" ,
670
636
.linux = > "linux" ,
671
- .lv2 = > "lv2" ,
637
+ .ps3 = > "lv2" ,
672
638
.netbsd = > "netbsd" ,
673
639
.openbsd = > "openbsd" ,
674
640
.solaris = > "solaris" ,
0 commit comments