std.Target: Remove Cpu.Arch.spu_2.

This was for a hobby project that appears to be dormant for now. This can be
added back if the project is resumed in the future.
This commit is contained in:
Alex Rønne Petersen 2025-01-24 00:22:43 +01:00
parent 55c46870b2
commit b541a7af11
No known key found for this signature in database
8 changed files with 0 additions and 21 deletions

View file

@ -461,7 +461,6 @@ pub fn get32BitArchVariant(target: std.Target) ?std.Target {
.amdgcn, .amdgcn,
.avr, .avr,
.msp430, .msp430,
.spu_2,
.ve, .ve,
.bpfel, .bpfel,
.bpfeb, .bpfeb,
@ -522,7 +521,6 @@ pub fn get64BitArchVariant(target: std.Target) ?std.Target {
.lanai, .lanai,
.m68k, .m68k,
.msp430, .msp430,
.spu_2,
.xcore, .xcore,
.xtensa, .xtensa,
=> return null, => return null,
@ -620,8 +618,6 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
.wasm32 => "wasm32", .wasm32 => "wasm32",
.wasm64 => "wasm64", .wasm64 => "wasm64",
.ve => "ve", .ve => "ve",
// Note: spu_2 is not supported in LLVM; this is the Zig arch name
.spu_2 => "spu_2",
}; };
writer.writeAll(llvm_arch) catch unreachable; writer.writeAll(llvm_arch) catch unreachable;
writer.writeByte('-') catch unreachable; writer.writeByte('-') catch unreachable;

View file

