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:
@@ -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"
|
||||
@@ -46,7 +46,7 @@
|
||||
@tn.str.146 = private constant [16 x i8] c"Source_Location\00"
|
||||
@tn.str.147 = private constant [10 x i8] c"Allocator\00"
|
||||
@tn.str.148 = private constant [8 x i8] c"Context\00"
|
||||
@tn.str.149 = private constant [7 x i8] c"[4]s64\00"
|
||||
@tn.str.149 = private constant [7 x i8] c"[4]i64\00"
|
||||
@tn.str.150 = private constant [9 x i8] c"[]string\00"
|
||||
@tn.str.151 = private constant [11 x i8] c"CAllocator\00"
|
||||
@tn.str.152 = private constant [12 x i8] c"*CAllocator\00"
|
||||
@@ -71,7 +71,7 @@
|
||||
@tn.str.171 = private constant [4 x i8] c"*u8\00"
|
||||
@tn.str.172 = private constant [14 x i8] c"ProcessResult\00"
|
||||
@tn.str.173 = private constant [15 x i8] c"?ProcessResult\00"
|
||||
@tn.str.174 = private constant [5 x i8] c"*s32\00"
|
||||
@tn.str.174 = private constant [5 x i8] c"*i32\00"
|
||||
@tn.str.175 = private constant [9 x i8] c"SockAddr\00"
|
||||
@tn.str.176 = private constant [10 x i8] c"*SockAddr\00"
|
||||
@tn.str.177 = private constant [5 x i8] c"*u32\00"
|
||||
@@ -87,9 +87,9 @@
|
||||
@tn.str.187 = private constant [5 x i8] c"[]u8\00"
|
||||
@tn.str.188 = private constant [5 x i8] c"Sink\00"
|
||||
@tn.str.189 = private constant [6 x i8] c"*Sink\00"
|
||||
@tn.str.190 = private constant [17 x i8] c"(s64, JsonError)\00"
|
||||
@tn.str.190 = private constant [17 x i8] c"(i64, JsonError)\00"
|
||||
@tn.str.191 = private constant [15 x i8] c"JsonParseError\00"
|
||||
@tn.str.192 = private constant [22 x i8] c"(s64, JsonParseError)\00"
|
||||
@tn.str.192 = private constant [22 x i8] c"(i64, JsonParseError)\00"
|
||||
@tn.str.193 = private constant [7 x i8] c"Parser\00"
|
||||
@tn.str.194 = private constant [8 x i8] c"*Parser\00"
|
||||
@tn.str.195 = private constant [25 x i8] c"(string, JsonParseError)\00"
|
||||
@@ -98,7 +98,7 @@
|
||||
@tn.str.198 = private constant [13 x i8] c"Architecture\00"
|
||||
@tn.str.199 = private constant [13 x i8] c"BuildOptions\00"
|
||||
@tn.str.200 = private constant [11 x i8] c"() -> bool\00"
|
||||
@tn.str.201 = private constant [5 x i8] c"*s64\00"
|
||||
@tn.str.201 = private constant [5 x i8] c"*i64\00"
|
||||
@tn.str.202 = private constant [9 x i8] c"CliError\00"
|
||||
@tn.str.203 = private constant [9 x i8] c"FlagSpec\00"
|
||||
@tn.str.204 = private constant [11 x i8] c"[]FlagSpec\00"
|
||||
@@ -111,12 +111,12 @@
|
||||
@tn.str.211 = private constant [19 x i8] c"(Parsed, CliError)\00"
|
||||
@tn.str.212 = private constant [10 x i8] c"[]Command\00"
|
||||
@tn.str.213 = private constant [6 x i8] c"*Diag\00"
|
||||
@tn.str.214 = private constant [7 x i8] c"[8]s64\00"
|
||||
@tn.str.214 = private constant [7 x i8] c"[8]i64\00"
|
||||
@tn.str.215 = private constant [7 x i8] c"[64]u8\00"
|
||||
@tn.str.216 = private constant [7 x i8] c"Sha256\00"
|
||||
@tn.str.217 = private constant [8 x i8] c"*Sha256\00"
|
||||
@tn.str.218 = private constant [8 x i8] c"?[64]u8\00"
|
||||
@tn.str.219 = private constant [8 x i8] c"[64]s64\00"
|
||||
@tn.str.219 = private constant [8 x i8] c"[64]i64\00"
|
||||
@tn.str.220 = private constant [13 x i8] c"**CAllocator\00"
|
||||
@tn.str.221 = private constant [7 x i8] c"**void\00"
|
||||
@tn.str.222 = private constant [5 x i8] c"*f32\00"
|
||||
@@ -129,7 +129,7 @@
|
||||
@tn.str.229 = private constant [6 x i8] c"*bool\00"
|
||||
@tn.str.230 = private constant [6 x i8] c"**f32\00"
|
||||
@tn.str.231 = private constant [10 x i8] c"*Lerpable\00"
|
||||
@tn.str.232 = private constant [8 x i8] c"*[4]s64\00"
|
||||
@tn.str.232 = private constant [8 x i8] c"*[4]i64\00"
|
||||
@tn.str.233 = private constant [5 x i8] c"*f64\00"
|
||||
@tn.str.234 = private constant [17 x i8] c"*Source_Location\00"
|
||||
@tn.str.235 = private constant [11 x i8] c"*Allocator\00"
|
||||
@@ -147,9 +147,9 @@
|
||||
@tn.str.247 = private constant [17 x i8] c"*OperatingSystem\00"
|
||||
@tn.str.248 = private constant [14 x i8] c"*Architecture\00"
|
||||
@tn.str.249 = private constant [15 x i8] c"*[16]FlagValue\00"
|
||||
@tn.str.250 = private constant [8 x i8] c"*[8]s64\00"
|
||||
@tn.str.250 = private constant [8 x i8] c"*[8]i64\00"
|
||||
@tn.str.251 = private constant [8 x i8] c"*[64]u8\00"
|
||||
@tn.str.252 = private constant [9 x i8] c"*[64]s64\00"
|
||||
@tn.str.252 = private constant [9 x i8] c"*[64]i64\00"
|
||||
@tn.str.253 = private constant [10 x i8] c"*[]string\00"
|
||||
@tn.str.254 = private constant [6 x i8] c"*[]u8\00"
|
||||
@tn.str.255 = private constant [12 x i8] c"*[]FlagSpec\00"
|
||||
@@ -162,7 +162,7 @@
|
||||
@tn.str.262 = private constant [20 x i8] c"**TrackingAllocator\00"
|
||||
@tn.str.263 = private constant [7 x i8] c"**File\00"
|
||||
@tn.str.264 = private constant [5 x i8] c"**u8\00"
|
||||
@tn.str.265 = private constant [6 x i8] c"**s32\00"
|
||||
@tn.str.265 = private constant [6 x i8] c"**i32\00"
|
||||
@tn.str.266 = private constant [11 x i8] c"**SockAddr\00"
|
||||
@tn.str.267 = private constant [6 x i8] c"**u32\00"
|
||||
@tn.str.268 = private constant [10 x i8] c"*[*]Value\00"
|
||||
@@ -171,7 +171,7 @@
|
||||
@tn.str.271 = private constant [9 x i8] c"**Object\00"
|
||||
@tn.str.272 = private constant [7 x i8] c"**Sink\00"
|
||||
@tn.str.273 = private constant [9 x i8] c"**Parser\00"
|
||||
@tn.str.274 = private constant [6 x i8] c"**s64\00"
|
||||
@tn.str.274 = private constant [6 x i8] c"**i64\00"
|
||||
@tn.str.275 = private constant [9 x i8] c"**Parsed\00"
|
||||
@tn.str.276 = private constant [7 x i8] c"**Diag\00"
|
||||
@tn.str.277 = private constant [9 x i8] c"**Sha256\00"
|
||||
@@ -553,7 +553,7 @@
|
||||
@str.650 = private unnamed_addr constant [4 x i8] c"*u8\00", align 1
|
||||
@str.651 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
|
||||
@str.652 = private unnamed_addr constant [5 x i8] c"null\00", align 1
|
||||
@str.653 = private unnamed_addr constant [5 x i8] c"*s32\00", align 1
|
||||
@str.653 = private unnamed_addr constant [5 x i8] c"*i32\00", align 1
|
||||
@str.654 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
|
||||
@str.655 = private unnamed_addr constant [5 x i8] c"null\00", align 1
|
||||
@str.656 = private unnamed_addr constant [10 x i8] c"*SockAddr\00", align 1
|
||||
@@ -580,7 +580,7 @@
|
||||
@str.677 = private unnamed_addr constant [8 x i8] c"*Parser\00", align 1
|
||||
@str.678 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
|
||||
@str.679 = private unnamed_addr constant [5 x i8] c"null\00", align 1
|
||||
@str.680 = private unnamed_addr constant [5 x i8] c"*s64\00", align 1
|
||||
@str.680 = private unnamed_addr constant [5 x i8] c"*i64\00", align 1
|
||||
@str.681 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
|
||||
@str.682 = private unnamed_addr constant [5 x i8] c"null\00", align 1
|
||||
@str.683 = private unnamed_addr constant [8 x i8] c"*Parsed\00", align 1
|
||||
@@ -2039,7 +2039,7 @@ dispatch.case.271: ; preds = %match.arm.47
|
||||
%ua.raw178 = extractvalue { i64, i64 } %loadN, 1
|
||||
%ua.ptr179 = inttoptr i64 %ua.raw178 to ptr
|
||||
%ua.load180 = load [4 x i64], ptr %ua.ptr179, align 8
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_4_s64(ptr %0, [4 x i64] %ua.load180)
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_4_i64(ptr %0, [4 x i64] %ua.load180)
|
||||
store { ptr, i64 } %callN, ptr %allocaN, align 8
|
||||
br label %dispatch.merge.269
|
||||
|
||||
@@ -2055,7 +2055,7 @@ dispatch.case.273: ; preds = %match.arm.47
|
||||
%ua.raw186 = extractvalue { i64, i64 } %loadN, 1
|
||||
%ua.ptr187 = inttoptr i64 %ua.raw186 to ptr
|
||||
%ua.load188 = load [8 x i64], ptr %ua.ptr187, align 8
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_8_s64(ptr %0, [8 x i64] %ua.load188)
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_8_i64(ptr %0, [8 x i64] %ua.load188)
|
||||
store { ptr, i64 } %callN, ptr %allocaN, align 8
|
||||
br label %dispatch.merge.269
|
||||
|
||||
@@ -2071,7 +2071,7 @@ dispatch.case.275: ; preds = %match.arm.47
|
||||
%ua.raw194 = extractvalue { i64, i64 } %loadN, 1
|
||||
%ua.ptr195 = inttoptr i64 %ua.raw194 to ptr
|
||||
%ua.load196 = load [64 x i64], ptr %ua.ptr195, align 8
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_64_s64(ptr %0, [64 x i64] %ua.load196)
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_64_i64(ptr %0, [64 x i64] %ua.load196)
|
||||
store { ptr, i64 } %callN, ptr %allocaN, align 8
|
||||
br label %dispatch.merge.269
|
||||
|
||||
@@ -2214,7 +2214,7 @@ dispatch.case.350: ; preds = %match.arm.49
|
||||
dispatch.case.351: ; preds = %match.arm.49
|
||||
%ua.raw253 = extractvalue { i64, i64 } %loadN, 1
|
||||
%iNp254 = inttoptr i64 %ua.raw253 to ptr
|
||||
%callN = call { ptr, i64 } @pointer_to_string__ptr_s32(ptr %0, ptr %iNp254)
|
||||
%callN = call { ptr, i64 } @pointer_to_string__ptr_i32(ptr %0, ptr %iNp254)
|
||||
store { ptr, i64 } %callN, ptr %allocaN, align 8
|
||||
br label %dispatch.merge.339
|
||||
|
||||
@@ -2277,7 +2277,7 @@ dispatch.case.359: ; preds = %match.arm.49
|
||||
dispatch.case.360: ; preds = %match.arm.49
|
||||
%ua.raw280 = extractvalue { i64, i64 } %loadN, 1
|
||||
%iNp281 = inttoptr i64 %ua.raw280 to ptr
|
||||
%callN = call { ptr, i64 } @pointer_to_string__ptr_s64(ptr %0, ptr %iNp281)
|
||||
%callN = call { ptr, i64 } @pointer_to_string__ptr_i64(ptr %0, ptr %iNp281)
|
||||
store { ptr, i64 } %callN, ptr %allocaN, align 8
|
||||
br label %dispatch.merge.339
|
||||
|
||||
@@ -3825,14 +3825,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
|
||||
@@ -4528,8 +4528,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
|
||||
}
|
||||
|
||||
@@ -4612,14 +4612,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
|
||||
@@ -4704,8 +4704,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
|
||||
@@ -6106,7 +6106,7 @@ if.merge.268: ; preds = %if.then.267, %entry
|
||||
}
|
||||
|
||||
; 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
|
||||
@@ -6209,7 +6209,7 @@ if.merge.286: ; preds = %if.then.285, %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
|
||||
@@ -6310,7 +6310,7 @@ if.merge.296: ; preds = %if.then.295, %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
|
||||
@@ -6960,7 +6960,7 @@ if.merge.416: ; preds = %if.else.415, %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
|
||||
@@ -7210,7 +7210,7 @@ if.merge.443: ; preds = %if.else.442, %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
|
||||
|
||||
Reference in New Issue
Block a user