std.Target: remove the kalimba arch tag

What little target info we had for this was incomplete/wrong, and it's
annoyingly difficult to get reliable information about it because Qualcomm
doesn't publish the documentation. So just delete it.
This commit is contained in:
Alex Rønne Petersen committed 2026-10-26 11:02:44 +01:00
1 parent c7716c1212
commit 766840daf1
7 files changed
-65

No files matched your search

-3
View File
@@ -1094,7 +1094,6 @@ pub fn get32BitArchVariant(target: *const Target) ?Target {
.csky,
.hexagon,
.hppa,
.kalimba,
.lanai,
.loongarch32,
.m68k,
@@ -1152,7 +1151,6 @@ pub fn get64BitArchVariant(target: *const Target) ?Target {
.csky,
.ez80,
.hexagon,
.kalimba,
.lanai,
.m68k,
.m88k,
@@ -1274,7 +1272,6 @@ pub fn toLLVMTriple(target: *const Target, buf: []u8) []const u8 {
.ez80 => "ez80",
.hppa => "hppa",
.hppa64 => "hppa64",
.kalimba => "kalimba",
.kvx => "kvx",
.microblaze => "microblaze",
.microblazeel => "microblazeel",
-1
View File
@@ -2389,7 +2389,6 @@ pub const TargetQuery = struct {
hexagon,
hppa,
hppa64,
kalimba,
kvx,
lanai,
loongarch32,
-11
View File
@@ -753,7 +753,6 @@ pub const bpf = @import("Target/bpf.zig");
pub const csky = @import("Target/csky.zig");
pub const hexagon = @import("Target/hexagon.zig");
pub const hppa = @import("Target/hppa.zig");
pub const kalimba = @import("Target/generic.zig");
pub const kvx = @import("Target/kvx.zig");
pub const lanai = @import("Target/lanai.zig");
pub const loongarch = @import("Target/loongarch.zig");
@@ -1091,7 +1090,6 @@ pub fn toElfMachine(target: *const Target) std.elf.EM {
.ez80 => .Z80,
.hexagon => .QDSP6,
.hppa, .hppa64 => .PARISC,
.kalimba => .CSR_KALIMBA,
.kvx => .KVX,
.lanai => .LANAI,
.loongarch32, .loongarch64 => .LOONGARCH,
@@ -1157,7 +1155,6 @@ pub fn toCoffMachine(target: *const Target) std.coff.IMAGE.FILE.MACHINE {
.hexagon,
.hppa,
.hppa64,
.kalimba,
.kvx,
.lanai,
.m88k,
@@ -1366,7 +1363,6 @@ pub const Cpu = struct {
hexagon,
hppa,
hppa64,
kalimba,
kvx,
lanai,
loongarch32,
@@ -1426,7 +1422,6 @@ pub const Cpu = struct {
csky,
hexagon,
hppa,
kalimba,
kvx,
lanai,
loongarch,
@@ -1466,7 +1461,6 @@ pub const Cpu = struct {
.ez80 => .z80,
.hexagon => .hexagon,
.hppa, .hppa64 => .hppa,
.kalimba => .kalimba,
.kvx => .kvx,
.lanai => .lanai,
.loongarch32, .loongarch64 => .loongarch,
@@ -1705,7 +1699,6 @@ pub const Cpu = struct {
.bpfel,
.csky,
.hexagon,
.kalimba,
.kvx,
.loongarch32,
.loongarch64,
@@ -3028,7 +3021,6 @@ pub fn ptrBitWidth_arch_abi(cpu_arch: Cpu.Arch, abi: Abi) u16 {
.csky,
.hexagon,
.hppa,
.kalimba,
.lanai,
.loongarch32,
.m68k,
@@ -3568,7 +3560,6 @@ pub fn cTypeAlignment(target: *const Target, c_type: CType) ?u16 {
.arc,
.arceb,
.csky,
.kalimba,
.microblaze,
.microblazeel,
.or1k,
@@ -3649,7 +3640,6 @@ pub fn cMaxIntAlignment(target: *const Target) u16 {
.arc,
.arceb,
.csky,
.kalimba,
.microblaze,
.microblazeel,
.or1k,
@@ -3762,7 +3752,6 @@ pub fn cCallingConvention(target: *const Target) ?std.builtin.CallingConvention
.hexagon => .{ .hexagon_sysv = .{} },
.hppa => .{ .hppa_elf = .{} },
.hppa64 => .{ .hppa64_elf = .{} },
.kalimba => null,
.kvx => switch (target.abi) {
.ilp32 => .{ .kvx_ilp32 = .{} },
else => .{ .kvx_lp64 = .{} },
-46
View File
@@ -2094,52 +2094,6 @@ pub const Clobbers = switch (@import("builtin").cpu.arch) {
v62: bool = false,
v63: bool = false,
},
.kalimba => packed struct {
/// Whether the inline assembly code may perform stores to memory
/// addresses other than those derived from input pointer provenance.
memory: bool = false,
i0: bool = false,
i1: bool = false,
i2: bool = false,
i3: bool = false,
i4: bool = false,
i5: bool = false,
i6: bool = false,
i7: bool = false,
m0: bool = false,
m1: bool = false,
m2: bool = false,
m3: bool = false,
l0: bool = false,
l1: bool = false,
l2: bool = false,
l3: bool = false,
l4: bool = false,
l5: bool = false,
doloopstart: bool = false,
doloopend: bool = false,
divresult: bool = false,
divremainder: bool = false,
rmac: bool = false,
rmac0: bool = false,
rmac1: bool = false,
rmac2: bool = false,
rlink: bool = false,
rflags: bool = false,
r0: bool = false,
r1: bool = false,
r2: bool = false,
r3: bool = false,
r4: bool = false,
r5: bool = false,
r6: bool = false,
r7: bool = false,
r8: bool = false,
r9: bool = false,
r10: bool = false,
},
.or1k => packed struct {
/// Whether the inline assembly code may perform stores to memory
/// addresses other than those derived from input pointer provenance.
-2
View File
@@ -153,7 +153,6 @@ pub fn tripleForTarget(allocator: Allocator, target: *const std.Target) ![]const
.ez80,
.hppa,
.hppa64,
.kalimba,
.kvx,
.m88k,
.microblaze,
@@ -577,7 +576,6 @@ pub const DataLayout = struct {
.ez80,
.hppa,
.hppa64,
.kalimba,
.kvx,
.m88k,
.microblaze,
-1
View File
@@ -4802,7 +4802,6 @@ pub fn initializeLLVMTarget(io: Io, arch: std.Target.Cpu.Arch) void {
.ez80,
.hppa,
.hppa64,
.kalimba,
.kvx,
.m88k,
.microblaze,
-1
View File
@@ -265,7 +265,6 @@ pub fn hasLlvmSupport(target: *const std.Target, ofmt: std.Target.ObjectFormat)
.arceb,
.hppa,
.hppa64,
.kalimba,
.kvx,
.m88k,
.microblaze,