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:
@@ -26,10 +26,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.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"
|
||||
@@ -71,7 +71,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"
|
||||
@@ -87,9 +87,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"
|
||||
@@ -98,7 +98,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"
|
||||
@@ -111,12 +111,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 [5 x i8] c"?f32\00"
|
||||
@tn.str.220 = private constant [13 x i8] c"ProposedSize\00"
|
||||
@tn.str.221 = private constant [8 x i8] c"Sizable\00"
|
||||
@@ -138,7 +138,7 @@
|
||||
@tn.str.237 = private constant [9 x i8] c"*Sizable\00"
|
||||
@tn.str.238 = private constant [9 x i8] c"**Widget\00"
|
||||
@tn.str.239 = private constant [19 x i8] c"*__Sizable__Vtable\00"
|
||||
@tn.str.240 = private constant [8 x i8] c"*[4]s64\00"
|
||||
@tn.str.240 = private constant [8 x i8] c"*[4]i64\00"
|
||||
@tn.str.241 = private constant [17 x i8] c"*Source_Location\00"
|
||||
@tn.str.242 = private constant [11 x i8] c"*Allocator\00"
|
||||
@tn.str.243 = private constant [9 x i8] c"*Context\00"
|
||||
@@ -155,9 +155,9 @@
|
||||
@tn.str.254 = private constant [17 x i8] c"*OperatingSystem\00"
|
||||
@tn.str.255 = private constant [14 x i8] c"*Architecture\00"
|
||||
@tn.str.256 = private constant [15 x i8] c"*[16]FlagValue\00"
|
||||
@tn.str.257 = private constant [8 x i8] c"*[8]s64\00"
|
||||
@tn.str.257 = private constant [8 x i8] c"*[8]i64\00"
|
||||
@tn.str.258 = private constant [8 x i8] c"*[64]u8\00"
|
||||
@tn.str.259 = private constant [9 x i8] c"*[64]s64\00"
|
||||
@tn.str.259 = private constant [9 x i8] c"*[64]i64\00"
|
||||
@tn.str.260 = private constant [10 x i8] c"*[]string\00"
|
||||
@tn.str.261 = private constant [6 x i8] c"*[]u8\00"
|
||||
@tn.str.262 = private constant [12 x i8] c"*[]FlagSpec\00"
|
||||
@@ -170,7 +170,7 @@
|
||||
@tn.str.269 = private constant [20 x i8] c"**TrackingAllocator\00"
|
||||
@tn.str.270 = private constant [7 x i8] c"**File\00"
|
||||
@tn.str.271 = private constant [5 x i8] c"**u8\00"
|
||||
@tn.str.272 = private constant [6 x i8] c"**s32\00"
|
||||
@tn.str.272 = private constant [6 x i8] c"**i32\00"
|
||||
@tn.str.273 = private constant [11 x i8] c"**SockAddr\00"
|
||||
@tn.str.274 = private constant [6 x i8] c"**u32\00"
|
||||
@tn.str.275 = private constant [10 x i8] c"*[*]Value\00"
|
||||
@@ -179,7 +179,7 @@
|
||||
@tn.str.278 = private constant [9 x i8] c"**Object\00"
|
||||
@tn.str.279 = private constant [7 x i8] c"**Sink\00"
|
||||
@tn.str.280 = private constant [9 x i8] c"**Parser\00"
|
||||
@tn.str.281 = private constant [6 x i8] c"**s64\00"
|
||||
@tn.str.281 = private constant [6 x i8] c"**i64\00"
|
||||
@tn.str.282 = private constant [9 x i8] c"**Parsed\00"
|
||||
@tn.str.283 = private constant [7 x i8] c"**Diag\00"
|
||||
@tn.str.284 = private constant [9 x i8] c"**Sha256\00"
|
||||
@@ -611,7 +611,7 @@
|
||||
@str.707 = private unnamed_addr constant [4 x i8] c"*u8\00", align 1
|
||||
@str.708 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
|
||||
@str.709 = private unnamed_addr constant [5 x i8] c"null\00", align 1
|
||||
@str.710 = private unnamed_addr constant [5 x i8] c"*s32\00", align 1
|
||||
@str.710 = private unnamed_addr constant [5 x i8] c"*i32\00", align 1
|
||||
@str.711 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
|
||||
@str.712 = private unnamed_addr constant [5 x i8] c"null\00", align 1
|
||||
@str.713 = private unnamed_addr constant [10 x i8] c"*SockAddr\00", align 1
|
||||
@@ -638,7 +638,7 @@
|
||||
@str.734 = private unnamed_addr constant [8 x i8] c"*Parser\00", align 1
|
||||
@str.735 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
|
||||
@str.736 = private unnamed_addr constant [5 x i8] c"null\00", align 1
|
||||
@str.737 = private unnamed_addr constant [5 x i8] c"*s64\00", align 1
|
||||
@str.737 = private unnamed_addr constant [5 x i8] c"*i64\00", align 1
|
||||
@str.738 = private unnamed_addr constant [4 x i8] c"@0x\00", align 1
|
||||
@str.739 = private unnamed_addr constant [5 x i8] c"null\00", align 1
|
||||
@str.740 = private unnamed_addr constant [8 x i8] c"*Parsed\00", align 1
|
||||
@@ -2084,7 +2084,7 @@ dispatch.case.301: ; preds = %match.arm.59
|
||||
%ua.raw190 = extractvalue { i64, i64 } %loadN, 1
|
||||
%ua.ptr191 = inttoptr i64 %ua.raw190 to ptr
|
||||
%ua.load192 = load [4 x i64], ptr %ua.ptr191, align 8
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_4_s64(ptr %0, [4 x i64] %ua.load192)
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_4_i64(ptr %0, [4 x i64] %ua.load192)
|
||||
store { ptr, i64 } %callN, ptr %allocaN, align 8
|
||||
br label %dispatch.merge.299
|
||||
|
||||
@@ -2100,7 +2100,7 @@ dispatch.case.303: ; preds = %match.arm.59
|
||||
%ua.raw198 = extractvalue { i64, i64 } %loadN, 1
|
||||
%ua.ptr199 = inttoptr i64 %ua.raw198 to ptr
|
||||
%ua.load200 = load [8 x i64], ptr %ua.ptr199, align 8
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_8_s64(ptr %0, [8 x i64] %ua.load200)
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_8_i64(ptr %0, [8 x i64] %ua.load200)
|
||||
store { ptr, i64 } %callN, ptr %allocaN, align 8
|
||||
br label %dispatch.merge.299
|
||||
|
||||
@@ -2116,7 +2116,7 @@ dispatch.case.305: ; preds = %match.arm.59
|
||||
%ua.raw206 = extractvalue { i64, i64 } %loadN, 1
|
||||
%ua.ptr207 = inttoptr i64 %ua.raw206 to ptr
|
||||
%ua.load208 = load [64 x i64], ptr %ua.ptr207, align 8
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_64_s64(ptr %0, [64 x i64] %ua.load208)
|
||||
%callN = call { ptr, i64 } @array_to_string__AR_64_i64(ptr %0, [64 x i64] %ua.load208)
|
||||
store { ptr, i64 } %callN, ptr %allocaN, align 8
|
||||
br label %dispatch.merge.299
|
||||
|
||||
@@ -2259,7 +2259,7 @@ dispatch.case.380: ; preds = %match.arm.61
|
||||
dispatch.case.381: ; preds = %match.arm.61
|
||||
%ua.raw265 = extractvalue { i64, i64 } %loadN, 1
|
||||
%iNp266 = inttoptr i64 %ua.raw265 to ptr
|
||||
%callN = call { ptr, i64 } @pointer_to_string__ptr_s32(ptr %0, ptr %iNp266)
|
||||
%callN = call { ptr, i64 } @pointer_to_string__ptr_i32(ptr %0, ptr %iNp266)
|
||||
store { ptr, i64 } %callN, ptr %allocaN, align 8
|
||||
br label %dispatch.merge.369
|
||||
|
||||
@@ -2322,7 +2322,7 @@ dispatch.case.389: ; preds = %match.arm.61
|
||||
dispatch.case.390: ; preds = %match.arm.61
|
||||
%ua.raw292 = extractvalue { i64, i64 } %loadN, 1
|
||||
%iNp293 = inttoptr i64 %ua.raw292 to ptr
|
||||
%callN = call { ptr, i64 } @pointer_to_string__ptr_s64(ptr %0, ptr %iNp293)
|
||||
%callN = call { ptr, i64 } @pointer_to_string__ptr_i64(ptr %0, ptr %iNp293)
|
||||
store { ptr, i64 } %callN, ptr %allocaN, align 8
|
||||
br label %dispatch.merge.369
|
||||
|
||||
@@ -4392,14 +4392,14 @@ fv.case: ; preds = %if.merge.141
|
||||
|
||||
fv.case17: ; preds = %if.merge.141
|
||||
%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.141
|
||||
%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.141
|
||||
@@ -5095,8 +5095,8 @@ fv.default: ; preds = %if.merge.186
|
||||
|
||||
fv.case: ; preds = %if.merge.186
|
||||
%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
|
||||
}
|
||||
|
||||
@@ -5179,14 +5179,14 @@ fv.case: ; preds = %if.merge.191
|
||||
|
||||
fv.case17: ; preds = %if.merge.191
|
||||
%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.191
|
||||
%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.191
|
||||
@@ -5271,8 +5271,8 @@ fv.default: ; preds = %if.merge.196
|
||||
|
||||
fv.case: ; preds = %if.merge.196
|
||||
%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.196
|
||||
@@ -6956,7 +6956,7 @@ if.merge.298: ; preds = %if.then.297, %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
|
||||
@@ -7059,7 +7059,7 @@ if.merge.316: ; preds = %if.then.315, %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
|
||||
@@ -7160,7 +7160,7 @@ if.merge.326: ; preds = %if.then.325, %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
|
||||
@@ -7810,7 +7810,7 @@ if.merge.450: ; preds = %if.else.449, %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
|
||||
@@ -8060,7 +8060,7 @@ if.merge.477: ; preds = %if.else.476, %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