@ -1085,7 +1085,6 @@ pub fn toElfMachine(target: Target) std.elf.EM {
.s390x => .S390, .s390x => .S390,
.sparc => if (Target.sparc.featureSetHas(target.cpu.features, .v9)) .SPARC32PLUS else .SPARC, .sparc => if (Target.sparc.featureSetHas(target.cpu.features, .v9)) .SPARC32PLUS else .SPARC,
.sparc64 => .SPARCV9, .sparc64 => .SPARCV9,
.spu_2 => .SPU_2,
.ve => .VE, .ve => .VE,
.x86 => if (target.os.tag == .elfiamcu) .IAMCU else .@"386", .x86 => if (target.os.tag == .elfiamcu) .IAMCU else .@"386",
.x86_64 => .X86_64, .x86_64 => .X86_64,
@ -1148,7 +1147,6 @@ pub fn toCoffMachine(target: Target) std.coff.MachineType {
.spirv, .spirv,
.spirv32, .spirv32,
.spirv64, .spirv64,
.spu_2,
.ve, .ve,
.wasm32, .wasm32,
.wasm64, .wasm64,
@ -1378,7 +1376,6 @@ pub const Cpu = struct {
spirv, spirv,
spirv32, spirv32,
spirv64, spirv64,
spu_2,
ve, ve,
wasm32, wasm32,
wasm64, wasm64,
@ -1564,7 +1561,6 @@ pub const Cpu = struct {
.xcore, .xcore,
.thumb, .thumb,
.ve, .ve,
.spu_2,
// GPU bitness is opaque. For now, assume little endian. // GPU bitness is opaque. For now, assume little endian.
.spirv, .spirv,
.spirv32, .spirv32,
@ -1954,7 +1950,6 @@ pub const Cpu = struct {
.xtensa => &xtensa.cpu.generic, .xtensa => &xtensa.cpu.generic,
.kalimba, .kalimba,
.spu_2,
=> &S.generic_model, => &S.generic_model,
}; };
} }
@ -2627,7 +2622,6 @@ pub fn ptrBitWidth_cpu_abi(cpu: Cpu, abi: Abi) u16 {
return switch (cpu.arch) { return switch (cpu.arch) {
.avr, .avr,
.msp430, .msp430,
.spu_2,
=> 16, => 16,
.arc, .arc,
@ -3164,7 +3158,6 @@ pub fn cTypeAlignment(target: Target, c_type: CType) u16 {
.x86, .x86,
.xcore, .xcore,
.kalimba, .kalimba,
.spu_2,
.xtensa, .xtensa,
.propeller1, .propeller1,
.propeller2, .propeller2,
@ -3260,7 +3253,6 @@ pub fn cTypePreferredAlignment(target: Target, c_type: CType) u16 {
.csky, .csky,
.xcore, .xcore,
.kalimba, .kalimba,
.spu_2,
.xtensa, .xtensa,
.propeller1, .propeller1,
.propeller2, .propeller2,
@ -3371,7 +3363,6 @@ pub fn cCallingConvention(target: Target) ?std.builtin.CallingConvention {
.propeller1 => .{ .propeller1_sysv = .{} }, .propeller1 => .{ .propeller1_sysv = .{} },
.propeller2 => .{ .propeller2_sysv = .{} }, .propeller2 => .{ .propeller2_sysv = .{} },
.s390x => .{ .s390x_sysv = .{} }, .s390x => .{ .s390x_sysv = .{} },
.spu_2 => null,
.ve => .{ .ve_sysv = .{} }, .ve => .{ .ve_sysv = .{} },
.xcore => .{ .xcore_xs1 = .{} }, .xcore => .{ .xcore_xs1 = .{} },
.xtensa => .{ .xtensa_call0 = .{} }, .xtensa => .{ .xtensa_call0 = .{} },

View file

@ -17,7 +17,6 @@ pub fn supportsUnwinding(target: std.Target) bool {
.spirv, .spirv,
.spirv32, .spirv32,
.spirv64, .spirv64,
.spu_2,
=> false, => false,
// Enabling this causes relocation errors such as: // Enabling this causes relocation errors such as:

View file

@ -1178,8 +1178,6 @@ pub const EM = enum(u16) {
MIPS_RS3_LE = 10, MIPS_RS3_LE = 10,
/// Old version of Sparc v9, from before the ABI (deprecated) /// Old version of Sparc v9, from before the ABI (deprecated)
OLD_SPARCV9 = 11, OLD_SPARCV9 = 11,
/// SPU Mark II
SPU_2 = 13,
/// HPPA /// HPPA
PARISC = 15, PARISC = 15,
/// Fujitsu VPP500 (also old version of PowerPC; deprecated) /// Fujitsu VPP500 (also old version of PowerPC; deprecated)

View file

@ -1698,7 +1698,6 @@ pub fn maxIntAlignment(target: std.Target) u16 {
// Below this comment are unverified but based on the fact that C requires // Below this comment are unverified but based on the fact that C requires
// int128_t to be 16 bytes aligned, it's a safe default. // int128_t to be 16 bytes aligned, it's a safe default.
.spu_2,
.csky, .csky,
.arc, .arc,
.m68k, .m68k,

View file

@ -3594,7 +3594,6 @@ pub fn atomicPtrAlignment(
const max_atomic_bits: u16 = switch (target.cpu.arch) { const max_atomic_bits: u16 = switch (target.cpu.arch) {
.avr, .avr,
.msp430, .msp430,
.spu_2,
=> 16, => 16,
.arc, .arc,

View file

@ -98,7 +98,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
.ve => "ve", .ve => "ve",
.kalimba, .kalimba,
.spu_2,
.propeller1, .propeller1,
.propeller2, .propeller2,
=> unreachable, // Gated by hasLlvmSupport(). => unreachable, // Gated by hasLlvmSupport().
@ -13024,7 +13023,6 @@ pub fn initializeLLVMTarget(arch: std.Target.Cpu.Arch) void {
// LLVM does does not have a backend for these. // LLVM does does not have a backend for these.
.kalimba, .kalimba,
.spu_2,
.propeller1, .propeller1,
.propeller2, .propeller2,
=> unreachable, => unreachable,

View file

@ -195,7 +195,6 @@ pub fn hasLlvmSupport(target: std.Target, ofmt: std.Target.ObjectFormat) bool {
// No LLVM backend exists. // No LLVM backend exists.
.kalimba, .kalimba,
.spu_2,
.propeller1, .propeller1,
.propeller2, .propeller2,
=> false, => false,