lang: rename signed integer types sN -> iN

Surface rename of the signed integer family: s1..s64 become i1..i64
(u1..u64, usize, isize unchanged). 'string' keeps the s-prefix arm in
name classification; width parsing moves to the i-prefix arm next to
isize.

Internal TypeId tags follow the surface (.s8/.s16/.s32/.s64 ->
.i8/.i16/.i32/.i64), as do mono-key mangle fragments (ptr_i64,
tu_i64_bool) and all display/diagnostic formatting (i{d}).

Migrated in the same sweep: stdlib + examples + issue repros + FFI C
companions (shared symbol names like ffi_id_i64), expected
stdout/stderr/ir snapshots, specs.md, readme.md, CLAUDE.md/AGENTS.md,
implementation_plan.md, docs/, issue writeups. Vendored stb_image and
historical flow state left untouched.

zig build test: 426/426; examples suite: 595/595.
This commit is contained in:
agra
2026-06-12 09:31:53 +03:00
parent 515ecebea7
commit d8076b9333
1054 changed files with 6836 additions and 6839 deletions

View File

@@ -25,10 +25,10 @@
@tag_names = private constant [14 x { ptr, i64 }] [{ ptr, i64 } { ptr @tag.str, i64 0 }, { ptr, i64 } { ptr @tag.str.114, i64 8 }, { ptr, i64 } { ptr @tag.str.115, i64 2 }, { ptr, i64 } { ptr @tag.str.116, i64 15 }, { ptr, i64 } { ptr @tag.str.117, i64 13 }, { ptr, i64 } { ptr @tag.str.118, i64 9 }, { ptr, i64 } { ptr @tag.str.119, i64 9 }, { ptr, i64 } { ptr @tag.str.120, i64 15 }, { ptr, i64 } { ptr @tag.str.121, i64 14 }, { ptr, i64 } { ptr @tag.str.122, i64 14 }, { ptr, i64 } { ptr @tag.str.123, i64 11 }, { ptr, i64 } { ptr @tag.str.124, i64 12 }, { ptr, i64 } { ptr @tag.str.125, i64 15 }, { ptr, i64 } { ptr @tag.str.126, i64 12 }]
@tn.str = private constant [13 x i8] c"<unresolved>\00"
@tn.str.127 = private constant [5 x i8] c"bool\00"
@tn.str.128 = private constant [3 x i8] c"s8\00"
@tn.str.129 = private constant [4 x i8] c"s16\00"
@tn.str.130 = private constant [4 x i8] c"s32\00"
@tn.str.131 = private constant [4 x i8] c"s64\00"
@tn.str.128 = private constant [3 x i8] c"i8\00"
@tn.str.129 = private constant [4 x i8] c"i16\00"
@tn.str.130 = private constant [4 x i8] c"i32\00"
@tn.str.131 = private constant [4 x i8] c"i64\00"
@tn.str.132 = private constant [3 x i8] c"u8\00"
@tn.str.133 = private constant [4 x i8] c"u16\00"
@tn.str.134 = private constant [4 x i8] c"u32\00"
@@ -45,7 +45,7 @@
@tn.str.145 = private constant [16 x i8] c"Source_Location\00"
@tn.str.146 = private constant [10 x i8] c"Allocator\00"
@tn.str.147 = private constant [8 x i8] c"Context\00"
@tn.str.148 = private constant [7 x i8] c"[4]s64\00"
@tn.str.148 = private constant [7 x i8] c"[4]i64\00"
@tn.str.149 = private constant [9 x i8] c"[]string\00"
@tn.str.150 = private constant [11 x i8] c"CAllocator\00"
@tn.str.151 = private constant [12 x i8] c"*CAllocator\00"
@@ -70,7 +70,7 @@
@tn.str.170 = private constant [4 x i8] c"*u8\00"
@tn.str.171 = private constant [14 x i8] c"ProcessResult\00"
@tn.str.172 = private constant [15 x i8] c"?ProcessResult\00"
@tn.str.173 = private constant [5 x i8] c"*s32\00"
@tn.str.173 = private constant [5 x i8] c"*i32\00"
@tn.str.174 = private constant [9 x i8] c"SockAddr\00"
@tn.str.175 = private constant [10 x i8] c"*SockAddr\00"
@tn.str.176 = private constant [5 x i8] c"*u32\00"
@@ -86,9 +86,9 @@
@tn.str.186 = private constant [5 x i8] c"[]u8\00"
@tn.str.187 = private constant [5 x i8] c"Sink\00"
@tn.str.188 = private constant [6 x i8] c"*Sink\00"
@tn.str.189 = private constant [17 x i8] c"(s64, JsonError)\00"
@tn.str.189 = private constant [17 x i8] c"(i64, JsonError)\00"
@tn.str.190 = private constant [15 x i8] c"JsonParseError\00"
@tn.str.191 = private constant [22 x i8] c"(s64, JsonParseError)\00"
@tn.str.191 = private constant [22 x i8] c"(i64, JsonParseError)\00"
@tn.str.192 = private constant [7 x i8] c"Parser\00"
@tn.str.193 = private constant [8 x i8] c"*Parser\00"
@tn.str.194 = private constant [25 x i8] c"(string, JsonParseError)\00"
@@ -97,7 +97,7 @@
@tn.str.197 = private constant [13 x i8] c"Architecture\00"
@tn.str.198 = private constant [13 x i8] c"BuildOptions\00"
@tn.str.199 = private constant [11 x i8] c"() -> bool\00"
@tn.str.200 = private constant [5 x i8] c"*s64\00"
@tn.str.200 = private constant [5 x i8] c"*i64\00"
@tn.str.201 = private constant [9 x i8] c"CliError\00"
@tn.str.202 = private constant [9 x i8] c"FlagSpec\00"
@tn.str.203 = private constant [11 x i8] c"[]FlagSpec\00"
@@ -110,12 +110,12 @@
@tn.str.210 = private constant [19 x i8] c"(Parsed, CliError)\00"
@tn.str.211 = private constant [10 x i8] c"[]Command\00"
@tn.str.212 = private constant [6 x i8] c"*Diag\00"
@tn.str.213 = private constant [7 x i8] c"[8]s64\00"
@tn.str.213 = private constant [7 x i8] c"[8]i64\00"
@tn.str.214 = private constant [7 x i8] c"[64]u8\00"
@tn.str.215 = private constant [7 x i8] c"Sha256\00"
@tn.str.216 = private constant [8 x i8] c"*Sha256\00"
@tn.str.217 = private constant [8 x i8] c"?[64]u8\00"
@tn.str.218 = private constant [8 x i8] c"[64]s64\00"
@tn.str.218 = private constant [8 x i8] c"[64]i64\00"
@tn.str.219 = private constant [8 x i8] c"[16]f32\00"
@tn.str.220 = private constant [5 x i8] c"Mat4\00"
@tn.str.221 = private constant [5 x i8] c"Vec2\00"
@@ -142,7 +142,7 @@
@tn.str.242 = private constant [5 x i8] c"*f64\00"
@tn.str.243 = private constant [8 x i8] c"Sx__f32\00"
@tn.str.244 = private constant [9 x i8] c"*Sx__f32\00"
@tn.str.245 = private constant [8 x i8] c"*[4]s64\00"
@tn.str.245 = private constant [8 x i8] c"*[4]i64\00"
@tn.str.246 = private constant [17 x i8] c"*Source_Location\00"
@tn.str.247 = private constant [11 x i8] c"*Allocator\00"
@tn.str.248 = private constant [9 x i8] c"*Context\00"
@@ -163,9 +163,9 @@
@tn.str.263 = private constant [17 x i8] c"*OperatingSystem\00"
@tn.str.264 = private constant [14 x i8] c"*Architecture\00"
@tn.str.265 = private constant [15 x i8] c"*[16]FlagValue\00"
@tn.str.266 = private constant [8 x i8] c"*[8]s64\00"
@tn.str.266 = private constant [8 x i8] c"*[8]i64\00"
@tn.str.267 = private constant [8 x i8] c"*[64]u8\00"
@tn.str.268 = private constant [9 x i8] c"*[64]s64\00"
@tn.str.268 = private constant [9 x i8] c"*[64]i64\00"
@tn.str.269 = private constant [9 x i8] c"*[16]f32\00"
@tn.str.270 = private constant [10 x i8] c"*[]string\00"
@tn.str.271 = private constant [6 x i8] c"*[]u8\00"
@@ -179,7 +179,7 @@
@tn.str.279 = private constant [20 x i8] c"**TrackingAllocator\00"
@tn.str.280 = private constant [7 x i8] c"**File\00"
@tn.str.281 = private constant [5 x i8] c"**u8\00"
@tn.str.282 = private constant [6 x i8] c"**s32\00"
@tn.str.282 = private constant [6 x i8] c"**i32\00"
@tn.str.283 = private constant [11 x i8] c"**SockAddr\00"
@tn.str.284 = private constant [6 x i8] c"**u32\00"
@tn.str.285 = private constant [10 x i8] c"*[*]Value\00"
@@ -188,7 +188,7 @@
@tn.str.288 = private constant [9 x i8] c"**Object\00"
@tn.str.289 = private constant [7 x i8] c"**Sink\00"
@tn.str.290 = private constant [9 x i8] c"**Parser\00"
@tn.str.291 = private constant [6 x i8] c"**s64\00"
@tn.str.291 = private constant [6 x i8] c"**i64\00"
@tn.str.292 = private constant [9 x i8] c"**Parsed\00"
@tn.str.293 = private constant [7 x i8] c"**Diag\00"
@tn.str.294 = private constant [9 x i8] c"**Sha256\00"
@@ -658,7 +658,7 @@
@str.755 = private unnamed_addr constant [4 x i8] c"*u8\00", align 1
@str.756 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
@str.757 = private unnamed_addr constant [5 x i8] c"null\00", align 1
@str.758 = private unnamed_addr constant [5 x i8] c"*s32\00", align 1
@str.758 = private unnamed_addr constant [5 x i8] c"*i32\00", align 1
@str.759 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
@str.760 = private unnamed_addr constant [5 x i8] c"null\00", align 1
@str.761 = private unnamed_addr constant [10 x i8] c"*SockAddr\00", align 1
@@ -685,7 +685,7 @@
@str.782 = private unnamed_addr constant [8 x i8] c"*Parser\00", align 1
@str.783 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
@str.784 = private unnamed_addr constant [5 x i8] c"null\00", align 1
@str.785 = private unnamed_addr constant [5 x i8] c"*s64\00", align 1
@str.785 = private unnamed_addr constant [5 x i8] c"*i64\00", align 1
@str.786 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
@str.787 = private unnamed_addr constant [5 x i8] c"null\00", align 1
@str.788 = private unnamed_addr constant [8 x i8] c"*Parsed\00", align 1
@@ -2186,7 +2186,7 @@ dispatch.case.312: ; preds = %match.arm.47
%ua.raw211 = extractvalue { i64, i64 } %loadN, 1
%ua.ptr212 = inttoptr i64 %ua.raw211 to ptr
%ua.load213 = load [4 x i64], ptr %ua.ptr212, align 8
%callN = call { ptr, i64 } @array_to_string__AR_4_s64(ptr %0, [4 x i64] %ua.load213)
%callN = call { ptr, i64 } @array_to_string__AR_4_i64(ptr %0, [4 x i64] %ua.load213)
store { ptr, i64 } %callN, ptr %allocaN, align 8
br label %dispatch.merge.310
@@ -2202,7 +2202,7 @@ dispatch.case.314: ; preds = %match.arm.47
%ua.raw219 = extractvalue { i64, i64 } %loadN, 1
%ua.ptr220 = inttoptr i64 %ua.raw219 to ptr
%ua.load221 = load [8 x i64], ptr %ua.ptr220, align 8
%callN = call { ptr, i64 } @array_to_string__AR_8_s64(ptr %0, [8 x i64] %ua.load221)
%callN = call { ptr, i64 } @array_to_string__AR_8_i64(ptr %0, [8 x i64] %ua.load221)
store { ptr, i64 } %callN, ptr %allocaN, align 8
br label %dispatch.merge.310
@@ -2218,7 +2218,7 @@ dispatch.case.316: ; preds = %match.arm.47
%ua.raw227 = extractvalue { i64, i64 } %loadN, 1
%ua.ptr228 = inttoptr i64 %ua.raw227 to ptr
%ua.load229 = load [64 x i64], ptr %ua.ptr228, align 8
%callN = call { ptr, i64 } @array_to_string__AR_64_s64(ptr %0, [64 x i64] %ua.load229)
%callN = call { ptr, i64 } @array_to_string__AR_64_i64(ptr %0, [64 x i64] %ua.load229)
store { ptr, i64 } %callN, ptr %allocaN, align 8
br label %dispatch.merge.310
@@ -2377,7 +2377,7 @@ dispatch.case.403: ; preds = %match.arm.49
dispatch.case.404: ; preds = %match.arm.49
%ua.raw294 = extractvalue { i64, i64 } %loadN, 1
%iNp295 = inttoptr i64 %ua.raw294 to ptr
%callN = call { ptr, i64 } @pointer_to_string__ptr_s32(ptr %0, ptr %iNp295)
%callN = call { ptr, i64 } @pointer_to_string__ptr_i32(ptr %0, ptr %iNp295)
store { ptr, i64 } %callN, ptr %allocaN, align 8
br label %dispatch.merge.392
@@ -2440,7 +2440,7 @@ dispatch.case.412: ; preds = %match.arm.49
dispatch.case.413: ; preds = %match.arm.49
%ua.raw321 = extractvalue { i64, i64 } %loadN, 1
%iNp322 = inttoptr i64 %ua.raw321 to ptr
%callN = call { ptr, i64 } @pointer_to_string__ptr_s64(ptr %0, ptr %iNp322)
%callN = call { ptr, i64 } @pointer_to_string__ptr_i64(ptr %0, ptr %iNp322)
store { ptr, i64 } %callN, ptr %allocaN, align 8
br label %dispatch.merge.392
@@ -3882,9 +3882,9 @@ entry:
store { i64, [4 x i8] } %ei.val, ptr %allocaN, align 8
%loadN = load { i64, [4 x i8] }, ptr %allocaN, align 8
call void @print__ct_sbc6305862a3a863d__pack_Sx__f32(ptr @__sx_default_context, { i64, [4 x i8] } %loadN)
call void @print__ct_sbc6305862a3a863d__pack_s64(ptr @__sx_default_context, i64 4)
call void @print__ct_sbc6305862a3a863d__pack_s64(ptr @__sx_default_context, i64 16)
call void @print__ct_sbc6305862a3a863d__pack_s64(ptr @__sx_default_context, i64 8)
call void @print__ct_sbc6305862a3a863d__pack_i64(ptr @__sx_default_context, i64 4)
call void @print__ct_sbc6305862a3a863d__pack_i64(ptr @__sx_default_context, i64 16)
call void @print__ct_sbc6305862a3a863d__pack_i64(ptr @__sx_default_context, i64 8)
ret i32 0
}
@@ -4515,7 +4515,7 @@ entry:
}
; Function Attrs: nounwind
define internal void @print__ct_sbc6305862a3a863d__pack_s64(ptr %0, i64 %1) #0 {
define internal void @print__ct_sbc6305862a3a863d__pack_i64(ptr %0, i64 %1) #0 {
entry:
%alloca = alloca { ptr, i64 }, align 8
store { ptr, i64 } { ptr @str.368, i64 3 }, ptr %alloca, align 8
@@ -4636,14 +4636,14 @@ fv.case: ; preds = %if.merge.131
fv.case17: ; preds = %if.merge.131
%fv.field18 = extractvalue { { ptr, i64 }, i32, i32, { ptr, i64 } } %loadN, 1
%sN = sext i32 %fv.field18 to i64
%fv.val19 = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %sN, 1
%iN = sext i32 %fv.field18 to i64
%fv.val19 = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %iN, 1
br label %fv.merge
fv.case20: ; preds = %if.merge.131
%fv.field21 = extractvalue { { ptr, i64 }, i32, i32, { ptr, i64 } } %loadN, 2
%sN = sext i32 %fv.field21 to i64
%fv.val23 = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %sN, 1
%iN = sext i32 %fv.field21 to i64
%fv.val23 = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %iN, 1
br label %fv.merge
fv.case24: ; preds = %if.merge.131
@@ -5339,8 +5339,8 @@ fv.default: ; preds = %if.merge.176
fv.case: ; preds = %if.merge.176
%fv.field = extractvalue { i32 } %loadN, 0
%sN = sext i32 %fv.field to i64
%fv.val = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %sN, 1
%iN = sext i32 %fv.field to i64
%fv.val = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %iN, 1
br label %fv.merge
}
@@ -5423,14 +5423,14 @@ fv.case: ; preds = %if.merge.181
fv.case17: ; preds = %if.merge.181
%fv.field18 = extractvalue { { ptr, i64 }, i32, i32, { ptr, i64 }, { ptr, i64 } } %loadN, 1
%sN = sext i32 %fv.field18 to i64
%fv.val19 = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %sN, 1
%iN = sext i32 %fv.field18 to i64
%fv.val19 = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %iN, 1
br label %fv.merge
fv.case20: ; preds = %if.merge.181
%fv.field21 = extractvalue { { ptr, i64 }, i32, i32, { ptr, i64 }, { ptr, i64 } } %loadN, 2
%sN = sext i32 %fv.field21 to i64
%fv.val23 = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %sN, 1
%iN = sext i32 %fv.field21 to i64
%fv.val23 = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %iN, 1
br label %fv.merge
fv.case24: ; preds = %if.merge.181
@@ -5515,8 +5515,8 @@ fv.default: ; preds = %if.merge.186
fv.case: ; preds = %if.merge.186
%fv.field = extractvalue { i32, { ptr, i64 } } %loadN, 0
%sN = sext i32 %fv.field to i64
%fv.val = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %sN, 1
%iN = sext i32 %fv.field to i64
%fv.val = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %iN, 1
br label %fv.merge
fv.case17: ; preds = %if.merge.186
@@ -7422,8 +7422,8 @@ fv.case: ; preds = %entry
store { i64, [4 x i8] } %loadN, ptr %fv.utmp, align 8
%fv.pp = getelementptr inbounds { i64, [4 x i8] }, ptr %fv.utmp, i32 0, i32 1
%fv.field = load i32, ptr %fv.pp, align 4
%sN = sext i32 %fv.field to i64
%fv.val = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %sN, 1
%iN = sext i32 %fv.field to i64
%fv.val = insertvalue { i64, i64 } { i64 4, i64 undef }, i64 %iN, 1
br label %fv.merge
fv.case6: ; preds = %entry
@@ -7487,7 +7487,7 @@ if.merge.309: ; preds = %if.then.308, %while
}
; Function Attrs: nounwind
define internal { ptr, i64 } @array_to_string__AR_4_s64(ptr %0, [4 x i64] %1) #0 {
define internal { ptr, i64 } @array_to_string__AR_4_i64(ptr %0, [4 x i64] %1) #0 {
entry:
%alloca = alloca [4 x i64], align 8
%ig.tmp = alloca [4 x i64], align 8
@@ -7590,7 +7590,7 @@ if.merge.329: ; preds = %if.then.328, %while
}
; Function Attrs: nounwind
define internal { ptr, i64 } @array_to_string__AR_8_s64(ptr %0, [8 x i64] %1) #0 {
define internal { ptr, i64 } @array_to_string__AR_8_i64(ptr %0, [8 x i64] %1) #0 {
entry:
%alloca = alloca [8 x i64], align 8
%ig.tmp = alloca [8 x i64], align 8
@@ -7691,7 +7691,7 @@ if.merge.339: ; preds = %if.then.338, %while
}
; Function Attrs: nounwind
define internal { ptr, i64 } @array_to_string__AR_64_s64(ptr %0, [64 x i64] %1) #0 {
define internal { ptr, i64 } @array_to_string__AR_64_i64(ptr %0, [64 x i64] %1) #0 {
entry:
%alloca = alloca [64 x i64], align 8
%ig.tmp = alloca [64 x i64], align 8
@@ -8445,7 +8445,7 @@ if.merge.473: ; preds = %if.else.472, %if.th
}
; Function Attrs: nounwind
define internal { ptr, i64 } @pointer_to_string__ptr_s32(ptr %0, ptr %1) #0 {
define internal { ptr, i64 } @pointer_to_string__ptr_i32(ptr %0, ptr %1) #0 {
entry:
%alloca = alloca ptr, align 8
store ptr %1, ptr %alloca, align 8
@@ -8695,7 +8695,7 @@ if.merge.500: ; preds = %if.else.499, %if.th
}
; Function Attrs: nounwind
define internal { ptr, i64 } @pointer_to_string__ptr_s64(ptr %0, ptr %1) #0 {
define internal { ptr, i64 } @pointer_to_string__ptr_i64(ptr %0, ptr %1) #0 {
entry:
%alloca = alloca ptr, align 8
store ptr %1, ptr %alloca, align 8