| ... | @@ -74,14 +74,6 @@ pub const Os = struct { | ... | @@ -74,14 +74,6 @@ pub const Os = struct { |
| 74 | | 74 | |
| 75 | ashetos, | 75 | ashetos, |
| 76 | | 76 | |
| 77 | // LLVM tags deliberately omitted: | | |
| 78 | // - bridgeos | | |
| 79 | // - cheriotrtos | | |
| 80 | // - darwin | | |
| 81 | // - kfreebsd | | |
| 82 | // - nacl | | |
| 83 | // - shadermodel | | |
| 84 | | | |
| 85 | pub inline fn isDarwin(tag: Tag) bool { | 77 | pub inline fn isDarwin(tag: Tag) bool { |
| 86 | return switch (tag) { | 78 | return switch (tag) { |
| 87 | .driverkit, | 79 | .driverkit, |
| ... | @@ -825,33 +817,6 @@ pub const Abi = enum { | ... | @@ -825,33 +817,6 @@ pub const Abi = enum { |
| 825 | ohoseabi, | 817 | ohoseabi, |
| 826 | call0, | 818 | call0, |
| 827 | | 819 | |
| 828 | // LLVM tags deliberately omitted: | | |
| 829 | // - amplification | | |
| 830 | // - anyhit | | |
| 831 | // - callable | | |
| 832 | // - closesthit | | |
| 833 | // - compute | | |
| 834 | // - coreclr | | |
| 835 | // - domain | | |
| 836 | // - geometry | | |
| 837 | // - gnueabit64 | | |
| 838 | // - gnueabihft64 | | |
| 839 | // - gnuf64 | | |
| 840 | // - gnut64 | | |
| 841 | // - hull | | |
| 842 | // - intersection | | |
| 843 | // - library | | |
| 844 | // - llvm | | |
| 845 | // - mesh | | |
| 846 | // - miss | | |
| 847 | // - mlibc | | |
| 848 | // - mtia | | |
| 849 | // - pauthtest | | |
| 850 | // - pixel | | |
| 851 | // - raygeneration | | |
| 852 | // - rootsignature | | |
| 853 | // - vertex | | |
| 854 | | | |
| 855 | pub fn default(arch: Cpu.Arch, os_tag: Os.Tag) Abi { | 820 | pub fn default(arch: Cpu.Arch, os_tag: Os.Tag) Abi { |
| 856 | return switch (os_tag) { | 821 | return switch (os_tag) { |
| 857 | .freestanding, .other => switch (arch) { | 822 | .freestanding, .other => switch (arch) { |
| ... | @@ -1079,9 +1044,6 @@ pub const ObjectFormat = enum { | ... | @@ -1079,9 +1044,6 @@ pub const ObjectFormat = enum { |
| 1079 | /// The WebAssembly binary format. | 1044 | /// The WebAssembly binary format. |
| 1080 | wasm, | 1045 | wasm, |
| 1081 | | 1046 | |
| 1082 | // LLVM tags deliberately omitted: | | |
| 1083 | // - dxcontainer | | |
| 1084 | | | |
| 1085 | pub fn fileExt(of: ObjectFormat, arch: Cpu.Arch) [:0]const u8 { | 1047 | pub fn fileExt(of: ObjectFormat, arch: Cpu.Arch) [:0]const u8 { |
| 1086 | return switch (of) { | 1048 | return switch (of) { |
| 1087 | .c => ".c", | 1049 | .c => ".c", |
| ... | @@ -1439,24 +1401,6 @@ pub const Cpu = struct { | ... | @@ -1439,24 +1401,6 @@ pub const Cpu = struct { |
| 1439 | xtensa, | 1401 | xtensa, |
| 1440 | xtensaeb, | 1402 | xtensaeb, |
| 1441 | | 1403 | |
| 1442 | // LLVM tags deliberately omitted: | | |
| 1443 | // - aarch64_32 | | |
| 1444 | // - amdil | | |
| 1445 | // - amdil64 | | |
| 1446 | // - dxil | | |
| 1447 | // - r600 | | |
| 1448 | // - hsail | | |
| 1449 | // - hsail64 | | |
| 1450 | // - renderscript32 | | |
| 1451 | // - renderscript64 | | |
| 1452 | // - shave | | |
| 1453 | // - sparcel | | |
| 1454 | // - spir | | |
| 1455 | // - spir64 | | |
| 1456 | // - spirv | | |
| 1457 | // - tce | | |
| 1458 | // - tcele | | |
| 1459 | | | |
| 1460 | /// An architecture family can encompass multiple architectures as represented by `Arch`. | 1404 | /// An architecture family can encompass multiple architectures as represented by `Arch`. |
| 1461 | /// For a given family tag, it is guaranteed that an `std.Target.<tag>` namespace exists | 1405 | /// For a given family tag, it is guaranteed that an `std.Target.<tag>` namespace exists |
| 1462 | /// containing CPU model and feature data. | 1406 | /// containing CPU model and feature data. |
| ... | @@ -2696,7 +2640,6 @@ pub const DynamicLinker = struct { | ... | @@ -2696,7 +2640,6 @@ pub const DynamicLinker = struct { |
| 2696 | .or1k, | 2640 | .or1k, |
| 2697 | => |arch| if (abi == .gnu) initFmt("/lib/ld-linux-{s}.so.1", .{@tagName(arch)}) else none, | 2641 | => |arch| if (abi == .gnu) initFmt("/lib/ld-linux-{s}.so.1", .{@tagName(arch)}) else none, |
| 2698 | | 2642 | |
| 2699 | // TODO: `-be` architecture support. | | |
| 2700 | .csky => initFmt("/lib/ld-linux-cskyv2{s}.so.1", .{switch (abi) { | 2643 | .csky => initFmt("/lib/ld-linux-cskyv2{s}.so.1", .{switch (abi) { |
| 2701 | .gnueabi => "", | 2644 | .gnueabi => "", |
| 2702 | .gnueabihf => "-hf", | 2645 | .gnueabihf => "-hf", |