Skip to content

Commit

Permalink
rusty: Accept snapshots with new section names
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenArthur committed Apr 10, 2024
1 parent 429ee2a commit 15e599b
Show file tree
Hide file tree
Showing 334 changed files with 655 additions and 655 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source_filename = "app/file1.st"

%mainProg = type {}

@mainProg_instance = external global %mainProg, section "var-mainProg_instance:v", !dbg !0
@mainProg_instance = external global %mainProg, section "var-mainProg_instance:r0", !dbg !0

define i16 @main() section "fn-main:i16" !dbg !10 {
entry:
Expand Down Expand Up @@ -54,7 +54,7 @@ source_filename = "lib/file2.st"

%mainProg = type {}

@mainProg_instance = global %mainProg zeroinitializer, section "var-mainProg_instance:v", !dbg !0
@mainProg_instance = global %mainProg zeroinitializer, section "var-mainProg_instance:r0", !dbg !0

define void @mainProg(%mainProg* %0) section "fn-mainProg:v" !dbg !10 {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source_filename = "file1.st"

%mainProg = type {}

@mainProg_instance = external global %mainProg, section "var-mainProg_instance:v", !dbg !0
@mainProg_instance = external global %mainProg, section "var-mainProg_instance:r0", !dbg !0

define i16 @main() section "fn-main:i16" !dbg !10 {
entry:
Expand Down Expand Up @@ -54,7 +54,7 @@ source_filename = "file2.st"

%mainProg = type {}

@mainProg_instance = global %mainProg zeroinitializer, section "var-mainProg_instance:v", !dbg !0
@mainProg_instance = global %mainProg zeroinitializer, section "var-mainProg_instance:r0", !dbg !0

define void @mainProg(%mainProg* %0) section "fn-mainProg:v" !dbg !10 {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source_filename = "external_file1.st"

%mainProg = type {}

@mainProg_instance = external global %mainProg, section "var-mainProg_instance:v"
@mainProg_instance = external global %mainProg, section "var-mainProg_instance:r0"

define i16 @main() section "fn-main:i16" {
entry:
Expand All @@ -25,7 +25,7 @@ source_filename = "external_file2.st"

%mainProg = type {}

@mainProg_instance = global %mainProg zeroinitializer, section "var-mainProg_instance:v"
@mainProg_instance = global %mainProg zeroinitializer, section "var-mainProg_instance:r0"

define void @mainProg(%mainProg* %0) section "fn-mainProg:v" {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ source_filename = "main"
%myPrg = type {}
%myFb = type {}

@myPrg_instance = external global %myPrg, section "var-myPrg_instance:v", !dbg !0
@__myFb__init = unnamed_addr constant %myFb zeroinitializer, section "var-__myFb__init:v", !dbg !5
@myPrg_instance = external global %myPrg, section "var-myPrg_instance:r0", !dbg !0
@__myFb__init = unnamed_addr constant %myFb zeroinitializer, section "var-__myFb__init:r0", !dbg !5

declare i32 @myFunc() section "fn-myFunc:i32"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ source_filename = "main"
%myPrg = type {}
%myFb = type {}

@myPrg_instance = global %myPrg zeroinitializer, section "var-myPrg_instance:v", !dbg !0
@__myFb__init = unnamed_addr constant %myFb zeroinitializer, section "var-__myFb__init:v", !dbg !5
@myPrg_instance = global %myPrg zeroinitializer, section "var-myPrg_instance:r0", !dbg !0
@__myFb__init = unnamed_addr constant %myFb zeroinitializer, section "var-__myFb__init:r0", !dbg !5

define i32 @myFunc() section "fn-myFunc:i32" !dbg !12 {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ source_filename = "main"
%myProg = type { i32 }
%fb = type { i32 }

@myProg_instance = global %myProg zeroinitializer, section "var-myProg_instance:v", !dbg !0
@__fb__init = unnamed_addr constant %fb zeroinitializer, section "var-__fb__init:v", !dbg !7
@myProg_instance = global %myProg zeroinitializer, section "var-myProg_instance:r1i32", !dbg !0
@__fb__init = unnamed_addr constant %fb zeroinitializer, section "var-__fb__init:r1i32", !dbg !7

define void @myProg(%myProg* %0) section "fn-myProg:v[i32]" !dbg !16 {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ source_filename = "main"
%myPrg = type {}
%myFb = type {}

@myPrg_instance = global %myPrg zeroinitializer, section "var-myPrg_instance:v", !dbg !0
@__myFb__init = unnamed_addr constant %myFb zeroinitializer, section "var-__myFb__init:v", !dbg !9
@myPrg_instance = global %myPrg zeroinitializer, section "var-myPrg_instance:r3i32i32i32", !dbg !0
@__myFb__init = unnamed_addr constant %myFb zeroinitializer, section "var-__myFb__init:r3i32i32i32", !dbg !9

define i32 @myFunc() section "fn-myFunc:i32" !dbg !20 {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source_filename = "main"

%commands = type { i8, i8 }

@__commands__init = unnamed_addr constant %commands { i8 1, i8 0 }, section "var-__commands__init:v"
@__commands__init = unnamed_addr constant %commands { i8 1, i8 0 }, section "var-__commands__init:r2u8u8"

define i32 @main() section "fn-main:i32" {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source_filename = "main"

%commands = type { i8, i8 }

@__commands__init = unnamed_addr constant %commands zeroinitializer, section "var-__commands__init:v"
@__commands__init = unnamed_addr constant %commands zeroinitializer, section "var-__commands__init:r2u8u8"
@__main.myStr1__init = unnamed_addr constant [81 x i8] zeroinitializer

define i32 @main() section "fn-main:i32" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ source_filename = "main"
%MyFB = type { i16 }
%prg = type { %MyFB }

@x = global %MyFB { i16 77 }, section "var-x:v"
@__MyFB__init = unnamed_addr constant %MyFB { i16 77 }, section "var-__MyFB__init:v"
@prg_instance = global %prg { %MyFB { i16 77 } }, section "var-prg_instance:v"
@x = global %MyFB { i16 77 }, section "var-x:r1i16"
@__MyFB__init = unnamed_addr constant %MyFB { i16 77 }, section "var-__MyFB__init:r1i16"
@prg_instance = global %prg { %MyFB { i16 77 } }, section "var-prg_instance:r1r1i16"

define void @MyFB(%MyFB* %0) section "fn-MyFB:v" {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ expression: result
; ModuleID = 'main'
source_filename = "main"

@a = global [2 x i8] zeroinitializer, section "var-a:v"
@a = global [2 x i8] zeroinitializer, section "var-a:au8"
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ source_filename = "main"
%fb = type { i16 }
%main = type { %fb }

@__fb__init = unnamed_addr constant %fb { i16 9 }, section "var-__fb__init:v"
@main_instance = global %main { %fb { i16 9 } }, section "var-main_instance:v"
@__fb__init = unnamed_addr constant %fb { i16 9 }, section "var-__fb__init:r1i16"
@main_instance = global %main { %fb { i16 9 } }, section "var-main_instance:r1r1i16"

define void @fb(%fb* %0) section "fn-fb:v" {
entry:
%a = getelementptr inbounds %fb, %fb* %0, i32 0, i32 0
ret void
}

define i32 @func(%fb %0) section "fn-func:i32[v]" {
define i32 @func(%fb %0) section "fn-func:i32[r1i16]" {
entry:
%func = alloca i32, align 4
%in = alloca %fb, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ expression: function
source_filename = "main"

@x = global i32 10, section "var-x:i32"
@x.1 = unnamed_addr constant i32 1, section "var-x:v"
@x.2 = unnamed_addr constant i32 3, section "var-x:v"
@y = unnamed_addr constant i32 2, section "var-y:v"
@y.3 = unnamed_addr constant i32 4, section "var-y:v"
@x.1 = unnamed_addr constant i32 1, section "var-x:e2i32"
@x.2 = unnamed_addr constant i32 3, section "var-x:e2i32"
@y = unnamed_addr constant i32 2, section "var-y:e2i32"
@y.3 = unnamed_addr constant i32 4, section "var-y:e2i32"

define i32 @foo() section "fn-foo:i32" {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ source_filename = "main"
%fb = type {}
%main = type { %fb }

@__fb__init = unnamed_addr constant %fb zeroinitializer, section "var-__fb__init:v"
@main_instance = global %main zeroinitializer, section "var-main_instance:v"
@__fb__init = unnamed_addr constant %fb zeroinitializer, section "var-__fb__init:r0"
@main_instance = global %main zeroinitializer, section "var-main_instance:r1r0"

define void @fb(%fb* %0) section "fn-fb:v" {
entry:
ret void
}

define i32 @func(%fb %0) section "fn-func:i32[v]" {
define i32 @func(%fb %0) section "fn-func:i32[r0]" {
entry:
%func = alloca i32, align 4
%in = alloca %fb, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source_filename = "main"

%MyStruct = type { i32, i16 }

@__MyStruct__init = unnamed_addr constant %MyStruct zeroinitializer, section "var-__MyStruct__init:v"
@__MyStruct__init = unnamed_addr constant %MyStruct zeroinitializer, section "var-__MyStruct__init:r2i32i16"

define i16 @foo_int() section "fn-foo_int:i16" {
entry:
Expand All @@ -27,7 +27,7 @@ entry:
ret void
}

define void @foo_arr([10 x float]* %0) section "fn-foo_arr:v" {
define void @foo_arr([10 x float]* %0) section "fn-foo_arr:af32" {
entry:
%foo_arr = alloca [10 x float]*, align 8
store [10 x float]* %0, [10 x float]** %foo_arr, align 8
Expand All @@ -37,7 +37,7 @@ entry:
ret void
}

define void @foo_struct(%MyStruct* %0) section "fn-foo_struct:v" {
define void @foo_struct(%MyStruct* %0) section "fn-foo_struct:r2i32i16" {
entry:
%foo_struct = alloca %MyStruct*, align 8
store %MyStruct* %0, %MyStruct** %foo_struct, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ source_filename = "main"

%main = type { [4 x i32], [4 x i32] }

@main_instance = global %main zeroinitializer, section "var-main_instance:v"
@__myArray__init = unnamed_addr constant [4 x i32] [i32 1, i32 2, i32 3, i32 4], section "var-__myArray__init:v"
@main_instance = global %main zeroinitializer, section "var-main_instance:r2ai32ai32"
@__myArray__init = unnamed_addr constant [4 x i32] [i32 1, i32 2, i32 3, i32 4], section "var-__myArray__init:ai32"

define void @target([4 x i32]* %0) section "fn-target:v" {
define void @target([4 x i32]* %0) section "fn-target:ai32" {
entry:
%target = alloca [4 x i32]*, align 8
store [4 x i32]* %0, [4 x i32]** %target, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ source_filename = "main"
%MyStrct = type { i32, i32, i32 }

@__MyStr__init = unnamed_addr constant [11 x i8] c"init\00\00\00\00\00\00\00", section "var-__MyStr__init:s8u11"
@__MyArr__init = unnamed_addr constant [10 x float] [float 0.000000e+00, float 0x3FF19999A0000000, float 0x40019999A0000000, float 0x400A666660000000, float 0x40119999A0000000, float 5.500000e+00, float 0x401A666660000000, float 0x401ECCCCC0000000, float 0x40219999A0000000, float 0x4023CCCCC0000000], section "var-__MyArr__init:v"
@__MyStrct__init = unnamed_addr constant %MyStrct { i32 1, i32 2, i32 3 }, section "var-__MyStrct__init:v"
@__MyArr__init = unnamed_addr constant [10 x float] [float 0.000000e+00, float 0x3FF19999A0000000, float 0x40019999A0000000, float 0x400A666660000000, float 0x40119999A0000000, float 5.500000e+00, float 0x401A666660000000, float 0x401ECCCCC0000000, float 0x40219999A0000000, float 0x4023CCCCC0000000], section "var-__MyArr__init:af32"
@__MyStrct__init = unnamed_addr constant %MyStrct { i32 1, i32 2, i32 3 }, section "var-__MyStrct__init:r3i32i32i32"

define i16 @foo_int() section "fn-foo_int:v" {
define i16 @foo_int() section "fn-foo_int:i16" {
entry:
%foo_int = alloca i16, align 2
store i16 7, i16* %foo_int, align 2
Expand All @@ -29,7 +29,7 @@ entry:
ret void
}

define void @foo_arr([10 x float]* %0) section "fn-foo_arr:v" {
define void @foo_arr([10 x float]* %0) section "fn-foo_arr:af32" {
entry:
%foo_arr = alloca [10 x float]*, align 8
store [10 x float]* %0, [10 x float]** %foo_arr, align 8
Expand All @@ -39,7 +39,7 @@ entry:
ret void
}

define void @foo_strct(%MyStrct* %0) section "fn-foo_strct:v" {
define void @foo_strct(%MyStrct* %0) section "fn-foo_strct:r3i32i32i32" {
entry:
%foo_strct = alloca %MyStrct*, align 8
store %MyStrct* %0, %MyStrct** %foo_strct, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ source_filename = "main"

%MyStrct = type { i32, i32, i32 }

@__MyStrct__init = unnamed_addr constant %MyStrct zeroinitializer, section "var-__MyStrct__init:v"
@__MyStrct__init = unnamed_addr constant %MyStrct zeroinitializer, section "var-__MyStrct__init:r3i32i32i32"

define i16 @foo_int() section "fn-foo_int:v" {
define i16 @foo_int() section "fn-foo_int:i16" {
entry:
%foo_int = alloca i16, align 2
store i16 0, i16* %foo_int, align 2
Expand All @@ -27,7 +27,7 @@ entry:
ret void
}

define void @foo_arr([10 x float]* %0) section "fn-foo_arr:v" {
define void @foo_arr([10 x float]* %0) section "fn-foo_arr:af32" {
entry:
%foo_arr = alloca [10 x float]*, align 8
store [10 x float]* %0, [10 x float]** %foo_arr, align 8
Expand All @@ -37,7 +37,7 @@ entry:
ret void
}

define void @foo_strct(%MyStrct* %0) section "fn-foo_strct:v" {
define void @foo_strct(%MyStrct* %0) section "fn-foo_strct:r3i32i32i32" {
entry:
%foo_strct = alloca %MyStrct*, align 8
store %MyStrct* %0, %MyStrct** %foo_strct, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source_filename = "main"
@MAX_LEN = unnamed_addr constant i16 99, section "var-MAX_LEN:i16"
@MIN_LEN = unnamed_addr constant i16 10, section "var-MIN_LEN:i16"
@LEN = unnamed_addr constant i16 20, section "var-LEN:i16"
@prg_instance = global %prg { i16 24, i16 89 }, section "var-prg_instance:v"
@prg_instance = global %prg { i16 24, i16 89 }, section "var-prg_instance:r2i16i16"

define void @prg(%prg* %0) section "fn-prg:v[i16][i16]" {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ expression: result
; ModuleID = 'main'
source_filename = "main"

@a = global [2 x [2 x i8]] [[2 x i8] c"\01\02", [2 x i8] c"\03\04"], section "var-a:v"
@a = global [2 x [2 x i8]] [[2 x i8] c"\01\02", [2 x i8] c"\03\04"], section "var-a:aau8"
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ source_filename = "main"
%FB = type { i16, i16, i8, i8, float, float }
%main = type { %FB }

@__FB__init = unnamed_addr constant %FB { i16 7, i16 0, i8 1, i8 0, float 0x400921CAC0000000, float 0.000000e+00 }, section "var-__FB__init:v"
@main_instance = global %main { %FB { i16 7, i16 0, i8 1, i8 0, float 0x400921CAC0000000, float 0.000000e+00 } }, section "var-main_instance:v"
@__FB__init = unnamed_addr constant %FB { i16 7, i16 0, i8 1, i8 0, float 0x400921CAC0000000, float 0.000000e+00 }, section "var-__FB__init:r6i16i16u8u8f32f32"
@main_instance = global %main { %FB { i16 7, i16 0, i8 1, i8 0, float 0x400921CAC0000000, float 0.000000e+00 } }, section "var-main_instance:r1r6i16i16u8u8f32f32"

define void @FB(%FB* %0) section "fn-FB:v" {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source_filename = "main"

%Main = type { i16, i16, i8, i8, float, float }

@Main_instance = global %Main { i16 7, i16 0, i8 1, i8 0, float 0x400921CAC0000000, float 0.000000e+00 }, section "var-Main_instance:v"
@Main_instance = global %Main { i16 7, i16 0, i8 1, i8 0, float 0x400921CAC0000000, float 0.000000e+00 }, section "var-Main_instance:r6i16i16u8u8f32f32"

define void @Main(%Main* %0) section "fn-Main:v" {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: result
; ModuleID = 'main'
source_filename = "main"

@__arr__init = unnamed_addr constant [4 x i32] [i32 1, i32 2, i32 3, i32 4], section "var-__arr__init:v"
@__arr__init = unnamed_addr constant [4 x i32] [i32 1, i32 2, i32 3, i32 4], section "var-__arr__init:ai32"

define i16 @func() section "fn-func:i16" {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source_filename = "main"

%__func_a = type { i16 }

@____func_a__init = unnamed_addr constant %__func_a zeroinitializer, section "var-____func_a__init:v"
@____func_a__init = unnamed_addr constant %__func_a zeroinitializer, section "var-____func_a__init:r1i16"

define i16 @func() section "fn-func:i16" {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ source_filename = "main"
%prog = type { %__prog_a }
%__prog_a = type { i16 }

@prog_instance = global %prog zeroinitializer, section "var-prog_instance:v"
@____prog_a__init = unnamed_addr constant %__prog_a zeroinitializer, section "var-____prog_a__init:v"
@prog_instance = global %prog zeroinitializer, section "var-prog_instance:r1r1i16"
@____prog_a__init = unnamed_addr constant %__prog_a zeroinitializer, section "var-____prog_a__init:r1i16"

define void @prog(%prog* %0) section "fn-prog:v" {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ expression: function
; ModuleID = 'main'
source_filename = "main"

@x = unnamed_addr constant i32 1, section "var-x:v"
@x.1 = unnamed_addr constant i32 3, section "var-x:v"
@y = unnamed_addr constant i32 2, section "var-y:v"
@y.2 = unnamed_addr constant i32 4, section "var-y:v"
@x = unnamed_addr constant i32 1, section "var-x:e2i32"
@x.1 = unnamed_addr constant i32 3, section "var-x:e2i32"
@y = unnamed_addr constant i32 2, section "var-y:e2i32"
@y.2 = unnamed_addr constant i32 4, section "var-y:e2i32"

define i32 @foo() section "fn-foo:i32" {
entry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ expression: function
; ModuleID = 'main'
source_filename = "main"

@x = unnamed_addr constant i32 1, section "var-x:v"
@x.1 = unnamed_addr constant i32 2, section "var-x:v"
@x.2 = unnamed_addr constant i32 3, section "var-x:v"
@x.3 = unnamed_addr constant i32 4, section "var-x:v"
@y = unnamed_addr constant i32 5, section "var-y:v"
@y.4 = unnamed_addr constant i32 5, section "var-y:v"
@y.5 = unnamed_addr constant i32 5, section "var-y:v"
@y.6 = unnamed_addr constant i32 5, section "var-y:v"
@x = unnamed_addr constant i32 1, section "var-x:e2i32"
@x.1 = unnamed_addr constant i32 2, section "var-x:e2i32"
@x.2 = unnamed_addr constant i32 3, section "var-x:e2i32"
@x.3 = unnamed_addr constant i32 4, section "var-x:e2i32"
@y = unnamed_addr constant i32 5, section "var-y:e2i32"
@y.4 = unnamed_addr constant i32 5, section "var-y:e2i32"
@y.5 = unnamed_addr constant i32 5, section "var-y:e2i32"
@y.6 = unnamed_addr constant i32 5, section "var-y:e2i32"

define i32 @a() section "fn-a:i32" {
entry:
Expand Down
Loading

0 comments on commit 15e599b

Please sign in to comment.