diff --git a/compiler/cl/_testdata/apkg/out.ll b/compiler/cl/_testdata/apkg/out.ll index adaa6e28..22bfb3db 100644 --- a/compiler/cl/_testdata/apkg/out.ll +++ b/compiler/cl/_testdata/apkg/out.ll @@ -1,9 +1,9 @@ -; ModuleID = 'github.com/goplus/llgo/cl/_testdata/apkg' -source_filename = "github.com/goplus/llgo/cl/_testdata/apkg" +; ModuleID = 'github.com/goplus/llgo/compiler/cl/_testdata/apkg' +source_filename = "github.com/goplus/llgo/compiler/cl/_testdata/apkg" -@"github.com/goplus/llgo/cl/_testdata/apkg.init$guard" = global i1 false, align 1 +@"github.com/goplus/llgo/compiler/cl/_testdata/apkg.init$guard" = global i1 false, align 1 -define double @"github.com/goplus/llgo/cl/_testdata/apkg.Max"(double %0, double %1) { +define double @"github.com/goplus/llgo/compiler/cl/_testdata/apkg.Max"(double %0, double %1) { _llgo_0: %2 = fcmp ogt double %0, %1 br i1 %2, label %_llgo_1, label %_llgo_2 @@ -15,13 +15,13 @@ _llgo_2: ; preds = %_llgo_0 ret double %1 } -define void @"github.com/goplus/llgo/cl/_testdata/apkg.init"() { +define void @"github.com/goplus/llgo/compiler/cl/_testdata/apkg.init"() { _llgo_0: - %0 = load i1, ptr @"github.com/goplus/llgo/cl/_testdata/apkg.init$guard", align 1 + %0 = load i1, ptr @"github.com/goplus/llgo/compiler/cl/_testdata/apkg.init$guard", align 1 br i1 %0, label %_llgo_2, label %_llgo_1 _llgo_1: ; preds = %_llgo_0 - store i1 true, ptr @"github.com/goplus/llgo/cl/_testdata/apkg.init$guard", align 1 + store i1 true, ptr @"github.com/goplus/llgo/compiler/cl/_testdata/apkg.init$guard", align 1 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 diff --git a/compiler/cl/_testdata/fncall/out.ll b/compiler/cl/_testdata/fncall/out.ll index a432973a..1b0ec249 100644 --- a/compiler/cl/_testdata/fncall/out.ll +++ b/compiler/cl/_testdata/fncall/out.ll @@ -22,7 +22,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call i64 @main.max(i64 1, i64 2) ret i32 0 @@ -40,4 +40,4 @@ _llgo_2: ; preds = %_llgo_0 ret i64 %1 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testdata/importpkg/out.ll b/compiler/cl/_testdata/importpkg/out.ll index 05dfeefb..04124b67 100644 --- a/compiler/cl/_testdata/importpkg/out.ll +++ b/compiler/cl/_testdata/importpkg/out.ll @@ -13,7 +13,7 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 - call void @"github.com/goplus/llgo/cl/internal/stdio.init"() + call void @"github.com/goplus/llgo/compiler/cl/internal/stdio.init"() store i8 72, ptr @main.hello, align 1 store i8 101, ptr getelementptr inbounds (i8, ptr @main.hello, i64 1), align 1 store i8 108, ptr getelementptr inbounds (i8, ptr @main.hello, i64 2), align 1 @@ -31,17 +31,17 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call i64 @"github.com/goplus/llgo/cl/internal/stdio.Max"(i64 2, i64 100) + %2 = call i64 @"github.com/goplus/llgo/compiler/cl/internal/stdio.Max"(i64 2, i64 100) call void (ptr, ...) @printf(ptr @main.hello) ret i32 0 } -declare void @"github.com/goplus/llgo/cl/internal/stdio.init"() +declare void @"github.com/goplus/llgo/compiler/cl/internal/stdio.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare i64 @"github.com/goplus/llgo/cl/internal/stdio.Max"(i64, i64) +declare i64 @"github.com/goplus/llgo/compiler/cl/internal/stdio.Max"(i64, i64) declare void @printf(ptr, ...) diff --git a/compiler/cl/_testdata/llgotag/out.ll b/compiler/cl/_testdata/llgotag/out.ll index 568edce1..ed27130e 100644 --- a/compiler/cl/_testdata/llgotag/out.ll +++ b/compiler/cl/_testdata/llgotag/out.ll @@ -1,20 +1,20 @@ -; ModuleID = 'github.com/goplus/llgo/cl/_testdata/llgotag' -source_filename = "github.com/goplus/llgo/cl/_testdata/llgotag" +; ModuleID = 'github.com/goplus/llgo/compiler/cl/_testdata/llgotag' +source_filename = "github.com/goplus/llgo/compiler/cl/_testdata/llgotag" -@"github.com/goplus/llgo/cl/_testdata/llgotag.init$guard" = global i1 false, align 1 +@"github.com/goplus/llgo/compiler/cl/_testdata/llgotag.init$guard" = global i1 false, align 1 -define void @"github.com/goplus/llgo/cl/_testdata/llgotag.Foo"() { +define void @"github.com/goplus/llgo/compiler/cl/_testdata/llgotag.Foo"() { _llgo_0: ret void } -define void @"github.com/goplus/llgo/cl/_testdata/llgotag.init"() { +define void @"github.com/goplus/llgo/compiler/cl/_testdata/llgotag.init"() { _llgo_0: - %0 = load i1, ptr @"github.com/goplus/llgo/cl/_testdata/llgotag.init$guard", align 1 + %0 = load i1, ptr @"github.com/goplus/llgo/compiler/cl/_testdata/llgotag.init$guard", align 1 br i1 %0, label %_llgo_2, label %_llgo_1 _llgo_1: ; preds = %_llgo_0 - store i1 true, ptr @"github.com/goplus/llgo/cl/_testdata/llgotag.init$guard", align 1 + store i1 true, ptr @"github.com/goplus/llgo/compiler/cl/_testdata/llgotag.init$guard", align 1 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 diff --git a/compiler/cl/_testdata/method/out.ll b/compiler/cl/_testdata/method/out.ll index 40cd03aa..a789cd42 100644 --- a/compiler/cl/_testdata/method/out.ll +++ b/compiler/cl/_testdata/method/out.ll @@ -46,13 +46,13 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call i64 @main.T.Add(i64 1, i64 2) call void (ptr, ...) @printf(ptr @main.format, i64 %2) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare void @printf(ptr, ...) diff --git a/compiler/cl/_testdata/print/out.ll b/compiler/cl/_testdata/print/out.ll index 1dce385f..d6ed4ecd 100644 --- a/compiler/cl/_testdata/print/out.ll +++ b/compiler/cl/_testdata/print/out.ll @@ -1,11 +1,11 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } %main.stringStruct = type { ptr, i64 } %main.slice = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } @"main.init$guard" = global i1 false, align 1 @main.minhexdigits = global i64 0, align 8 @@ -44,11 +44,11 @@ source_filename = "main" @13 = private unnamed_addr constant [1 x i8] c" ", align 1 @14 = private unnamed_addr constant [1 x i8] c"\0A", align 1 -define %"github.com/goplus/llgo/internal/runtime.Slice" @main.bytes(%"github.com/goplus/llgo/internal/runtime.String" %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @main.bytes(%"github.com/goplus/llgo/runtime/internal/runtime.String" %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" %0, ptr %1, align 8 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" %0, ptr %1, align 8 + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %3 = call ptr @main.stringStructOf(ptr %1) %4 = getelementptr inbounds %main.stringStruct, ptr %3, i32 0, i32 0 %5 = load ptr, ptr %4, align 8 @@ -62,13 +62,13 @@ _llgo_0: %11 = load i64, ptr %10, align 4 %12 = getelementptr inbounds %main.slice, ptr %2, i32 0, i32 2 store i64 %11, ptr %12, align 4 - %13 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %2, align 8 - ret %"github.com/goplus/llgo/internal/runtime.Slice" %13 + %13 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %2, align 8 + ret %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %13 } -define void @main.gwrite(%"github.com/goplus/llgo/internal/runtime.Slice" %0) { +define void @main.gwrite(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 %2 = icmp eq i64 %1, 0 br i1 %2, label %_llgo_1, label %_llgo_2 @@ -76,7 +76,7 @@ _llgo_1: ; preds = %_llgo_0 ret void _llgo_2: ; preds = %_llgo_0 - %3 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %3 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 br label %_llgo_3 _llgo_3: ; preds = %_llgo_4, %_llgo_2 @@ -86,12 +86,12 @@ _llgo_3: ; preds = %_llgo_4, %_llgo_2 br i1 %6, label %_llgo_4, label %_llgo_5 _llgo_4: ; preds = %_llgo_3 - %7 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 0 - %8 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %7 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 0 + %8 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 %9 = icmp slt i64 %5, 0 %10 = icmp sge i64 %5, %8 %11 = or i1 %10, %9 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %11) %12 = getelementptr inbounds i8, ptr %7, i64 %5 %13 = load i8, ptr %12, align 1 %14 = call i32 (ptr, ...) @printf(ptr @0, i8 %13) @@ -120,9 +120,9 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }) call void @main.printnl() call void @main.printuint(i64 1024) call void @main.printnl() @@ -137,159 +137,159 @@ _llgo_0: call void @main.prinfsub(double 1.001000e+02) call void @main.printnl() %2 = load ptr, ptr @_llgo_float32, align 8 - %3 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %2, 0 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %3, ptr inttoptr (i32 1315859240 to ptr), 1 - call void @main.printany(%"github.com/goplus/llgo/internal/runtime.eface" %4) + %3 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %2, 0 + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %3, ptr inttoptr (i32 1315859240 to ptr), 1 + call void @main.printany(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %4) call void @main.printnl() %5 = load ptr, ptr @_llgo_float64, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %5, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr inttoptr (i64 4746175415993761792 to ptr), 1 - call void @main.printany(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %5, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr inttoptr (i64 4746175415993761792 to ptr), 1 + call void @main.printany(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) call void @main.printnl() br i1 true, label %_llgo_3, label %_llgo_2 _llgo_1: ; preds = %_llgo_3 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) - %9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %8, i64 0 + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) + %9 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %8, i64 0 %10 = load ptr, ptr @_llgo_string, align 8 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 10 }, ptr %11, align 8 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %10, 0 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, ptr %11, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %13, ptr %9, align 8 - %14 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %8, i64 1 + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 10 }, ptr %11, align 8 + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %10, 0 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %12, ptr %11, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %13, ptr %9, align 8 + %14 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %8, i64 1 %15 = load ptr, ptr @_llgo_bool, align 8 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %15, 0 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %16, ptr inttoptr (i64 -1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %17, ptr %14, align 8 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %8, 0 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %18, i64 2, 1 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %19, i64 2, 2 - call void @main.println(%"github.com/goplus/llgo/internal/runtime.Slice" %20) + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %15, 0 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %16, ptr inttoptr (i64 -1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %17, ptr %14, align 8 + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %8, 0 + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %18, i64 2, 1 + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19, i64 2, 2 + call void @main.println(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %20) br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_3, %_llgo_0 - %21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 48) - %22 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %21, i64 0 + %21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 48) + %22 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %21, i64 0 %23 = load ptr, ptr @_llgo_string, align 8 - %24 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 8 }, ptr %24, align 8 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %23, 0 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %25, ptr %24, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %26, ptr %22, align 8 - %27 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %21, i64 1 + %24 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 8 }, ptr %24, align 8 + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %23, 0 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %25, ptr %24, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %26, ptr %22, align 8 + %27 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %21, i64 1 %28 = load ptr, ptr @_llgo_bool, align 8 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %28, 0 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %29, ptr inttoptr (i64 -1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %30, ptr %27, align 8 - %31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %21, i64 2 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %28, 0 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %29, ptr inttoptr (i64 -1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %30, ptr %27, align 8 + %31 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %21, i64 2 %32 = load ptr, ptr @_llgo_bool, align 8 - %33 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %32, 0 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %33, ptr inttoptr (i64 -1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %34, ptr %31, align 8 - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %21, 0 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %35, i64 3, 1 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %36, i64 3, 2 - call void @main.println(%"github.com/goplus/llgo/internal/runtime.Slice" %37) - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 256) - %39 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 0 + %33 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %32, 0 + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %33, ptr inttoptr (i64 -1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %34, ptr %31, align 8 + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %21, 0 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %35, i64 3, 1 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %36, i64 3, 2 + call void @main.println(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %37) + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 256) + %39 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 0 %40 = load ptr, ptr @_llgo_bool, align 8 - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %40, 0 - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %41, ptr inttoptr (i64 -1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %42, ptr %39, align 8 - %43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 1 + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %40, 0 + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %41, ptr inttoptr (i64 -1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %42, ptr %39, align 8 + %43 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 1 %44 = load ptr, ptr @_llgo_bool, align 8 - %45 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %44, 0 - %46 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %45, ptr null, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %46, ptr %43, align 8 - %47 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 2 + %45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %44, 0 + %46 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %45, ptr null, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %46, ptr %43, align 8 + %47 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 2 %48 = load ptr, ptr @_llgo_int32, align 8 - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %48, 0 - %50 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %49, ptr inttoptr (i64 97 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %50, ptr %47, align 8 - %51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 3 + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %48, 0 + %50 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %49, ptr inttoptr (i64 97 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %50, ptr %47, align 8 + %51 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 3 %52 = load ptr, ptr @_llgo_int32, align 8 - %53 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %52, 0 - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %53, ptr inttoptr (i64 65 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %54, ptr %51, align 8 - %55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 4 + %53 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %52, 0 + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %53, ptr inttoptr (i64 65 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %54, ptr %51, align 8 + %55 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 4 %56 = load ptr, ptr @_llgo_int32, align 8 - %57 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %56, 0 - %58 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %57, ptr inttoptr (i64 20013 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %58, ptr %55, align 8 - %59 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 5 + %57 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %56, 0 + %58 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %57, ptr inttoptr (i64 20013 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %58, ptr %55, align 8 + %59 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 5 %60 = load ptr, ptr @_llgo_int8, align 8 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %60, 0 - %62 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %61, ptr inttoptr (i64 1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %62, ptr %59, align 8 - %63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 6 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %60, 0 + %62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %61, ptr inttoptr (i64 1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %62, ptr %59, align 8 + %63 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 6 %64 = load ptr, ptr @_llgo_int16, align 8 - %65 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %64, 0 - %66 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %65, ptr inttoptr (i64 2 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %66, ptr %63, align 8 - %67 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 7 + %65 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %64, 0 + %66 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %65, ptr inttoptr (i64 2 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %66, ptr %63, align 8 + %67 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 7 %68 = load ptr, ptr @_llgo_int32, align 8 - %69 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %68, 0 - %70 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %69, ptr inttoptr (i64 3 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %70, ptr %67, align 8 - %71 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 8 + %69 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %68, 0 + %70 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %69, ptr inttoptr (i64 3 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %70, ptr %67, align 8 + %71 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 8 %72 = load ptr, ptr @_llgo_int64, align 8 - %73 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %72, 0 - %74 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %73, ptr inttoptr (i64 4 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %74, ptr %71, align 8 - %75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 9 + %73 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %72, 0 + %74 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %73, ptr inttoptr (i64 4 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %74, ptr %71, align 8 + %75 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 9 %76 = load ptr, ptr @_llgo_int, align 8 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %76, 0 - %78 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %77, ptr inttoptr (i64 5 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %78, ptr %75, align 8 - %79 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 10 + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %76, 0 + %78 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %77, ptr inttoptr (i64 5 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %78, ptr %75, align 8 + %79 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 10 %80 = load ptr, ptr @_llgo_byte, align 8 - %81 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %80, 0 - %82 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %81, ptr inttoptr (i64 1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %82, ptr %79, align 8 - %83 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 11 + %81 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %80, 0 + %82 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %81, ptr inttoptr (i64 1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %82, ptr %79, align 8 + %83 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 11 %84 = load ptr, ptr @_llgo_uint16, align 8 - %85 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %84, 0 - %86 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %85, ptr inttoptr (i64 2 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %86, ptr %83, align 8 - %87 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 12 + %85 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %84, 0 + %86 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %85, ptr inttoptr (i64 2 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %86, ptr %83, align 8 + %87 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 12 %88 = load ptr, ptr @_llgo_uint32, align 8 - %89 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %88, 0 - %90 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %89, ptr inttoptr (i64 3 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %90, ptr %87, align 8 - %91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 13 + %89 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %88, 0 + %90 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %89, ptr inttoptr (i64 3 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %90, ptr %87, align 8 + %91 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 13 %92 = load ptr, ptr @_llgo_uint64, align 8 - %93 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %92, 0 - %94 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %93, ptr inttoptr (i64 4 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %94, ptr %91, align 8 - %95 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 14 + %93 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %92, 0 + %94 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %93, ptr inttoptr (i64 4 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %94, ptr %91, align 8 + %95 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 14 %96 = load ptr, ptr @_llgo_uintptr, align 8 - %97 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %96, 0 - %98 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %97, ptr inttoptr (i64 5 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %98, ptr %95, align 8 - %99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i64 15 + %97 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %96, 0 + %98 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %97, ptr inttoptr (i64 5 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %98, ptr %95, align 8 + %99 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %38, i64 15 %100 = load ptr, ptr @_llgo_string, align 8 - %101 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, ptr %101, align 8 - %102 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %100, 0 - %103 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %102, ptr %101, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %103, ptr %99, align 8 - %104 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %38, 0 - %105 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %104, i64 16, 1 - %106 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %105, i64 16, 2 - call void @main.println(%"github.com/goplus/llgo/internal/runtime.Slice" %106) - %107 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) - %108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %107, i64 0 + %101 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, ptr %101, align 8 + %102 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %100, 0 + %103 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %102, ptr %101, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %103, ptr %99, align 8 + %104 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %38, 0 + %105 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %104, i64 16, 1 + %106 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %105, i64 16, 2 + call void @main.println(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %106) + %107 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) + %108 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %107, i64 0 %109 = load ptr, ptr @_llgo_complex128, align 8 - %110 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %110 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store { double, double } { double 1.000000e+00, double 2.000000e+00 }, ptr %110, align 8 - %111 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %109, 0 - %112 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %111, ptr %110, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %112, ptr %108, align 8 - %113 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %107, 0 - %114 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %113, i64 1, 1 - %115 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %114, i64 1, 2 - call void @main.println(%"github.com/goplus/llgo/internal/runtime.Slice" %115) + %111 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %109, 0 + %112 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %111, ptr %110, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %112, ptr %108, align 8 + %113 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %107, 0 + %114 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %113, i64 1, 1 + %115 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %114, i64 1, 2 + call void @main.println(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %115) ret i32 0 _llgo_3: ; preds = %_llgo_0 @@ -310,9 +310,9 @@ _llgo_0: ret void } -define void @main.printany(%"github.com/goplus/llgo/internal/runtime.eface" %0) { +define void @main.printany(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %2 = load ptr, ptr @_llgo_bool, align 8 %3 = icmp eq ptr %1, %2 br i1 %3, label %_llgo_35, label %_llgo_36 @@ -325,7 +325,7 @@ _llgo_2: ; preds = %_llgo_37 br label %_llgo_1 _llgo_3: ; preds = %_llgo_37 - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %5 = load ptr, ptr @_llgo_int, align 8 %6 = icmp eq ptr %4, %5 br i1 %6, label %_llgo_38, label %_llgo_39 @@ -335,7 +335,7 @@ _llgo_4: ; preds = %_llgo_40 br label %_llgo_1 _llgo_5: ; preds = %_llgo_40 - %7 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %7 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %8 = load ptr, ptr @_llgo_int8, align 8 %9 = icmp eq ptr %7, %8 br i1 %9, label %_llgo_41, label %_llgo_42 @@ -346,7 +346,7 @@ _llgo_6: ; preds = %_llgo_43 br label %_llgo_1 _llgo_7: ; preds = %_llgo_43 - %11 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %11 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %12 = load ptr, ptr @_llgo_int16, align 8 %13 = icmp eq ptr %11, %12 br i1 %13, label %_llgo_44, label %_llgo_45 @@ -357,7 +357,7 @@ _llgo_8: ; preds = %_llgo_46 br label %_llgo_1 _llgo_9: ; preds = %_llgo_46 - %15 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %15 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %16 = load ptr, ptr @_llgo_int32, align 8 %17 = icmp eq ptr %15, %16 br i1 %17, label %_llgo_47, label %_llgo_48 @@ -368,7 +368,7 @@ _llgo_10: ; preds = %_llgo_49 br label %_llgo_1 _llgo_11: ; preds = %_llgo_49 - %19 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %19 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %20 = load ptr, ptr @_llgo_int64, align 8 %21 = icmp eq ptr %19, %20 br i1 %21, label %_llgo_50, label %_llgo_51 @@ -378,7 +378,7 @@ _llgo_12: ; preds = %_llgo_52 br label %_llgo_1 _llgo_13: ; preds = %_llgo_52 - %22 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %22 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %23 = load ptr, ptr @_llgo_uint, align 8 %24 = icmp eq ptr %22, %23 br i1 %24, label %_llgo_53, label %_llgo_54 @@ -388,7 +388,7 @@ _llgo_14: ; preds = %_llgo_55 br label %_llgo_1 _llgo_15: ; preds = %_llgo_55 - %25 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %25 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %26 = load ptr, ptr @_llgo_byte, align 8 %27 = icmp eq ptr %25, %26 br i1 %27, label %_llgo_56, label %_llgo_57 @@ -399,7 +399,7 @@ _llgo_16: ; preds = %_llgo_58 br label %_llgo_1 _llgo_17: ; preds = %_llgo_58 - %29 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %29 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %30 = load ptr, ptr @_llgo_uint16, align 8 %31 = icmp eq ptr %29, %30 br i1 %31, label %_llgo_59, label %_llgo_60 @@ -410,7 +410,7 @@ _llgo_18: ; preds = %_llgo_61 br label %_llgo_1 _llgo_19: ; preds = %_llgo_61 - %33 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %33 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %34 = load ptr, ptr @_llgo_uint32, align 8 %35 = icmp eq ptr %33, %34 br i1 %35, label %_llgo_62, label %_llgo_63 @@ -421,7 +421,7 @@ _llgo_20: ; preds = %_llgo_64 br label %_llgo_1 _llgo_21: ; preds = %_llgo_64 - %37 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %37 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %38 = load ptr, ptr @_llgo_uint64, align 8 %39 = icmp eq ptr %37, %38 br i1 %39, label %_llgo_65, label %_llgo_66 @@ -431,7 +431,7 @@ _llgo_22: ; preds = %_llgo_67 br label %_llgo_1 _llgo_23: ; preds = %_llgo_67 - %40 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %40 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %41 = load ptr, ptr @_llgo_uintptr, align 8 %42 = icmp eq ptr %40, %41 br i1 %42, label %_llgo_68, label %_llgo_69 @@ -441,7 +441,7 @@ _llgo_24: ; preds = %_llgo_70 br label %_llgo_1 _llgo_25: ; preds = %_llgo_70 - %43 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %43 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %44 = load ptr, ptr @_llgo_float32, align 8 %45 = icmp eq ptr %43, %44 br i1 %45, label %_llgo_71, label %_llgo_72 @@ -452,7 +452,7 @@ _llgo_26: ; preds = %_llgo_73 br label %_llgo_1 _llgo_27: ; preds = %_llgo_73 - %47 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %47 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %48 = load ptr, ptr @_llgo_float64, align 8 %49 = icmp eq ptr %47, %48 br i1 %49, label %_llgo_74, label %_llgo_75 @@ -462,49 +462,49 @@ _llgo_28: ; preds = %_llgo_76 br label %_llgo_1 _llgo_29: ; preds = %_llgo_76 - %50 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %50 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %51 = load ptr, ptr @_llgo_complex64, align 8 %52 = icmp eq ptr %50, %51 br i1 %52, label %_llgo_77, label %_llgo_78 _llgo_30: ; preds = %_llgo_79 - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 1 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 1 }) %53 = extractvalue { float, float } %178, 0 %54 = fpext float %53 to double call void @main.printfloat(double %54) %55 = extractvalue { float, float } %178, 1 %56 = fpext float %55 to double call void @main.printfloat(double %56) - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 2 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }) br label %_llgo_1 _llgo_31: ; preds = %_llgo_79 - %57 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %57 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %58 = load ptr, ptr @_llgo_complex128, align 8 %59 = icmp eq ptr %57, %58 br i1 %59, label %_llgo_80, label %_llgo_81 _llgo_32: ; preds = %_llgo_82 - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 1 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 1 }) %60 = extractvalue { double, double } %185, 0 call void @main.printfloat(double %60) %61 = extractvalue { double, double } %185, 1 call void @main.printfloat(double %61) - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 2 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }) br label %_llgo_1 _llgo_33: ; preds = %_llgo_82 - %62 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %62 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %63 = load ptr, ptr @_llgo_string, align 8 %64 = icmp eq ptr %62, %63 br i1 %64, label %_llgo_83, label %_llgo_84 _llgo_34: ; preds = %_llgo_85 - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" %192) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" %192) br label %_llgo_1 _llgo_35: ; preds = %_llgo_0 - %65 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %65 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %66 = ptrtoint ptr %65 to i64 %67 = trunc i64 %66 to i1 %68 = insertvalue { i1, i1 } undef, i1 %67, 0 @@ -521,7 +521,7 @@ _llgo_37: ; preds = %_llgo_36, %_llgo_35 br i1 %72, label %_llgo_2, label %_llgo_3 _llgo_38: ; preds = %_llgo_3 - %73 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %73 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %74 = ptrtoint ptr %73 to i64 %75 = insertvalue { i64, i1 } undef, i64 %74, 0 %76 = insertvalue { i64, i1 } %75, i1 true, 1 @@ -537,7 +537,7 @@ _llgo_40: ; preds = %_llgo_39, %_llgo_38 br i1 %79, label %_llgo_4, label %_llgo_5 _llgo_41: ; preds = %_llgo_5 - %80 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %80 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %81 = ptrtoint ptr %80 to i64 %82 = trunc i64 %81 to i8 %83 = insertvalue { i8, i1 } undef, i8 %82, 0 @@ -554,7 +554,7 @@ _llgo_43: ; preds = %_llgo_42, %_llgo_41 br i1 %87, label %_llgo_6, label %_llgo_7 _llgo_44: ; preds = %_llgo_7 - %88 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %88 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %89 = ptrtoint ptr %88 to i64 %90 = trunc i64 %89 to i16 %91 = insertvalue { i16, i1 } undef, i16 %90, 0 @@ -571,7 +571,7 @@ _llgo_46: ; preds = %_llgo_45, %_llgo_44 br i1 %95, label %_llgo_8, label %_llgo_9 _llgo_47: ; preds = %_llgo_9 - %96 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %96 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %97 = ptrtoint ptr %96 to i64 %98 = trunc i64 %97 to i32 %99 = insertvalue { i32, i1 } undef, i32 %98, 0 @@ -588,7 +588,7 @@ _llgo_49: ; preds = %_llgo_48, %_llgo_47 br i1 %103, label %_llgo_10, label %_llgo_11 _llgo_50: ; preds = %_llgo_11 - %104 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %104 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %105 = ptrtoint ptr %104 to i64 %106 = insertvalue { i64, i1 } undef, i64 %105, 0 %107 = insertvalue { i64, i1 } %106, i1 true, 1 @@ -604,7 +604,7 @@ _llgo_52: ; preds = %_llgo_51, %_llgo_50 br i1 %110, label %_llgo_12, label %_llgo_13 _llgo_53: ; preds = %_llgo_13 - %111 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %111 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %112 = ptrtoint ptr %111 to i64 %113 = insertvalue { i64, i1 } undef, i64 %112, 0 %114 = insertvalue { i64, i1 } %113, i1 true, 1 @@ -620,7 +620,7 @@ _llgo_55: ; preds = %_llgo_54, %_llgo_53 br i1 %117, label %_llgo_14, label %_llgo_15 _llgo_56: ; preds = %_llgo_15 - %118 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %118 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %119 = ptrtoint ptr %118 to i64 %120 = trunc i64 %119 to i8 %121 = insertvalue { i8, i1 } undef, i8 %120, 0 @@ -637,7 +637,7 @@ _llgo_58: ; preds = %_llgo_57, %_llgo_56 br i1 %125, label %_llgo_16, label %_llgo_17 _llgo_59: ; preds = %_llgo_17 - %126 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %126 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %127 = ptrtoint ptr %126 to i64 %128 = trunc i64 %127 to i16 %129 = insertvalue { i16, i1 } undef, i16 %128, 0 @@ -654,7 +654,7 @@ _llgo_61: ; preds = %_llgo_60, %_llgo_59 br i1 %133, label %_llgo_18, label %_llgo_19 _llgo_62: ; preds = %_llgo_19 - %134 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %134 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %135 = ptrtoint ptr %134 to i64 %136 = trunc i64 %135 to i32 %137 = insertvalue { i32, i1 } undef, i32 %136, 0 @@ -671,7 +671,7 @@ _llgo_64: ; preds = %_llgo_63, %_llgo_62 br i1 %141, label %_llgo_20, label %_llgo_21 _llgo_65: ; preds = %_llgo_21 - %142 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %142 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %143 = ptrtoint ptr %142 to i64 %144 = insertvalue { i64, i1 } undef, i64 %143, 0 %145 = insertvalue { i64, i1 } %144, i1 true, 1 @@ -687,7 +687,7 @@ _llgo_67: ; preds = %_llgo_66, %_llgo_65 br i1 %148, label %_llgo_22, label %_llgo_23 _llgo_68: ; preds = %_llgo_23 - %149 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %149 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %150 = ptrtoint ptr %149 to i64 %151 = insertvalue { i64, i1 } undef, i64 %150, 0 %152 = insertvalue { i64, i1 } %151, i1 true, 1 @@ -703,7 +703,7 @@ _llgo_70: ; preds = %_llgo_69, %_llgo_68 br i1 %155, label %_llgo_24, label %_llgo_25 _llgo_71: ; preds = %_llgo_25 - %156 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %156 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %157 = ptrtoint ptr %156 to i64 %158 = trunc i64 %157 to i32 %159 = bitcast i32 %158 to float @@ -721,7 +721,7 @@ _llgo_73: ; preds = %_llgo_72, %_llgo_71 br i1 %164, label %_llgo_26, label %_llgo_27 _llgo_74: ; preds = %_llgo_27 - %165 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %165 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %166 = ptrtoint ptr %165 to i64 %167 = bitcast i64 %166 to double %168 = insertvalue { double, i1 } undef, double %167, 0 @@ -738,7 +738,7 @@ _llgo_76: ; preds = %_llgo_75, %_llgo_74 br i1 %172, label %_llgo_28, label %_llgo_29 _llgo_77: ; preds = %_llgo_29 - %173 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %173 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %174 = load { float, float }, ptr %173, align 4 %175 = insertvalue { { float, float }, i1 } undef, { float, float } %174, 0 %176 = insertvalue { { float, float }, i1 } %175, i1 true, 1 @@ -754,7 +754,7 @@ _llgo_79: ; preds = %_llgo_78, %_llgo_77 br i1 %179, label %_llgo_30, label %_llgo_31 _llgo_80: ; preds = %_llgo_31 - %180 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %180 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %181 = load { double, double }, ptr %180, align 8 %182 = insertvalue { { double, double }, i1 } undef, { double, double } %181, 0 %183 = insertvalue { { double, double }, i1 } %182, i1 true, 1 @@ -770,19 +770,19 @@ _llgo_82: ; preds = %_llgo_81, %_llgo_80 br i1 %186, label %_llgo_32, label %_llgo_33 _llgo_83: ; preds = %_llgo_33 - %187 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 - %188 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %187, align 8 - %189 = insertvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } undef, %"github.com/goplus/llgo/internal/runtime.String" %188, 0 - %190 = insertvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } %189, i1 true, 1 + %187 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 + %188 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %187, align 8 + %189 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.String" %188, 0 + %190 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } %189, i1 true, 1 br label %_llgo_85 _llgo_84: ; preds = %_llgo_33 br label %_llgo_85 _llgo_85: ; preds = %_llgo_84, %_llgo_83 - %191 = phi { %"github.com/goplus/llgo/internal/runtime.String", i1 } [ %190, %_llgo_83 ], [ zeroinitializer, %_llgo_84 ] - %192 = extractvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } %191, 0 - %193 = extractvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } %191, 1 + %191 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } [ %190, %_llgo_83 ], [ zeroinitializer, %_llgo_84 ] + %192 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } %191, 0 + %193 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } %191, 1 br i1 %193, label %_llgo_34, label %_llgo_1 } @@ -791,14 +791,14 @@ _llgo_0: br i1 %0, label %_llgo_1, label %_llgo_3 _llgo_1: ; preds = %_llgo_0 - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 4 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 4 }) br label %_llgo_2 _llgo_2: ; preds = %_llgo_3, %_llgo_1 ret void _llgo_3: ; preds = %_llgo_0 - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 5 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 5 }) br label %_llgo_2 } @@ -808,11 +808,11 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_3 _llgo_1: ; preds = %_llgo_0 - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 3 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 3 }) ret void _llgo_2: ; preds = %_llgo_7 - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 4 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }) ret void _llgo_3: ; preds = %_llgo_0 @@ -821,7 +821,7 @@ _llgo_3: ; preds = %_llgo_0 br i1 %3, label %_llgo_6, label %_llgo_7 _llgo_4: ; preds = %_llgo_10 - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 4 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 4 }) ret void _llgo_5: ; preds = %_llgo_7 @@ -838,7 +838,7 @@ _llgo_7: ; preds = %_llgo_6, %_llgo_3 br i1 %7, label %_llgo_2, label %_llgo_5 _llgo_8: ; preds = %_llgo_10 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 14) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 14) %9 = getelementptr inbounds i8, ptr %8, i64 0 store i8 43, ptr %9, align 1 %10 = fcmp oeq double %0, 0.000000e+00 @@ -937,7 +937,7 @@ _llgo_26: ; preds = %_llgo_25 %47 = icmp slt i64 %44, 0 %48 = icmp sge i64 %44, 14 %49 = or i1 %48, %47 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %49) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %49) %50 = getelementptr inbounds i8, ptr %8, i64 %44 store i8 %46, ptr %50, align 1 %51 = sitofp i64 %43 to double @@ -984,28 +984,28 @@ _llgo_29: ; preds = %_llgo_28, %_llgo_27 %76 = add i8 %75, 48 %77 = getelementptr inbounds i8, ptr %8, i64 13 store i8 %76, ptr %77, align 1 - %78 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %8, 0 - %79 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %78, i64 14, 1 - %80 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %79, i64 14, 2 - call void @main.gwrite(%"github.com/goplus/llgo/internal/runtime.Slice" %80) + %78 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %8, 0 + %79 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %78, i64 14, 1 + %80 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %79, i64 14, 2 + call void @main.gwrite(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %80) ret void } define void @main.printhex(i64 %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 100) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 100) br label %_llgo_3 _llgo_1: ; preds = %_llgo_3 %2 = urem i64 %22, 16 %3 = icmp sge i64 %2, 16 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %3) %4 = getelementptr inbounds i8, ptr @11, i64 %2 %5 = load i8, ptr %4, align 1 %6 = icmp slt i64 %23, 0 %7 = icmp sge i64 %23, 100 %8 = or i1 %7, %6 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %8) %9 = getelementptr inbounds i8, ptr %1, i64 %23 store i8 %5, ptr %9, align 1 %10 = icmp ult i64 %22, 16 @@ -1016,18 +1016,18 @@ _llgo_2: ; preds = %_llgo_5, %_llgo_3 %12 = icmp slt i64 %11, 0 %13 = icmp sge i64 %11, 100 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i8, ptr %1, i64 %11 store i8 120, ptr %15, align 1 %16 = sub i64 %11, 1 %17 = icmp slt i64 %16, 0 %18 = icmp sge i64 %16, 100 %19 = or i1 %18, %17 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %19) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %19) %20 = getelementptr inbounds i8, ptr %1, i64 %16 store i8 48, ptr %20, align 1 - %21 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %1, i64 1, i64 100, i64 %16, i64 100, i64 100) - call void @main.gwrite(%"github.com/goplus/llgo/internal/runtime.Slice" %21) + %21 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %1, i64 1, i64 100, i64 %16, i64 100, i64 100) + call void @main.gwrite(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %21) ret void _llgo_3: ; preds = %_llgo_4, %_llgo_0 @@ -1054,7 +1054,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @12, i64 1 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @12, i64 1 }) %2 = sub i64 0, %0 br label %_llgo_2 @@ -1064,9 +1064,9 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 ret void } -define void @main.println(%"github.com/goplus/llgo/internal/runtime.Slice" %0) { +define void @main.println(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 br label %_llgo_1 _llgo_1: ; preds = %_llgo_5, %_llgo_0 @@ -1076,14 +1076,14 @@ _llgo_1: ; preds = %_llgo_5, %_llgo_0 br i1 %4, label %_llgo_2, label %_llgo_3 _llgo_2: ; preds = %_llgo_1 - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 0 - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 0 + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 %7 = icmp slt i64 %3, 0 %8 = icmp sge i64 %3, %6 %9 = or i1 %8, %7 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %9) - %10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %5, i64 %3 - %11 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, align 8 + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %9) + %10 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %5, i64 %3 + %11 = load %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %10, align 8 %12 = icmp ne i64 %3, 0 br i1 %12, label %_llgo_4, label %_llgo_5 @@ -1092,36 +1092,36 @@ _llgo_3: ; preds = %_llgo_1 ret void _llgo_4: ; preds = %_llgo_2 - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 1 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 1 }) br label %_llgo_5 _llgo_5: ; preds = %_llgo_4, %_llgo_2 - call void @main.printany(%"github.com/goplus/llgo/internal/runtime.eface" %11) + call void @main.printany(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %11) br label %_llgo_1 } define void @main.printnl() { _llgo_0: - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @14, i64 1 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @14, i64 1 }) ret void } define void @main.printsp() { _llgo_0: - call void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 1 }) + call void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 1 }) ret void } -define void @main.printstring(%"github.com/goplus/llgo/internal/runtime.String" %0) { +define void @main.printstring(%"github.com/goplus/llgo/runtime/internal/runtime.String" %0) { _llgo_0: - %1 = call %"github.com/goplus/llgo/internal/runtime.Slice" @main.bytes(%"github.com/goplus/llgo/internal/runtime.String" %0) - call void @main.gwrite(%"github.com/goplus/llgo/internal/runtime.Slice" %1) + %1 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @main.bytes(%"github.com/goplus/llgo/runtime/internal/runtime.String" %0) + call void @main.gwrite(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) ret void } define void @main.printuint(i64 %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 100) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 100) br label %_llgo_3 _llgo_1: ; preds = %_llgo_3 @@ -1131,15 +1131,15 @@ _llgo_1: ; preds = %_llgo_3 %5 = icmp slt i64 %12, 0 %6 = icmp sge i64 %12, 100 %7 = or i1 %6, %5 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %7) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %7) %8 = getelementptr inbounds i8, ptr %1, i64 %12 store i8 %4, ptr %8, align 1 %9 = icmp ult i64 %11, 10 br i1 %9, label %_llgo_2, label %_llgo_4 _llgo_2: ; preds = %_llgo_1, %_llgo_3 - %10 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %1, i64 1, i64 100, i64 %12, i64 100, i64 100) - call void @main.gwrite(%"github.com/goplus/llgo/internal/runtime.Slice" %10) + %10 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %1, i64 1, i64 100, i64 %12, i64 100, i64 100) + call void @main.gwrite(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10) ret void _llgo_3: ; preds = %_llgo_4, %_llgo_0 @@ -1173,13 +1173,13 @@ _llgo_0: ret ptr %0 } -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) declare i32 @printf(ptr, ...) -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: @@ -1188,7 +1188,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 45) store ptr %2, ptr @_llgo_float32, align 8 br label %_llgo_2 @@ -1198,7 +1198,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 46) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 46) store ptr %5, ptr @_llgo_float64, align 8 br label %_llgo_4 @@ -1208,7 +1208,7 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %7, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %8, ptr @_llgo_string, align 8 br label %_llgo_6 @@ -1218,7 +1218,7 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 br i1 %10, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 33) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 33) store ptr %11, ptr @_llgo_bool, align 8 br label %_llgo_8 @@ -1228,7 +1228,7 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 br i1 %13, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 37) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 37) store ptr %14, ptr @_llgo_int32, align 8 br label %_llgo_10 @@ -1238,7 +1238,7 @@ _llgo_10: ; preds = %_llgo_9, %_llgo_8 br i1 %16, label %_llgo_11, label %_llgo_12 _llgo_11: ; preds = %_llgo_10 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 35) store ptr %17, ptr @_llgo_int8, align 8 br label %_llgo_12 @@ -1248,7 +1248,7 @@ _llgo_12: ; preds = %_llgo_11, %_llgo_10 br i1 %19, label %_llgo_13, label %_llgo_14 _llgo_13: ; preds = %_llgo_12 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 36) + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 36) store ptr %20, ptr @_llgo_int16, align 8 br label %_llgo_14 @@ -1258,7 +1258,7 @@ _llgo_14: ; preds = %_llgo_13, %_llgo_12 br i1 %22, label %_llgo_15, label %_llgo_16 _llgo_15: ; preds = %_llgo_14 - %23 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 38) + %23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 38) store ptr %23, ptr @_llgo_int64, align 8 br label %_llgo_16 @@ -1268,7 +1268,7 @@ _llgo_16: ; preds = %_llgo_15, %_llgo_14 br i1 %25, label %_llgo_17, label %_llgo_18 _llgo_17: ; preds = %_llgo_16 - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %26, ptr @_llgo_int, align 8 br label %_llgo_18 @@ -1278,7 +1278,7 @@ _llgo_18: ; preds = %_llgo_17, %_llgo_16 br i1 %28, label %_llgo_19, label %_llgo_20 _llgo_19: ; preds = %_llgo_18 - %29 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) + %29 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) store ptr %29, ptr @_llgo_byte, align 8 br label %_llgo_20 @@ -1288,7 +1288,7 @@ _llgo_20: ; preds = %_llgo_19, %_llgo_18 br i1 %31, label %_llgo_21, label %_llgo_22 _llgo_21: ; preds = %_llgo_20 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 41) + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 41) store ptr %32, ptr @_llgo_uint16, align 8 br label %_llgo_22 @@ -1298,7 +1298,7 @@ _llgo_22: ; preds = %_llgo_21, %_llgo_20 br i1 %34, label %_llgo_23, label %_llgo_24 _llgo_23: ; preds = %_llgo_22 - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 42) + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 42) store ptr %35, ptr @_llgo_uint32, align 8 br label %_llgo_24 @@ -1308,7 +1308,7 @@ _llgo_24: ; preds = %_llgo_23, %_llgo_22 br i1 %37, label %_llgo_25, label %_llgo_26 _llgo_25: ; preds = %_llgo_24 - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 43) + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 43) store ptr %38, ptr @_llgo_uint64, align 8 br label %_llgo_26 @@ -1318,7 +1318,7 @@ _llgo_26: ; preds = %_llgo_25, %_llgo_24 br i1 %40, label %_llgo_27, label %_llgo_28 _llgo_27: ; preds = %_llgo_26 - %41 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) + %41 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) store ptr %41, ptr @_llgo_uintptr, align 8 br label %_llgo_28 @@ -1328,7 +1328,7 @@ _llgo_28: ; preds = %_llgo_27, %_llgo_26 br i1 %43, label %_llgo_29, label %_llgo_30 _llgo_29: ; preds = %_llgo_28 - %44 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 16) + %44 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 16) store ptr %44, ptr @_llgo_complex128, align 8 br label %_llgo_30 @@ -1338,7 +1338,7 @@ _llgo_30: ; preds = %_llgo_29, %_llgo_28 br i1 %46, label %_llgo_31, label %_llgo_32 _llgo_31: ; preds = %_llgo_30 - %47 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 39) + %47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 39) store ptr %47, ptr @_llgo_uint, align 8 br label %_llgo_32 @@ -1348,7 +1348,7 @@ _llgo_32: ; preds = %_llgo_31, %_llgo_30 br i1 %49, label %_llgo_33, label %_llgo_34 _llgo_33: ; preds = %_llgo_32 - %50 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 15) + %50 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 15) store ptr %50, ptr @_llgo_complex64, align 8 br label %_llgo_34 @@ -1356,8 +1356,8 @@ _llgo_34: ; preds = %_llgo_33, %_llgo_32 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr, i64, i64, i64, i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr, i64, i64, i64, i64, i64) diff --git a/compiler/cl/_testdata/printf/out.ll b/compiler/cl/_testdata/printf/out.ll index 1271af05..a1d05cf6 100644 --- a/compiler/cl/_testdata/printf/out.ll +++ b/compiler/cl/_testdata/printf/out.ll @@ -30,12 +30,12 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void (ptr, ...) @printf(ptr @main.hello) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare void @printf(ptr, ...) diff --git a/compiler/cl/_testdata/printval/out.ll b/compiler/cl/_testdata/printval/out.ll index a9a9199c..156a2980 100644 --- a/compiler/cl/_testdata/printval/out.ll +++ b/compiler/cl/_testdata/printval/out.ll @@ -33,12 +33,12 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void (ptr, ...) @printf(ptr @main.format, i64 100) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare void @printf(ptr, ...) diff --git a/compiler/cl/_testdata/ptrmthd/out.ll b/compiler/cl/_testdata/ptrmthd/out.ll index 669165c3..3e80604e 100644 --- a/compiler/cl/_testdata/ptrmthd/out.ll +++ b/compiler/cl/_testdata/ptrmthd/out.ll @@ -39,7 +39,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @"main.(*T).Print"(ptr @main.format, i64 100) ret i32 0 @@ -47,4 +47,4 @@ _llgo_0: declare void @printf(ptr, ...) -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testdata/uint/out.ll b/compiler/cl/_testdata/uint/out.ll index 852fa7da..0e51cc82 100644 --- a/compiler/cl/_testdata/uint/out.ll +++ b/compiler/cl/_testdata/uint/out.ll @@ -29,13 +29,13 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call i32 @main.f(i32 100) %3 = call i32 (ptr, ...) @printf(ptr @0, i32 %2) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testdata/untyped/out.ll b/compiler/cl/_testdata/untyped/out.ll index e1e480bb..2cd3e107 100644 --- a/compiler/cl/_testdata/untyped/out.ll +++ b/compiler/cl/_testdata/untyped/out.ll @@ -24,7 +24,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() br i1 false, label %_llgo_1, label %_llgo_2 @@ -36,4 +36,4 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testdata/utf8/out.ll b/compiler/cl/_testdata/utf8/out.ll index 87c70c33..8e0421f7 100644 --- a/compiler/cl/_testdata/utf8/out.ll +++ b/compiler/cl/_testdata/utf8/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @main.array = global [8 x i8] zeroinitializer, align 1 @"main.init$guard" = global i1 false, align 1 @@ -15,7 +15,7 @@ _llgo_0: %2 = icmp slt i64 %1, 0 %3 = icmp sge i64 %1, 8 %4 = or i1 %3, %2 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %4) %5 = getelementptr inbounds i8, ptr @main.array, i64 %1 %6 = load i8, ptr %5, align 1 ret i8 %6 @@ -47,7 +47,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() br label %_llgo_1 @@ -57,36 +57,36 @@ _llgo_1: ; preds = %_llgo_2, %_llgo_0 br i1 %3, label %_llgo_2, label %_llgo_3 _llgo_2: ; preds = %_llgo_1 - %4 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringSlice"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }, i64 %2, i64 7) - %5 = call { i32, i64 } @"unicode/utf8.DecodeRuneInString"(%"github.com/goplus/llgo/internal/runtime.String" %4) + %4 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }, i64 %2, i64 7) + %5 = call { i32, i64 } @"unicode/utf8.DecodeRuneInString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %4) %6 = extractvalue { i32, i64 } %5, 0 %7 = extractvalue { i32, i64 } %5, 1 %8 = add i64 %2, %7 %9 = sext i32 %6 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_3: ; preds = %_llgo_1 %10 = call i8 @main.index(i8 2) %11 = icmp eq i8 %10, 3 - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %11) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) declare void @"unicode/utf8.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringSlice"(%"github.com/goplus/llgo/internal/runtime.String", i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64) -declare { i32, i64 } @"unicode/utf8.DecodeRuneInString"(%"github.com/goplus/llgo/internal/runtime.String") +declare { i32, i64 } @"unicode/utf8.DecodeRuneInString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) diff --git a/compiler/cl/_testdata/vargs/out.ll b/compiler/cl/_testdata/vargs/out.ll index 677f92eb..056085d9 100644 --- a/compiler/cl/_testdata/vargs/out.ll +++ b/compiler/cl/_testdata/vargs/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -31,34 +31,34 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 48) - %3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %2, i64 0 + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 48) + %3 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %2, i64 0 %4 = load ptr, ptr @_llgo_int, align 8 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, ptr inttoptr (i64 1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %3, align 8 - %7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %2, i64 1 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr inttoptr (i64 1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %3, align 8 + %7 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %2, i64 1 %8 = load ptr, ptr @_llgo_int, align 8 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %8, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, ptr inttoptr (i64 2 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %10, ptr %7, align 8 - %11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %2, i64 2 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %8, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, ptr inttoptr (i64 2 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %10, ptr %7, align 8 + %11 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %2, i64 2 %12 = load ptr, ptr @_llgo_int, align 8 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %12, 0 - %14 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %13, ptr inttoptr (i64 3 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %14, ptr %11, align 8 - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %2, 0 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %15, i64 3, 1 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %16, i64 3, 2 - call void @main.test(%"github.com/goplus/llgo/internal/runtime.Slice" %17) + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %12, 0 + %14 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %13, ptr inttoptr (i64 3 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %14, ptr %11, align 8 + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %2, 0 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %15, i64 3, 1 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %16, i64 3, 2 + call void @main.test(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %17) ret i32 0 } -define void @main.test(%"github.com/goplus/llgo/internal/runtime.Slice" %0) { +define void @main.test(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 br label %_llgo_1 _llgo_1: ; preds = %_llgo_4, %_llgo_0 @@ -68,15 +68,15 @@ _llgo_1: ; preds = %_llgo_4, %_llgo_0 br i1 %4, label %_llgo_2, label %_llgo_3 _llgo_2: ; preds = %_llgo_1 - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 0 - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 0 + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 %7 = icmp slt i64 %3, 0 %8 = icmp sge i64 %3, %6 %9 = or i1 %8, %7 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %9) - %10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %5, i64 %3 - %11 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, align 8 - %12 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %11, 0 + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %9) + %10 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %5, i64 %3 + %11 = load %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %10, align 8 + %12 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %11, 0 %13 = load ptr, ptr @_llgo_int, align 8 %14 = icmp eq ptr %12, %13 br i1 %14, label %_llgo_4, label %_llgo_5 @@ -85,24 +85,24 @@ _llgo_3: ; preds = %_llgo_1 ret void _llgo_4: ; preds = %_llgo_2 - %15 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %11, 1 + %15 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %11, 1 %16 = ptrtoint ptr %15 to i64 %17 = call i32 (ptr, ...) @printf(ptr @0, i64 %16) br label %_llgo_1 _llgo_5: ; preds = %_llgo_2 %18 = load ptr, ptr @_llgo_string, align 8 - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 21 }, ptr %19, align 8 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %18, 0 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %20, ptr %19, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %21) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 21 }, ptr %19, align 8 + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %18, 0 + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %20, ptr %19, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %21) unreachable } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) define void @"main.init$after"() { _llgo_0: @@ -111,7 +111,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %2, ptr @_llgo_int, align 8 br label %_llgo_2 @@ -121,7 +121,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %5, ptr @_llgo_string, align 8 br label %_llgo_4 @@ -129,12 +129,12 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testdata/varinit/out.ll b/compiler/cl/_testdata/varinit/out.ll index cfe2f593..38757509 100644 --- a/compiler/cl/_testdata/varinit/out.ll +++ b/compiler/cl/_testdata/varinit/out.ll @@ -24,7 +24,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load i64, ptr @main.a, align 4 %3 = add i64 %2, 1 @@ -33,4 +33,4 @@ _llgo_0: ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testgo/allocinloop/out.ll b/compiler/cl/_testgo/allocinloop/out.ll index 5922250e..c82eed69 100644 --- a/compiler/cl/_testgo/allocinloop/out.ll +++ b/compiler/cl/_testgo/allocinloop/out.ll @@ -1,16 +1,16 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @0 = private unnamed_addr constant [5 x i8] c"hello", align 1 @__llgo_argc = global i32 0, align 4 @__llgo_argv = global ptr null, align 8 -define i64 @main.Foo(%"github.com/goplus/llgo/internal/runtime.String" %0) { +define i64 @main.Foo(%"github.com/goplus/llgo/runtime/internal/runtime.String" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %0, 1 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %0, 1 ret i64 %1 } @@ -25,14 +25,14 @@ _llgo_1: ; preds = %_llgo_2, %_llgo_0 br i1 %2, label %_llgo_2, label %_llgo_3 _llgo_2: ; preds = %_llgo_1 - %3 = call i64 @main.Foo(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }) + %3 = call i64 @main.Foo(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }) %4 = add i64 %0, %3 %5 = add i64 %1, 1 br label %_llgo_1 _llgo_3: ; preds = %_llgo_1 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %0) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } @@ -53,14 +53,14 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @main.Test() ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testgo/cgobasic/out.ll b/compiler/cl/_testgo/cgobasic/out.ll index 6d0a5959..5df5a10d 100644 --- a/compiler/cl/_testgo/cgobasic/out.ll +++ b/compiler/cl/_testgo/cgobasic/out.ll @@ -1,26 +1,26 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } -@"github.com/goplus/llgo/internal/runtime.cgoAlwaysFalse" = external global i1, align 1 -@_cgo_62905c3ec377_Cfunc__Cmalloc = external global i8, align 1 -@_cgo_62905c3ec377_Cfunc_cos = external global i8, align 1 -@_cgo_62905c3ec377_Cfunc_free = external global i8, align 1 -@_cgo_62905c3ec377_Cfunc_log = external global i8, align 1 -@_cgo_62905c3ec377_Cfunc_puts = external global i8, align 1 -@_cgo_62905c3ec377_Cfunc_sin = external global i8, align 1 -@_cgo_62905c3ec377_Cfunc_sqrt = external global i8, align 1 -@main._cgo_62905c3ec377_Cfunc__Cmalloc = global ptr null, align 8 -@main._cgo_62905c3ec377_Cfunc_cos = global ptr null, align 8 -@main._cgo_62905c3ec377_Cfunc_free = global ptr null, align 8 -@main._cgo_62905c3ec377_Cfunc_log = global ptr null, align 8 -@main._cgo_62905c3ec377_Cfunc_puts = global ptr null, align 8 -@main._cgo_62905c3ec377_Cfunc_sin = global ptr null, align 8 -@main._cgo_62905c3ec377_Cfunc_sqrt = global ptr null, align 8 +@"github.com/goplus/llgo/runtime/internal/runtime.cgoAlwaysFalse" = external global i1, align 1 +@_cgo_217b74f897b2_Cfunc__Cmalloc = external global i8, align 1 +@_cgo_217b74f897b2_Cfunc_cos = external global i8, align 1 +@_cgo_217b74f897b2_Cfunc_free = external global i8, align 1 +@_cgo_217b74f897b2_Cfunc_log = external global i8, align 1 +@_cgo_217b74f897b2_Cfunc_puts = external global i8, align 1 +@_cgo_217b74f897b2_Cfunc_sin = external global i8, align 1 +@_cgo_217b74f897b2_Cfunc_sqrt = external global i8, align 1 +@main._cgo_217b74f897b2_Cfunc__Cmalloc = global ptr null, align 8 +@main._cgo_217b74f897b2_Cfunc_cos = global ptr null, align 8 +@main._cgo_217b74f897b2_Cfunc_free = global ptr null, align 8 +@main._cgo_217b74f897b2_Cfunc_log = global ptr null, align 8 +@main._cgo_217b74f897b2_Cfunc_puts = global ptr null, align 8 +@main._cgo_217b74f897b2_Cfunc_sin = global ptr null, align 8 +@main._cgo_217b74f897b2_Cfunc_sqrt = global ptr null, align 8 @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @__llgo_argv = global ptr null, align 8 @@ -39,8 +39,8 @@ source_filename = "main" define double @main._Cfunc_cos(double %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %2 = load ptr, ptr @main._cgo_62905c3ec377_Cfunc_cos, align 8 + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %2 = load ptr, ptr @main._cgo_217b74f897b2_Cfunc_cos, align 8 %3 = load ptr, ptr %2, align 8 %4 = call double %3(double %0) ret double %4 @@ -48,8 +48,8 @@ _llgo_0: define [0 x i8] @main._Cfunc_free(ptr %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %2 = load ptr, ptr @main._cgo_62905c3ec377_Cfunc_free, align 8 + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %2 = load ptr, ptr @main._cgo_217b74f897b2_Cfunc_free, align 8 %3 = load ptr, ptr %2, align 8 %4 = call [0 x i8] %3(ptr %0) ret [0 x i8] %4 @@ -57,8 +57,8 @@ _llgo_0: define double @main._Cfunc_log(double %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %2 = load ptr, ptr @main._cgo_62905c3ec377_Cfunc_log, align 8 + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %2 = load ptr, ptr @main._cgo_217b74f897b2_Cfunc_log, align 8 %3 = load ptr, ptr %2, align 8 %4 = call double %3(double %0) ret double %4 @@ -66,8 +66,8 @@ _llgo_0: define i32 @main._Cfunc_puts(ptr %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %2 = load ptr, ptr @main._cgo_62905c3ec377_Cfunc_puts, align 8 + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %2 = load ptr, ptr @main._cgo_217b74f897b2_Cfunc_puts, align 8 %3 = load ptr, ptr %2, align 8 %4 = call i32 %3(ptr %0) ret i32 %4 @@ -75,8 +75,8 @@ _llgo_0: define double @main._Cfunc_sin(double %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %2 = load ptr, ptr @main._cgo_62905c3ec377_Cfunc_sin, align 8 + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %2 = load ptr, ptr @main._cgo_217b74f897b2_Cfunc_sin, align 8 %3 = load ptr, ptr %2, align 8 %4 = call double %3(double %0) ret double %4 @@ -84,8 +84,8 @@ _llgo_0: define double @main._Cfunc_sqrt(double %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %2 = load ptr, ptr @main._cgo_62905c3ec377_Cfunc_sqrt, align 8 + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %2 = load ptr, ptr @main._cgo_217b74f897b2_Cfunc_sqrt, align 8 %3 = load ptr, ptr %2, align 8 %4 = call double %3(double %0) ret double %4 @@ -96,9 +96,9 @@ _llgo_0: ret ptr %0 } -declare void @runtime.cgoUse(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @runtime.cgoUse(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @main._cgoCheckResult(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @main._cgoCheckResult(%"github.com/goplus/llgo/runtime/internal/runtime.eface") define void @main.init() { _llgo_0: @@ -110,13 +110,13 @@ _llgo_1: ; preds = %_llgo_0 call void @syscall.init() call void @fmt.init() call void @"main.init$after"() - store ptr @_cgo_62905c3ec377_Cfunc_cos, ptr @main._cgo_62905c3ec377_Cfunc_cos, align 8 - store ptr @_cgo_62905c3ec377_Cfunc_free, ptr @main._cgo_62905c3ec377_Cfunc_free, align 8 - store ptr @_cgo_62905c3ec377_Cfunc_log, ptr @main._cgo_62905c3ec377_Cfunc_log, align 8 - store ptr @_cgo_62905c3ec377_Cfunc_puts, ptr @main._cgo_62905c3ec377_Cfunc_puts, align 8 - store ptr @_cgo_62905c3ec377_Cfunc_sin, ptr @main._cgo_62905c3ec377_Cfunc_sin, align 8 - store ptr @_cgo_62905c3ec377_Cfunc_sqrt, ptr @main._cgo_62905c3ec377_Cfunc_sqrt, align 8 - store ptr @_cgo_62905c3ec377_Cfunc__Cmalloc, ptr @main._cgo_62905c3ec377_Cfunc__Cmalloc, align 8 + store ptr @_cgo_217b74f897b2_Cfunc_cos, ptr @main._cgo_217b74f897b2_Cfunc_cos, align 8 + store ptr @_cgo_217b74f897b2_Cfunc_free, ptr @main._cgo_217b74f897b2_Cfunc_free, align 8 + store ptr @_cgo_217b74f897b2_Cfunc_log, ptr @main._cgo_217b74f897b2_Cfunc_log, align 8 + store ptr @_cgo_217b74f897b2_Cfunc_puts, ptr @main._cgo_217b74f897b2_Cfunc_puts, align 8 + store ptr @_cgo_217b74f897b2_Cfunc_sin, ptr @main._cgo_217b74f897b2_Cfunc_sin, align 8 + store ptr @_cgo_217b74f897b2_Cfunc_sqrt, ptr @main._cgo_217b74f897b2_Cfunc_sqrt, align 8 + store ptr @_cgo_217b74f897b2_Cfunc__Cmalloc, ptr @main._cgo_217b74f897b2_Cfunc__Cmalloc, align 8 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 @@ -127,15 +127,15 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.CString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 13 }) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.CString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 13 }) store ptr %3, ptr %2, align 8 %4 = load ptr, ptr %2, align 8 %5 = call i32 @main._Cfunc_puts(ptr %4) - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 4) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 4) %8 = getelementptr inbounds i8, ptr %7, i64 0 store i8 65, ptr %8, align 1 %9 = getelementptr inbounds i8, ptr %7, i64 1 @@ -144,12 +144,12 @@ _llgo_0: store i8 67, ptr %10, align 1 %11 = getelementptr inbounds i8, ptr %7, i64 3 store i8 68, ptr %11, align 1 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %7, 0 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %12, i64 4, 1 - %14 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %13, i64 4, 2 - store %"github.com/goplus/llgo/internal/runtime.Slice" %14, ptr %6, align 8 - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %7, 0 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %12, i64 4, 1 + %14 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %13, i64 4, 2 + store %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %14, ptr %6, align 8 + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %17 = getelementptr inbounds { ptr }, ptr %16, i32 0, i32 0 store ptr %6, ptr %17, align 8 %18 = insertvalue { ptr, ptr } { ptr @"main.main$1", ptr undef }, ptr %16, 1 @@ -158,108 +158,108 @@ _llgo_0: %21 = call ptr %20(ptr %19) store ptr %21, ptr %15, align 8 %22 = load ptr, ptr %2, align 8 - %23 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.GoString"(ptr %22) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 29 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %23) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %23 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.GoString"(ptr %22) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 29 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %23) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %24 = load ptr, ptr %2, align 8 - %25 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.GoStringN"(ptr %24, i32 5) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 23 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %25) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %25 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.GoStringN"(ptr %24, i32 5) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 23 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %25) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %27 = getelementptr inbounds { ptr }, ptr %26, i32 0, i32 0 store ptr %15, ptr %27, align 8 %28 = insertvalue { ptr, ptr } { ptr @"main.main$2", ptr undef }, ptr %26, 1 %29 = extractvalue { ptr, ptr } %28, 1 %30 = extractvalue { ptr, ptr } %28, 0 - %31 = call %"github.com/goplus/llgo/internal/runtime.Slice" %30(ptr %29) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 33 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %31) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %31 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30(ptr %29) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 33 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %31) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %32 = call double @main._Cfunc_sqrt(double 2.000000e+00) - %33 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) - %34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %33, i64 0 + %33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) + %34 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %33, i64 0 %35 = load ptr, ptr @_llgo_float64, align 8 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %35, 0 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %36, ptr inttoptr (i64 4611686018427387904 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %37, ptr %34, align 8 - %38 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %33, i64 1 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %35, 0 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %36, ptr inttoptr (i64 4611686018427387904 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %37, ptr %34, align 8 + %38 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %33, i64 1 %39 = load ptr, ptr @_llgo_float64, align 8 %40 = bitcast double %32 to i64 %41 = inttoptr i64 %40 to ptr - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %39, 0 - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %42, ptr %41, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %43, ptr %38, align 8 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %33, 0 - %45 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %44, i64 2, 1 - %46 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %45, i64 2, 2 - %47 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 14 }, %"github.com/goplus/llgo/internal/runtime.Slice" %46) + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %39, 0 + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %42, ptr %41, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %43, ptr %38, align 8 + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %33, 0 + %45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %44, i64 2, 1 + %46 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %45, i64 2, 2 + %47 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 14 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %46) %48 = call double @main._Cfunc_sin(double 2.000000e+00) - %49 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) - %50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %49, i64 0 + %49 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) + %50 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %49, i64 0 %51 = load ptr, ptr @_llgo_float64, align 8 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %51, 0 - %53 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %52, ptr inttoptr (i64 4611686018427387904 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %53, ptr %50, align 8 - %54 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %49, i64 1 + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %51, 0 + %53 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %52, ptr inttoptr (i64 4611686018427387904 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %53, ptr %50, align 8 + %54 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %49, i64 1 %55 = load ptr, ptr @_llgo_float64, align 8 %56 = bitcast double %48 to i64 %57 = inttoptr i64 %56 to ptr - %58 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %55, 0 - %59 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %58, ptr %57, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %59, ptr %54, align 8 - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %49, 0 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, i64 2, 1 - %62 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %61, i64 2, 2 - %63 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 13 }, %"github.com/goplus/llgo/internal/runtime.Slice" %62) + %58 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %55, 0 + %59 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %58, ptr %57, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %59, ptr %54, align 8 + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %49, 0 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, i64 2, 1 + %62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, i64 2, 2 + %63 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 13 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62) %64 = call double @main._Cfunc_cos(double 2.000000e+00) - %65 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) - %66 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %65, i64 0 + %65 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) + %66 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %65, i64 0 %67 = load ptr, ptr @_llgo_float64, align 8 - %68 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %67, 0 - %69 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %68, ptr inttoptr (i64 4611686018427387904 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %69, ptr %66, align 8 - %70 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %65, i64 1 + %68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %67, 0 + %69 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %68, ptr inttoptr (i64 4611686018427387904 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %69, ptr %66, align 8 + %70 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %65, i64 1 %71 = load ptr, ptr @_llgo_float64, align 8 %72 = bitcast double %64 to i64 %73 = inttoptr i64 %72 to ptr - %74 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %71, 0 - %75 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %74, ptr %73, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %75, ptr %70, align 8 - %76 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %65, 0 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %76, i64 2, 1 - %78 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %77, i64 2, 2 - %79 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 13 }, %"github.com/goplus/llgo/internal/runtime.Slice" %78) + %74 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %71, 0 + %75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %74, ptr %73, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %75, ptr %70, align 8 + %76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %65, 0 + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %76, i64 2, 1 + %78 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %77, i64 2, 2 + %79 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 13 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %78) %80 = call double @main._Cfunc_log(double 2.000000e+00) - %81 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) - %82 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %81, i64 0 + %81 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) + %82 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %81, i64 0 %83 = load ptr, ptr @_llgo_float64, align 8 - %84 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %83, 0 - %85 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %84, ptr inttoptr (i64 4611686018427387904 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %85, ptr %82, align 8 - %86 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %81, i64 1 + %84 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %83, 0 + %85 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %84, ptr inttoptr (i64 4611686018427387904 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %85, ptr %82, align 8 + %86 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %81, i64 1 %87 = load ptr, ptr @_llgo_float64, align 8 %88 = bitcast double %80 to i64 %89 = inttoptr i64 %88 to ptr - %90 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %87, 0 - %91 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %90, ptr %89, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %91, ptr %86, align 8 - %92 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %81, 0 - %93 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %92, i64 2, 1 - %94 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %93, i64 2, 2 - %95 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 13 }, %"github.com/goplus/llgo/internal/runtime.Slice" %94) - %96 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %90 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %87, 0 + %91 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %90, ptr %89, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %91, ptr %86, align 8 + %92 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %81, 0 + %93 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %92, i64 2, 1 + %94 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %93, i64 2, 2 + %95 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 13 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %94) + %96 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %97 = getelementptr inbounds { ptr }, ptr %96, i32 0, i32 0 store ptr %2, ptr %97, align 8 %98 = insertvalue { ptr, ptr } { ptr @"main.main$3", ptr undef }, ptr %96, 1 %99 = extractvalue { ptr, ptr } %98, 1 %100 = extractvalue { ptr, ptr } %98, 0 call void %100(ptr %99) - %101 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %101 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %102 = getelementptr inbounds { ptr }, ptr %101, i32 0, i32 0 store ptr %15, ptr %102, align 8 %103 = insertvalue { ptr, ptr } { ptr @"main.main$4", ptr undef }, ptr %101, 1 @@ -273,27 +273,27 @@ define ptr @"main.main$1"(ptr %0) { _llgo_0: %1 = load { ptr }, ptr %0, align 8 %2 = extractvalue { ptr } %1, 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %2, align 8 + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %2, align 8 %4 = load ptr, ptr @_llgo_byte, align 8 %5 = load ptr, ptr @"[]_llgo_byte", align 8 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - store %"github.com/goplus/llgo/internal/runtime.Slice" %3, ptr %6, align 8 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %5, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %7, ptr %6, 1 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.CBytes"(%"github.com/goplus/llgo/internal/runtime.Slice" %3) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + store %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, ptr %6, align 8 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %5, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %7, ptr %6, 1 + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.CBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3) ret ptr %9 } -define %"github.com/goplus/llgo/internal/runtime.Slice" @"main.main$2"(ptr %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"main.main$2"(ptr %0) { _llgo_0: %1 = load { ptr }, ptr %0, align 8 %2 = extractvalue { ptr } %1, 0 %3 = load ptr, ptr %2, align 8 %4 = load ptr, ptr @_llgo_Pointer, align 8 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, ptr %3, 1 - %7 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.GoBytes"(ptr %3, i32 4) - ret %"github.com/goplus/llgo/internal/runtime.Slice" %7 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %3, 1 + %7 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.GoBytes"(ptr %3, i32 4) + ret %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7 } define void @"main.main$3"(ptr %0) { @@ -302,8 +302,8 @@ _llgo_0: %2 = extractvalue { ptr } %1, 0 %3 = load ptr, ptr %2, align 8 %4 = load ptr, ptr @_llgo_Pointer, align 8 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, ptr %3, 1 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %3, 1 %7 = call [0 x i8] @main._Cfunc_free(ptr %3) ret void } @@ -314,35 +314,35 @@ _llgo_0: %2 = extractvalue { ptr } %1, 0 %3 = load ptr, ptr %2, align 8 %4 = load ptr, ptr @_llgo_Pointer, align 8 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, ptr %3, 1 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %3, 1 %7 = call [0 x i8] @main._Cfunc_free(ptr %3) ret void } -declare void @runtime.throw(%"github.com/goplus/llgo/internal/runtime.String") +declare void @runtime.throw(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) declare void @syscall.init() declare void @fmt.init() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.CString"(%"github.com/goplus/llgo/internal/runtime.String") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.CString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.GoString"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.GoString"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.GoStringN"(ptr, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.GoStringN"(ptr, i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice") define void @"main.init$after"() { _llgo_0: @@ -351,7 +351,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 46) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 46) store ptr %2, ptr @_llgo_float64, align 8 br label %_llgo_2 @@ -361,7 +361,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) store ptr %5, ptr @_llgo_byte, align 8 br label %_llgo_4 @@ -371,8 +371,8 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %7, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %8) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %8) store ptr %9, ptr @"[]_llgo_byte", align 8 br label %_llgo_6 @@ -382,8 +382,8 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 br i1 %11, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %12) + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %12) store ptr %12, ptr @_llgo_Pointer, align 8 br label %_llgo_8 @@ -391,14 +391,14 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.CBytes"(%"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.CBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.GoBytes"(ptr, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.GoBytes"(ptr, i64) diff --git a/compiler/cl/_testgo/cgocfiles/out.ll b/compiler/cl/_testgo/cgocfiles/out.ll index f743fd7c..536c460d 100644 --- a/compiler/cl/_testgo/cgocfiles/out.ll +++ b/compiler/cl/_testgo/cgocfiles/out.ll @@ -1,19 +1,19 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } %main._Ctype_struct___3 = type { i32 } %main._Ctype_struct___4 = type { i32, i32 } %main._Ctype_struct___0 = type { i32, i32, i32 } %main._Ctype_struct___1 = type { i32, i32, i32, i32 } %main._Ctype_struct___2 = type { i32, i32, i32, i32, i32 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } -@"github.com/goplus/llgo/internal/runtime.cgoAlwaysFalse" = external global i1, align 1 -@_cgo_35faaf752e93_Cfunc_test_structs = external global i8, align 1 -@main._cgo_35faaf752e93_Cfunc_test_structs = global ptr null, align 8 +@"github.com/goplus/llgo/runtime/internal/runtime.cgoAlwaysFalse" = external global i1, align 1 +@_cgo_023ff89410ef_Cfunc_test_structs = external global i8, align 1 +@main._cgo_023ff89410ef_Cfunc_test_structs = global ptr null, align 8 @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @__llgo_argv = global ptr null, align 8 @@ -26,8 +26,8 @@ source_filename = "main" define i32 @main._Cfunc_test_structs(ptr %0, ptr %1, ptr %2, ptr %3, ptr %4) { _llgo_0: - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %6 = load ptr, ptr @main._cgo_35faaf752e93_Cfunc_test_structs, align 8 + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %6 = load ptr, ptr @main._cgo_023ff89410ef_Cfunc_test_structs, align 8 %7 = load ptr, ptr %6, align 8 %8 = call i32 %7(ptr %0, ptr %1, ptr %2, ptr %3, ptr %4) ret i32 %8 @@ -38,9 +38,9 @@ _llgo_0: ret ptr %0 } -declare void @runtime.cgoUse(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @runtime.cgoUse(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @main._cgoCheckResult(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @main._cgoCheckResult(%"github.com/goplus/llgo/runtime/internal/runtime.eface") define void @main.init() { _llgo_0: @@ -52,7 +52,7 @@ _llgo_1: ; preds = %_llgo_0 call void @syscall.init() call void @fmt.init() call void @"main.init$after"() - store ptr @_cgo_35faaf752e93_Cfunc_test_structs, ptr @main._cgo_35faaf752e93_Cfunc_test_structs, align 8 + store ptr @_cgo_023ff89410ef_Cfunc_test_structs, ptr @main._cgo_023ff89410ef_Cfunc_test_structs, align 8 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 @@ -63,24 +63,24 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 4) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 4) %3 = getelementptr inbounds %main._Ctype_struct___3, ptr %2, i32 0, i32 0 store i32 1, ptr %3, align 4 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) %5 = getelementptr inbounds %main._Ctype_struct___4, ptr %4, i32 0, i32 0 %6 = getelementptr inbounds %main._Ctype_struct___4, ptr %4, i32 0, i32 1 store i32 1, ptr %5, align 4 store i32 2, ptr %6, align 4 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 12) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 12) %8 = getelementptr inbounds %main._Ctype_struct___0, ptr %7, i32 0, i32 0 %9 = getelementptr inbounds %main._Ctype_struct___0, ptr %7, i32 0, i32 1 %10 = getelementptr inbounds %main._Ctype_struct___0, ptr %7, i32 0, i32 2 store i32 1, ptr %8, align 4 store i32 2, ptr %9, align 4 store i32 3, ptr %10, align 4 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) %12 = getelementptr inbounds %main._Ctype_struct___1, ptr %11, i32 0, i32 0 %13 = getelementptr inbounds %main._Ctype_struct___1, ptr %11, i32 0, i32 1 %14 = getelementptr inbounds %main._Ctype_struct___1, ptr %11, i32 0, i32 2 @@ -89,7 +89,7 @@ _llgo_0: store i32 2, ptr %13, align 4 store i32 3, ptr %14, align 4 store i32 4, ptr %15, align 4 - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 20) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 20) %17 = getelementptr inbounds %main._Ctype_struct___2, ptr %16, i32 0, i32 0 %18 = getelementptr inbounds %main._Ctype_struct___2, ptr %16, i32 0, i32 1 %19 = getelementptr inbounds %main._Ctype_struct___2, ptr %16, i32 0, i32 2 @@ -101,64 +101,64 @@ _llgo_0: store i32 4, ptr %20, align 4 store i32 5, ptr %21, align 4 %22 = call i32 @main._Cfunc_test_structs(ptr %2, ptr %4, ptr %7, ptr %11, ptr %16) - %23 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) - %24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %23, i64 0 + %23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) + %24 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %23, i64 0 %25 = load ptr, ptr @_llgo_main._Ctype_int, align 8 %26 = sext i32 %22 to i64 %27 = inttoptr i64 %26 to ptr - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %25, 0 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %28, ptr %27, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %29, ptr %24, align 8 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %23, 0 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %30, i64 1, 1 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %31, i64 1, 2 - %33 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @fmt.Println(%"github.com/goplus/llgo/internal/runtime.Slice" %32) + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %25, 0 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %28, ptr %27, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %29, ptr %24, align 8 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %23, 0 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30, i64 1, 1 + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %31, i64 1, 2 + %33 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Println(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %32) %34 = icmp ne i32 %22, 35 br i1 %34, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 %35 = load ptr, ptr @_llgo_string, align 8 - %36 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 19 }, ptr %36, align 8 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %35, 0 - %38 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %37, ptr %36, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %38) + %36 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 19 }, ptr %36, align 8 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %35, 0 + %38 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %37, ptr %36, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %38) unreachable _llgo_2: ; preds = %_llgo_0 ret i32 0 } -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) declare void @syscall.init() declare void @fmt.init() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 10 }, i64 5, i64 4, i64 0, i64 0) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 10 }, i64 5, i64 4, i64 0, i64 0) store ptr %0, ptr @_llgo_main._Ctype_int, align 8 %1 = load ptr, ptr @_llgo_int32, align 8 %2 = icmp eq ptr %1, null br i1 %2, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 37) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 37) store ptr %3, ptr @_llgo_int32, align 8 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 %4 = load ptr, ptr @_llgo_int32, align 8 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, ptr %4, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %4, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) %5 = load ptr, ptr @_llgo_string, align 8 %6 = icmp eq ptr %5, null br i1 %6, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %7, ptr @_llgo_string, align 8 br label %_llgo_4 @@ -166,14 +166,14 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @fmt.Println(%"github.com/goplus/llgo/internal/runtime.Slice") +declare { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Println(%"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") diff --git a/compiler/cl/_testgo/closure/out.ll b/compiler/cl/_testgo/closure/out.ll index 0d848b5e..6a2a0391 100644 --- a/compiler/cl/_testgo/closure/out.ll +++ b/compiler/cl/_testgo/closure/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } %main.T = type { ptr, ptr } @"main.init$guard" = global i1 false, align 1 @@ -28,11 +28,11 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 3 }, ptr %2, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 3 }, ptr %2, align 8 + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %4 = getelementptr inbounds { ptr }, ptr %3, i32 0, i32 0 store ptr %2, ptr %4, align 8 %5 = insertvalue { ptr, ptr } { ptr @"main.main$2", ptr undef }, ptr %3, 1 @@ -48,10 +48,10 @@ _llgo_0: define void @"main.main$1"(i64 %0) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %0) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } @@ -59,19 +59,19 @@ define void @"main.main$2"(ptr %0, i64 %1) { _llgo_0: %2 = load { ptr }, ptr %0, align 8 %3 = extractvalue { ptr } %2, 0 - %4 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %3, align 8 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %1) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %4 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %3, align 8 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) define linkonce void @"__llgo_stub.main.main$1"(ptr %0, i64 %1) { _llgo_0: @@ -79,10 +79,10 @@ _llgo_0: ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) diff --git a/compiler/cl/_testgo/closure2/out.ll b/compiler/cl/_testgo/closure2/out.ll index a37f718d..230ef158 100644 --- a/compiler/cl/_testgo/closure2/out.ll +++ b/compiler/cl/_testgo/closure2/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -25,11 +25,11 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) store i64 1, ptr %2, align 4 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %4 = getelementptr inbounds { ptr }, ptr %3, i32 0, i32 0 store ptr %2, ptr %4, align 8 %5 = insertvalue { ptr, ptr } { ptr @"main.main$1", ptr undef }, ptr %3, 1 @@ -46,7 +46,7 @@ define { ptr, ptr } @"main.main$1"(ptr %0, i64 %1) { _llgo_0: %2 = load { ptr }, ptr %0, align 8 %3 = extractvalue { ptr } %2, 0 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %5 = getelementptr inbounds { ptr }, ptr %4, i32 0, i32 0 store ptr %3, ptr %5, align 8 %6 = insertvalue { ptr, ptr } { ptr @"main.main$1$1", ptr undef }, ptr %4, 1 @@ -58,23 +58,23 @@ _llgo_0: %2 = load { ptr }, ptr %0, align 8 %3 = extractvalue { ptr } %2, 0 %4 = load i64, ptr %3, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %1) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) diff --git a/compiler/cl/_testgo/constconv/out.ll b/compiler/cl/_testgo/constconv/out.ll index 42419715..97380d4c 100644 --- a/compiler/cl/_testgo/constconv/out.ll +++ b/compiler/cl/_testgo/constconv/out.ll @@ -22,23 +22,23 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 1) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 1) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 11) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 11) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) diff --git a/compiler/cl/_testgo/equal/out.ll b/compiler/cl/_testgo/equal/out.ll index acc08baa..b9ccb7b4 100644 --- a/compiler/cl/_testgo/equal/out.ll +++ b/compiler/cl/_testgo/equal/out.ll @@ -1,12 +1,12 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%main.T = type { i64, i64, %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.eface" } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%main.T = type { i64, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.eface" } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } %main.N = type {} -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } @"main.init$guard" = global i1 false, align 1 @0 = private unnamed_addr constant [6 x i8] c"failed", align 1 @@ -40,11 +40,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %1 = load ptr, ptr @_llgo_string, align 8 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 6 }, ptr %2, align 8 - %3 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %1, 0 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %3, ptr %2, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %4) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 6 }, ptr %2, align 8 + %3 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %1, 0 + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %3, ptr %2, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %4) unreachable _llgo_2: ; preds = %_llgo_0 @@ -74,8 +74,8 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 define void @"main.init#1"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %2 = getelementptr inbounds { ptr }, ptr %1, i32 0, i32 0 store ptr %0, ptr %2, align 8 %3 = insertvalue { ptr, ptr } { ptr @"main.init#1$2", ptr undef }, ptr %1, 1 @@ -107,8 +107,8 @@ _llgo_0: %1 = load { ptr }, ptr %0, align 8 %2 = extractvalue { ptr } %1, 0 %3 = load i64, ptr %2, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } @@ -177,11 +177,11 @@ _llgo_0: %4 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 3 store i64 10, ptr %1, align 4 store i64 20, ptr %2, align 4 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }, ptr %3, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %3, align 8 %5 = load ptr, ptr @_llgo_int, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %5, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr inttoptr (i64 1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %7, ptr %4, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %5, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr inttoptr (i64 1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %7, ptr %4, align 8 %8 = alloca %main.T, align 8 call void @llvm.memset(ptr %8, i8 0, i64 48, i1 false) %9 = getelementptr inbounds %main.T, ptr %8, i32 0, i32 0 @@ -190,11 +190,11 @@ _llgo_0: %12 = getelementptr inbounds %main.T, ptr %8, i32 0, i32 3 store i64 10, ptr %9, align 4 store i64 20, ptr %10, align 4 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }, ptr %11, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %11, align 8 %13 = load ptr, ptr @_llgo_int, align 8 - %14 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %13, 0 - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %14, ptr inttoptr (i64 1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %15, ptr %12, align 8 + %14 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %13, 0 + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %14, ptr inttoptr (i64 1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %15, ptr %12, align 8 %16 = alloca %main.T, align 8 call void @llvm.memset(ptr %16, i8 0, i64 48, i1 false) %17 = getelementptr inbounds %main.T, ptr %16, i32 0, i32 0 @@ -203,17 +203,17 @@ _llgo_0: %20 = getelementptr inbounds %main.T, ptr %16, i32 0, i32 3 store i64 10, ptr %17, align 4 store i64 20, ptr %18, align 4 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }, ptr %19, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %19, align 8 %21 = load ptr, ptr @_llgo_string, align 8 - %22 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 2 }, ptr %22, align 8 - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %21, 0 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %23, ptr %22, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %24, ptr %20, align 8 + %22 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }, ptr %22, align 8 + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %21, 0 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %23, ptr %22, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %24, ptr %20, align 8 call void @main.assert(i1 true) - %25 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer) + %25 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer) %26 = and i1 true, %25 - %27 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.eface" zeroinitializer) + %27 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.eface" zeroinitializer) %28 = and i1 %26, %27 call void @main.assert(i1 %28) %29 = load %main.T, ptr %0, align 8 @@ -228,11 +228,11 @@ _llgo_0: %38 = and i1 %34, %37 %39 = extractvalue %main.T %29, 2 %40 = extractvalue %main.T %30, 2 - %41 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %39, %"github.com/goplus/llgo/internal/runtime.String" %40) + %41 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %39, %"github.com/goplus/llgo/runtime/internal/runtime.String" %40) %42 = and i1 %38, %41 %43 = extractvalue %main.T %29, 3 %44 = extractvalue %main.T %30, 3 - %45 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %43, %"github.com/goplus/llgo/internal/runtime.eface" %44) + %45 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %43, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %44) %46 = and i1 %42, %45 call void @main.assert(i1 %46) %47 = load %main.T, ptr %0, align 8 @@ -247,11 +247,11 @@ _llgo_0: %56 = and i1 %52, %55 %57 = extractvalue %main.T %47, 2 %58 = extractvalue %main.T %48, 2 - %59 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %57, %"github.com/goplus/llgo/internal/runtime.String" %58) + %59 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %57, %"github.com/goplus/llgo/runtime/internal/runtime.String" %58) %60 = and i1 %56, %59 %61 = extractvalue %main.T %47, 3 %62 = extractvalue %main.T %48, 3 - %63 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %61, %"github.com/goplus/llgo/internal/runtime.eface" %62) + %63 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %61, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %62) %64 = and i1 %60, %63 %65 = xor i1 %64, true call void @main.assert(i1 %65) @@ -267,11 +267,11 @@ _llgo_0: %75 = and i1 %71, %74 %76 = extractvalue %main.T %66, 2 %77 = extractvalue %main.T %67, 2 - %78 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %76, %"github.com/goplus/llgo/internal/runtime.String" %77) + %78 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %76, %"github.com/goplus/llgo/runtime/internal/runtime.String" %77) %79 = and i1 %75, %78 %80 = extractvalue %main.T %66, 3 %81 = extractvalue %main.T %67, 3 - %82 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %80, %"github.com/goplus/llgo/internal/runtime.eface" %81) + %82 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %80, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %81) %83 = and i1 %79, %82 %84 = xor i1 %83, true call void @main.assert(i1 %84) @@ -280,28 +280,28 @@ _llgo_0: define void @"main.init#4"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %1 = getelementptr inbounds i64, ptr %0, i64 0 store i64 1, ptr %1, align 4 %2 = getelementptr inbounds i64, ptr %0, i64 1 store i64 2, ptr %2, align 4 %3 = getelementptr inbounds i64, ptr %0, i64 2 store i64 3, ptr %3, align 4 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %0, 0 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %4, i64 3, 1 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %5, i64 3, 2 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) - %8 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %7, i64 8, i64 2, i64 0, i64 2, i64 2) - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) - %10 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %9, i64 8, i64 2, i64 0, i64 0, i64 2) + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %0, 0 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %4, i64 3, 1 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %5, i64 3, 2 + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) + %8 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %7, i64 8, i64 2, i64 0, i64 2, i64 2) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) + %10 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %9, i64 8, i64 2, i64 0, i64 0, i64 2) call void @main.assert(i1 true) - %11 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %6, 0 + %11 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6, 0 %12 = icmp ne ptr %11, null call void @main.assert(i1 %12) - %13 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, 0 + %13 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, 0 %14 = icmp ne ptr %13, null call void @main.assert(i1 %14) - %15 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %10, 0 + %15 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10, 0 %16 = icmp ne ptr %15, null call void @main.assert(i1 %16) call void @main.assert(i1 true) @@ -311,13 +311,13 @@ _llgo_0: define void @"main.init#5"() { _llgo_0: %0 = load ptr, ptr @_llgo_int, align 8 - %1 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %0, 0 - %2 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %1, ptr inttoptr (i64 100 to ptr), 1 + %1 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %0, 0 + %2 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %1, ptr inttoptr (i64 100 to ptr), 1 %3 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) store {} zeroinitializer, ptr %4, align 1 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %3, 0 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, ptr %4, 1 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %3, 0 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %4, 1 %7 = alloca %main.T, align 8 call void @llvm.memset(ptr %7, i8 0, i64 48, i1 false) %8 = getelementptr inbounds %main.T, ptr %7, i32 0, i32 0 @@ -326,17 +326,17 @@ _llgo_0: %11 = getelementptr inbounds %main.T, ptr %7, i32 0, i32 3 store i64 10, ptr %8, align 4 store i64 20, ptr %9, align 4 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }, ptr %10, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %10, align 8 %12 = load ptr, ptr @_llgo_int, align 8 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %12, 0 - %14 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %13, ptr inttoptr (i64 1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %14, ptr %11, align 8 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %12, 0 + %14 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %13, ptr inttoptr (i64 1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %14, ptr %11, align 8 %15 = load %main.T, ptr %7, align 8 %16 = load ptr, ptr @_llgo_main.T, align 8 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) store %main.T %15, ptr %17, align 8 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %16, 0 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %18, ptr %17, 1 + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %16, 0 + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %18, ptr %17, 1 %20 = alloca %main.T, align 8 call void @llvm.memset(ptr %20, i8 0, i64 48, i1 false) %21 = getelementptr inbounds %main.T, ptr %20, i32 0, i32 0 @@ -345,11 +345,11 @@ _llgo_0: %24 = getelementptr inbounds %main.T, ptr %20, i32 0, i32 3 store i64 10, ptr %21, align 4 store i64 20, ptr %22, align 4 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }, ptr %23, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %23, align 8 %25 = load ptr, ptr @_llgo_int, align 8 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %25, 0 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %26, ptr inttoptr (i64 1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %27, ptr %24, align 8 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %25, 0 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %26, ptr inttoptr (i64 1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %27, ptr %24, align 8 %28 = alloca %main.T, align 8 call void @llvm.memset(ptr %28, i8 0, i64 48, i1 false) %29 = getelementptr inbounds %main.T, ptr %28, i32 0, i32 0 @@ -358,48 +358,48 @@ _llgo_0: %32 = getelementptr inbounds %main.T, ptr %28, i32 0, i32 3 store i64 10, ptr %29, align 4 store i64 20, ptr %30, align 4 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }, ptr %31, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %31, align 8 %33 = load ptr, ptr @_llgo_string, align 8 - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 2 }, ptr %34, align 8 - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %33, 0 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %35, ptr %34, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %36, ptr %32, align 8 + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }, ptr %34, align 8 + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %33, 0 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %35, ptr %34, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %36, ptr %32, align 8 %37 = load ptr, ptr @_llgo_int, align 8 - %38 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %37, 0 - %39 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %38, ptr inttoptr (i64 100 to ptr), 1 - %40 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %2, %"github.com/goplus/llgo/internal/runtime.eface" %39) + %38 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %37, 0 + %39 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %38, ptr inttoptr (i64 100 to ptr), 1 + %40 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %2, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %39) call void @main.assert(i1 %40) %41 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8 - %42 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) + %42 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) store {} zeroinitializer, ptr %42, align 1 - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %41, 0 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %43, ptr %42, 1 - %45 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %6, %"github.com/goplus/llgo/internal/runtime.eface" %44) + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %41, 0 + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %43, ptr %42, 1 + %45 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %44) call void @main.assert(i1 %45) %46 = load ptr, ptr @_llgo_main.N, align 8 - %47 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) + %47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) store %main.N zeroinitializer, ptr %47, align 1 - %48 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %46, 0 - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %48, ptr %47, 1 - %50 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %6, %"github.com/goplus/llgo/internal/runtime.eface" %49) + %48 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %46, 0 + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %48, ptr %47, 1 + %50 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %49) %51 = xor i1 %50, true call void @main.assert(i1 %51) %52 = load %main.T, ptr %20, align 8 %53 = load ptr, ptr @_llgo_main.T, align 8 - %54 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) + %54 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) store %main.T %52, ptr %54, align 8 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %53, 0 - %56 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %55, ptr %54, 1 - %57 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %19, %"github.com/goplus/llgo/internal/runtime.eface" %56) + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %53, 0 + %56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %55, ptr %54, 1 + %57 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %19, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %56) call void @main.assert(i1 %57) %58 = load %main.T, ptr %28, align 8 %59 = load ptr, ptr @_llgo_main.T, align 8 - %60 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) + %60 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) store %main.T %58, ptr %60, align 8 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %59, 0 - %62 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %61, ptr %60, 1 - %63 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %19, %"github.com/goplus/llgo/internal/runtime.eface" %62) + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %59, 0 + %62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %61, ptr %60, 1 + %63 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %19, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %62) %64 = xor i1 %63, true call void @main.assert(i1 %64) ret void @@ -407,8 +407,8 @@ _llgo_0: define void @"main.init#6"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64 8, i64 0) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64 8, i64 0) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64 8, i64 0) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64 8, i64 0) %2 = icmp eq ptr %0, %0 call void @main.assert(i1 %2) %3 = icmp ne ptr %0, %1 @@ -421,7 +421,7 @@ _llgo_0: define void @"main.init#7"() { _llgo_0: %0 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %0, i64 0) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %0, i64 0) %2 = icmp ne ptr %1, null call void @main.assert(i1 %2) call void @main.assert(i1 true) @@ -432,7 +432,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() ret i32 0 } @@ -449,7 +449,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %2, ptr @_llgo_string, align 8 br label %_llgo_2 @@ -459,7 +459,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %5, ptr @_llgo_int, align 8 br label %_llgo_4 @@ -469,16 +469,16 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %7, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %8, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, i64 0, 1 - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %10, i64 0, 2 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 0, %"github.com/goplus/llgo/internal/runtime.Slice" %11) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %8, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, i64 0, 1 + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10, i64 0, 2 + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %11) store ptr %12, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 1 }, i64 25, i64 48, i64 0, i64 0) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 1 }, i64 25, i64 48, i64 0, i64 0) %14 = load ptr, ptr @_llgo_main.T, align 8 %15 = icmp eq ptr %14, null br i1 %15, label %_llgo_7, label %_llgo_8 @@ -493,11 +493,11 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 br i1 %17, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %18, 0 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %19, i64 0, 1 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %20, i64 0, 2 - %22 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %21) + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %18, 0 + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19, i64 0, 1 + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %20, i64 0, 2 + %22 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %21) store ptr %22, ptr @_llgo_any, align 8 br label %_llgo_10 @@ -508,31 +508,31 @@ _llgo_10: ; preds = %_llgo_9, %_llgo_8 br i1 %25, label %_llgo_11, label %_llgo_12 _llgo_11: ; preds = %_llgo_10 - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %27 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 1 }, ptr %26, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %28 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %29 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 1 }, ptr %28, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %31 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 1 }, ptr %30, i64 16, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %33 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %32, 0 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %33, i64 0, 1 - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %34, i64 0, 2 - %36 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %35) - %37 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 1 }, ptr %36, i64 32, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %39 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %38, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %27, ptr %39, align 8 - %40 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %38, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %29, ptr %40, align 8 - %41 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %38, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %31, ptr %41, align 8 - %42 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %38, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %37, ptr %42, align 8 - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %38, 0 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %43, i64 4, 1 - %45 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %44, i64 4, 2 - %46 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 48, %"github.com/goplus/llgo/internal/runtime.Slice" %45) + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %27 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 1 }, ptr %26, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %28 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %29 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 1 }, ptr %28, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %31 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 1 }, ptr %30, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %33 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %32, 0 + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %33, i64 0, 1 + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %34, i64 0, 2 + %36 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %35) + %37 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 1 }, ptr %36, i64 32, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %39 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %38, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %27, ptr %39, align 8 + %40 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %38, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %29, ptr %40, align 8 + %41 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %38, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %31, ptr %41, align 8 + %42 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %38, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %37, ptr %42, align 8 + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %38, 0 + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %43, i64 4, 1 + %45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %44, i64 4, 2 + %46 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 48, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %45) store ptr %46, ptr @"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk", align 8 br label %_llgo_12 @@ -541,11 +541,11 @@ _llgo_12: ; preds = %_llgo_11, %_llgo_10 br i1 %15, label %_llgo_13, label %_llgo_14 _llgo_13: ; preds = %_llgo_12 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %13, ptr %47, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %13, ptr %47, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_14 _llgo_14: ; preds = %_llgo_13, %_llgo_12 - %48 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 0, i64 0, i64 0) + %48 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 0, i64 0, i64 0) %49 = load ptr, ptr @_llgo_main.N, align 8 %50 = icmp eq ptr %49, null br i1 %50, label %_llgo_15, label %_llgo_16 @@ -559,7 +559,7 @@ _llgo_16: ; preds = %_llgo_15, %_llgo_14 br i1 %50, label %_llgo_17, label %_llgo_18 _llgo_17: ; preds = %_llgo_16 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %48, ptr %51, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %48, ptr %51, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_18 _llgo_18: ; preds = %_llgo_17, %_llgo_16 @@ -568,34 +568,34 @@ _llgo_18: ; preds = %_llgo_17, %_llgo_16 br i1 %53, label %_llgo_19, label %_llgo_20 _llgo_19: ; preds = %_llgo_18 - %54 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %55 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %56 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %57 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %56) - %58 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 7 }, ptr %57, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %59 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %60 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %59) - %61 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 4 }, ptr %60, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %62 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %63 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %62) - %64 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @12, i64 5 }, ptr %63, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %65 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %66 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 8 }, ptr %65, i64 200, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %67 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %68 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %67, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %58, ptr %68, align 8 - %69 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %67, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %61, ptr %69, align 8 - %70 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %67, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %64, ptr %70, align 8 - %71 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %67, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %66, ptr %71, align 8 - %72 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %67, 0 - %73 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %72, i64 4, 1 - %74 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %73, i64 4, 2 - %75 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 208, %"github.com/goplus/llgo/internal/runtime.Slice" %74) - %76 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %54, ptr %55, ptr %75, i64 4) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %76) + %54 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %55 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %56 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %56) + %58 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 7 }, ptr %57, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %59 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %60 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %59) + %61 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 4 }, ptr %60, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %62 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %62) + %64 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @12, i64 5 }, ptr %63, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %65 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %66 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 8 }, ptr %65, i64 200, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %67 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %68 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %67, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %58, ptr %68, align 8 + %69 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %67, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %61, ptr %69, align 8 + %70 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %67, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %64, ptr %70, align 8 + %71 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %67, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %66, ptr %71, align 8 + %72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %67, 0 + %73 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %72, i64 4, 1 + %74 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %73, i64 4, 2 + %75 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 208, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %74) + %76 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %54, ptr %55, ptr %75, i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %76) store ptr %76, ptr @"map[_llgo_int]_llgo_string", align 8 br label %_llgo_20 @@ -603,47 +603,47 @@ _llgo_20: ; preds = %_llgo_19, %_llgo_18 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface", %"github.com/goplus/llgo/internal/runtime.eface") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface", %"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr, i64, i64, i64, i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr, i64, i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr, ptr, ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr, ptr, ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr, i64) -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testgo/errors/out.ll b/compiler/cl/_testgo/errors/out.ll index 3a93baf5..625319c3 100644 --- a/compiler/cl/_testgo/errors/out.ll +++ b/compiler/cl/_testgo/errors/out.ll @@ -1,13 +1,13 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%main.errorString = type { %"github.com/goplus/llgo/internal/runtime.String" } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } -%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%main.errorString = type { %"github.com/goplus/llgo/runtime/internal/runtime.String" } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.Imethod" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } @"main.init$guard" = global i1 false, align 1 @_llgo_main.errorString = linkonce global ptr null, align 8 @@ -24,26 +24,26 @@ source_filename = "main" @__llgo_argv = global ptr null, align 8 @4 = private unnamed_addr constant [8 x i8] c"an error", align 1 -define %"github.com/goplus/llgo/internal/runtime.iface" @main.New(%"github.com/goplus/llgo/internal/runtime.String" %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.New(%"github.com/goplus/llgo/runtime/internal/runtime.String" %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) %2 = getelementptr inbounds %main.errorString, ptr %1, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.String" %0, ptr %2, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" %0, ptr %2, align 8 %3 = load ptr, ptr @_llgo_main.errorString, align 8 %4 = load ptr, ptr @"*_llgo_main.errorString", align 8 %5 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 %6 = load ptr, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %6, ptr %4) - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %7, 0 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %8, ptr %1, 1 - ret %"github.com/goplus/llgo/internal/runtime.iface" %9 + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %6, ptr %4) + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %7, 0 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %8, ptr %1, 1 + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %9 } -define %"github.com/goplus/llgo/internal/runtime.String" @"main.(*errorString).Error"(ptr %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.String" @"main.(*errorString).Error"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %main.errorString, ptr %0, i32 0, i32 0 - %2 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %1, align 8 - ret %"github.com/goplus/llgo/internal/runtime.String" %2 + %2 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %1, align 8 + ret %"github.com/goplus/llgo/runtime/internal/runtime.String" %2 } define void @main.init() { @@ -64,51 +64,51 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.New(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 8 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %2) - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %2, 0 + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.New(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 8 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %2) + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %2, 0 %5 = getelementptr ptr, ptr %4, i64 3 %6 = load ptr, ptr %5, align 8 %7 = insertvalue { ptr, ptr } undef, ptr %6, 0 %8 = insertvalue { ptr, ptr } %7, ptr %3, 1 %9 = extractvalue { ptr, ptr } %8, 1 %10 = extractvalue { ptr, ptr } %8, 0 - %11 = call %"github.com/goplus/llgo/internal/runtime.String" %10(ptr %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %11) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %11 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %10(ptr %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 11 }, i64 25, i64 16, i64 0, i64 1) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 11 }, i64 25, i64 16, i64 0, i64 1) store ptr %0, ptr @_llgo_main.errorString, align 8 %1 = load ptr, ptr @_llgo_string, align 8 %2 = icmp eq ptr %1, null br i1 %2, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %3, ptr @_llgo_string, align 8 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %6 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 1 }, ptr %5, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %8 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %7, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %6, ptr %8, align 8 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %7, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, i64 1, 1 - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %10, i64 1, 2 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %11) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %6 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 1 }, ptr %5, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %8 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %7, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %6, ptr %8, align 8 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %7, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, i64 1, 1 + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10, i64 1, 2 + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %11) store ptr %12, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8 %13 = load ptr, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8 %14 = load ptr, ptr @_llgo_string, align 8 @@ -117,36 +117,36 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %16, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %17, 0 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %18, i64 0, 1 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %19, i64 0, 2 - %21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %17, 0 + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %18, i64 0, 1 + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19, i64 0, 2 + %21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %22 = getelementptr ptr, ptr %21, i64 0 store ptr %14, ptr %22, align 8 - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %21, 0 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %23, i64 1, 1 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %24, i64 1, 2 - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %20, %"github.com/goplus/llgo/internal/runtime.Slice" %25, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %26) + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %21, 0 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %23, i64 1, 1 + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, i64 1, 2 + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %20, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %26) store ptr %26, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 br label %_llgo_4 _llgo_4: ; preds = %_llgo_3, %_llgo_2 %27 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %28 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %27, 1 - %29 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %28, ptr @"main.(*errorString).Error", 2 - %30 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %29, ptr @"main.(*errorString).Error", 3 - %31 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %32 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %31, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %30, ptr %32, align 8 - %33 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %31, 0 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %33, i64 1, 1 - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %34, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, ptr %13, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %35) - %36 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 11 }, i64 25, i64 16, i64 0, i64 1) - %37 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %36) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %37) + %28 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %27, 1 + %29 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %28, ptr @"main.(*errorString).Error", 2 + %30 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %29, ptr @"main.(*errorString).Error", 3 + %31 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %32 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %31, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %30, ptr %32, align 8 + %33 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %31, 0 + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %33, i64 1, 1 + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %34, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %13, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %35) + %36 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 11 }, i64 25, i64 16, i64 0, i64 1) + %37 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %36) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %37) store ptr %37, ptr @"*_llgo_main.errorString", align 8 %38 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 %39 = load ptr, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8 @@ -154,14 +154,14 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %40, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %41 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 5 }, ptr undef }, ptr %38, 1 - %42 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %43 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %42, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %41, ptr %43, align 8 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %42, 0 - %45 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %44, i64 1, 1 - %46 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %45, i64 1, 2 - %47 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %46) + %41 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 5 }, ptr undef }, ptr %38, 1 + %42 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %43 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %42, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %41, ptr %43, align 8 + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %42, 0 + %45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %44, i64 1, 1 + %46 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %45, i64 1, 2 + %47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %46) store ptr %47, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8 br label %_llgo_6 @@ -169,34 +169,34 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") diff --git a/compiler/cl/_testgo/goroutine/out.ll b/compiler/cl/_testgo/goroutine/out.ll index 341c293a..035c3597 100644 --- a/compiler/cl/_testgo/goroutine/out.ll +++ b/compiler/cl/_testgo/goroutine/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -27,30 +27,30 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 1) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 1) store i1 false, ptr %2, align 1 %3 = call ptr @malloc(i64 16) - %4 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.String" }, ptr %3, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %4, align 8 + %4 = getelementptr inbounds { %"github.com/goplus/llgo/runtime/internal/runtime.String" }, ptr %3, i32 0, i32 0 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %4, align 8 %5 = alloca i8, i64 8, align 1 - %6 = call i32 @"github.com/goplus/llgo/internal/runtime.CreateThread"(ptr %5, ptr null, ptr @"main._llgo_routine$1", ptr %3) - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %6 = call i32 @"github.com/goplus/llgo/runtime/internal/runtime.CreateThread"(ptr %5, ptr null, ptr @"main._llgo_routine$1", ptr %3) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %8 = getelementptr inbounds { ptr }, ptr %7, i32 0, i32 0 store ptr %2, ptr %8, align 8 %9 = insertvalue { ptr, ptr } { ptr @"main.main$1", ptr undef }, ptr %7, 1 %10 = call ptr @malloc(i64 32) - %11 = getelementptr inbounds { { ptr, ptr }, %"github.com/goplus/llgo/internal/runtime.String" }, ptr %10, i32 0, i32 0 + %11 = getelementptr inbounds { { ptr, ptr }, %"github.com/goplus/llgo/runtime/internal/runtime.String" }, ptr %10, i32 0, i32 0 store { ptr, ptr } %9, ptr %11, align 8 - %12 = getelementptr inbounds { { ptr, ptr }, %"github.com/goplus/llgo/internal/runtime.String" }, ptr %10, i32 0, i32 1 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 16 }, ptr %12, align 8 + %12 = getelementptr inbounds { { ptr, ptr }, %"github.com/goplus/llgo/runtime/internal/runtime.String" }, ptr %10, i32 0, i32 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 16 }, ptr %12, align 8 %13 = alloca i8, i64 8, align 1 - %14 = call i32 @"github.com/goplus/llgo/internal/runtime.CreateThread"(ptr %13, ptr null, ptr @"main._llgo_routine$2", ptr %10) + %14 = call i32 @"github.com/goplus/llgo/runtime/internal/runtime.CreateThread"(ptr %13, ptr null, ptr @"main._llgo_routine$2", ptr %10) br label %_llgo_3 _llgo_1: ; preds = %_llgo_3 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 1 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 1 }) br label %_llgo_3 _llgo_2: ; preds = %_llgo_3 @@ -61,50 +61,50 @@ _llgo_3: ; preds = %_llgo_1, %_llgo_0 br i1 %15, label %_llgo_2, label %_llgo_1 } -define void @"main.main$1"(ptr %0, %"github.com/goplus/llgo/internal/runtime.String" %1) { +define void @"main.main$1"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.String" %1) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %1) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %2 = load { ptr }, ptr %0, align 8 %3 = extractvalue { ptr } %2, 0 store i1 true, ptr %3, align 1 ret void } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) declare ptr @malloc(i64) define ptr @"main._llgo_routine$1"(ptr %0) { _llgo_0: - %1 = load { %"github.com/goplus/llgo/internal/runtime.String" }, ptr %0, align 8 - %2 = extractvalue { %"github.com/goplus/llgo/internal/runtime.String" } %1, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %1 = load { %"github.com/goplus/llgo/runtime/internal/runtime.String" }, ptr %0, align 8 + %2 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String" } %1, 0 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) call void @free(ptr %0) ret ptr null } -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) declare void @free(ptr) -declare i32 @"github.com/goplus/llgo/internal/runtime.CreateThread"(ptr, ptr, ptr, ptr) +declare i32 @"github.com/goplus/llgo/runtime/internal/runtime.CreateThread"(ptr, ptr, ptr, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) define ptr @"main._llgo_routine$2"(ptr %0) { _llgo_0: - %1 = load { { ptr, ptr }, %"github.com/goplus/llgo/internal/runtime.String" }, ptr %0, align 8 - %2 = extractvalue { { ptr, ptr }, %"github.com/goplus/llgo/internal/runtime.String" } %1, 0 - %3 = extractvalue { { ptr, ptr }, %"github.com/goplus/llgo/internal/runtime.String" } %1, 1 + %1 = load { { ptr, ptr }, %"github.com/goplus/llgo/runtime/internal/runtime.String" }, ptr %0, align 8 + %2 = extractvalue { { ptr, ptr }, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %1, 0 + %3 = extractvalue { { ptr, ptr }, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %1, 1 %4 = extractvalue { ptr, ptr } %2, 1 %5 = extractvalue { ptr, ptr } %2, 0 - call void %5(ptr %4, %"github.com/goplus/llgo/internal/runtime.String" %3) + call void %5(ptr %4, %"github.com/goplus/llgo/runtime/internal/runtime.String" %3) call void @free(ptr %0) ret ptr null } diff --git a/compiler/cl/_testgo/ifaceconv/out.ll b/compiler/cl/_testgo/ifaceconv/out.ll index c1c7cc96..0c0d6b7c 100644 --- a/compiler/cl/_testgo/ifaceconv/out.ll +++ b/compiler/cl/_testgo/ifaceconv/out.ll @@ -3,13 +3,13 @@ source_filename = "main" %main.C1 = type {} %main.C2 = type {} -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.Imethod" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -101,213 +101,213 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load ptr, ptr @_llgo_main.I0, align 8 - %3 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %2, ptr null) + %3 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %2, ptr null) br i1 %3, label %_llgo_23, label %_llgo_24 _llgo_1: ; preds = %_llgo_25 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 21 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 21 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_25 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) %9 = load ptr, ptr @_llgo_main.I1, align 8 - %10 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %9, ptr %8) + %10 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %9, ptr %8) br i1 %10, label %_llgo_26, label %_llgo_27 _llgo_3: ; preds = %_llgo_28 %11 = load ptr, ptr @_llgo_string, align 8 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 21 }, ptr %12, align 8 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %11, 0 - %14 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %13, ptr %12, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %14) + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 21 }, ptr %12, align 8 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %11, 0 + %14 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %13, ptr %12, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %14) unreachable _llgo_4: ; preds = %_llgo_28 - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) %16 = load ptr, ptr @_llgo_main.I2, align 8 - %17 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %16, ptr %15) + %17 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %16, ptr %15) br i1 %17, label %_llgo_29, label %_llgo_30 _llgo_5: ; preds = %_llgo_31 %18 = load ptr, ptr @_llgo_string, align 8 - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 21 }, ptr %19, align 8 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %18, 0 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %20, ptr %19, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %21) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 21 }, ptr %19, align 8 + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %18, 0 + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %20, ptr %19, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %21) unreachable _llgo_6: ; preds = %_llgo_31 - %22 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %22, 0 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %23, ptr null, 1 - %25 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %25, 0 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %26, ptr null, 1 - %28 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) + %22 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %22, 0 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %23, ptr null, 1 + %25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %25, 0 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %26, ptr null, 1 + %28 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) %29 = load ptr, ptr @"main.iface$brpgdLtIeRlPi8QUoTgPCXzlehUkncg7v9aITo-GsF4", align 8 - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %29, ptr %28) - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %30, 0 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %31, ptr null, 1 + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %29, ptr %28) + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %30, 0 + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %31, ptr null, 1 %33 = load ptr, ptr @_llgo_main.C1, align 8 - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) store %main.C1 zeroinitializer, ptr %34, align 1 %35 = load ptr, ptr @"main.iface$brpgdLtIeRlPi8QUoTgPCXzlehUkncg7v9aITo-GsF4", align 8 - %36 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %35, ptr %33) - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %36, 0 - %38 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %37, ptr %34, 1 - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %38) + %36 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %35, ptr %33) + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %36, 0 + %38 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %37, ptr %34, 1 + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %38) %40 = load ptr, ptr @_llgo_main.I0, align 8 - %41 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %40, ptr %39) + %41 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %40, ptr %39) br i1 %41, label %_llgo_32, label %_llgo_33 _llgo_7: ; preds = %_llgo_34 %42 = load ptr, ptr @_llgo_string, align 8 - %43 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 17 }, ptr %43, align 8 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %42, 0 - %45 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %44, ptr %43, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %45) + %43 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 17 }, ptr %43, align 8 + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %42, 0 + %45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %44, ptr %43, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %45) unreachable _llgo_8: ; preds = %_llgo_34 - %46 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %38) + %46 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %38) %47 = load ptr, ptr @_llgo_main.I1, align 8 - %48 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %47, ptr %46) + %48 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %47, ptr %46) br i1 %48, label %_llgo_35, label %_llgo_36 _llgo_9: ; preds = %_llgo_37 %49 = load ptr, ptr @_llgo_string, align 8 - %50 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @12, i64 17 }, ptr %50, align 8 - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %49, 0 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %51, ptr %50, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %52) + %50 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @12, i64 17 }, ptr %50, align 8 + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %49, 0 + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %51, ptr %50, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %52) unreachable _llgo_10: ; preds = %_llgo_37 - %53 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %38) + %53 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %38) %54 = load ptr, ptr @_llgo_main.I2, align 8 - %55 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %54, ptr %53) + %55 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %54, ptr %53) br i1 %55, label %_llgo_38, label %_llgo_39 _llgo_11: ; preds = %_llgo_40 %56 = load ptr, ptr @_llgo_string, align 8 - %57 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 20 }, ptr %57, align 8 - %58 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %56, 0 - %59 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %58, ptr %57, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %59) + %57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 20 }, ptr %57, align 8 + %58 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %56, 0 + %59 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %58, ptr %57, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %59) unreachable _llgo_12: ; preds = %_llgo_40 %60 = load ptr, ptr @_llgo_main.C2, align 8 - %61 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) + %61 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) store %main.C2 zeroinitializer, ptr %61, align 1 %62 = load ptr, ptr @"main.iface$brpgdLtIeRlPi8QUoTgPCXzlehUkncg7v9aITo-GsF4", align 8 - %63 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %62, ptr %60) - %64 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %63, 0 - %65 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %64, ptr %61, 1 - %66 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %65) + %63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %62, ptr %60) + %64 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %63, 0 + %65 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %64, ptr %61, 1 + %66 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %65) %67 = load ptr, ptr @_llgo_main.I0, align 8 - %68 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %67, ptr %66) + %68 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %67, ptr %66) br i1 %68, label %_llgo_41, label %_llgo_42 _llgo_13: ; preds = %_llgo_43 %69 = load ptr, ptr @_llgo_string, align 8 - %70 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @16, i64 17 }, ptr %70, align 8 - %71 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %69, 0 - %72 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %71, ptr %70, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %72) + %70 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @16, i64 17 }, ptr %70, align 8 + %71 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %69, 0 + %72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %71, ptr %70, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %72) unreachable _llgo_14: ; preds = %_llgo_43 - %73 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %65) + %73 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %65) %74 = load ptr, ptr @_llgo_main.I1, align 8 - %75 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %74, ptr %73) + %75 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %74, ptr %73) br i1 %75, label %_llgo_44, label %_llgo_45 _llgo_15: ; preds = %_llgo_46 %76 = load ptr, ptr @_llgo_string, align 8 - %77 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 17 }, ptr %77, align 8 - %78 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %76, 0 - %79 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %78, ptr %77, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %79) + %77 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 17 }, ptr %77, align 8 + %78 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %76, 0 + %79 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %78, ptr %77, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %79) unreachable _llgo_16: ; preds = %_llgo_46 - %80 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %65) + %80 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %65) %81 = load ptr, ptr @_llgo_main.I2, align 8 - %82 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %81, ptr %80) + %82 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %81, ptr %80) br i1 %82, label %_llgo_47, label %_llgo_48 _llgo_17: ; preds = %_llgo_49 %83 = load ptr, ptr @_llgo_string, align 8 - %84 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 17 }, ptr %84, align 8 - %85 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %83, 0 - %86 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %85, ptr %84, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %86) + %84 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 17 }, ptr %84, align 8 + %85 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %83, 0 + %86 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %85, ptr %84, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %86) unreachable _llgo_18: ; preds = %_llgo_49 %87 = load ptr, ptr @_llgo_main.C1, align 8 - %88 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) + %88 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) store %main.C1 zeroinitializer, ptr %88, align 1 %89 = load ptr, ptr @"main.iface$brpgdLtIeRlPi8QUoTgPCXzlehUkncg7v9aITo-GsF4", align 8 - %90 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %89, ptr %87) - %91 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %90, 0 - %92 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %91, ptr %88, 1 - %93 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %92) - %94 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %92, 1 - %95 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %93, 0 - %96 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %95, ptr %94, 1 - %97 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %96, %"github.com/goplus/llgo/internal/runtime.eface" zeroinitializer) + %90 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %89, ptr %87) + %91 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %90, 0 + %92 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %91, ptr %88, 1 + %93 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %92) + %94 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %92, 1 + %95 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %93, 0 + %96 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %95, ptr %94, 1 + %97 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %96, %"github.com/goplus/llgo/runtime/internal/runtime.eface" zeroinitializer) br i1 %97, label %_llgo_19, label %_llgo_20 _llgo_19: ; preds = %_llgo_18 %98 = load ptr, ptr @_llgo_string, align 8 - %99 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 17 }, ptr %99, align 8 - %100 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %98, 0 - %101 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %100, ptr %99, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %101) + %99 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 17 }, ptr %99, align 8 + %100 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %98, 0 + %101 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %100, ptr %99, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %101) unreachable _llgo_20: ; preds = %_llgo_18 - %102 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %92) - %103 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %92, 1 - %104 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %102, 0 - %105 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %104, ptr %103, 1 - %106 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) - %107 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %106, 0 - %108 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %107, ptr null, 1 - %109 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %105, %"github.com/goplus/llgo/internal/runtime.eface" %108) + %102 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %92) + %103 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %92, 1 + %104 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %102, 0 + %105 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %104, ptr %103, 1 + %106 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) + %107 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %106, 0 + %108 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %107, ptr null, 1 + %109 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %105, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %108) br i1 %109, label %_llgo_21, label %_llgo_22 _llgo_21: ; preds = %_llgo_20 %110 = load ptr, ptr @_llgo_string, align 8 - %111 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @20, i64 17 }, ptr %111, align 8 - %112 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %110, 0 - %113 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %112, ptr %111, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %113) + %111 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @20, i64 17 }, ptr %111, align 8 + %112 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %110, 0 + %113 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %112, ptr %111, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %113) unreachable _llgo_22: ; preds = %_llgo_20 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 _llgo_23: ; preds = %_llgo_0 @@ -317,163 +317,163 @@ _llgo_24: ; preds = %_llgo_0 br label %_llgo_25 _llgo_25: ; preds = %_llgo_24, %_llgo_23 - %114 = phi { %"github.com/goplus/llgo/internal/runtime.eface", i1 } [ { %"github.com/goplus/llgo/internal/runtime.eface" zeroinitializer, i1 true }, %_llgo_23 ], [ zeroinitializer, %_llgo_24 ] - %115 = extractvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %114, 0 - %116 = extractvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %114, 1 + %114 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } [ { %"github.com/goplus/llgo/runtime/internal/runtime.eface" zeroinitializer, i1 true }, %_llgo_23 ], [ zeroinitializer, %_llgo_24 ] + %115 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } %114, 0 + %116 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } %114, 1 br i1 %116, label %_llgo_1, label %_llgo_2 _llgo_26: ; preds = %_llgo_2 %117 = load ptr, ptr @"main.iface$brpgdLtIeRlPi8QUoTgPCXzlehUkncg7v9aITo-GsF4", align 8 - %118 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %117, ptr %8) - %119 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %118, 0 - %120 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %119, ptr null, 1 - %121 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %120, 0 - %122 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %121, i1 true, 1 + %118 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %117, ptr %8) + %119 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %118, 0 + %120 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %119, ptr null, 1 + %121 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %120, 0 + %122 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %121, i1 true, 1 br label %_llgo_28 _llgo_27: ; preds = %_llgo_2 br label %_llgo_28 _llgo_28: ; preds = %_llgo_27, %_llgo_26 - %123 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %122, %_llgo_26 ], [ zeroinitializer, %_llgo_27 ] - %124 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %123, 0 - %125 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %123, 1 + %123 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } [ %122, %_llgo_26 ], [ zeroinitializer, %_llgo_27 ] + %124 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %123, 0 + %125 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %123, 1 br i1 %125, label %_llgo_3, label %_llgo_4 _llgo_29: ; preds = %_llgo_4 %126 = load ptr, ptr @"main.iface$gZBF8fFlqIMZ9M6lT2VWPyc3eu5Co6j0WoKGIEgDPAw", align 8 - %127 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %126, ptr %15) - %128 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %127, 0 - %129 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %128, ptr null, 1 - %130 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %129, 0 - %131 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %130, i1 true, 1 + %127 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %126, ptr %15) + %128 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %127, 0 + %129 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %128, ptr null, 1 + %130 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %129, 0 + %131 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %130, i1 true, 1 br label %_llgo_31 _llgo_30: ; preds = %_llgo_4 br label %_llgo_31 _llgo_31: ; preds = %_llgo_30, %_llgo_29 - %132 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %131, %_llgo_29 ], [ zeroinitializer, %_llgo_30 ] - %133 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %132, 0 - %134 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %132, 1 + %132 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } [ %131, %_llgo_29 ], [ zeroinitializer, %_llgo_30 ] + %133 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %132, 0 + %134 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %132, 1 br i1 %134, label %_llgo_5, label %_llgo_6 _llgo_32: ; preds = %_llgo_6 - %135 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %38, 1 - %136 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %39, 0 - %137 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %136, ptr %135, 1 - %138 = insertvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.eface" %137, 0 - %139 = insertvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %138, i1 true, 1 + %135 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %38, 1 + %136 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %39, 0 + %137 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %136, ptr %135, 1 + %138 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %137, 0 + %139 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } %138, i1 true, 1 br label %_llgo_34 _llgo_33: ; preds = %_llgo_6 br label %_llgo_34 _llgo_34: ; preds = %_llgo_33, %_llgo_32 - %140 = phi { %"github.com/goplus/llgo/internal/runtime.eface", i1 } [ %139, %_llgo_32 ], [ zeroinitializer, %_llgo_33 ] - %141 = extractvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %140, 0 - %142 = extractvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %140, 1 + %140 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } [ %139, %_llgo_32 ], [ zeroinitializer, %_llgo_33 ] + %141 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } %140, 0 + %142 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } %140, 1 br i1 %142, label %_llgo_8, label %_llgo_7 _llgo_35: ; preds = %_llgo_8 - %143 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %38, 1 + %143 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %38, 1 %144 = load ptr, ptr @"main.iface$brpgdLtIeRlPi8QUoTgPCXzlehUkncg7v9aITo-GsF4", align 8 - %145 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %144, ptr %46) - %146 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %145, 0 - %147 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %146, ptr %143, 1 - %148 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %147, 0 - %149 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %148, i1 true, 1 + %145 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %144, ptr %46) + %146 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %145, 0 + %147 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %146, ptr %143, 1 + %148 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %147, 0 + %149 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %148, i1 true, 1 br label %_llgo_37 _llgo_36: ; preds = %_llgo_8 br label %_llgo_37 _llgo_37: ; preds = %_llgo_36, %_llgo_35 - %150 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %149, %_llgo_35 ], [ zeroinitializer, %_llgo_36 ] - %151 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %150, 0 - %152 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %150, 1 + %150 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } [ %149, %_llgo_35 ], [ zeroinitializer, %_llgo_36 ] + %151 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %150, 0 + %152 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %150, 1 br i1 %152, label %_llgo_10, label %_llgo_9 _llgo_38: ; preds = %_llgo_10 - %153 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %38, 1 + %153 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %38, 1 %154 = load ptr, ptr @"main.iface$gZBF8fFlqIMZ9M6lT2VWPyc3eu5Co6j0WoKGIEgDPAw", align 8 - %155 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %154, ptr %53) - %156 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %155, 0 - %157 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %156, ptr %153, 1 - %158 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %157, 0 - %159 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %158, i1 true, 1 + %155 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %154, ptr %53) + %156 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %155, 0 + %157 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %156, ptr %153, 1 + %158 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %157, 0 + %159 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %158, i1 true, 1 br label %_llgo_40 _llgo_39: ; preds = %_llgo_10 br label %_llgo_40 _llgo_40: ; preds = %_llgo_39, %_llgo_38 - %160 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %159, %_llgo_38 ], [ zeroinitializer, %_llgo_39 ] - %161 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %160, 0 - %162 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %160, 1 + %160 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } [ %159, %_llgo_38 ], [ zeroinitializer, %_llgo_39 ] + %161 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %160, 0 + %162 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %160, 1 br i1 %162, label %_llgo_11, label %_llgo_12 _llgo_41: ; preds = %_llgo_12 - %163 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %65, 1 - %164 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %66, 0 - %165 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %164, ptr %163, 1 - %166 = insertvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.eface" %165, 0 - %167 = insertvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %166, i1 true, 1 + %163 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %65, 1 + %164 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %66, 0 + %165 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %164, ptr %163, 1 + %166 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %165, 0 + %167 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } %166, i1 true, 1 br label %_llgo_43 _llgo_42: ; preds = %_llgo_12 br label %_llgo_43 _llgo_43: ; preds = %_llgo_42, %_llgo_41 - %168 = phi { %"github.com/goplus/llgo/internal/runtime.eface", i1 } [ %167, %_llgo_41 ], [ zeroinitializer, %_llgo_42 ] - %169 = extractvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %168, 0 - %170 = extractvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %168, 1 + %168 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } [ %167, %_llgo_41 ], [ zeroinitializer, %_llgo_42 ] + %169 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } %168, 0 + %170 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.eface", i1 } %168, 1 br i1 %170, label %_llgo_14, label %_llgo_13 _llgo_44: ; preds = %_llgo_14 - %171 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %65, 1 + %171 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %65, 1 %172 = load ptr, ptr @"main.iface$brpgdLtIeRlPi8QUoTgPCXzlehUkncg7v9aITo-GsF4", align 8 - %173 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %172, ptr %73) - %174 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %173, 0 - %175 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %174, ptr %171, 1 - %176 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %175, 0 - %177 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %176, i1 true, 1 + %173 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %172, ptr %73) + %174 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %173, 0 + %175 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %174, ptr %171, 1 + %176 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %175, 0 + %177 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %176, i1 true, 1 br label %_llgo_46 _llgo_45: ; preds = %_llgo_14 br label %_llgo_46 _llgo_46: ; preds = %_llgo_45, %_llgo_44 - %178 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %177, %_llgo_44 ], [ zeroinitializer, %_llgo_45 ] - %179 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %178, 0 - %180 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %178, 1 + %178 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } [ %177, %_llgo_44 ], [ zeroinitializer, %_llgo_45 ] + %179 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %178, 0 + %180 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %178, 1 br i1 %180, label %_llgo_16, label %_llgo_15 _llgo_47: ; preds = %_llgo_16 - %181 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %65, 1 + %181 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %65, 1 %182 = load ptr, ptr @"main.iface$gZBF8fFlqIMZ9M6lT2VWPyc3eu5Co6j0WoKGIEgDPAw", align 8 - %183 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %182, ptr %80) - %184 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %183, 0 - %185 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %184, ptr %181, 1 - %186 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %185, 0 - %187 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %186, i1 true, 1 + %183 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %182, ptr %80) + %184 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %183, 0 + %185 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %184, ptr %181, 1 + %186 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %185, 0 + %187 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %186, i1 true, 1 br label %_llgo_49 _llgo_48: ; preds = %_llgo_16 br label %_llgo_49 _llgo_49: ; preds = %_llgo_48, %_llgo_47 - %188 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %187, %_llgo_47 ], [ zeroinitializer, %_llgo_48 ] - %189 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %188, 0 - %190 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %188, 1 + %188 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } [ %187, %_llgo_47 ], [ zeroinitializer, %_llgo_48 ] + %189 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %188, 0 + %190 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %188, 1 br i1 %190, label %_llgo_18, label %_llgo_17 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 2 }) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 2 }) %1 = load ptr, ptr @_llgo_main.I0, align 8 %2 = icmp eq ptr %1, null br i1 %2, label %_llgo_1, label %_llgo_2 @@ -486,11 +486,11 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %2, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %3, 0 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %4, i64 0, 1 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %5, i64 0, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %0, %"github.com/goplus/llgo/internal/runtime.Slice" %6) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %3, 0 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %4, i64 0, 1 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %5, i64 0, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6) br label %_llgo_4 _llgo_4: ; preds = %_llgo_3, %_llgo_2 @@ -499,12 +499,12 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %8, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %9, ptr @_llgo_string, align 8 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 2 }) + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 2 }) %11 = load ptr, ptr @_llgo_main.I1, align 8 %12 = icmp eq ptr %11, null br i1 %12, label %_llgo_7, label %_llgo_8 @@ -519,16 +519,16 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 br i1 %14, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %15, 0 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %16, i64 0, 1 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %17, i64 0, 2 - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %19, 0 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %20, i64 0, 1 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %21, i64 0, 2 - %23 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %18, %"github.com/goplus/llgo/internal/runtime.Slice" %22, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %23) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %15, 0 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %16, i64 0, 1 + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %17, i64 0, 2 + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %19, 0 + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %20, i64 0, 1 + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %21, i64 0, 2 + %23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %18, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %22, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %23) store ptr %23, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 br label %_llgo_10 @@ -537,28 +537,28 @@ _llgo_10: ; preds = %_llgo_9, %_llgo_8 br i1 %12, label %_llgo_11, label %_llgo_12 _llgo_11: ; preds = %_llgo_10 - %25 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 6 }, ptr undef }, ptr %24, 1 - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %27 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %26, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %25, ptr %27, align 8 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %26, 0 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %28, i64 1, 1 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %29, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %10, %"github.com/goplus/llgo/internal/runtime.Slice" %30) + %25 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 6 }, ptr undef }, ptr %24, 1 + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %27 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %26, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %25, ptr %27, align 8 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %26, 0 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %28, i64 1, 1 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %10, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30) br label %_llgo_12 _llgo_12: ; preds = %_llgo_11, %_llgo_10 %31 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %32 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 6 }, ptr undef }, ptr %31, 1 - %33 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %34 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %33, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %32, ptr %34, align 8 - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %33, 0 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %35, i64 1, 1 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %36, i64 1, 2 - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %37) + %32 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 6 }, ptr undef }, ptr %31, 1 + %33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %34 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %33, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %32, ptr %34, align 8 + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %33, 0 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %35, i64 1, 1 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %36, i64 1, 2 + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %37) store ptr %38, ptr @"main.iface$brpgdLtIeRlPi8QUoTgPCXzlehUkncg7v9aITo-GsF4", align 8 - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 2 }) + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 2 }) %40 = load ptr, ptr @_llgo_main.I2, align 8 %41 = icmp eq ptr %40, null br i1 %41, label %_llgo_13, label %_llgo_14 @@ -573,35 +573,35 @@ _llgo_14: ; preds = %_llgo_13, %_llgo_12 br i1 %41, label %_llgo_15, label %_llgo_16 _llgo_15: ; preds = %_llgo_14 - %44 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 6 }, ptr undef }, ptr %42, 1 - %45 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 6 }, ptr undef }, ptr %43, 1 - %46 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) - %47 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %46, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %44, ptr %47, align 8 - %48 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %46, i64 1 - store %"github.com/goplus/llgo/internal/abi.Imethod" %45, ptr %48, align 8 - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %46, 0 - %50 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %49, i64 2, 1 - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %50, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %39, %"github.com/goplus/llgo/internal/runtime.Slice" %51) + %44 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 6 }, ptr undef }, ptr %42, 1 + %45 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 6 }, ptr undef }, ptr %43, 1 + %46 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) + %47 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %46, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %44, ptr %47, align 8 + %48 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %46, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %45, ptr %48, align 8 + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %46, 0 + %50 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %49, i64 2, 1 + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %50, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %39, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %51) br label %_llgo_16 _llgo_16: ; preds = %_llgo_15, %_llgo_14 %52 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 %53 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %54 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 6 }, ptr undef }, ptr %52, 1 - %55 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 6 }, ptr undef }, ptr %53, 1 - %56 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) - %57 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %56, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %54, ptr %57, align 8 - %58 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %56, i64 1 - store %"github.com/goplus/llgo/internal/abi.Imethod" %55, ptr %58, align 8 - %59 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %56, 0 - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %59, i64 2, 1 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, i64 2, 2 - %62 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %61) + %54 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 6 }, ptr undef }, ptr %52, 1 + %55 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 6 }, ptr undef }, ptr %53, 1 + %56 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) + %57 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %56, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %54, ptr %57, align 8 + %58 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %56, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %55, ptr %58, align 8 + %59 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %56, 0 + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %59, i64 2, 1 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, i64 2, 2 + %62 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61) store ptr %62, ptr @"main.iface$gZBF8fFlqIMZ9M6lT2VWPyc3eu5Co6j0WoKGIEgDPAw", align 8 - %63 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 2 }, i64 25, i64 0, i64 1, i64 1) + %63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 2 }, i64 25, i64 0, i64 1, i64 1) %64 = load ptr, ptr @_llgo_main.C1, align 8 %65 = icmp eq ptr %64, null br i1 %65, label %_llgo_17, label %_llgo_18 @@ -616,11 +616,11 @@ _llgo_18: ; preds = %_llgo_17, %_llgo_16 br i1 %67, label %_llgo_19, label %_llgo_20 _llgo_19: ; preds = %_llgo_18 - %68 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %69 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %68, 0 - %70 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %69, i64 0, 1 - %71 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %70, i64 0, 2 - %72 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 0, %"github.com/goplus/llgo/internal/runtime.Slice" %71) + %68 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %69 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %68, 0 + %70 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %69, i64 0, 1 + %71 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %70, i64 0, 2 + %72 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %71) store ptr %72, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8 br label %_llgo_20 @@ -630,29 +630,29 @@ _llgo_20: ; preds = %_llgo_19, %_llgo_18 _llgo_21: ; preds = %_llgo_20 %74 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %75 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %74, 1 - %76 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %75, ptr @"main.(*C1).f", 2 - %77 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %76, ptr @"main.(*C1).f", 3 - %78 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %74, 1 - %79 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %78, ptr @"main.(*C1).f", 2 - %80 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %79, ptr @main.C1.f, 3 - %81 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %82 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %81, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %80, ptr %82, align 8 - %83 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %81, 0 - %84 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %83, i64 1, 1 - %85 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %84, i64 1, 2 - %86 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %87 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %86, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %77, ptr %87, align 8 - %88 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %86, 0 - %89 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %88, i64 1, 1 - %90 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %89, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %63, ptr %73, %"github.com/goplus/llgo/internal/runtime.Slice" %85, %"github.com/goplus/llgo/internal/runtime.Slice" %90) + %75 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %74, 1 + %76 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %75, ptr @"main.(*C1).f", 2 + %77 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %76, ptr @"main.(*C1).f", 3 + %78 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %74, 1 + %79 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %78, ptr @"main.(*C1).f", 2 + %80 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %79, ptr @main.C1.f, 3 + %81 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %82 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %81, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %80, ptr %82, align 8 + %83 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %81, 0 + %84 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %83, i64 1, 1 + %85 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %84, i64 1, 2 + %86 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %87 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %86, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %77, ptr %87, align 8 + %88 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %86, 0 + %89 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %88, i64 1, 1 + %90 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %89, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %63, ptr %73, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %85, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %90) br label %_llgo_22 _llgo_22: ; preds = %_llgo_21, %_llgo_20 - %91 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @14, i64 2 }, i64 25, i64 0, i64 2, i64 2) + %91 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @14, i64 2 }, i64 25, i64 0, i64 2, i64 2) %92 = load ptr, ptr @_llgo_main.C2, align 8 %93 = icmp eq ptr %92, null br i1 %93, label %_llgo_23, label %_llgo_24 @@ -667,74 +667,74 @@ _llgo_24: ; preds = %_llgo_23, %_llgo_22 _llgo_25: ; preds = %_llgo_24 %95 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %96 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %95, 1 - %97 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %96, ptr @"main.(*C2).f", 2 - %98 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %97, ptr @"main.(*C2).f", 3 - %99 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %95, 1 - %100 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %99, ptr @"main.(*C2).f", 2 - %101 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %100, ptr @main.C2.f, 3 + %96 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %95, 1 + %97 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %96, ptr @"main.(*C2).f", 2 + %98 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %97, ptr @"main.(*C2).f", 3 + %99 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %95, 1 + %100 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %99, ptr @"main.(*C2).f", 2 + %101 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %100, ptr @main.C2.f, 3 %102 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %103 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %102, 1 - %104 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %103, ptr @"main.(*C2).g", 2 - %105 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %104, ptr @"main.(*C2).g", 3 - %106 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %102, 1 - %107 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %106, ptr @"main.(*C2).g", 2 - %108 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %107, ptr @main.C2.g, 3 - %109 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %110 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %109, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %101, ptr %110, align 8 - %111 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %109, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %108, ptr %111, align 8 - %112 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %109, 0 - %113 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %112, i64 2, 1 - %114 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %113, i64 2, 2 - %115 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %116 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %115, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %98, ptr %116, align 8 - %117 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %115, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %105, ptr %117, align 8 - %118 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %115, 0 - %119 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %118, i64 2, 1 - %120 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %119, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %91, ptr %94, %"github.com/goplus/llgo/internal/runtime.Slice" %114, %"github.com/goplus/llgo/internal/runtime.Slice" %120) + %103 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %102, 1 + %104 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %103, ptr @"main.(*C2).g", 2 + %105 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %104, ptr @"main.(*C2).g", 3 + %106 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %102, 1 + %107 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %106, ptr @"main.(*C2).g", 2 + %108 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %107, ptr @main.C2.g, 3 + %109 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %110 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %109, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %101, ptr %110, align 8 + %111 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %109, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %108, ptr %111, align 8 + %112 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %109, 0 + %113 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %112, i64 2, 1 + %114 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %113, i64 2, 2 + %115 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %116 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %115, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %98, ptr %116, align 8 + %117 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %115, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %105, ptr %117, align 8 + %118 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %115, 0 + %119 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %118, i64 2, 1 + %120 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %119, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %91, ptr %94, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %114, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %120) br label %_llgo_26 _llgo_26: ; preds = %_llgo_25, %_llgo_24 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr, ptr) +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface", %"github.com/goplus/llgo/internal/runtime.eface") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface", %"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) diff --git a/compiler/cl/_testgo/ifaceprom/out.ll b/compiler/cl/_testgo/ifaceprom/out.ll index 664638b3..6ec1df15 100644 --- a/compiler/cl/_testgo/ifaceprom/out.ll +++ b/compiler/cl/_testgo/ifaceprom/out.ll @@ -1,15 +1,15 @@ ; ModuleID = 'main' source_filename = "main" -%main.S = type { %"github.com/goplus/llgo/internal/runtime.iface" } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%main.S = type { %"github.com/goplus/llgo/runtime/internal/runtime.iface" } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } %main.impl = type {} -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } -%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.Imethod" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } @"main.init$guard" = global i1 false, align 1 @0 = private unnamed_addr constant [3 x i8] c"two", align 1 @@ -38,9 +38,9 @@ _llgo_0: call void @llvm.memset(ptr %1, i8 0, i64 16, i1 false) store %main.S %0, ptr %1, align 8 %2 = getelementptr inbounds %main.S, ptr %1, i32 0, i32 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %2, align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %3) - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %3, 0 + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %2, align 8 + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %3) + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %3, 0 %6 = getelementptr ptr, ptr %5, i64 3 %7 = load ptr, ptr %6, align 8 %8 = insertvalue { ptr, ptr } undef, ptr %7, 0 @@ -51,31 +51,31 @@ _llgo_0: ret i64 %12 } -define %"github.com/goplus/llgo/internal/runtime.String" @main.S.two(%main.S %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.String" @main.S.two(%main.S %0) { _llgo_0: %1 = alloca %main.S, align 8 call void @llvm.memset(ptr %1, i8 0, i64 16, i1 false) store %main.S %0, ptr %1, align 8 %2 = getelementptr inbounds %main.S, ptr %1, i32 0, i32 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %2, align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %3) - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %3, 0 + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %2, align 8 + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %3) + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %3, 0 %6 = getelementptr ptr, ptr %5, i64 4 %7 = load ptr, ptr %6, align 8 %8 = insertvalue { ptr, ptr } undef, ptr %7, 0 %9 = insertvalue { ptr, ptr } %8, ptr %4, 1 %10 = extractvalue { ptr, ptr } %9, 1 %11 = extractvalue { ptr, ptr } %9, 0 - %12 = call %"github.com/goplus/llgo/internal/runtime.String" %11(ptr %10) - ret %"github.com/goplus/llgo/internal/runtime.String" %12 + %12 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %11(ptr %10) + ret %"github.com/goplus/llgo/runtime/internal/runtime.String" %12 } define i64 @"main.(*S).one"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %main.S, ptr %0, i32 0, i32 0 - %2 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %1, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %2) - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %2, 0 + %2 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %1, align 8 + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %2) + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %2, 0 %5 = getelementptr ptr, ptr %4, i64 3 %6 = load ptr, ptr %5, align 8 %7 = insertvalue { ptr, ptr } undef, ptr %6, 0 @@ -86,20 +86,20 @@ _llgo_0: ret i64 %11 } -define %"github.com/goplus/llgo/internal/runtime.String" @"main.(*S).two"(ptr %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.String" @"main.(*S).two"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %main.S, ptr %0, i32 0, i32 0 - %2 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %1, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %2) - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %2, 0 + %2 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %1, align 8 + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %2) + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %2, 0 %5 = getelementptr ptr, ptr %4, i64 4 %6 = load ptr, ptr %5, align 8 %7 = insertvalue { ptr, ptr } undef, ptr %6, 0 %8 = insertvalue { ptr, ptr } %7, ptr %3, 1 %9 = extractvalue { ptr, ptr } %8, 1 %10 = extractvalue { ptr, ptr } %8, 0 - %11 = call %"github.com/goplus/llgo/internal/runtime.String" %10(ptr %9) - ret %"github.com/goplus/llgo/internal/runtime.String" %11 + %11 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %10(ptr %9) + ret %"github.com/goplus/llgo/runtime/internal/runtime.String" %11 } define i64 @main.impl.one(%main.impl %0) { @@ -107,9 +107,9 @@ _llgo_0: ret i64 1 } -define %"github.com/goplus/llgo/internal/runtime.String" @main.impl.two(%main.impl %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.String" @main.impl.two(%main.impl %0) { _llgo_0: - ret %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 3 } + ret %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 3 } } define i64 @"main.(*impl).one"(ptr %0) { @@ -119,11 +119,11 @@ _llgo_0: ret i64 %2 } -define %"github.com/goplus/llgo/internal/runtime.String" @"main.(*impl).two"(ptr %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.String" @"main.(*impl).two"(ptr %0) { _llgo_0: %1 = load %main.impl, ptr %0, align 1 - %2 = call %"github.com/goplus/llgo/internal/runtime.String" @main.impl.two(%main.impl %1) - ret %"github.com/goplus/llgo/internal/runtime.String" %2 + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @main.impl.two(%main.impl %1) + ret %"github.com/goplus/llgo/runtime/internal/runtime.String" %2 } define void @main.init() { @@ -144,25 +144,25 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = alloca %main.S, align 8 call void @llvm.memset(ptr %2, i8 0, i64 16, i1 false) %3 = getelementptr inbounds %main.S, ptr %2, i32 0, i32 0 %4 = load ptr, ptr @_llgo_main.impl, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) store %main.impl zeroinitializer, ptr %5, align 1 %6 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 %7 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 %8 = load ptr, ptr @"main.iface$zZ89tENb5h_KNjvpxf1TXPfaWFYn0IZrZwyVf42lRtA", align 8 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %8, ptr %4) - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %9, 0 - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %10, ptr %5, 1 - store %"github.com/goplus/llgo/internal/runtime.iface" %11, ptr %3, align 8 + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %8, ptr %4) + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %9, 0 + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %10, ptr %5, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.iface" %11, ptr %3, align 8 %12 = getelementptr inbounds %main.S, ptr %2, i32 0, i32 0 - %13 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %12, align 8 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %13) - %15 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %13, 0 + %13 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %12, align 8 + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %13) + %15 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %13, 0 %16 = getelementptr ptr, ptr %15, i64 3 %17 = load ptr, ptr %16, align 8 %18 = insertvalue { ptr, ptr } undef, ptr %17, 0 @@ -176,16 +176,16 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %24 = load ptr, ptr @_llgo_int, align 8 %25 = inttoptr i64 %22 to ptr - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %24, 0 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %26, ptr %25, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %27) + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %24, 0 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %26, ptr %25, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %27) unreachable _llgo_2: ; preds = %_llgo_0 %28 = load %main.S, ptr %2, align 8 %29 = extractvalue %main.S %28, 0 - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %29) - %31 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %29, 0 + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %29) + %31 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %29, 0 %32 = getelementptr ptr, ptr %31, i64 3 %33 = load ptr, ptr %32, align 8 %34 = insertvalue { ptr, ptr } undef, ptr %33, 0 @@ -199,141 +199,141 @@ _llgo_2: ; preds = %_llgo_0 _llgo_3: ; preds = %_llgo_2 %40 = load ptr, ptr @_llgo_int, align 8 %41 = inttoptr i64 %38 to ptr - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %40, 0 - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %42, ptr %41, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %43) + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %40, 0 + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %42, ptr %41, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %43) unreachable _llgo_4: ; preds = %_llgo_2 %44 = getelementptr inbounds %main.S, ptr %2, i32 0, i32 0 - %45 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %44, align 8 - %46 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %45) + %45 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %44, align 8 + %46 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %45) %47 = load ptr, ptr @_llgo_main.I, align 8 - %48 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %47, ptr %46) + %48 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %47, ptr %46) br i1 %48, label %_llgo_17, label %_llgo_18 _llgo_5: ; preds = %_llgo_17 %49 = load ptr, ptr @_llgo_int, align 8 %50 = inttoptr i64 %124 to ptr - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %49, 0 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %51, ptr %50, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %52) + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %49, 0 + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %51, ptr %50, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %52) unreachable _llgo_6: ; preds = %_llgo_17 %53 = load %main.S, ptr %2, align 8 %54 = extractvalue %main.S %53, 0 - %55 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %54) + %55 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %54) %56 = load ptr, ptr @_llgo_main.I, align 8 - %57 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %56, ptr %55) + %57 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %56, ptr %55) br i1 %57, label %_llgo_19, label %_llgo_20 _llgo_7: ; preds = %_llgo_19 %58 = load ptr, ptr @_llgo_int, align 8 %59 = inttoptr i64 %140 to ptr - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %58, 0 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %60, ptr %59, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %61) + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %58, 0 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %60, ptr %59, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %61) unreachable _llgo_8: ; preds = %_llgo_19 %62 = getelementptr inbounds %main.S, ptr %2, i32 0, i32 0 - %63 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %62, align 8 - %64 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %63) - %65 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %63, 0 + %63 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %62, align 8 + %64 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %63) + %65 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %63, 0 %66 = getelementptr ptr, ptr %65, i64 4 %67 = load ptr, ptr %66, align 8 %68 = insertvalue { ptr, ptr } undef, ptr %67, 0 %69 = insertvalue { ptr, ptr } %68, ptr %64, 1 %70 = extractvalue { ptr, ptr } %69, 1 %71 = extractvalue { ptr, ptr } %69, 0 - %72 = call %"github.com/goplus/llgo/internal/runtime.String" %71(ptr %70) - %73 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %72, %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 3 }) + %72 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %71(ptr %70) + %73 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %72, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 3 }) %74 = xor i1 %73, true br i1 %74, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 %75 = load ptr, ptr @_llgo_string, align 8 - %76 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" %72, ptr %76, align 8 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %75, 0 - %78 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %77, ptr %76, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %78) + %76 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" %72, ptr %76, align 8 + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %75, 0 + %78 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %77, ptr %76, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %78) unreachable _llgo_10: ; preds = %_llgo_8 %79 = load %main.S, ptr %2, align 8 %80 = extractvalue %main.S %79, 0 - %81 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %80) - %82 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %80, 0 + %81 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %80) + %82 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %80, 0 %83 = getelementptr ptr, ptr %82, i64 4 %84 = load ptr, ptr %83, align 8 %85 = insertvalue { ptr, ptr } undef, ptr %84, 0 %86 = insertvalue { ptr, ptr } %85, ptr %81, 1 %87 = extractvalue { ptr, ptr } %86, 1 %88 = extractvalue { ptr, ptr } %86, 0 - %89 = call %"github.com/goplus/llgo/internal/runtime.String" %88(ptr %87) - %90 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %89, %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 3 }) + %89 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %88(ptr %87) + %90 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %89, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 3 }) %91 = xor i1 %90, true br i1 %91, label %_llgo_11, label %_llgo_12 _llgo_11: ; preds = %_llgo_10 %92 = load ptr, ptr @_llgo_string, align 8 - %93 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" %89, ptr %93, align 8 - %94 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %92, 0 - %95 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %94, ptr %93, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %95) + %93 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" %89, ptr %93, align 8 + %94 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %92, 0 + %95 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %94, ptr %93, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %95) unreachable _llgo_12: ; preds = %_llgo_10 %96 = getelementptr inbounds %main.S, ptr %2, i32 0, i32 0 - %97 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %96, align 8 - %98 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %97) + %97 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %96, align 8 + %98 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %97) %99 = load ptr, ptr @_llgo_main.I, align 8 - %100 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %99, ptr %98) + %100 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %99, ptr %98) br i1 %100, label %_llgo_21, label %_llgo_22 _llgo_13: ; preds = %_llgo_21 %101 = load ptr, ptr @_llgo_string, align 8 - %102 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" %156, ptr %102, align 8 - %103 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %101, 0 - %104 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %103, ptr %102, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %104) + %102 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" %156, ptr %102, align 8 + %103 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %101, 0 + %104 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %103, ptr %102, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %104) unreachable _llgo_14: ; preds = %_llgo_21 %105 = load %main.S, ptr %2, align 8 %106 = extractvalue %main.S %105, 0 - %107 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %106) + %107 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %106) %108 = load ptr, ptr @_llgo_main.I, align 8 - %109 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %108, ptr %107) + %109 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %108, ptr %107) br i1 %109, label %_llgo_23, label %_llgo_24 _llgo_15: ; preds = %_llgo_23 %110 = load ptr, ptr @_llgo_string, align 8 - %111 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" %173, ptr %111, align 8 - %112 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %110, 0 - %113 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %112, ptr %111, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %113) + %111 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" %173, ptr %111, align 8 + %112 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %110, 0 + %113 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %112, ptr %111, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %113) unreachable _llgo_16: ; preds = %_llgo_23 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 _llgo_17: ; preds = %_llgo_4 - %114 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %45, 1 + %114 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %45, 1 %115 = load ptr, ptr @"main.iface$zZ89tENb5h_KNjvpxf1TXPfaWFYn0IZrZwyVf42lRtA", align 8 - %116 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %115, ptr %46) - %117 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %116, 0 - %118 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %117, ptr %114, 1 - %119 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - %120 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface" }, ptr %119, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.iface" %45, ptr %120, align 8 + %116 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %115, ptr %46) + %117 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %116, 0 + %118 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %117, ptr %114, 1 + %119 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + %120 = getelementptr inbounds { %"github.com/goplus/llgo/runtime/internal/runtime.iface" }, ptr %119, i32 0, i32 0 + store %"github.com/goplus/llgo/runtime/internal/runtime.iface" %45, ptr %120, align 8 %121 = insertvalue { ptr, ptr } { ptr @"main.one$bound", ptr undef }, ptr %119, 1 %122 = extractvalue { ptr, ptr } %121, 1 %123 = extractvalue { ptr, ptr } %121, 0 @@ -343,22 +343,22 @@ _llgo_17: ; preds = %_llgo_4 _llgo_18: ; preds = %_llgo_4 %126 = load ptr, ptr @_llgo_string, align 8 - %127 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 21 }, ptr %127, align 8 - %128 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %126, 0 - %129 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %128, ptr %127, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %129) + %127 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 21 }, ptr %127, align 8 + %128 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %126, 0 + %129 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %128, ptr %127, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %129) unreachable _llgo_19: ; preds = %_llgo_6 - %130 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %54, 1 + %130 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %54, 1 %131 = load ptr, ptr @"main.iface$zZ89tENb5h_KNjvpxf1TXPfaWFYn0IZrZwyVf42lRtA", align 8 - %132 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %131, ptr %55) - %133 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %132, 0 - %134 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %133, ptr %130, 1 - %135 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - %136 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface" }, ptr %135, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.iface" %54, ptr %136, align 8 + %132 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %131, ptr %55) + %133 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %132, 0 + %134 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %133, ptr %130, 1 + %135 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + %136 = getelementptr inbounds { %"github.com/goplus/llgo/runtime/internal/runtime.iface" }, ptr %135, i32 0, i32 0 + store %"github.com/goplus/llgo/runtime/internal/runtime.iface" %54, ptr %136, align 8 %137 = insertvalue { ptr, ptr } { ptr @"main.one$bound", ptr undef }, ptr %135, 1 %138 = extractvalue { ptr, ptr } %137, 1 %139 = extractvalue { ptr, ptr } %137, 0 @@ -368,87 +368,87 @@ _llgo_19: ; preds = %_llgo_6 _llgo_20: ; preds = %_llgo_6 %142 = load ptr, ptr @_llgo_string, align 8 - %143 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 21 }, ptr %143, align 8 - %144 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %142, 0 - %145 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %144, ptr %143, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %145) + %143 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 21 }, ptr %143, align 8 + %144 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %142, 0 + %145 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %144, ptr %143, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %145) unreachable _llgo_21: ; preds = %_llgo_12 - %146 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %97, 1 + %146 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %97, 1 %147 = load ptr, ptr @"main.iface$zZ89tENb5h_KNjvpxf1TXPfaWFYn0IZrZwyVf42lRtA", align 8 - %148 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %147, ptr %98) - %149 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %148, 0 - %150 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %149, ptr %146, 1 - %151 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - %152 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface" }, ptr %151, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.iface" %97, ptr %152, align 8 + %148 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %147, ptr %98) + %149 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %148, 0 + %150 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %149, ptr %146, 1 + %151 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + %152 = getelementptr inbounds { %"github.com/goplus/llgo/runtime/internal/runtime.iface" }, ptr %151, i32 0, i32 0 + store %"github.com/goplus/llgo/runtime/internal/runtime.iface" %97, ptr %152, align 8 %153 = insertvalue { ptr, ptr } { ptr @"main.two$bound", ptr undef }, ptr %151, 1 %154 = extractvalue { ptr, ptr } %153, 1 %155 = extractvalue { ptr, ptr } %153, 0 - %156 = call %"github.com/goplus/llgo/internal/runtime.String" %155(ptr %154) - %157 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %156, %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 3 }) + %156 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %155(ptr %154) + %157 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %156, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 3 }) %158 = xor i1 %157, true br i1 %158, label %_llgo_13, label %_llgo_14 _llgo_22: ; preds = %_llgo_12 %159 = load ptr, ptr @_llgo_string, align 8 - %160 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 21 }, ptr %160, align 8 - %161 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %159, 0 - %162 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %161, ptr %160, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %162) + %160 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 21 }, ptr %160, align 8 + %161 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %159, 0 + %162 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %161, ptr %160, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %162) unreachable _llgo_23: ; preds = %_llgo_14 - %163 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %106, 1 + %163 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %106, 1 %164 = load ptr, ptr @"main.iface$zZ89tENb5h_KNjvpxf1TXPfaWFYn0IZrZwyVf42lRtA", align 8 - %165 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %164, ptr %107) - %166 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %165, 0 - %167 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %166, ptr %163, 1 - %168 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - %169 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface" }, ptr %168, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.iface" %106, ptr %169, align 8 + %165 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %164, ptr %107) + %166 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %165, 0 + %167 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %166, ptr %163, 1 + %168 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + %169 = getelementptr inbounds { %"github.com/goplus/llgo/runtime/internal/runtime.iface" }, ptr %168, i32 0, i32 0 + store %"github.com/goplus/llgo/runtime/internal/runtime.iface" %106, ptr %169, align 8 %170 = insertvalue { ptr, ptr } { ptr @"main.two$bound", ptr undef }, ptr %168, 1 %171 = extractvalue { ptr, ptr } %170, 1 %172 = extractvalue { ptr, ptr } %170, 0 - %173 = call %"github.com/goplus/llgo/internal/runtime.String" %172(ptr %171) - %174 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %173, %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 3 }) + %173 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %172(ptr %171) + %174 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %173, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 3 }) %175 = xor i1 %174, true br i1 %175, label %_llgo_15, label %_llgo_16 _llgo_24: ; preds = %_llgo_14 %176 = load ptr, ptr @_llgo_string, align 8 - %177 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 21 }, ptr %177, align 8 - %178 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %176, 0 - %179 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %178, ptr %177, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %179) + %177 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 21 }, ptr %177, align 8 + %178 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %176, 0 + %179 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %178, ptr %177, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %179) unreachable } ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }, i64 25, i64 0, i64 2, i64 2) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 4 }, i64 25, i64 0, i64 2, i64 2) store ptr %0, ptr @_llgo_main.impl, align 8 %1 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8 %2 = icmp eq ptr %1, null br i1 %2, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %3, 0 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %4, i64 0, 1 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %5, i64 0, 2 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, i64 0, %"github.com/goplus/llgo/internal/runtime.Slice" %6) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %3, 0 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %4, i64 0, 1 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %5, i64 0, 2 + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6) store ptr %7, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8 br label %_llgo_2 @@ -459,7 +459,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %10, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %11, ptr @_llgo_int, align 8 br label %_llgo_4 @@ -471,35 +471,35 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %15, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %16, 0 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %17, i64 0, 1 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %18, i64 0, 2 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %16, 0 + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %17, i64 0, 1 + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %18, i64 0, 2 + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %21 = getelementptr ptr, ptr %20, i64 0 store ptr %13, ptr %21, align 8 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %20, 0 - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %22, i64 1, 1 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %23, i64 1, 2 - %25 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %19, %"github.com/goplus/llgo/internal/runtime.Slice" %24, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %25) + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %20, 0 + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %22, i64 1, 1 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %23, i64 1, 2 + %25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %25) store ptr %25, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 %26 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %27 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %26, 1 - %28 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %27, ptr @"main.(*impl).one", 2 - %29 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %28, ptr @"main.(*impl).one", 3 - %30 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %26, 1 - %31 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %30, ptr @"main.(*impl).one", 2 - %32 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %31, ptr @main.impl.one, 3 + %27 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %26, 1 + %28 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %27, ptr @"main.(*impl).one", 2 + %29 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %28, ptr @"main.(*impl).one", 3 + %30 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %26, 1 + %31 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %30, ptr @"main.(*impl).one", 2 + %32 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %31, ptr @main.impl.one, 3 %33 = load ptr, ptr @_llgo_string, align 8 %34 = icmp eq ptr %33, null br i1 %34, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %35, ptr @_llgo_string, align 8 br label %_llgo_8 @@ -511,61 +511,61 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 br i1 %39, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - %40 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %40, 0 - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %41, i64 0, 1 - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %42, i64 0, 2 - %44 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %40 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %40, 0 + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %41, i64 0, 1 + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %42, i64 0, 2 + %44 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %45 = getelementptr ptr, ptr %44, i64 0 store ptr %37, ptr %45, align 8 - %46 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %44, 0 - %47 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %46, i64 1, 1 - %48 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %47, i64 1, 2 - %49 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %43, %"github.com/goplus/llgo/internal/runtime.Slice" %48, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %49) + %46 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %44, 0 + %47 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %46, i64 1, 1 + %48 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %47, i64 1, 2 + %49 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %43, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %48, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %49) store ptr %49, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 br label %_llgo_10 _llgo_10: ; preds = %_llgo_9, %_llgo_8 %50 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %51 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %50, 1 - %52 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %51, ptr @"main.(*impl).two", 2 - %53 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %52, ptr @"main.(*impl).two", 3 - %54 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %50, 1 - %55 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %54, ptr @"main.(*impl).two", 2 - %56 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %55, ptr @main.impl.two, 3 - %57 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %58 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %57, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %32, ptr %58, align 8 - %59 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %57, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %56, ptr %59, align 8 - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %57, 0 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, i64 2, 1 - %62 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %61, i64 2, 2 - %63 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %64 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %29, ptr %64, align 8 - %65 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %53, ptr %65, align 8 - %66 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %63, 0 - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %66, i64 2, 1 - %68 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %67, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, ptr %8, %"github.com/goplus/llgo/internal/runtime.Slice" %62, %"github.com/goplus/llgo/internal/runtime.Slice" %68) + %51 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %50, 1 + %52 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %51, ptr @"main.(*impl).two", 2 + %53 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %52, ptr @"main.(*impl).two", 3 + %54 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %50, 1 + %55 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %54, ptr @"main.(*impl).two", 2 + %56 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %55, ptr @main.impl.two, 3 + %57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %58 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %57, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %32, ptr %58, align 8 + %59 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %57, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %56, ptr %59, align 8 + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %57, 0 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, i64 2, 1 + %62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, i64 2, 2 + %63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %64 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %63, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %29, ptr %64, align 8 + %65 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %63, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %53, ptr %65, align 8 + %66 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %63, 0 + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %66, i64 2, 1 + %68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %67, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %8, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %68) %69 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 %70 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %71 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 8 }, ptr undef }, ptr %69, 1 - %72 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 8 }, ptr undef }, ptr %70, 1 - %73 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) - %74 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %73, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %71, ptr %74, align 8 - %75 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %73, i64 1 - store %"github.com/goplus/llgo/internal/abi.Imethod" %72, ptr %75, align 8 - %76 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %73, 0 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %76, i64 2, 1 - %78 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %77, i64 2, 2 - %79 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %78) + %71 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 8 }, ptr undef }, ptr %69, 1 + %72 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 8 }, ptr undef }, ptr %70, 1 + %73 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) + %74 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %73, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %71, ptr %74, align 8 + %75 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %73, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %72, ptr %75, align 8 + %76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %73, 0 + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %76, i64 2, 1 + %78 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %77, i64 2, 2 + %79 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %78) store ptr %79, ptr @"main.iface$zZ89tENb5h_KNjvpxf1TXPfaWFYn0IZrZwyVf42lRtA", align 8 - %80 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 1 }) + %80 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 1 }) %81 = load ptr, ptr @_llgo_main.I, align 8 %82 = icmp eq ptr %81, null br i1 %82, label %_llgo_11, label %_llgo_12 @@ -580,59 +580,59 @@ _llgo_12: ; preds = %_llgo_11, %_llgo_10 br i1 %82, label %_llgo_13, label %_llgo_14 _llgo_13: ; preds = %_llgo_12 - %85 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 8 }, ptr undef }, ptr %83, 1 - %86 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 8 }, ptr undef }, ptr %84, 1 - %87 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) - %88 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %87, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %85, ptr %88, align 8 - %89 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %87, i64 1 - store %"github.com/goplus/llgo/internal/abi.Imethod" %86, ptr %89, align 8 - %90 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %87, 0 - %91 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %90, i64 2, 1 - %92 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %91, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %80, %"github.com/goplus/llgo/internal/runtime.Slice" %92) + %85 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 8 }, ptr undef }, ptr %83, 1 + %86 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 8 }, ptr undef }, ptr %84, 1 + %87 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) + %88 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %87, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %85, ptr %88, align 8 + %89 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %87, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %86, ptr %89, align 8 + %90 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %87, 0 + %91 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %90, i64 2, 1 + %92 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %91, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %80, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %92) br label %_llgo_14 _llgo_14: ; preds = %_llgo_13, %_llgo_12 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr, ptr) +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr, ptr) define i64 @"main.one$bound"(ptr %0) { _llgo_0: - %1 = load { %"github.com/goplus/llgo/internal/runtime.iface" }, ptr %0, align 8 - %2 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface" } %1, 0 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %2) - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %2, 0 + %1 = load { %"github.com/goplus/llgo/runtime/internal/runtime.iface" }, ptr %0, align 8 + %2 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %1, 0 + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %2) + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %2, 0 %5 = getelementptr ptr, ptr %4, i64 3 %6 = load ptr, ptr %5, align 8 %7 = insertvalue { ptr, ptr } undef, ptr %6, 0 @@ -643,26 +643,26 @@ _llgo_0: ret i64 %11 } -declare i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -define %"github.com/goplus/llgo/internal/runtime.String" @"main.two$bound"(ptr %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.String" @"main.two$bound"(ptr %0) { _llgo_0: - %1 = load { %"github.com/goplus/llgo/internal/runtime.iface" }, ptr %0, align 8 - %2 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface" } %1, 0 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %2) - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %2, 0 + %1 = load { %"github.com/goplus/llgo/runtime/internal/runtime.iface" }, ptr %0, align 8 + %2 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %1, 0 + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %2) + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %2, 0 %5 = getelementptr ptr, ptr %4, i64 4 %6 = load ptr, ptr %5, align 8 %7 = insertvalue { ptr, ptr } undef, ptr %6, 0 %8 = insertvalue { ptr, ptr } %7, ptr %3, 1 %9 = extractvalue { ptr, ptr } %8, 1 %10 = extractvalue { ptr, ptr } %8, 0 - %11 = call %"github.com/goplus/llgo/internal/runtime.String" %10(ptr %9) - ret %"github.com/goplus/llgo/internal/runtime.String" %11 + %11 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %10(ptr %9) + ret %"github.com/goplus/llgo/runtime/internal/runtime.String" %11 } -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testgo/interface/out.ll b/compiler/cl/_testgo/interface/out.ll index 8aab03d4..bac4f49d 100644 --- a/compiler/cl/_testgo/interface/out.ll +++ b/compiler/cl/_testgo/interface/out.ll @@ -2,13 +2,13 @@ source_filename = "main" %main.Game1 = type { ptr } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/abi.Imethod" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -16,22 +16,22 @@ source_filename = "main" @_llgo_main.Game1 = linkonce global ptr null, align 8 @0 = private unnamed_addr constant [4 x i8] c"main", align 1 @1 = private unnamed_addr constant [5 x i8] c"Game1", align 1 -@"_llgo_github.com/goplus/llgo/cl/internal/foo.Game" = linkonce global ptr null, align 8 -@2 = private unnamed_addr constant [38 x i8] c"github.com/goplus/llgo/cl/internal/foo", align 1 +@"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Game" = linkonce global ptr null, align 8 +@2 = private unnamed_addr constant [47 x i8] c"github.com/goplus/llgo/compiler/cl/internal/foo", align 1 @3 = private unnamed_addr constant [4 x i8] c"Game", align 1 @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw" = linkonce global ptr null, align 8 @4 = private unnamed_addr constant [4 x i8] c"Load", align 1 @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac" = linkonce global ptr null, align 8 @5 = private unnamed_addr constant [8 x i8] c"initGame", align 1 -@6 = private unnamed_addr constant [47 x i8] c"github.com/goplus/llgo/cl/internal/foo.initGame", align 1 -@"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game" = linkonce global ptr null, align 8 -@"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI" = linkonce global ptr null, align 8 +@6 = private unnamed_addr constant [56 x i8] c"github.com/goplus/llgo/compiler/cl/internal/foo.initGame", align 1 +@"*_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Game" = linkonce global ptr null, align 8 +@"_llgo_struct$qa3Pttfm1GQvokHektasLRsX-bwAs-LsF1bLMI_aThw" = linkonce global ptr null, align 8 @"*_llgo_main.Game1" = linkonce global ptr null, align 8 @_llgo_main.Game2 = linkonce global ptr null, align 8 @7 = private unnamed_addr constant [5 x i8] c"Game2", align 1 @8 = private unnamed_addr constant [13 x i8] c"main.initGame", align 1 @"*_llgo_main.Game2" = linkonce global ptr null, align 8 -@"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Gamer" = linkonce global ptr null, align 8 @9 = private unnamed_addr constant [5 x i8] c"Gamer", align 1 @"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg" = linkonce global ptr null, align 8 @10 = private unnamed_addr constant [2 x i8] c"OK", align 1 @@ -44,7 +44,7 @@ _llgo_0: store %main.Game1 %0, ptr %1, align 8 %2 = getelementptr inbounds %main.Game1, ptr %1, i32 0, i32 0 %3 = load ptr, ptr %2, align 8 - call void @"github.com/goplus/llgo/cl/internal/foo.(*Game).Load"(ptr %3) + call void @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).Load"(ptr %3) ret void } @@ -55,7 +55,7 @@ _llgo_0: store %main.Game1 %0, ptr %1, align 8 %2 = getelementptr inbounds %main.Game1, ptr %1, i32 0, i32 0 %3 = load ptr, ptr %2, align 8 - call void @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame"(ptr %3) + call void @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).initGame"(ptr %3) ret void } @@ -63,7 +63,7 @@ define void @"main.(*Game1).Load"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %main.Game1, ptr %0, i32 0, i32 0 %2 = load ptr, ptr %1, align 8 - call void @"github.com/goplus/llgo/cl/internal/foo.(*Game).Load"(ptr %2) + call void @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).Load"(ptr %2) ret void } @@ -71,7 +71,7 @@ define void @"main.(*Game1).initGame"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %main.Game1, ptr %0, i32 0, i32 0 %2 = load ptr, ptr %1, align 8 - call void @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame"(ptr %2) + call void @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).initGame"(ptr %2) ret void } @@ -87,7 +87,7 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 - call void @"github.com/goplus/llgo/cl/internal/foo.init"() + call void @"github.com/goplus/llgo/compiler/cl/internal/foo.init"() call void @"main.init$after"() br label %_llgo_2 @@ -99,29 +99,29 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) %3 = getelementptr inbounds %main.Game1, ptr %2, i32 0, i32 0 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 0) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 0) store ptr %4, ptr %3, align 8 %5 = load ptr, ptr @_llgo_main.Game1, align 8 %6 = load ptr, ptr @"*_llgo_main.Game1", align 8 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %6, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %7, ptr %2, 1 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 0) + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %6, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %7, ptr %2, 1 + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 0) %10 = load ptr, ptr @_llgo_main.Game2, align 8 %11 = load ptr, ptr @"*_llgo_main.Game2", align 8 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %11, 0 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, ptr %9, 1 - %14 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %8, 0 - %15 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8 - %16 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %15, ptr %14) + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %11, 0 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %12, ptr %9, 1 + %14 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %8, 0 + %15 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Gamer", align 8 + %16 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %15, ptr %14) br i1 %16, label %_llgo_3, label %_llgo_4 _llgo_1: ; preds = %_llgo_5 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %36) - %18 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %36, 0 + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %36) + %18 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %36, 0 %19 = getelementptr ptr, ptr %18, i64 3 %20 = load ptr, ptr %19, align 8 %21 = insertvalue { ptr, ptr } undef, ptr %20, 0 @@ -132,95 +132,95 @@ _llgo_1: ; preds = %_llgo_5 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_5 - %25 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %13, 0 - %26 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8 - %27 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %26, ptr %25) + %25 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %13, 0 + %26 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Gamer", align 8 + %27 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %26, ptr %25) br i1 %27, label %_llgo_6, label %_llgo_7 _llgo_3: ; preds = %_llgo_0 - %28 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %8, 1 + %28 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %8, 1 %29 = load ptr, ptr @"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg", align 8 - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %29, ptr %14) - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %30, 0 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %31, ptr %28, 1 - %33 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %32, 0 - %34 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %33, i1 true, 1 + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %29, ptr %14) + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %30, 0 + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %31, ptr %28, 1 + %33 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %32, 0 + %34 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %33, i1 true, 1 br label %_llgo_5 _llgo_4: ; preds = %_llgo_0 br label %_llgo_5 _llgo_5: ; preds = %_llgo_4, %_llgo_3 - %35 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %34, %_llgo_3 ], [ zeroinitializer, %_llgo_4 ] - %36 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %35, 0 - %37 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %35, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 2 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %36) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %37) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %35 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } [ %34, %_llgo_3 ], [ zeroinitializer, %_llgo_4 ] + %36 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %35, 0 + %37 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %35, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 2 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %36) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %37) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br i1 %37, label %_llgo_1, label %_llgo_2 _llgo_6: ; preds = %_llgo_2 - %38 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %13, 1 + %38 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %13, 1 %39 = load ptr, ptr @"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg", align 8 - %40 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %39, ptr %25) - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %40, 0 - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %41, ptr %38, 1 - %43 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %42, 0 - %44 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %43, i1 true, 1 + %40 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %39, ptr %25) + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %40, 0 + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %41, ptr %38, 1 + %43 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %42, 0 + %44 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %43, i1 true, 1 br label %_llgo_8 _llgo_7: ; preds = %_llgo_2 br label %_llgo_8 _llgo_8: ; preds = %_llgo_7, %_llgo_6 - %45 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %44, %_llgo_6 ], [ zeroinitializer, %_llgo_7 ] - %46 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %45, 0 - %47 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %45, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %46) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %47) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %45 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } [ %44, %_llgo_6 ], [ zeroinitializer, %_llgo_7 ] + %46 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %45, 0 + %47 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %45, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %46) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %47) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare void @"github.com/goplus/llgo/cl/internal/foo.(*Game).Load"(ptr) +declare void @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).Load"(ptr) -declare void @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame"(ptr) +declare void @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).initGame"(ptr) -declare void @"github.com/goplus/llgo/cl/internal/foo.init"() +declare void @"github.com/goplus/llgo/compiler/cl/internal/foo.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }, i64 25, i64 8, i64 2, i64 2) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, i64 25, i64 8, i64 2, i64 2) %1 = load ptr, ptr @_llgo_main.Game1, align 8 %2 = icmp eq ptr %1, null br i1 %2, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %0) store ptr %0, ptr @_llgo_main.Game1, align 8 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 38 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 0, i64 0, i64 2) - %4 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8 + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 47 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 0, i64 0, i64 2) + %4 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Game", align 8 %5 = icmp eq ptr %4, null br i1 %5, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - store ptr %3, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8 + store ptr %3, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Game", align 8 br label %_llgo_4 _llgo_4: ; preds = %_llgo_3, %_llgo_2 @@ -229,11 +229,11 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %7, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %8, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, i64 0, 1 - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %10, i64 0, 2 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 0, %"github.com/goplus/llgo/internal/runtime.Slice" %11) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %8, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, i64 0, 1 + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10, i64 0, 2 + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %11) store ptr %12, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8 br label %_llgo_6 @@ -247,120 +247,120 @@ _llgo_7: ; preds = %_llgo_6 br i1 %15, label %_llgo_9, label %_llgo_10 _llgo_8: ; preds = %_llgo_10, %_llgo_6 - %16 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 38 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 0, i64 0, i64 2) - %18 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8 + %16 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Game", align 8 + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 47 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 0, i64 0, i64 2) + %18 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Game", align 8 %19 = icmp eq ptr %18, null br i1 %19, label %_llgo_11, label %_llgo_12 _llgo_9: ; preds = %_llgo_7 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %20, 0 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %21, i64 0, 1 - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %22, i64 0, 2 - %24 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %24, 0 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %25, i64 0, 1 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %26, i64 0, 2 - %28 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %23, %"github.com/goplus/llgo/internal/runtime.Slice" %27, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %28) + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %20, 0 + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %21, i64 0, 1 + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %22, i64 0, 2 + %24 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %24, 0 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, i64 0, 1 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26, i64 0, 2 + %28 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %23, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %27, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %28) store ptr %28, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 br label %_llgo_10 _llgo_10: ; preds = %_llgo_9, %_llgo_7 %29 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %30 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %29, 1 - %31 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %30, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).Load", 2 - %32 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %31, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).Load", 3 + %30 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %29, 1 + %31 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %30, ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).Load", 2 + %32 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %31, ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).Load", 3 %33 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %34 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 47 }, ptr undef, ptr undef, ptr undef }, ptr %33, 1 - %35 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %34, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", 2 - %36 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %35, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", 3 - %37 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %38 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %37, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %32, ptr %38, align 8 - %39 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %37, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %36, ptr %39, align 8 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %37, 0 - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %40, i64 2, 1 - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %41, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %3, ptr %13, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %42) + %34 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 56 }, ptr undef, ptr undef, ptr undef }, ptr %33, 1 + %35 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %34, ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).initGame", 2 + %36 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %35, ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).initGame", 3 + %37 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %38 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %37, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %32, ptr %38, align 8 + %39 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %37, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %36, ptr %39, align 8 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %37, 0 + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %40, i64 2, 1 + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %41, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %3, ptr %13, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %42) br label %_llgo_8 _llgo_11: ; preds = %_llgo_8 - %43 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %17) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %43) - store ptr %43, ptr @"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8 + %43 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %17) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %43) + store ptr %43, ptr @"*_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Game", align 8 br label %_llgo_12 _llgo_12: ; preds = %_llgo_11, %_llgo_8 - %44 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8 - %45 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 38 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 0, i64 0, i64 2) - %46 = load ptr, ptr @"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI", align 8 + %44 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Game", align 8 + %45 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 47 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 0, i64 0, i64 2) + %46 = load ptr, ptr @"_llgo_struct$qa3Pttfm1GQvokHektasLRsX-bwAs-LsF1bLMI_aThw", align 8 %47 = icmp eq ptr %46, null br i1 %47, label %_llgo_13, label %_llgo_14 _llgo_13: ; preds = %_llgo_12 - %48 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %45) - %49 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, ptr %48, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 true) - %50 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %51 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %50, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %49, ptr %51, align 8 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %50, 0 - %53 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %52, i64 1, 1 - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %53, i64 1, 2 - %55 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %54) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %55) - store ptr %55, ptr @"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI", align 8 + %48 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %45) + %49 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, ptr %48, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 true) + %50 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %51 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %50, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %49, ptr %51, align 8 + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %50, 0 + %53 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %52, i64 1, 1 + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %53, i64 1, 2 + %55 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %55) + store ptr %55, ptr @"_llgo_struct$qa3Pttfm1GQvokHektasLRsX-bwAs-LsF1bLMI_aThw", align 8 br label %_llgo_14 _llgo_14: ; preds = %_llgo_13, %_llgo_12 - %56 = load ptr, ptr @"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI", align 8 + %56 = load ptr, ptr @"_llgo_struct$qa3Pttfm1GQvokHektasLRsX-bwAs-LsF1bLMI_aThw", align 8 br i1 %2, label %_llgo_15, label %_llgo_16 _llgo_15: ; preds = %_llgo_14 %57 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %58 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %57, 1 - %59 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %58, ptr @"main.(*Game1).Load", 2 - %60 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %59, ptr @"main.(*Game1).Load", 3 - %61 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %57, 1 - %62 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %61, ptr @"main.(*Game1).Load", 2 - %63 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %62, ptr @main.Game1.Load, 3 + %58 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %57, 1 + %59 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %58, ptr @"main.(*Game1).Load", 2 + %60 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %59, ptr @"main.(*Game1).Load", 3 + %61 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %57, 1 + %62 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %61, ptr @"main.(*Game1).Load", 2 + %63 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %62, ptr @main.Game1.Load, 3 %64 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %65 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 47 }, ptr undef, ptr undef, ptr undef }, ptr %64, 1 - %66 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %65, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", 2 - %67 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %66, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", 3 - %68 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %69 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %68, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %63, ptr %69, align 8 - %70 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %68, 0 - %71 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %70, i64 1, 1 - %72 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %71, i64 1, 2 - %73 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %74 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %73, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %60, ptr %74, align 8 - %75 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %73, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %67, ptr %75, align 8 - %76 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %73, 0 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %76, i64 2, 1 - %78 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %77, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, ptr %56, %"github.com/goplus/llgo/internal/runtime.Slice" %72, %"github.com/goplus/llgo/internal/runtime.Slice" %78) + %65 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 56 }, ptr undef, ptr undef, ptr undef }, ptr %64, 1 + %66 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %65, ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).initGame", 2 + %67 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %66, ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Game).initGame", 3 + %68 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %69 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %68, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %63, ptr %69, align 8 + %70 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %68, 0 + %71 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %70, i64 1, 1 + %72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %71, i64 1, 2 + %73 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %74 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %73, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %60, ptr %74, align 8 + %75 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %73, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %67, ptr %75, align 8 + %76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %73, 0 + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %76, i64 2, 1 + %78 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %77, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %56, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %72, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %78) br label %_llgo_16 _llgo_16: ; preds = %_llgo_15, %_llgo_14 - %79 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }, i64 25, i64 8, i64 2, i64 2) + %79 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, i64 25, i64 8, i64 2, i64 2) %80 = load ptr, ptr @"*_llgo_main.Game1", align 8 %81 = icmp eq ptr %80, null br i1 %81, label %_llgo_17, label %_llgo_18 _llgo_17: ; preds = %_llgo_16 - %82 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %79) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %82) + %82 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %79) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %82) store ptr %82, ptr @"*_llgo_main.Game1", align 8 br label %_llgo_18 _llgo_18: ; preds = %_llgo_17, %_llgo_16 - %83 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 5 }, i64 25, i64 0, i64 0, i64 1) + %83 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 5 }, i64 25, i64 0, i64 0, i64 1) %84 = load ptr, ptr @_llgo_main.Game2, align 8 %85 = icmp eq ptr %84, null br i1 %85, label %_llgo_19, label %_llgo_20 @@ -375,38 +375,38 @@ _llgo_20: ; preds = %_llgo_19, %_llgo_18 _llgo_21: ; preds = %_llgo_20 %87 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %88 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %87, 1 - %89 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %88, ptr @"main.(*Game2).initGame", 2 - %90 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %89, ptr @"main.(*Game2).initGame", 3 - %91 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %92 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %91, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %90, ptr %92, align 8 - %93 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %91, 0 - %94 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %93, i64 1, 1 - %95 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %94, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %83, ptr %86, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %95) + %88 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %87, 1 + %89 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %88, ptr @"main.(*Game2).initGame", 2 + %90 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %89, ptr @"main.(*Game2).initGame", 3 + %91 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %92 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %91, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %90, ptr %92, align 8 + %93 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %91, 0 + %94 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %93, i64 1, 1 + %95 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %94, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %83, ptr %86, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %95) br label %_llgo_22 _llgo_22: ; preds = %_llgo_21, %_llgo_20 - %96 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 5 }, i64 25, i64 0, i64 0, i64 1) + %96 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 5 }, i64 25, i64 0, i64 0, i64 1) %97 = load ptr, ptr @"*_llgo_main.Game2", align 8 %98 = icmp eq ptr %97, null br i1 %98, label %_llgo_23, label %_llgo_24 _llgo_23: ; preds = %_llgo_22 - %99 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %96) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %99) + %99 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %96) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %99) store ptr %99, ptr @"*_llgo_main.Game2", align 8 br label %_llgo_24 _llgo_24: ; preds = %_llgo_23, %_llgo_22 - %100 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 38 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 5 }) - %101 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8 + %100 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 47 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 5 }) + %101 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Gamer", align 8 %102 = icmp eq ptr %101, null br i1 %102, label %_llgo_25, label %_llgo_26 _llgo_25: ; preds = %_llgo_24 - store ptr %100, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8 + store ptr %100, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Gamer", align 8 br label %_llgo_26 _llgo_26: ; preds = %_llgo_25, %_llgo_24 @@ -415,71 +415,71 @@ _llgo_26: ; preds = %_llgo_25, %_llgo_24 br i1 %102, label %_llgo_27, label %_llgo_28 _llgo_27: ; preds = %_llgo_26 - %105 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, ptr undef }, ptr %103, 1 - %106 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 47 }, ptr undef }, ptr %104, 1 - %107 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) - %108 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %107, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %105, ptr %108, align 8 - %109 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %107, i64 1 - store %"github.com/goplus/llgo/internal/abi.Imethod" %106, ptr %109, align 8 - %110 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %107, 0 - %111 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %110, i64 2, 1 - %112 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %111, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %100, %"github.com/goplus/llgo/internal/runtime.Slice" %112) + %105 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, ptr undef }, ptr %103, 1 + %106 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 56 }, ptr undef }, ptr %104, 1 + %107 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) + %108 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %107, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %105, ptr %108, align 8 + %109 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %107, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %106, ptr %109, align 8 + %110 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %107, 0 + %111 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %110, i64 2, 1 + %112 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %111, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %100, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %112) br label %_llgo_28 _llgo_28: ; preds = %_llgo_27, %_llgo_26 %113 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 %114 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %115 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, ptr undef }, ptr %113, 1 - %116 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 47 }, ptr undef }, ptr %114, 1 - %117 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) - %118 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %117, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %115, ptr %118, align 8 - %119 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %117, i64 1 - store %"github.com/goplus/llgo/internal/abi.Imethod" %116, ptr %119, align 8 - %120 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %117, 0 - %121 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %120, i64 2, 1 - %122 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %121, i64 2, 2 - %123 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %122) + %115 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, ptr undef }, ptr %113, 1 + %116 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 56 }, ptr undef }, ptr %114, 1 + %117 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) + %118 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %117, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %115, ptr %118, align 8 + %119 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %117, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %116, ptr %119, align 8 + %120 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %117, 0 + %121 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %120, i64 2, 1 + %122 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %121, i64 2, 2 + %123 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %122) store ptr %123, ptr @"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg", align 8 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr, ptr) +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testgo/invoke/out.ll b/compiler/cl/_testgo/invoke/out.ll index 3bded9dc..dbca6334 100644 --- a/compiler/cl/_testgo/invoke/out.ll +++ b/compiler/cl/_testgo/invoke/out.ll @@ -1,16 +1,16 @@ ; ModuleID = 'main' source_filename = "main" -%main.T = type { %"github.com/goplus/llgo/internal/runtime.String" } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%main.T = type { %"github.com/goplus/llgo/runtime/internal/runtime.String" } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } %main.T5 = type { i64 } %main.T6 = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } -%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.Imethod" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } @"main.init$guard" = global i1 false, align 1 @0 = private unnamed_addr constant [6 x i8] c"invoke", align 1 @@ -76,11 +76,11 @@ _llgo_0: call void @llvm.memset(ptr %1, i8 0, i64 16, i1 false) store %main.T %0, ptr %1, align 8 %2 = getelementptr inbounds %main.T, ptr %1, i32 0, i32 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 6 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %2, align 8 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 6 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i64 0 } @@ -98,10 +98,10 @@ _llgo_0: define i64 @main.T1.Invoke(i64 %0) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %0) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i64 1 } @@ -114,10 +114,10 @@ _llgo_0: define i64 @main.T2.Invoke(double %0) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %0) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i64 2 } @@ -131,11 +131,11 @@ _llgo_0: define i64 @"main.(*T3).Invoke"(ptr %0) { _llgo_0: %1 = load i8, ptr %0, align 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %2 = sext i8 %1 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i64 3 } @@ -146,10 +146,10 @@ _llgo_0: store [1 x i64] %0, ptr %1, align 4 %2 = getelementptr inbounds i64, ptr %1, i64 0 %3 = load i64, ptr %2, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i64 4 } @@ -167,10 +167,10 @@ _llgo_0: store %main.T5 %0, ptr %1, align 4 %2 = getelementptr inbounds %main.T5, ptr %1, i32 0, i32 0 %3 = load i64, ptr %2, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i64 5 } @@ -186,10 +186,10 @@ _llgo_0: %1 = extractvalue %main.T6 %0, 1 %2 = extractvalue %main.T6 %0, 0 %3 = call i64 %2(ptr %1) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i64 6 } @@ -214,10 +214,10 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 ret void } -define void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %0) { +define void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %0) - %2 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %0, 0 + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %0) + %2 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %0, 0 %3 = getelementptr ptr, ptr %2, i64 3 %4 = load ptr, ptr %3, align 8 %5 = insertvalue { ptr, ptr } undef, ptr %4, 0 @@ -225,8 +225,8 @@ _llgo_0: %7 = extractvalue { ptr, ptr } %6, 1 %8 = extractvalue { ptr, ptr } %6, 0 %9 = call i64 %8(ptr %7) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } @@ -234,215 +234,215 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) %3 = getelementptr inbounds %main.T, ptr %2, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 5 }, ptr %3, align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 5 }, ptr %3, align 8 + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) store i64 100, ptr %4, align 4 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) store double 1.001000e+02, ptr %5, align 8 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 1) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 1) store i8 127, ptr %6, align 1 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) %8 = getelementptr inbounds i64, ptr %7, i64 0 store i64 200, ptr %8, align 4 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) %10 = getelementptr inbounds %main.T5, ptr %9, i32 0, i32 0 store i64 300, ptr %10, align 4 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) store %main.T6 { ptr @"__llgo_stub.main.main$1", ptr null }, ptr %11, align 8 %12 = load %main.T, ptr %2, align 8 %13 = load ptr, ptr @_llgo_main.T, align 8 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store %main.T %12, ptr %14, align 8 %15 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 %16 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %16, ptr %13) - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %17, 0 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %18, ptr %14, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %19) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %16, ptr %13) + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %17, 0 + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %18, ptr %14, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %19) %20 = load ptr, ptr @"*_llgo_main.T", align 8 %21 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %22 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %21, ptr %20) - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %22, 0 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %23, ptr %2, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %24) + %22 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %21, ptr %20) + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %22, 0 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %23, ptr %2, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %24) %25 = load i64, ptr %4, align 4 %26 = load ptr, ptr @_llgo_main.T1, align 8 %27 = inttoptr i64 %25 to ptr %28 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %29 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %28, ptr %26) - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %29, 0 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %30, ptr %27, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %31) + %29 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %28, ptr %26) + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %29, 0 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %30, ptr %27, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %31) %32 = load ptr, ptr @"*_llgo_main.T1", align 8 %33 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %33, ptr %32) - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %34, 0 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %35, ptr %4, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %36) + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %33, ptr %32) + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %34, 0 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %35, ptr %4, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %36) %37 = load double, ptr %5, align 8 %38 = load ptr, ptr @_llgo_main.T2, align 8 %39 = bitcast double %37 to i64 %40 = inttoptr i64 %39 to ptr %41 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %42 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %41, ptr %38) - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %42, 0 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %43, ptr %40, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %44) + %42 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %41, ptr %38) + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %42, 0 + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %43, ptr %40, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %44) %45 = load ptr, ptr @"*_llgo_main.T2", align 8 %46 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %47 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %46, ptr %45) - %48 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %47, 0 - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %48, ptr %5, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %49) + %47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %46, ptr %45) + %48 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %47, 0 + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %48, ptr %5, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %49) %50 = load ptr, ptr @_llgo_main.T3, align 8 %51 = load ptr, ptr @"*_llgo_main.T3", align 8 %52 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %53 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %52, ptr %51) - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %53, 0 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %54, ptr %6, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %55) + %53 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %52, ptr %51) + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %53, 0 + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %54, ptr %6, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %55) %56 = load [1 x i64], ptr %7, align 4 %57 = load ptr, ptr @_llgo_main.T4, align 8 %58 = extractvalue [1 x i64] %56, 0 %59 = inttoptr i64 %58 to ptr %60 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %61 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %60, ptr %57) - %62 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %61, 0 - %63 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %62, ptr %59, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %63) + %61 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %60, ptr %57) + %62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %61, 0 + %63 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %62, ptr %59, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %63) %64 = load ptr, ptr @"*_llgo_main.T4", align 8 %65 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %66 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %65, ptr %64) - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %66, 0 - %68 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %67, ptr %7, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %68) + %66 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %65, ptr %64) + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %66, 0 + %68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %67, ptr %7, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %68) %69 = load %main.T5, ptr %9, align 4 %70 = load ptr, ptr @_llgo_main.T5, align 8 %71 = extractvalue %main.T5 %69, 0 %72 = inttoptr i64 %71 to ptr %73 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %74 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %73, ptr %70) - %75 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %74, 0 - %76 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %75, ptr %72, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %76) + %74 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %73, ptr %70) + %75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %74, 0 + %76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %75, ptr %72, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %76) %77 = load ptr, ptr @"*_llgo_main.T5", align 8 %78 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %79 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %78, ptr %77) - %80 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %79, 0 - %81 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %80, ptr %9, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %81) + %79 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %78, ptr %77) + %80 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %79, 0 + %81 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %80, ptr %9, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %81) %82 = load %main.T6, ptr %11, align 8 %83 = load ptr, ptr @_llgo_main.T6, align 8 - %84 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %84 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store %main.T6 %82, ptr %84, align 8 %85 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %86 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %85, ptr %83) - %87 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %86, 0 - %88 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %87, ptr %84, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %88) + %86 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %85, ptr %83) + %87 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %86, 0 + %88 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %87, ptr %84, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %88) %89 = load ptr, ptr @"*_llgo_main.T6", align 8 %90 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %91 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %90, ptr %89) - %92 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %91, 0 - %93 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %92, ptr %11, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %93) - %94 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) + %91 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %90, ptr %89) + %92 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %91, 0 + %93 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %92, ptr %11, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %93) + %94 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) %95 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %96 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %95, ptr %94) - %97 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %96, 0 - %98 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %97, ptr null, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %98) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %96 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %95, ptr %94) + %97 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %96, 0 + %98 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %97, ptr null, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %98) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %99 = load ptr, ptr @"*_llgo_main.T", align 8 %100 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 %101 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 %102 = load ptr, ptr @"_llgo_iface$jwmSdgh1zvY_TDIgLzCkvkbiyrdwl9N806DH0JGcyMI", align 8 - %103 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %102, ptr %99) - %104 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %103, 0 - %105 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %104, ptr %2, 1 - %106 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %105) - %107 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %105, 1 + %103 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %102, ptr %99) + %104 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %103, 0 + %105 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %104, ptr %2, 1 + %106 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %105) + %107 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %105, 1 %108 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %109 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %108, ptr %106) - %110 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %109, 0 - %111 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %110, ptr %107, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %111) + %109 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %108, ptr %106) + %110 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %109, 0 + %111 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %110, ptr %107, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %111) %112 = alloca %main.T, align 8 call void @llvm.memset(ptr %112, i8 0, i64 16, i1 false) %113 = getelementptr inbounds %main.T, ptr %112, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 5 }, ptr %113, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 5 }, ptr %113, align 8 %114 = load %main.T, ptr %112, align 8 %115 = load ptr, ptr @_llgo_main.T, align 8 - %116 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %116 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store %main.T %114, ptr %116, align 8 - %117 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %115, 0 - %118 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %117, ptr %116, 1 - %119 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %118, 0 + %117 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %115, 0 + %118 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %117, ptr %116, 1 + %119 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %118, 0 %120 = load ptr, ptr @_llgo_main.I, align 8 - %121 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %120, ptr %119) + %121 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %120, ptr %119) br i1 %121, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %122 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %118, 1 + %122 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %118, 1 %123 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %124 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %123, ptr %119) - %125 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %124, 0 - %126 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %125, ptr %122, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %126) - %127 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %118, 0 + %124 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %123, ptr %119) + %125 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %124, 0 + %126 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %125, ptr %122, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %126) + %127 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %118, 0 %128 = load ptr, ptr @_llgo_any, align 8 - %129 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %128, ptr %127) + %129 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %128, ptr %127) br i1 %129, label %_llgo_3, label %_llgo_4 _llgo_2: ; preds = %_llgo_0 %130 = load ptr, ptr @_llgo_string, align 8 - %131 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 21 }, ptr %131, align 8 - %132 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %130, 0 - %133 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %132, ptr %131, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %133) + %131 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 21 }, ptr %131, align 8 + %132 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %130, 0 + %133 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %132, ptr %131, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %133) unreachable _llgo_3: ; preds = %_llgo_1 - %134 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %118, 1 - %135 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %127, 0 - %136 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %135, ptr %134, 1 - %137 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %136, 0 + %134 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %118, 1 + %135 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %127, 0 + %136 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %135, ptr %134, 1 + %137 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %136, 0 %138 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %139 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %138, ptr %137) + %139 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %138, ptr %137) br i1 %139, label %_llgo_5, label %_llgo_6 _llgo_4: ; preds = %_llgo_1 %140 = load ptr, ptr @_llgo_string, align 8 - %141 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 21 }, ptr %141, align 8 - %142 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %140, 0 - %143 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %142, ptr %141, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %143) + %141 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 21 }, ptr %141, align 8 + %142 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %140, 0 + %143 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %142, ptr %141, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %143) unreachable _llgo_5: ; preds = %_llgo_3 - %144 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %136, 1 + %144 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %136, 1 %145 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 - %146 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %145, ptr %137) - %147 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %146, 0 - %148 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %147, ptr %144, 1 - call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %148) + %146 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %145, ptr %137) + %147 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %146, 0 + %148 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %147, ptr %144, 1 + call void @main.invoke(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %148) ret i32 0 _llgo_6: ; preds = %_llgo_3 %149 = load ptr, ptr @_llgo_string, align 8 - %150 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 21 }, ptr %150, align 8 - %151 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %149, 0 - %152 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %151, ptr %150, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %152) + %150 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 21 }, ptr %150, align 8 + %151 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %149, 0 + %152 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %151, ptr %150, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %152) unreachable } @@ -454,19 +454,19 @@ _llgo_0: ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double) -declare ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) define linkonce i64 @"__llgo_stub.main.main$1"(ptr %0) { _llgo_0: @@ -476,7 +476,7 @@ _llgo_0: define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 16, i64 1, i64 2) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 16, i64 1, i64 2) %1 = load ptr, ptr @_llgo_main.T, align 8 %2 = icmp eq ptr %1, null br i1 %2, label %_llgo_1, label %_llgo_2 @@ -491,21 +491,21 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %5, ptr @_llgo_string, align 8 br label %_llgo_4 _llgo_4: ; preds = %_llgo_3, %_llgo_2 %6 = load ptr, ptr @_llgo_string, align 8 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %8 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 1 }, ptr %7, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %10 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %9, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %8, ptr %10, align 8 - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %9, 0 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %11, i64 1, 1 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %12, i64 1, 2 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %13) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %8 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 1 }, ptr %7, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %10 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %9, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %8, ptr %10, align 8 + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %9, 0 + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %11, i64 1, 1 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %12, i64 1, 2 + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %13) store ptr %14, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8 %15 = load ptr, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8 br i1 %2, label %_llgo_5, label %_llgo_6 @@ -522,7 +522,7 @@ _llgo_6: ; preds = %_llgo_12, %_llgo_4 br i1 %20, label %_llgo_13, label %_llgo_14 _llgo_7: ; preds = %_llgo_5 - %21 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %21, ptr @_llgo_int, align 8 br label %_llgo_8 @@ -534,95 +534,95 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_5 br i1 %25, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %26, 0 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %27, i64 0, 1 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %28, i64 0, 2 - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %26, 0 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %27, i64 0, 1 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %28, i64 0, 2 + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %31 = getelementptr ptr, ptr %30, i64 0 store ptr %23, ptr %31, align 8 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %30, 0 - %33 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %32, i64 1, 1 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %33, i64 1, 2 - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %29, %"github.com/goplus/llgo/internal/runtime.Slice" %34, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %35) + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %30, 0 + %33 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %32, i64 1, 1 + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %33, i64 1, 2 + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %34, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %35) store ptr %35, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 br label %_llgo_10 _llgo_10: ; preds = %_llgo_9, %_llgo_8 %36 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %37 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %36, 1 - %38 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %37, ptr @"main.(*T).Invoke", 2 - %39 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %38, ptr @"main.(*T).Invoke", 3 - %40 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %36, 1 - %41 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %40, ptr @"main.(*T).Invoke", 2 - %42 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %41, ptr @main.T.Invoke, 3 + %37 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %36, 1 + %38 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %37, ptr @"main.(*T).Invoke", 2 + %39 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %38, ptr @"main.(*T).Invoke", 3 + %40 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %36, 1 + %41 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %40, ptr @"main.(*T).Invoke", 2 + %42 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %41, ptr @main.T.Invoke, 3 %43 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 %44 = icmp eq ptr %43, null br i1 %44, label %_llgo_11, label %_llgo_12 _llgo_11: ; preds = %_llgo_10 - %45 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %46 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %45, 0 - %47 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %46, i64 0, 1 - %48 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %47, i64 0, 2 - %49 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %50 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %49, 0 - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %50, i64 0, 1 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %51, i64 0, 2 - %53 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %48, %"github.com/goplus/llgo/internal/runtime.Slice" %52, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %53) + %45 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %46 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %45, 0 + %47 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %46, i64 0, 1 + %48 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %47, i64 0, 2 + %49 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %50 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %49, 0 + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %50, i64 0, 1 + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %51, i64 0, 2 + %53 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %48, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %52, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %53) store ptr %53, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 br label %_llgo_12 _llgo_12: ; preds = %_llgo_11, %_llgo_10 %54 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %55 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @12, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %54, 1 - %56 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %55, ptr @"main.(*T).Method", 2 - %57 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %56, ptr @"main.(*T).Method", 3 - %58 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %59 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %58, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %42, ptr %59, align 8 - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %58, 0 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, i64 1, 1 - %62 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %61, i64 1, 2 - %63 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %64 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %39, ptr %64, align 8 - %65 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %57, ptr %65, align 8 - %66 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %63, 0 - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %66, i64 2, 1 - %68 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %67, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, ptr %15, %"github.com/goplus/llgo/internal/runtime.Slice" %62, %"github.com/goplus/llgo/internal/runtime.Slice" %68) + %55 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @12, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %54, 1 + %56 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %55, ptr @"main.(*T).Method", 2 + %57 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %56, ptr @"main.(*T).Method", 3 + %58 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %59 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %58, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %42, ptr %59, align 8 + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %58, 0 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, i64 1, 1 + %62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, i64 1, 2 + %63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %64 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %63, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %39, ptr %64, align 8 + %65 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %63, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %57, ptr %65, align 8 + %66 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %63, 0 + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %66, i64 2, 1 + %68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %67, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %15, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %68) br label %_llgo_6 _llgo_13: ; preds = %_llgo_6 - %69 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef }, ptr %18, 1 - %70 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %71 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %70, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %69, ptr %71, align 8 - %72 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %70, 0 - %73 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %72, i64 1, 1 - %74 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %73, i64 1, 2 - %75 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %74) + %69 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef }, ptr %18, 1 + %70 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %71 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %70, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %69, ptr %71, align 8 + %72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %70, 0 + %73 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %72, i64 1, 1 + %74 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %73, i64 1, 2 + %75 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %74) store ptr %75, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8 br label %_llgo_14 _llgo_14: ; preds = %_llgo_13, %_llgo_6 - %76 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 16, i64 1, i64 2) + %76 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 16, i64 1, i64 2) %77 = load ptr, ptr @"*_llgo_main.T", align 8 %78 = icmp eq ptr %77, null br i1 %78, label %_llgo_15, label %_llgo_16 _llgo_15: ; preds = %_llgo_14 - %79 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %76) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %79) + %79 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %76) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %79) store ptr %79, ptr @"*_llgo_main.T", align 8 br label %_llgo_16 _llgo_16: ; preds = %_llgo_15, %_llgo_14 - %80 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 2 }, i64 2, i64 8, i64 1, i64 1) + %80 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 2 }, i64 2, i64 8, i64 1, i64 1) %81 = load ptr, ptr @_llgo_main.T1, align 8 %82 = icmp eq ptr %81, null br i1 %82, label %_llgo_17, label %_llgo_18 @@ -637,41 +637,41 @@ _llgo_18: ; preds = %_llgo_17, %_llgo_16 _llgo_19: ; preds = %_llgo_18 %84 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %85 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %84, 1 - %86 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %85, ptr @"main.(*T1).Invoke", 2 - %87 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %86, ptr @"main.(*T1).Invoke", 3 - %88 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %84, 1 - %89 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %88, ptr @"main.(*T1).Invoke", 2 - %90 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %89, ptr @main.T1.Invoke, 3 - %91 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %92 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %91, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %90, ptr %92, align 8 - %93 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %91, 0 - %94 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %93, i64 1, 1 - %95 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %94, i64 1, 2 - %96 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %97 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %96, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %87, ptr %97, align 8 - %98 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %96, 0 - %99 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %98, i64 1, 1 - %100 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %99, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %80, ptr %83, %"github.com/goplus/llgo/internal/runtime.Slice" %95, %"github.com/goplus/llgo/internal/runtime.Slice" %100) + %85 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %84, 1 + %86 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %85, ptr @"main.(*T1).Invoke", 2 + %87 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %86, ptr @"main.(*T1).Invoke", 3 + %88 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %84, 1 + %89 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %88, ptr @"main.(*T1).Invoke", 2 + %90 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %89, ptr @main.T1.Invoke, 3 + %91 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %92 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %91, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %90, ptr %92, align 8 + %93 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %91, 0 + %94 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %93, i64 1, 1 + %95 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %94, i64 1, 2 + %96 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %97 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %96, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %87, ptr %97, align 8 + %98 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %96, 0 + %99 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %98, i64 1, 1 + %100 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %99, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %80, ptr %83, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %95, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %100) br label %_llgo_20 _llgo_20: ; preds = %_llgo_19, %_llgo_18 - %101 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 2 }, i64 2, i64 8, i64 1, i64 1) + %101 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 2 }, i64 2, i64 8, i64 1, i64 1) %102 = load ptr, ptr @"*_llgo_main.T1", align 8 %103 = icmp eq ptr %102, null br i1 %103, label %_llgo_21, label %_llgo_22 _llgo_21: ; preds = %_llgo_20 - %104 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %101) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %104) + %104 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %101) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %104) store ptr %104, ptr @"*_llgo_main.T1", align 8 br label %_llgo_22 _llgo_22: ; preds = %_llgo_21, %_llgo_20 - %105 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @14, i64 2 }, i64 14, i64 8, i64 1, i64 1) + %105 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @14, i64 2 }, i64 14, i64 8, i64 1, i64 1) %106 = load ptr, ptr @_llgo_main.T2, align 8 %107 = icmp eq ptr %106, null br i1 %107, label %_llgo_23, label %_llgo_24 @@ -686,7 +686,7 @@ _llgo_24: ; preds = %_llgo_23, %_llgo_22 br i1 %109, label %_llgo_25, label %_llgo_26 _llgo_25: ; preds = %_llgo_24 - %110 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 46) + %110 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 46) store ptr %110, ptr @_llgo_float64, align 8 br label %_llgo_26 @@ -696,41 +696,41 @@ _llgo_26: ; preds = %_llgo_25, %_llgo_24 _llgo_27: ; preds = %_llgo_26 %112 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %113 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %112, 1 - %114 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %113, ptr @"main.(*T2).Invoke", 2 - %115 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %114, ptr @"main.(*T2).Invoke", 3 - %116 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %112, 1 - %117 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %116, ptr @"main.(*T2).Invoke", 2 - %118 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %117, ptr @main.T2.Invoke, 3 - %119 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %120 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %119, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %118, ptr %120, align 8 - %121 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %119, 0 - %122 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %121, i64 1, 1 - %123 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %122, i64 1, 2 - %124 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %125 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %124, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %115, ptr %125, align 8 - %126 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %124, 0 - %127 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %126, i64 1, 1 - %128 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %127, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %105, ptr %111, %"github.com/goplus/llgo/internal/runtime.Slice" %123, %"github.com/goplus/llgo/internal/runtime.Slice" %128) + %113 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %112, 1 + %114 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %113, ptr @"main.(*T2).Invoke", 2 + %115 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %114, ptr @"main.(*T2).Invoke", 3 + %116 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %112, 1 + %117 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %116, ptr @"main.(*T2).Invoke", 2 + %118 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %117, ptr @main.T2.Invoke, 3 + %119 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %120 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %119, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %118, ptr %120, align 8 + %121 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %119, 0 + %122 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %121, i64 1, 1 + %123 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %122, i64 1, 2 + %124 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %125 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %124, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %115, ptr %125, align 8 + %126 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %124, 0 + %127 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %126, i64 1, 1 + %128 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %127, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %105, ptr %111, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %123, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %128) br label %_llgo_28 _llgo_28: ; preds = %_llgo_27, %_llgo_26 - %129 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @14, i64 2 }, i64 14, i64 8, i64 1, i64 1) + %129 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @14, i64 2 }, i64 14, i64 8, i64 1, i64 1) %130 = load ptr, ptr @"*_llgo_main.T2", align 8 %131 = icmp eq ptr %130, null br i1 %131, label %_llgo_29, label %_llgo_30 _llgo_29: ; preds = %_llgo_28 - %132 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %129) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %132) + %132 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %129) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %132) store ptr %132, ptr @"*_llgo_main.T2", align 8 br label %_llgo_30 _llgo_30: ; preds = %_llgo_29, %_llgo_28 - %133 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 2 }, i64 3, i64 1, i64 0, i64 1) + %133 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 2 }, i64 3, i64 1, i64 0, i64 1) %134 = load ptr, ptr @_llgo_main.T3, align 8 %135 = icmp eq ptr %134, null br i1 %135, label %_llgo_31, label %_llgo_32 @@ -745,7 +745,7 @@ _llgo_32: ; preds = %_llgo_31, %_llgo_30 br i1 %137, label %_llgo_33, label %_llgo_34 _llgo_33: ; preds = %_llgo_32 - %138 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35) + %138 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 35) store ptr %138, ptr @_llgo_int8, align 8 br label %_llgo_34 @@ -755,32 +755,32 @@ _llgo_34: ; preds = %_llgo_33, %_llgo_32 _llgo_35: ; preds = %_llgo_34 %140 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %141 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %140, 1 - %142 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %141, ptr @"main.(*T3).Invoke", 2 - %143 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %142, ptr @"main.(*T3).Invoke", 3 - %144 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %145 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %144, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %143, ptr %145, align 8 - %146 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %144, 0 - %147 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %146, i64 1, 1 - %148 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %147, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %133, ptr %139, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %148) + %141 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %140, 1 + %142 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %141, ptr @"main.(*T3).Invoke", 2 + %143 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %142, ptr @"main.(*T3).Invoke", 3 + %144 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %145 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %144, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %143, ptr %145, align 8 + %146 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %144, 0 + %147 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %146, i64 1, 1 + %148 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %147, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %133, ptr %139, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %148) br label %_llgo_36 _llgo_36: ; preds = %_llgo_35, %_llgo_34 - %149 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 2 }, i64 3, i64 1, i64 0, i64 1) + %149 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 2 }, i64 3, i64 1, i64 0, i64 1) %150 = load ptr, ptr @"*_llgo_main.T3", align 8 %151 = icmp eq ptr %150, null br i1 %151, label %_llgo_37, label %_llgo_38 _llgo_37: ; preds = %_llgo_36 - %152 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %149) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %152) + %152 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %149) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %152) store ptr %152, ptr @"*_llgo_main.T3", align 8 br label %_llgo_38 _llgo_38: ; preds = %_llgo_37, %_llgo_36 - %153 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @16, i64 2 }, i64 17, i64 8, i64 1, i64 1) + %153 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @16, i64 2 }, i64 17, i64 8, i64 1, i64 1) %154 = load ptr, ptr @_llgo_main.T4, align 8 %155 = icmp eq ptr %154, null br i1 %155, label %_llgo_39, label %_llgo_40 @@ -795,8 +795,8 @@ _llgo_40: ; preds = %_llgo_39, %_llgo_38 br i1 %157, label %_llgo_41, label %_llgo_42 _llgo_41: ; preds = %_llgo_40 - %158 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %159 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 1, ptr %158) + %158 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %159 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 1, ptr %158) store ptr %159, ptr @"[1]_llgo_int", align 8 br label %_llgo_42 @@ -806,41 +806,41 @@ _llgo_42: ; preds = %_llgo_41, %_llgo_40 _llgo_43: ; preds = %_llgo_42 %161 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %162 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %161, 1 - %163 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %162, ptr @"main.(*T4).Invoke", 2 - %164 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %163, ptr @"main.(*T4).Invoke", 3 - %165 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %161, 1 - %166 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %165, ptr @"main.(*T4).Invoke", 2 - %167 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %166, ptr @main.T4.Invoke, 3 - %168 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %169 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %168, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %167, ptr %169, align 8 - %170 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %168, 0 - %171 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %170, i64 1, 1 - %172 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %171, i64 1, 2 - %173 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %174 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %173, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %164, ptr %174, align 8 - %175 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %173, 0 - %176 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %175, i64 1, 1 - %177 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %176, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %153, ptr %160, %"github.com/goplus/llgo/internal/runtime.Slice" %172, %"github.com/goplus/llgo/internal/runtime.Slice" %177) + %162 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %161, 1 + %163 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %162, ptr @"main.(*T4).Invoke", 2 + %164 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %163, ptr @"main.(*T4).Invoke", 3 + %165 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %161, 1 + %166 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %165, ptr @"main.(*T4).Invoke", 2 + %167 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %166, ptr @main.T4.Invoke, 3 + %168 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %169 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %168, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %167, ptr %169, align 8 + %170 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %168, 0 + %171 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %170, i64 1, 1 + %172 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %171, i64 1, 2 + %173 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %174 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %173, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %164, ptr %174, align 8 + %175 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %173, 0 + %176 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %175, i64 1, 1 + %177 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %176, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %153, ptr %160, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %172, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %177) br label %_llgo_44 _llgo_44: ; preds = %_llgo_43, %_llgo_42 - %178 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @16, i64 2 }, i64 17, i64 8, i64 1, i64 1) + %178 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @16, i64 2 }, i64 17, i64 8, i64 1, i64 1) %179 = load ptr, ptr @"*_llgo_main.T4", align 8 %180 = icmp eq ptr %179, null br i1 %180, label %_llgo_45, label %_llgo_46 _llgo_45: ; preds = %_llgo_44 - %181 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %178) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %181) + %181 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %178) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %181) store ptr %181, ptr @"*_llgo_main.T4", align 8 br label %_llgo_46 _llgo_46: ; preds = %_llgo_45, %_llgo_44 - %182 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 2 }, i64 25, i64 8, i64 1, i64 1) + %182 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 2 }, i64 25, i64 8, i64 1, i64 1) %183 = load ptr, ptr @_llgo_main.T5, align 8 %184 = icmp eq ptr %183, null br i1 %184, label %_llgo_47, label %_llgo_48 @@ -850,56 +850,56 @@ _llgo_47: ; preds = %_llgo_46 br label %_llgo_48 _llgo_48: ; preds = %_llgo_47, %_llgo_46 - %185 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %186 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 1 }, ptr %185, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %187 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %188 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %187, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %186, ptr %188, align 8 - %189 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %187, 0 - %190 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %189, i64 1, 1 - %191 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %190, i64 1, 2 - %192 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %191) + %185 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %186 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 1 }, ptr %185, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %187 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %188 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %187, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %186, ptr %188, align 8 + %189 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %187, 0 + %190 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %189, i64 1, 1 + %191 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %190, i64 1, 2 + %192 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %191) store ptr %192, ptr @"main.struct$eovYmOhZg4X0zMSsuscSshndnbbAGvB2E3cyG8E7Y4U", align 8 %193 = load ptr, ptr @"main.struct$eovYmOhZg4X0zMSsuscSshndnbbAGvB2E3cyG8E7Y4U", align 8 br i1 %184, label %_llgo_49, label %_llgo_50 _llgo_49: ; preds = %_llgo_48 %194 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %195 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %194, 1 - %196 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %195, ptr @"main.(*T5).Invoke", 2 - %197 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %196, ptr @"main.(*T5).Invoke", 3 - %198 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %194, 1 - %199 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %198, ptr @"main.(*T5).Invoke", 2 - %200 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %199, ptr @main.T5.Invoke, 3 - %201 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %202 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %201, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %200, ptr %202, align 8 - %203 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %201, 0 - %204 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %203, i64 1, 1 - %205 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %204, i64 1, 2 - %206 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %207 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %206, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %197, ptr %207, align 8 - %208 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %206, 0 - %209 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %208, i64 1, 1 - %210 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %209, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %182, ptr %193, %"github.com/goplus/llgo/internal/runtime.Slice" %205, %"github.com/goplus/llgo/internal/runtime.Slice" %210) + %195 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %194, 1 + %196 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %195, ptr @"main.(*T5).Invoke", 2 + %197 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %196, ptr @"main.(*T5).Invoke", 3 + %198 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %194, 1 + %199 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %198, ptr @"main.(*T5).Invoke", 2 + %200 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %199, ptr @main.T5.Invoke, 3 + %201 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %202 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %201, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %200, ptr %202, align 8 + %203 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %201, 0 + %204 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %203, i64 1, 1 + %205 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %204, i64 1, 2 + %206 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %207 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %206, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %197, ptr %207, align 8 + %208 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %206, 0 + %209 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %208, i64 1, 1 + %210 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %209, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %182, ptr %193, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %205, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %210) br label %_llgo_50 _llgo_50: ; preds = %_llgo_49, %_llgo_48 - %211 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 2 }, i64 25, i64 8, i64 1, i64 1) + %211 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 2 }, i64 25, i64 8, i64 1, i64 1) %212 = load ptr, ptr @"*_llgo_main.T5", align 8 %213 = icmp eq ptr %212, null br i1 %213, label %_llgo_51, label %_llgo_52 _llgo_51: ; preds = %_llgo_50 - %214 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %211) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %214) + %214 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %211) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %214) store ptr %214, ptr @"*_llgo_main.T5", align 8 br label %_llgo_52 _llgo_52: ; preds = %_llgo_51, %_llgo_50 - %215 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 2 }, i64 25, i64 24, i64 1, i64 1) + %215 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 2 }, i64 25, i64 24, i64 1, i64 1) %216 = load ptr, ptr @_llgo_main.T6, align 8 %217 = icmp eq ptr %216, null br i1 %217, label %_llgo_53, label %_llgo_54 @@ -915,73 +915,73 @@ _llgo_54: ; preds = %_llgo_53, %_llgo_52 br i1 %220, label %_llgo_55, label %_llgo_56 _llgo_55: ; preds = %_llgo_54 - %221 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %221) + %221 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %221) store ptr %221, ptr @_llgo_Pointer, align 8 br label %_llgo_56 _llgo_56: ; preds = %_llgo_55, %_llgo_54 %222 = load ptr, ptr @_llgo_Pointer, align 8 %223 = load ptr, ptr @_llgo_int, align 8 - %224 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %225 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %224, 0 - %226 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %225, i64 0, 1 - %227 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %226, i64 0, 2 - %228 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %224 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %225 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %224, 0 + %226 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %225, i64 0, 1 + %227 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %226, i64 0, 2 + %228 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %229 = getelementptr ptr, ptr %228, i64 0 store ptr %223, ptr %229, align 8 - %230 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %228, 0 - %231 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %230, i64 1, 1 - %232 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %231, i64 1, 2 - %233 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %227, %"github.com/goplus/llgo/internal/runtime.Slice" %232, i1 false) - %234 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @20, i64 2 }, ptr %233, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %235 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %236 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 5 }, ptr %235, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %237 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %238 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %237, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %234, ptr %238, align 8 - %239 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %237, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %236, ptr %239, align 8 - %240 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %237, 0 - %241 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %240, i64 2, 1 - %242 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %241, i64 2, 2 - %243 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %242) + %230 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %228, 0 + %231 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %230, i64 1, 1 + %232 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %231, i64 1, 2 + %233 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %227, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %232, i1 false) + %234 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @20, i64 2 }, ptr %233, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %235 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %236 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 5 }, ptr %235, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %237 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %238 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %237, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %234, ptr %238, align 8 + %239 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %237, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %236, ptr %239, align 8 + %240 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %237, 0 + %241 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %240, i64 2, 1 + %242 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %241, i64 2, 2 + %243 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %242) store ptr %243, ptr @"main.struct$TWlEC03isGYe2Nyy2HYnOBsOYR1lIx43oIUpIyqvm4s", align 8 %244 = load ptr, ptr @"main.struct$TWlEC03isGYe2Nyy2HYnOBsOYR1lIx43oIUpIyqvm4s", align 8 br i1 %217, label %_llgo_57, label %_llgo_58 _llgo_57: ; preds = %_llgo_56 %245 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %246 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %245, 1 - %247 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %246, ptr @"main.(*T6).Invoke", 2 - %248 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %247, ptr @"main.(*T6).Invoke", 3 - %249 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %245, 1 - %250 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %249, ptr @"main.(*T6).Invoke", 2 - %251 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %250, ptr @main.T6.Invoke, 3 - %252 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %253 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %252, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %251, ptr %253, align 8 - %254 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %252, 0 - %255 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %254, i64 1, 1 - %256 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %255, i64 1, 2 - %257 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %258 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %257, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %248, ptr %258, align 8 - %259 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %257, 0 - %260 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %259, i64 1, 1 - %261 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %260, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %215, ptr %244, %"github.com/goplus/llgo/internal/runtime.Slice" %256, %"github.com/goplus/llgo/internal/runtime.Slice" %261) + %246 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %245, 1 + %247 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %246, ptr @"main.(*T6).Invoke", 2 + %248 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %247, ptr @"main.(*T6).Invoke", 3 + %249 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %245, 1 + %250 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %249, ptr @"main.(*T6).Invoke", 2 + %251 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %250, ptr @main.T6.Invoke, 3 + %252 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %253 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %252, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %251, ptr %253, align 8 + %254 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %252, 0 + %255 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %254, i64 1, 1 + %256 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %255, i64 1, 2 + %257 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %258 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %257, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %248, ptr %258, align 8 + %259 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %257, 0 + %260 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %259, i64 1, 1 + %261 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %260, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %215, ptr %244, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %256, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %261) br label %_llgo_58 _llgo_58: ; preds = %_llgo_57, %_llgo_56 - %262 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 2 }, i64 25, i64 24, i64 1, i64 1) + %262 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 2 }, i64 25, i64 24, i64 1, i64 1) %263 = load ptr, ptr @"*_llgo_main.T6", align 8 %264 = icmp eq ptr %263, null br i1 %264, label %_llgo_59, label %_llgo_60 _llgo_59: ; preds = %_llgo_58 - %265 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %262) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %265) + %265 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %262) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %265) store ptr %265, ptr @"*_llgo_main.T6", align 8 br label %_llgo_60 @@ -993,22 +993,22 @@ _llgo_60: ; preds = %_llgo_59, %_llgo_58 br i1 %269, label %_llgo_61, label %_llgo_62 _llgo_61: ; preds = %_llgo_60 - %270 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef }, ptr %266, 1 - %271 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @12, i64 6 }, ptr undef }, ptr %267, 1 - %272 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) - %273 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %272, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %270, ptr %273, align 8 - %274 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %272, i64 1 - store %"github.com/goplus/llgo/internal/abi.Imethod" %271, ptr %274, align 8 - %275 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %272, 0 - %276 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %275, i64 2, 1 - %277 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %276, i64 2, 2 - %278 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %277) + %270 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef }, ptr %266, 1 + %271 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @12, i64 6 }, ptr undef }, ptr %267, 1 + %272 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) + %273 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %272, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %270, ptr %273, align 8 + %274 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %272, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %271, ptr %274, align 8 + %275 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %272, 0 + %276 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %275, i64 2, 1 + %277 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %276, i64 2, 2 + %278 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %277) store ptr %278, ptr @"_llgo_iface$jwmSdgh1zvY_TDIgLzCkvkbiyrdwl9N806DH0JGcyMI", align 8 br label %_llgo_62 _llgo_62: ; preds = %_llgo_61, %_llgo_60 - %279 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 1 }) + %279 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 1 }) %280 = load ptr, ptr @_llgo_main.I, align 8 %281 = icmp eq ptr %280, null br i1 %281, label %_llgo_63, label %_llgo_64 @@ -1022,14 +1022,14 @@ _llgo_64: ; preds = %_llgo_63, %_llgo_62 br i1 %281, label %_llgo_65, label %_llgo_66 _llgo_65: ; preds = %_llgo_64 - %283 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef }, ptr %282, 1 - %284 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %285 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %284, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %283, ptr %285, align 8 - %286 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %284, 0 - %287 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %286, i64 1, 1 - %288 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %287, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %279, %"github.com/goplus/llgo/internal/runtime.Slice" %288) + %283 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef }, ptr %282, 1 + %284 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %285 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %284, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %283, ptr %285, align 8 + %286 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %284, 0 + %287 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %286, i64 1, 1 + %288 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %287, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %279, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %288) br label %_llgo_66 _llgo_66: ; preds = %_llgo_65, %_llgo_64 @@ -1038,11 +1038,11 @@ _llgo_66: ; preds = %_llgo_65, %_llgo_64 br i1 %290, label %_llgo_67, label %_llgo_68 _llgo_67: ; preds = %_llgo_66 - %291 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %292 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %291, 0 - %293 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %292, i64 0, 1 - %294 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %293, i64 0, 2 - %295 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %294) + %291 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %292 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %291, 0 + %293 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %292, i64 0, 1 + %294 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %293, i64 0, 2 + %295 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %294) store ptr %295, ptr @_llgo_any, align 8 br label %_llgo_68 @@ -1050,40 +1050,40 @@ _llgo_68: ; preds = %_llgo_67, %_llgo_66 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr, ptr) +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testgo/multiret/out.ll b/compiler/cl/_testgo/multiret/out.ll index b0e90f3f..887bdbf1 100644 --- a/compiler/cl/_testgo/multiret/out.ll +++ b/compiler/cl/_testgo/multiret/out.ll @@ -32,22 +32,22 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call { i64, double } @main.foo(double 2.000000e+00) %3 = extractvalue { i64, double } %2, 0 %4 = extractvalue { i64, double } %2, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double) diff --git a/compiler/cl/_testgo/print/out.ll b/compiler/cl/_testgo/print/out.ll index 5d98f8a7..adc3887e 100644 --- a/compiler/cl/_testgo/print/out.ll +++ b/compiler/cl/_testgo/print/out.ll @@ -22,19 +22,19 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 46) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 46) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 46) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 46) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64) diff --git a/compiler/cl/_testgo/reader/out.ll b/compiler/cl/_testgo/reader/out.ll index 465752fe..cb8ebdc1 100644 --- a/compiler/cl/_testgo/reader/out.ll +++ b/compiler/cl/_testgo/reader/out.ll @@ -1,20 +1,20 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%main.nopCloserWriterTo = type { %"github.com/goplus/llgo/internal/runtime.iface" } -%main.nopCloser = type { %"github.com/goplus/llgo/internal/runtime.iface" } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%main.errorString = type { %"github.com/goplus/llgo/internal/runtime.String" } -%main.stringReader = type { %"github.com/goplus/llgo/internal/runtime.String", i64, i64 } -%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%main.nopCloserWriterTo = type { %"github.com/goplus/llgo/runtime/internal/runtime.iface" } +%main.nopCloser = type { %"github.com/goplus/llgo/runtime/internal/runtime.iface" } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%main.errorString = type { %"github.com/goplus/llgo/runtime/internal/runtime.String" } +%main.stringReader = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64 } +%"github.com/goplus/llgo/runtime/abi.Imethod" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } -@main.EOF = global %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer, align 8 -@main.ErrShortWrite = global %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer, align 8 +@main.EOF = global %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer, align 8 +@main.ErrShortWrite = global %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer, align 8 @"main.init$guard" = global i1 false, align 1 @_llgo_main.WriterTo = linkonce global ptr null, align 8 @0 = private unnamed_addr constant [4 x i8] c"main", align 1 @@ -93,120 +93,120 @@ source_filename = "main" @36 = private unnamed_addr constant [62 x i8] c"strings.Reader.UnreadRune: previous operation was not ReadRune", align 1 @37 = private unnamed_addr constant [48 x i8] c"stringsReader.WriteTo: invalid WriteString count", align 1 -define %"github.com/goplus/llgo/internal/runtime.iface" @main.NopCloser(%"github.com/goplus/llgo/internal/runtime.iface" %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.NopCloser(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %0) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %0) %2 = load ptr, ptr @_llgo_main.WriterTo, align 8 - %3 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %2, ptr %1) + %3 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %2, ptr %1) br i1 %3, label %_llgo_3, label %_llgo_4 _llgo_1: ; preds = %_llgo_5 %4 = alloca %main.nopCloserWriterTo, align 8 call void @llvm.memset(ptr %4, i8 0, i64 16, i1 false) %5 = getelementptr inbounds %main.nopCloserWriterTo, ptr %4, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.iface" %0, ptr %5, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.iface" %0, ptr %5, align 8 %6 = load %main.nopCloserWriterTo, ptr %4, align 8 %7 = load ptr, ptr @_llgo_main.nopCloserWriterTo, align 8 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store %main.nopCloserWriterTo %6, ptr %8, align 8 %9 = load ptr, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8 %10 = load ptr, ptr @"_llgo_iface$L2Ik-AJcd0jsoBw5fQ07pQpfUM-kh78Wn2bOeak6M3I", align 8 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %10, ptr %7) - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %11, 0 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %12, ptr %8, 1 - ret %"github.com/goplus/llgo/internal/runtime.iface" %13 + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %10, ptr %7) + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %11, 0 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %12, ptr %8, 1 + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %13 _llgo_2: ; preds = %_llgo_5 %14 = alloca %main.nopCloser, align 8 call void @llvm.memset(ptr %14, i8 0, i64 16, i1 false) %15 = getelementptr inbounds %main.nopCloser, ptr %14, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.iface" %0, ptr %15, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.iface" %0, ptr %15, align 8 %16 = load %main.nopCloser, ptr %14, align 8 %17 = load ptr, ptr @_llgo_main.nopCloser, align 8 - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store %main.nopCloser %16, ptr %18, align 8 %19 = load ptr, ptr @"_llgo_iface$L2Ik-AJcd0jsoBw5fQ07pQpfUM-kh78Wn2bOeak6M3I", align 8 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %19, ptr %17) - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %20, 0 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %21, ptr %18, 1 - ret %"github.com/goplus/llgo/internal/runtime.iface" %22 + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %19, ptr %17) + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %20, 0 + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %21, ptr %18, 1 + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %22 _llgo_3: ; preds = %_llgo_0 - %23 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %0, 1 + %23 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %0, 1 %24 = load ptr, ptr @"_llgo_iface$eN81k1zqixGTyagHw_4nqH4mGfwwehTOCTXUlbT9kzk", align 8 - %25 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %24, ptr %1) - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %25, 0 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %26, ptr %23, 1 - %28 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %27, 0 - %29 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %28, i1 true, 1 + %25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %24, ptr %1) + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %25, 0 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %26, ptr %23, 1 + %28 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %27, 0 + %29 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %28, i1 true, 1 br label %_llgo_5 _llgo_4: ; preds = %_llgo_0 br label %_llgo_5 _llgo_5: ; preds = %_llgo_4, %_llgo_3 - %30 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %29, %_llgo_3 ], [ zeroinitializer, %_llgo_4 ] - %31 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %30, 0 - %32 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %30, 1 + %30 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } [ %29, %_llgo_3 ], [ zeroinitializer, %_llgo_4 ] + %31 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %30, 0 + %32 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %30, 1 br i1 %32, label %_llgo_1, label %_llgo_2 } -define { %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.iface" } @main.ReadAll(%"github.com/goplus/llgo/internal/runtime.iface" %0) { +define { %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @main.ReadAll(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 512) - %2 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %1, i64 1, i64 512, i64 0, i64 0, i64 512) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 512) + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %1, i64 1, i64 512, i64 0, i64 0, i64 512) br label %_llgo_1 _llgo_1: ; preds = %_llgo_6, %_llgo_3, %_llgo_0 - %3 = phi %"github.com/goplus/llgo/internal/runtime.Slice" [ %2, %_llgo_0 ], [ %24, %_llgo_3 ], [ %61, %_llgo_6 ] - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %3, 1 - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %3, 2 - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %3, 2 - %7 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %3, 0 - %8 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %7, i64 1, i64 %6, i64 %4, i64 %5, i64 %6) - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %0) - %10 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %0, 0 + %3 = phi %"github.com/goplus/llgo/runtime/internal/runtime.Slice" [ %2, %_llgo_0 ], [ %24, %_llgo_3 ], [ %61, %_llgo_6 ] + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, 1 + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, 2 + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, 2 + %7 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, 0 + %8 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %7, i64 1, i64 %6, i64 %4, i64 %5, i64 %6) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %0) + %10 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %0, 0 %11 = getelementptr ptr, ptr %10, i64 3 %12 = load ptr, ptr %11, align 8 %13 = insertvalue { ptr, ptr } undef, ptr %12, 0 %14 = insertvalue { ptr, ptr } %13, ptr %9, 1 %15 = extractvalue { ptr, ptr } %14, 1 %16 = extractvalue { ptr, ptr } %14, 0 - %17 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %16(ptr %15, %"github.com/goplus/llgo/internal/runtime.Slice" %8) - %18 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %17, 0 - %19 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %17, 1 - %20 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %3, 1 + %17 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %16(ptr %15, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8) + %18 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %17, 0 + %19 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %17, 1 + %20 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, 1 %21 = add i64 %20, %18 - %22 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %3, 2 - %23 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %3, 0 - %24 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %23, i64 1, i64 %22, i64 0, i64 %21, i64 %22) - %25 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %19) - %26 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %19, 1 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %25, 0 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %27, ptr %26, 1 - %29 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %29, 0 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %30, ptr null, 1 - %32 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %28, %"github.com/goplus/llgo/internal/runtime.eface" %31) + %22 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, 2 + %23 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, 0 + %24 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %23, i64 1, i64 %22, i64 0, i64 %21, i64 %22) + %25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %19) + %26 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %19, 1 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %25, 0 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %27, ptr %26, 1 + %29 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %29, 0 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %30, ptr null, 1 + %32 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %28, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %31) %33 = xor i1 %32, true br i1 %33, label %_llgo_2, label %_llgo_3 _llgo_2: ; preds = %_llgo_1 - %34 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr @main.EOF, align 8 - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %19) - %36 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %19, 1 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %35, 0 - %38 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %37, ptr %36, 1 - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %34) - %40 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %34, 1 - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %39, 0 - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %41, ptr %40, 1 - %43 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %38, %"github.com/goplus/llgo/internal/runtime.eface" %42) + %34 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr @main.EOF, align 8 + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %19) + %36 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %19, 1 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %35, 0 + %38 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %37, ptr %36, 1 + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %34) + %40 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %34, 1 + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %39, 0 + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %41, ptr %40, 1 + %43 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %38, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %42) br i1 %43, label %_llgo_4, label %_llgo_5 _llgo_3: ; preds = %_llgo_1 - %44 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %24, 1 - %45 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %24, 2 + %44 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, 1 + %45 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, 2 %46 = icmp eq i64 %44, %45 br i1 %46, label %_llgo_6, label %_llgo_1 @@ -214,93 +214,93 @@ _llgo_4: ; preds = %_llgo_2 br label %_llgo_5 _llgo_5: ; preds = %_llgo_4, %_llgo_2 - %47 = phi %"github.com/goplus/llgo/internal/runtime.iface" [ %19, %_llgo_2 ], [ zeroinitializer, %_llgo_4 ] - %48 = insertvalue { %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.iface" } undef, %"github.com/goplus/llgo/internal/runtime.Slice" %24, 0 - %49 = insertvalue { %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.iface" } %48, %"github.com/goplus/llgo/internal/runtime.iface" %47, 1 - ret { %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.iface" } %49 + %47 = phi %"github.com/goplus/llgo/runtime/internal/runtime.iface" [ %19, %_llgo_2 ], [ zeroinitializer, %_llgo_4 ] + %48 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, 0 + %49 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %48, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %47, 1 + ret { %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %49 _llgo_6: ; preds = %_llgo_3 - %50 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 1) + %50 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 1) %51 = getelementptr inbounds i8, ptr %50, i64 0 store i8 0, ptr %51, align 1 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %50, 0 - %53 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %52, i64 1, 1 - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %53, i64 1, 2 - %55 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, 0 - %56 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, 1 - %57 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/internal/runtime.Slice" %24, ptr %55, i64 %56, i64 1) - %58 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %24, 1 - %59 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %57, 2 - %60 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %57, 0 - %61 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %60, i64 1, i64 %59, i64 0, i64 %58, i64 %59) + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %50, 0 + %53 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %52, i64 1, 1 + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %53, i64 1, 2 + %55 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, 0 + %56 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, 1 + %57 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, ptr %55, i64 %56, i64 1) + %58 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, 1 + %59 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %57, 2 + %60 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %57, 0 + %61 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %60, i64 1, i64 %59, i64 0, i64 %58, i64 %59) br label %_llgo_1 } -define { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @main.WriteString(%"github.com/goplus/llgo/internal/runtime.iface" %0, %"github.com/goplus/llgo/internal/runtime.String" %1) { +define { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @main.WriteString(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %0, %"github.com/goplus/llgo/runtime/internal/runtime.String" %1) { _llgo_0: - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %0) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %0) %3 = load ptr, ptr @_llgo_main.StringWriter, align 8 - %4 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %3, ptr %2) + %4 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %3, ptr %2) br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_1: ; preds = %_llgo_5 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %40) - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %40, 0 + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %40) + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %40, 0 %7 = getelementptr ptr, ptr %6, i64 3 %8 = load ptr, ptr %7, align 8 %9 = insertvalue { ptr, ptr } undef, ptr %8, 0 %10 = insertvalue { ptr, ptr } %9, ptr %5, 1 %11 = extractvalue { ptr, ptr } %10, 1 %12 = extractvalue { ptr, ptr } %10, 0 - %13 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %12(ptr %11, %"github.com/goplus/llgo/internal/runtime.String" %1) - %14 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %13, 0 - %15 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %13, 1 - %16 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %14, 0 - %17 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %16, %"github.com/goplus/llgo/internal/runtime.iface" %15, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %17 + %13 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %12(ptr %11, %"github.com/goplus/llgo/runtime/internal/runtime.String" %1) + %14 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %13, 0 + %15 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %13, 1 + %16 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %14, 0 + %17 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %16, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %15, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %17 _llgo_2: ; preds = %_llgo_5 - %18 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String" %1) - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %0) - %20 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %0, 0 + %18 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %1) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %0) + %20 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %0, 0 %21 = getelementptr ptr, ptr %20, i64 3 %22 = load ptr, ptr %21, align 8 %23 = insertvalue { ptr, ptr } undef, ptr %22, 0 %24 = insertvalue { ptr, ptr } %23, ptr %19, 1 %25 = extractvalue { ptr, ptr } %24, 1 %26 = extractvalue { ptr, ptr } %24, 0 - %27 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %26(ptr %25, %"github.com/goplus/llgo/internal/runtime.Slice" %18) - %28 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %27, 0 - %29 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %27, 1 - %30 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %28, 0 - %31 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %30, %"github.com/goplus/llgo/internal/runtime.iface" %29, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %31 + %27 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %26(ptr %25, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %18) + %28 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %27, 0 + %29 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %27, 1 + %30 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %28, 0 + %31 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %30, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %29, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %31 _llgo_3: ; preds = %_llgo_0 - %32 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %0, 1 + %32 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %0, 1 %33 = load ptr, ptr @"_llgo_iface$Ly4zXiUMEac-hYAMw6b6miJ1JEhGfLyBWyBOhpsRZcU", align 8 - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %33, ptr %2) - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %34, 0 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %35, ptr %32, 1 - %37 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %36, 0 - %38 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %37, i1 true, 1 + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %33, ptr %2) + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %34, 0 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %35, ptr %32, 1 + %37 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %36, 0 + %38 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %37, i1 true, 1 br label %_llgo_5 _llgo_4: ; preds = %_llgo_0 br label %_llgo_5 _llgo_5: ; preds = %_llgo_4, %_llgo_3 - %39 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %38, %_llgo_3 ], [ zeroinitializer, %_llgo_4 ] - %40 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %39, 0 - %41 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %39, 1 + %39 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } [ %38, %_llgo_3 ], [ zeroinitializer, %_llgo_4 ] + %40 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %39, 0 + %41 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.iface", i1 } %39, 1 br i1 %41, label %_llgo_1, label %_llgo_2 } -define %"github.com/goplus/llgo/internal/runtime.String" @"main.(*errorString).Error"(ptr %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.String" @"main.(*errorString).Error"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %main.errorString, ptr %0, i32 0, i32 0 - %2 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %1, align 8 - ret %"github.com/goplus/llgo/internal/runtime.String" %2 + %2 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %1, align 8 + ret %"github.com/goplus/llgo/runtime/internal/runtime.String" %2 } define void @main.init() { @@ -312,10 +312,10 @@ _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 call void @"unicode/utf8.init"() call void @"main.init$after"() - %1 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/internal/runtime.String" { ptr @14, i64 3 }) - store %"github.com/goplus/llgo/internal/runtime.iface" %1, ptr @main.EOF, align 8 - %2 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 11 }) - store %"github.com/goplus/llgo/internal/runtime.iface" %2, ptr @main.ErrShortWrite, align 8 + %1 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @14, i64 3 }) + store %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1, ptr @main.EOF, align 8 + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 11 }) + store %"github.com/goplus/llgo/runtime/internal/runtime.iface" %2, ptr @main.ErrShortWrite, align 8 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 @@ -326,204 +326,204 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) %3 = getelementptr inbounds %main.stringReader, ptr %2, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @16, i64 11 }, ptr %3, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @16, i64 11 }, ptr %3, align 8 %4 = load ptr, ptr @_llgo_main.stringReader, align 8 %5 = load ptr, ptr @"*_llgo_main.stringReader", align 8 %6 = load ptr, ptr @"_llgo_iface$OFO8Us9n8ajWCabGedeuoJ-Za2zAMk4Jh0FunAcUCFE", align 8 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %6, ptr %5) - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %7, 0 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %8, ptr %2, 1 - %10 = call { %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.iface" } @main.ReadAll(%"github.com/goplus/llgo/internal/runtime.iface" %9) - %11 = extractvalue { %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.iface" } %10, 0 - %12 = extractvalue { %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.iface" } %10, 1 - %13 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/internal/runtime.Slice" %11) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %13) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %12) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %6, ptr %5) + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %7, 0 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %8, ptr %2, 1 + %10 = call { %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @main.ReadAll(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %9) + %11 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %10, 0 + %12 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %10, 1 + %13 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %13) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %12) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -define %"github.com/goplus/llgo/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/internal/runtime.String" %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/runtime/internal/runtime.String" %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) %2 = getelementptr inbounds %main.errorString, ptr %1, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.String" %0, ptr %2, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" %0, ptr %2, align 8 %3 = load ptr, ptr @_llgo_main.errorString, align 8 %4 = load ptr, ptr @"*_llgo_main.errorString", align 8 %5 = load ptr, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %5, ptr %4) - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %6, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %7, ptr %1, 1 - ret %"github.com/goplus/llgo/internal/runtime.iface" %8 + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %5, ptr %4) + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %6, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %7, ptr %1, 1 + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %8 } -define %"github.com/goplus/llgo/internal/runtime.iface" @main.nopCloser.Close(%main.nopCloser %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.nopCloser.Close(%main.nopCloser %0) { _llgo_0: - ret %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer } -define { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @main.nopCloser.Read(%main.nopCloser %0, %"github.com/goplus/llgo/internal/runtime.Slice" %1) { +define { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @main.nopCloser.Read(%main.nopCloser %0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) { _llgo_0: %2 = alloca %main.nopCloser, align 8 call void @llvm.memset(ptr %2, i8 0, i64 16, i1 false) store %main.nopCloser %0, ptr %2, align 8 %3 = getelementptr inbounds %main.nopCloser, ptr %2, i32 0, i32 0 - %4 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %3, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %4) - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %4, 0 + %4 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %3, align 8 + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %4) + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %4, 0 %7 = getelementptr ptr, ptr %6, i64 3 %8 = load ptr, ptr %7, align 8 %9 = insertvalue { ptr, ptr } undef, ptr %8, 0 %10 = insertvalue { ptr, ptr } %9, ptr %5, 1 %11 = extractvalue { ptr, ptr } %10, 1 %12 = extractvalue { ptr, ptr } %10, 0 - %13 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %12(ptr %11, %"github.com/goplus/llgo/internal/runtime.Slice" %1) - %14 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %13, 0 - %15 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %13, 1 - %16 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %14, 0 - %17 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %16, %"github.com/goplus/llgo/internal/runtime.iface" %15, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %17 + %13 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %12(ptr %11, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) + %14 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %13, 0 + %15 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %13, 1 + %16 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %14, 0 + %17 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %16, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %15, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %17 } -define %"github.com/goplus/llgo/internal/runtime.iface" @"main.(*nopCloser).Close"(ptr %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.(*nopCloser).Close"(ptr %0) { _llgo_0: %1 = load %main.nopCloser, ptr %0, align 8 - %2 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.nopCloser.Close(%main.nopCloser %1) - ret %"github.com/goplus/llgo/internal/runtime.iface" %2 + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.nopCloser.Close(%main.nopCloser %1) + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %2 } -define { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"main.(*nopCloser).Read"(ptr %0, %"github.com/goplus/llgo/internal/runtime.Slice" %1) { +define { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"main.(*nopCloser).Read"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) { _llgo_0: %2 = getelementptr inbounds %main.nopCloser, ptr %0, i32 0, i32 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %2, align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %3) - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %3, 0 + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %2, align 8 + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %3) + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %3, 0 %6 = getelementptr ptr, ptr %5, i64 3 %7 = load ptr, ptr %6, align 8 %8 = insertvalue { ptr, ptr } undef, ptr %7, 0 %9 = insertvalue { ptr, ptr } %8, ptr %4, 1 %10 = extractvalue { ptr, ptr } %9, 1 %11 = extractvalue { ptr, ptr } %9, 0 - %12 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %11(ptr %10, %"github.com/goplus/llgo/internal/runtime.Slice" %1) - %13 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %12, 0 - %14 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %12, 1 - %15 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %13, 0 - %16 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %15, %"github.com/goplus/llgo/internal/runtime.iface" %14, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %16 + %12 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %11(ptr %10, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) + %13 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %12, 0 + %14 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %12, 1 + %15 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %13, 0 + %16 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %15, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %14, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %16 } -define %"github.com/goplus/llgo/internal/runtime.iface" @main.nopCloserWriterTo.Close(%main.nopCloserWriterTo %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.nopCloserWriterTo.Close(%main.nopCloserWriterTo %0) { _llgo_0: - ret %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer } -define { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @main.nopCloserWriterTo.Read(%main.nopCloserWriterTo %0, %"github.com/goplus/llgo/internal/runtime.Slice" %1) { +define { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @main.nopCloserWriterTo.Read(%main.nopCloserWriterTo %0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) { _llgo_0: %2 = alloca %main.nopCloserWriterTo, align 8 call void @llvm.memset(ptr %2, i8 0, i64 16, i1 false) store %main.nopCloserWriterTo %0, ptr %2, align 8 %3 = getelementptr inbounds %main.nopCloserWriterTo, ptr %2, i32 0, i32 0 - %4 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %3, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %4) - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %4, 0 + %4 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %3, align 8 + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %4) + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %4, 0 %7 = getelementptr ptr, ptr %6, i64 3 %8 = load ptr, ptr %7, align 8 %9 = insertvalue { ptr, ptr } undef, ptr %8, 0 %10 = insertvalue { ptr, ptr } %9, ptr %5, 1 %11 = extractvalue { ptr, ptr } %10, 1 %12 = extractvalue { ptr, ptr } %10, 0 - %13 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %12(ptr %11, %"github.com/goplus/llgo/internal/runtime.Slice" %1) - %14 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %13, 0 - %15 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %13, 1 - %16 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %14, 0 - %17 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %16, %"github.com/goplus/llgo/internal/runtime.iface" %15, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %17 + %13 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %12(ptr %11, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) + %14 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %13, 0 + %15 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %13, 1 + %16 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %14, 0 + %17 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %16, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %15, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %17 } -define { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @main.nopCloserWriterTo.WriteTo(%main.nopCloserWriterTo %0, %"github.com/goplus/llgo/internal/runtime.iface" %1) { +define { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @main.nopCloserWriterTo.WriteTo(%main.nopCloserWriterTo %0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1) { _llgo_0: %2 = alloca %main.nopCloserWriterTo, align 8 call void @llvm.memset(ptr %2, i8 0, i64 16, i1 false) store %main.nopCloserWriterTo %0, ptr %2, align 8 %3 = getelementptr inbounds %main.nopCloserWriterTo, ptr %2, i32 0, i32 0 - %4 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %3, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %4) + %4 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %3, align 8 + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %4) %6 = load ptr, ptr @_llgo_main.WriterTo, align 8 - %7 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %6, ptr %5) + %7 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr %6, ptr %5) br i1 %7, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %8 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %4, 1 + %8 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %4, 1 %9 = load ptr, ptr @"_llgo_iface$eN81k1zqixGTyagHw_4nqH4mGfwwehTOCTXUlbT9kzk", align 8 - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %9, ptr %5) - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %10, 0 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %11, ptr %8, 1 - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %12) - %14 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %12, 0 + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %9, ptr %5) + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %10, 0 + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %11, ptr %8, 1 + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %12) + %14 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %12, 0 %15 = getelementptr ptr, ptr %14, i64 3 %16 = load ptr, ptr %15, align 8 %17 = insertvalue { ptr, ptr } undef, ptr %16, 0 %18 = insertvalue { ptr, ptr } %17, ptr %13, 1 %19 = extractvalue { ptr, ptr } %18, 1 %20 = extractvalue { ptr, ptr } %18, 0 - %21 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %20(ptr %19, %"github.com/goplus/llgo/internal/runtime.iface" %1) - %22 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %21, 0 - %23 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %21, 1 - %24 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %22, 0 - %25 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %24, %"github.com/goplus/llgo/internal/runtime.iface" %23, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %25 + %21 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %20(ptr %19, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1) + %22 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %21, 0 + %23 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %21, 1 + %24 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %22, 0 + %25 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %24, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %23, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %25 _llgo_2: ; preds = %_llgo_0 %26 = load ptr, ptr @_llgo_string, align 8 - %27 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @30, i64 21 }, ptr %27, align 8 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %26, 0 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %28, ptr %27, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %29) + %27 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @30, i64 21 }, ptr %27, align 8 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %26, 0 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %28, ptr %27, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %29) unreachable } -define %"github.com/goplus/llgo/internal/runtime.iface" @"main.(*nopCloserWriterTo).Close"(ptr %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.(*nopCloserWriterTo).Close"(ptr %0) { _llgo_0: %1 = load %main.nopCloserWriterTo, ptr %0, align 8 - %2 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.nopCloserWriterTo.Close(%main.nopCloserWriterTo %1) - ret %"github.com/goplus/llgo/internal/runtime.iface" %2 + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.nopCloserWriterTo.Close(%main.nopCloserWriterTo %1) + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %2 } -define { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"main.(*nopCloserWriterTo).Read"(ptr %0, %"github.com/goplus/llgo/internal/runtime.Slice" %1) { +define { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"main.(*nopCloserWriterTo).Read"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) { _llgo_0: %2 = getelementptr inbounds %main.nopCloserWriterTo, ptr %0, i32 0, i32 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %2, align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %3) - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %3, 0 + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %2, align 8 + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %3) + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %3, 0 %6 = getelementptr ptr, ptr %5, i64 3 %7 = load ptr, ptr %6, align 8 %8 = insertvalue { ptr, ptr } undef, ptr %7, 0 %9 = insertvalue { ptr, ptr } %8, ptr %4, 1 %10 = extractvalue { ptr, ptr } %9, 1 %11 = extractvalue { ptr, ptr } %9, 0 - %12 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %11(ptr %10, %"github.com/goplus/llgo/internal/runtime.Slice" %1) - %13 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %12, 0 - %14 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %12, 1 - %15 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %13, 0 - %16 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %15, %"github.com/goplus/llgo/internal/runtime.iface" %14, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %16 + %12 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %11(ptr %10, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) + %13 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %12, 0 + %14 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %12, 1 + %15 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %13, 0 + %16 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %15, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %14, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %16 } -define { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"main.(*nopCloserWriterTo).WriteTo"(ptr %0, %"github.com/goplus/llgo/internal/runtime.iface" %1) { +define { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"main.(*nopCloserWriterTo).WriteTo"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1) { _llgo_0: %2 = load %main.nopCloserWriterTo, ptr %0, align 8 - %3 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @main.nopCloserWriterTo.WriteTo(%main.nopCloserWriterTo %2, %"github.com/goplus/llgo/internal/runtime.iface" %1) - %4 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %3, 0 - %5 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %3, 1 - %6 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %4, 0 - %7 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %6, %"github.com/goplus/llgo/internal/runtime.iface" %5, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %7 + %3 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @main.nopCloserWriterTo.WriteTo(%main.nopCloserWriterTo %2, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1) + %4 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %3, 0 + %5 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %3, 1 + %6 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %4, 0 + %7 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %6, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %5, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %7 } define i64 @"main.(*stringReader).Len"(ptr %0) { @@ -531,8 +531,8 @@ _llgo_0: %1 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %2 = load i64, ptr %1, align 4 %3 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %4 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %3, align 8 - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %4, 1 + %4 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %3, align 8 + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %4, 1 %6 = icmp sge i64 %2, %5 br i1 %6, label %_llgo_1, label %_llgo_2 @@ -541,124 +541,124 @@ _llgo_1: ; preds = %_llgo_0 _llgo_2: ; preds = %_llgo_0 %7 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %8 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %7, align 8 - %9 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %8, 1 + %8 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %7, align 8 + %9 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %8, 1 %10 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %11 = load i64, ptr %10, align 4 %12 = sub i64 %9, %11 ret i64 %12 } -define { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"main.(*stringReader).Read"(ptr %0, %"github.com/goplus/llgo/internal/runtime.Slice" %1) { +define { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"main.(*stringReader).Read"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) { _llgo_0: %2 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %3 = load i64, ptr %2, align 4 %4 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %5 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8 - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %5, 1 + %5 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %4, align 8 + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %5, 1 %7 = icmp sge i64 %3, %6 br i1 %7, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %8 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr @main.EOF, align 8 - %9 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } { i64 0, %"github.com/goplus/llgo/internal/runtime.iface" undef }, %"github.com/goplus/llgo/internal/runtime.iface" %8, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %9 + %8 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr @main.EOF, align 8 + %9 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } { i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef }, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %8, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %9 _llgo_2: ; preds = %_llgo_0 %10 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 2 store i64 -1, ptr %10, align 4 %11 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %12 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %11, align 8 + %12 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %11, align 8 %13 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %14 = load i64, ptr %13, align 4 - %15 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %12, 1 - %16 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringSlice"(%"github.com/goplus/llgo/internal/runtime.String" %12, i64 %14, i64 %15) - %17 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %16, 0 - %18 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %16, 1 - %19 = call i64 @"github.com/goplus/llgo/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/internal/runtime.Slice" %1, ptr %17, i64 %18, i64 1) + %15 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %12, 1 + %16 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %12, i64 %14, i64 %15) + %17 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %16, 0 + %18 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %16, 1 + %19 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, ptr %17, i64 %18, i64 1) %20 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %21 = load i64, ptr %20, align 4 %22 = add i64 %21, %19 %23 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 store i64 %22, ptr %23, align 4 - %24 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %19, 0 - %25 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %24, %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %25 + %24 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %19, 0 + %25 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %24, %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %25 } -define { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"main.(*stringReader).ReadAt"(ptr %0, %"github.com/goplus/llgo/internal/runtime.Slice" %1, i64 %2) { +define { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"main.(*stringReader).ReadAt"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, i64 %2) { _llgo_0: %3 = icmp slt i64 %2, 0 br i1 %3, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %4 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/internal/runtime.String" { ptr @31, i64 37 }) - %5 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } { i64 0, %"github.com/goplus/llgo/internal/runtime.iface" undef }, %"github.com/goplus/llgo/internal/runtime.iface" %4, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %5 + %4 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @31, i64 37 }) + %5 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } { i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef }, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %4, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %5 _llgo_2: ; preds = %_llgo_0 %6 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %6, align 8 - %8 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %7, 1 + %7 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %6, align 8 + %8 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %7, 1 %9 = icmp sge i64 %2, %8 br i1 %9, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %10 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr @main.EOF, align 8 - %11 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } { i64 0, %"github.com/goplus/llgo/internal/runtime.iface" undef }, %"github.com/goplus/llgo/internal/runtime.iface" %10, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %11 + %10 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr @main.EOF, align 8 + %11 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } { i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef }, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %10, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %11 _llgo_4: ; preds = %_llgo_2 %12 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %13 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %12, align 8 - %14 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %13, 1 - %15 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringSlice"(%"github.com/goplus/llgo/internal/runtime.String" %13, i64 %2, i64 %14) - %16 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %15, 0 - %17 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %15, 1 - %18 = call i64 @"github.com/goplus/llgo/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/internal/runtime.Slice" %1, ptr %16, i64 %17, i64 1) - %19 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 1 + %13 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %12, align 8 + %14 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %13, 1 + %15 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %13, i64 %2, i64 %14) + %16 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %15, 0 + %17 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %15, 1 + %18 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, ptr %16, i64 %17, i64 1) + %19 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 1 %20 = icmp slt i64 %18, %19 br i1 %20, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %21 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr @main.EOF, align 8 + %21 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr @main.EOF, align 8 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 - %22 = phi %"github.com/goplus/llgo/internal/runtime.iface" [ zeroinitializer, %_llgo_4 ], [ %21, %_llgo_5 ] - %23 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %18, 0 - %24 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %23, %"github.com/goplus/llgo/internal/runtime.iface" %22, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %24 + %22 = phi %"github.com/goplus/llgo/runtime/internal/runtime.iface" [ zeroinitializer, %_llgo_4 ], [ %21, %_llgo_5 ] + %23 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %18, 0 + %24 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %23, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %22, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %24 } -define { i8, %"github.com/goplus/llgo/internal/runtime.iface" } @"main.(*stringReader).ReadByte"(ptr %0) { +define { i8, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"main.(*stringReader).ReadByte"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 2 store i64 -1, ptr %1, align 4 %2 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %3 = load i64, ptr %2, align 4 %4 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %5 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8 - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %5, 1 + %5 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %4, align 8 + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %5, 1 %7 = icmp sge i64 %3, %6 br i1 %7, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %8 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr @main.EOF, align 8 - %9 = insertvalue { i8, %"github.com/goplus/llgo/internal/runtime.iface" } { i8 0, %"github.com/goplus/llgo/internal/runtime.iface" undef }, %"github.com/goplus/llgo/internal/runtime.iface" %8, 1 - ret { i8, %"github.com/goplus/llgo/internal/runtime.iface" } %9 + %8 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr @main.EOF, align 8 + %9 = insertvalue { i8, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } { i8 0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef }, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %8, 1 + ret { i8, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %9 _llgo_2: ; preds = %_llgo_0 %10 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %11 = load i64, ptr %10, align 4 %12 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %13 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %12, align 8 - %14 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %13, 0 - %15 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %13, 1 + %13 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %12, align 8 + %14 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %13, 0 + %15 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %13, 1 %16 = icmp slt i64 %11, 0 %17 = icmp sge i64 %11, %15 %18 = or i1 %17, %16 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %18) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %18) %19 = getelementptr inbounds i8, ptr %14, i64 %11 %20 = load i8, ptr %19, align 1 %21 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 @@ -666,27 +666,27 @@ _llgo_2: ; preds = %_llgo_0 %23 = add i64 %22, 1 %24 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 store i64 %23, ptr %24, align 4 - %25 = insertvalue { i8, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i8 %20, 0 - %26 = insertvalue { i8, %"github.com/goplus/llgo/internal/runtime.iface" } %25, %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer, 1 - ret { i8, %"github.com/goplus/llgo/internal/runtime.iface" } %26 + %25 = insertvalue { i8, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i8 %20, 0 + %26 = insertvalue { i8, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %25, %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer, 1 + ret { i8, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %26 } -define { i32, i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"main.(*stringReader).ReadRune"(ptr %0) { +define { i32, i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"main.(*stringReader).ReadRune"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %2 = load i64, ptr %1, align 4 %3 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %4 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %3, align 8 - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %4, 1 + %4 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %3, align 8 + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %4, 1 %6 = icmp sge i64 %2, %5 br i1 %6, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 %7 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 2 store i64 -1, ptr %7, align 4 - %8 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr @main.EOF, align 8 - %9 = insertvalue { i32, i64, %"github.com/goplus/llgo/internal/runtime.iface" } { i32 0, i64 0, %"github.com/goplus/llgo/internal/runtime.iface" undef }, %"github.com/goplus/llgo/internal/runtime.iface" %8, 2 - ret { i32, i64, %"github.com/goplus/llgo/internal/runtime.iface" } %9 + %8 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr @main.EOF, align 8 + %9 = insertvalue { i32, i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } { i32 0, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef }, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %8, 2 + ret { i32, i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %9 _llgo_2: ; preds = %_llgo_0 %10 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 @@ -696,13 +696,13 @@ _llgo_2: ; preds = %_llgo_0 %13 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %14 = load i64, ptr %13, align 4 %15 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %16 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %15, align 8 - %17 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %16, 0 - %18 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %16, 1 + %16 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %15, align 8 + %17 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %16, 0 + %18 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %16, 1 %19 = icmp slt i64 %14, 0 %20 = icmp sge i64 %14, %18 %21 = or i1 %20, %19 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %21) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %21) %22 = getelementptr inbounds i8, ptr %17, i64 %14 %23 = load i8, ptr %22, align 1 %24 = icmp ult i8 %23, -128 @@ -715,19 +715,19 @@ _llgo_3: ; preds = %_llgo_2 %28 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 store i64 %27, ptr %28, align 4 %29 = sext i8 %23 to i32 - %30 = insertvalue { i32, i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i32 %29, 0 - %31 = insertvalue { i32, i64, %"github.com/goplus/llgo/internal/runtime.iface" } %30, i64 1, 1 - %32 = insertvalue { i32, i64, %"github.com/goplus/llgo/internal/runtime.iface" } %31, %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer, 2 - ret { i32, i64, %"github.com/goplus/llgo/internal/runtime.iface" } %32 + %30 = insertvalue { i32, i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i32 %29, 0 + %31 = insertvalue { i32, i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %30, i64 1, 1 + %32 = insertvalue { i32, i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %31, %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer, 2 + ret { i32, i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %32 _llgo_4: ; preds = %_llgo_2 %33 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %34 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %33, align 8 + %34 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %33, align 8 %35 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %36 = load i64, ptr %35, align 4 - %37 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %34, 1 - %38 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringSlice"(%"github.com/goplus/llgo/internal/runtime.String" %34, i64 %36, i64 %37) - %39 = call { i32, i64 } @"unicode/utf8.DecodeRuneInString"(%"github.com/goplus/llgo/internal/runtime.String" %38) + %37 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %34, 1 + %38 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %34, i64 %36, i64 %37) + %39 = call { i32, i64 } @"unicode/utf8.DecodeRuneInString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %38) %40 = extractvalue { i32, i64 } %39, 0 %41 = extractvalue { i32, i64 } %39, 1 %42 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 @@ -735,13 +735,13 @@ _llgo_4: ; preds = %_llgo_2 %44 = add i64 %43, %41 %45 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 store i64 %44, ptr %45, align 4 - %46 = insertvalue { i32, i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i32 %40, 0 - %47 = insertvalue { i32, i64, %"github.com/goplus/llgo/internal/runtime.iface" } %46, i64 %41, 1 - %48 = insertvalue { i32, i64, %"github.com/goplus/llgo/internal/runtime.iface" } %47, %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer, 2 - ret { i32, i64, %"github.com/goplus/llgo/internal/runtime.iface" } %48 + %46 = insertvalue { i32, i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i32 %40, 0 + %47 = insertvalue { i32, i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %46, i64 %41, 1 + %48 = insertvalue { i32, i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %47, %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer, 2 + ret { i32, i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %48 } -define { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"main.(*stringReader).Seek"(ptr %0, i64 %1, i64 %2) { +define { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"main.(*stringReader).Seek"(ptr %0, i64 %1, i64 %2) { _llgo_0: %3 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 2 store i64 -1, ptr %3, align 4 @@ -768,8 +768,8 @@ _llgo_4: ; preds = %_llgo_0 _llgo_5: ; preds = %_llgo_6 %11 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %12 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %11, align 8 - %13 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %12, 1 + %12 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %11, align 8 + %13 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %12, 1 %14 = add i64 %13, %1 br label %_llgo_1 @@ -778,32 +778,32 @@ _llgo_6: ; preds = %_llgo_4 br i1 %15, label %_llgo_5, label %_llgo_7 _llgo_7: ; preds = %_llgo_6 - %16 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/internal/runtime.String" { ptr @32, i64 34 }) - %17 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } { i64 0, %"github.com/goplus/llgo/internal/runtime.iface" undef }, %"github.com/goplus/llgo/internal/runtime.iface" %16, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %17 + %16 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @32, i64 34 }) + %17 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } { i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef }, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %16, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %17 _llgo_8: ; preds = %_llgo_1 - %18 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/internal/runtime.String" { ptr @33, i64 37 }) - %19 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } { i64 0, %"github.com/goplus/llgo/internal/runtime.iface" undef }, %"github.com/goplus/llgo/internal/runtime.iface" %18, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %19 + %18 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @33, i64 37 }) + %19 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } { i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef }, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %18, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %19 _llgo_9: ; preds = %_llgo_1 %20 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 store i64 %5, ptr %20, align 4 - %21 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %5, 0 - %22 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %21, %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %22 + %21 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %5, 0 + %22 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %21, %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %22 } define i64 @"main.(*stringReader).Size"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %2 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %1, align 8 - %3 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %2, 1 + %2 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %1, align 8 + %3 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %2, 1 ret i64 %3 } -define %"github.com/goplus/llgo/internal/runtime.iface" @"main.(*stringReader).UnreadByte"(ptr %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.(*stringReader).UnreadByte"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %2 = load i64, ptr %1, align 4 @@ -811,8 +811,8 @@ _llgo_0: br i1 %3, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %4 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/internal/runtime.String" { ptr @34, i64 48 }) - ret %"github.com/goplus/llgo/internal/runtime.iface" %4 + %4 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @34, i64 48 }) + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %4 _llgo_2: ; preds = %_llgo_0 %5 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 2 @@ -822,10 +822,10 @@ _llgo_2: ; preds = %_llgo_0 %8 = sub i64 %7, 1 %9 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 store i64 %8, ptr %9, align 4 - ret %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer } -define %"github.com/goplus/llgo/internal/runtime.iface" @"main.(*stringReader).UnreadRune"(ptr %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.(*stringReader).UnreadRune"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %2 = load i64, ptr %1, align 4 @@ -833,8 +833,8 @@ _llgo_0: br i1 %3, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %4 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/internal/runtime.String" { ptr @35, i64 49 }) - ret %"github.com/goplus/llgo/internal/runtime.iface" %4 + %4 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @35, i64 49 }) + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %4 _llgo_2: ; preds = %_llgo_0 %5 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 2 @@ -843,8 +843,8 @@ _llgo_2: ; preds = %_llgo_0 br i1 %7, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %8 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/internal/runtime.String" { ptr @36, i64 62 }) - ret %"github.com/goplus/llgo/internal/runtime.iface" %8 + %8 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.newError(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @36, i64 62 }) + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %8 _llgo_4: ; preds = %_llgo_2 %9 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 2 @@ -853,45 +853,45 @@ _llgo_4: ; preds = %_llgo_2 store i64 %10, ptr %11, align 4 %12 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 2 store i64 -1, ptr %12, align 4 - ret %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer } -define { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"main.(*stringReader).WriteTo"(ptr %0, %"github.com/goplus/llgo/internal/runtime.iface" %1) { +define { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"main.(*stringReader).WriteTo"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1) { _llgo_0: %2 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 2 store i64 -1, ptr %2, align 4 %3 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %4 = load i64, ptr %3, align 4 %5 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %6 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %5, align 8 - %7 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %6, 1 + %6 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %5, align 8 + %7 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %6, 1 %8 = icmp sge i64 %4, %7 br i1 %8, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } zeroinitializer + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } zeroinitializer _llgo_2: ; preds = %_llgo_0 %9 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 0 - %10 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %9, align 8 + %10 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %9, align 8 %11 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 %12 = load i64, ptr %11, align 4 - %13 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %10, 1 - %14 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringSlice"(%"github.com/goplus/llgo/internal/runtime.String" %10, i64 %12, i64 %13) - %15 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @main.WriteString(%"github.com/goplus/llgo/internal/runtime.iface" %1, %"github.com/goplus/llgo/internal/runtime.String" %14) - %16 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %15, 0 - %17 = extractvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %15, 1 - %18 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %14, 1 + %13 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %10, 1 + %14 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %10, i64 %12, i64 %13) + %15 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @main.WriteString(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %1, %"github.com/goplus/llgo/runtime/internal/runtime.String" %14) + %16 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %15, 0 + %17 = extractvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %15, 1 + %18 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %14, 1 %19 = icmp sgt i64 %16, %18 br i1 %19, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 %20 = load ptr, ptr @_llgo_string, align 8 - %21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @37, i64 48 }, ptr %21, align 8 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %20, 0 - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %22, ptr %21, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %23) + %21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @37, i64 48 }, ptr %21, align 8 + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %20, 0 + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %22, ptr %21, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %23) unreachable _llgo_4: ; preds = %_llgo_2 @@ -900,37 +900,37 @@ _llgo_4: ; preds = %_llgo_2 %26 = add i64 %25, %16 %27 = getelementptr inbounds %main.stringReader, ptr %0, i32 0, i32 1 store i64 %26, ptr %27, align 4 - %28 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %14, 1 + %28 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %14, 1 %29 = icmp ne i64 %16, %28 br i1 %29, label %_llgo_7, label %_llgo_6 _llgo_5: ; preds = %_llgo_7 - %30 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr @main.ErrShortWrite, align 8 + %30 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr @main.ErrShortWrite, align 8 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_7, %_llgo_4 - %31 = phi %"github.com/goplus/llgo/internal/runtime.iface" [ %17, %_llgo_4 ], [ %17, %_llgo_7 ], [ %30, %_llgo_5 ] - %32 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } undef, i64 %16, 0 - %33 = insertvalue { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %32, %"github.com/goplus/llgo/internal/runtime.iface" %31, 1 - ret { i64, %"github.com/goplus/llgo/internal/runtime.iface" } %33 + %31 = phi %"github.com/goplus/llgo/runtime/internal/runtime.iface" [ %17, %_llgo_4 ], [ %17, %_llgo_7 ], [ %30, %_llgo_5 ] + %32 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } undef, i64 %16, 0 + %33 = insertvalue { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %32, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %31, 1 + ret { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %33 _llgo_7: ; preds = %_llgo_4 - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %17) - %35 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %17, 1 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %34, 0 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %36, ptr %35, 1 - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) - %39 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %38, 0 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %39, ptr null, 1 - %41 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %37, %"github.com/goplus/llgo/internal/runtime.eface" %40) + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %17) + %35 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %17, 1 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %34, 0 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %36, ptr %35, 1 + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) + %39 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %38, 0 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %39, ptr null, 1 + %41 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %37, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %40) br i1 %41, label %_llgo_5, label %_llgo_6 } -declare ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 8 }) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 8 }) %1 = load ptr, ptr @_llgo_main.WriterTo, align 8 %2 = icmp eq ptr %1, null br i1 %2, label %_llgo_1, label %_llgo_2 @@ -940,7 +940,7 @@ _llgo_1: ; preds = %_llgo_0 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 6 }) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 6 }) %4 = load ptr, ptr @_llgo_main.Writer, align 8 %5 = icmp eq ptr %4, null br i1 %5, label %_llgo_3, label %_llgo_4 @@ -955,7 +955,7 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %7, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) store ptr %8, ptr @_llgo_byte, align 8 br label %_llgo_6 @@ -966,8 +966,8 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 br i1 %11, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %12) + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %12) store ptr %13, ptr @"[]_llgo_byte", align 8 br label %_llgo_8 @@ -978,13 +978,13 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 br i1 %16, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %17, ptr @_llgo_int, align 8 br label %_llgo_10 _llgo_10: ; preds = %_llgo_9, %_llgo_8 %18 = load ptr, ptr @_llgo_int, align 8 - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 5 }) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 5 }) %20 = load ptr, ptr @_llgo_error, align 8 %21 = icmp eq ptr %20, null br i1 %21, label %_llgo_11, label %_llgo_12 @@ -999,7 +999,7 @@ _llgo_12: ; preds = %_llgo_11, %_llgo_10 br i1 %23, label %_llgo_13, label %_llgo_14 _llgo_13: ; preds = %_llgo_12 - %24 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %24 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %24, ptr @_llgo_string, align 8 br label %_llgo_14 @@ -1011,18 +1011,18 @@ _llgo_14: ; preds = %_llgo_13, %_llgo_12 br i1 %28, label %_llgo_15, label %_llgo_16 _llgo_15: ; preds = %_llgo_14 - %29 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %29, 0 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %30, i64 0, 1 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %31, i64 0, 2 - %33 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %29 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %29, 0 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30, i64 0, 1 + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %31, i64 0, 2 + %33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %34 = getelementptr ptr, ptr %33, i64 0 store ptr %26, ptr %34, align 8 - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %33, 0 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %35, i64 1, 1 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %36, i64 1, 2 - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %32, %"github.com/goplus/llgo/internal/runtime.Slice" %37, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %38) + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %33, 0 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %35, i64 1, 1 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %36, i64 1, 2 + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %32, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %37, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %38) store ptr %38, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 br label %_llgo_16 @@ -1031,14 +1031,14 @@ _llgo_16: ; preds = %_llgo_15, %_llgo_14 br i1 %21, label %_llgo_17, label %_llgo_18 _llgo_17: ; preds = %_llgo_16 - %40 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 5 }, ptr undef }, ptr %39, 1 - %41 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %42 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %41, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %40, ptr %42, align 8 - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %41, 0 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %43, i64 1, 1 - %45 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %44, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %19, %"github.com/goplus/llgo/internal/runtime.Slice" %45) + %40 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 5 }, ptr undef }, ptr %39, 1 + %41 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %42 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %41, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %40, ptr %42, align 8 + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %41, 0 + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %43, i64 1, 1 + %45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %44, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %19, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %45) br label %_llgo_18 _llgo_18: ; preds = %_llgo_17, %_llgo_16 @@ -1051,22 +1051,22 @@ _llgo_18: ; preds = %_llgo_17, %_llgo_16 br i1 %51, label %_llgo_19, label %_llgo_20 _llgo_19: ; preds = %_llgo_18 - %52 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %52 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %53 = getelementptr ptr, ptr %52, i64 0 store ptr %47, ptr %53, align 8 - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %52, 0 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, i64 1, 1 - %56 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %55, i64 1, 2 - %57 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %52, 0 + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, i64 1, 1 + %56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %55, i64 1, 2 + %57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %58 = getelementptr ptr, ptr %57, i64 0 store ptr %48, ptr %58, align 8 %59 = getelementptr ptr, ptr %57, i64 1 store ptr %49, ptr %59, align 8 - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %57, 0 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, i64 2, 1 - %62 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %61, i64 2, 2 - %63 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %56, %"github.com/goplus/llgo/internal/runtime.Slice" %62, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %63) + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %57, 0 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, i64 2, 1 + %62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, i64 2, 2 + %63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %63) store ptr %63, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8 br label %_llgo_20 @@ -1075,14 +1075,14 @@ _llgo_20: ; preds = %_llgo_19, %_llgo_18 br i1 %5, label %_llgo_21, label %_llgo_22 _llgo_21: ; preds = %_llgo_20 - %65 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr undef }, ptr %64, 1 - %66 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %67 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %66, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %65, ptr %67, align 8 - %68 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %66, 0 - %69 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %68, i64 1, 1 - %70 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %69, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %3, %"github.com/goplus/llgo/internal/runtime.Slice" %70) + %65 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr undef }, ptr %64, 1 + %66 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %67 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %66, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %65, ptr %67, align 8 + %68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %66, 0 + %69 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %68, i64 1, 1 + %70 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %69, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %3, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %70) br label %_llgo_22 _llgo_22: ; preds = %_llgo_21, %_llgo_20 @@ -1092,7 +1092,7 @@ _llgo_22: ; preds = %_llgo_21, %_llgo_20 br i1 %73, label %_llgo_23, label %_llgo_24 _llgo_23: ; preds = %_llgo_22 - %74 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 38) + %74 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 38) store ptr %74, ptr @_llgo_int64, align 8 br label %_llgo_24 @@ -1106,22 +1106,22 @@ _llgo_24: ; preds = %_llgo_23, %_llgo_22 br i1 %80, label %_llgo_25, label %_llgo_26 _llgo_25: ; preds = %_llgo_24 - %81 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %81 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %82 = getelementptr ptr, ptr %81, i64 0 store ptr %76, ptr %82, align 8 - %83 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %81, 0 - %84 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %83, i64 1, 1 - %85 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %84, i64 1, 2 - %86 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %83 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %81, 0 + %84 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %83, i64 1, 1 + %85 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %84, i64 1, 2 + %86 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %87 = getelementptr ptr, ptr %86, i64 0 store ptr %77, ptr %87, align 8 %88 = getelementptr ptr, ptr %86, i64 1 store ptr %78, ptr %88, align 8 - %89 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %86, 0 - %90 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %89, i64 2, 1 - %91 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %90, i64 2, 2 - %92 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %85, %"github.com/goplus/llgo/internal/runtime.Slice" %91, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %92) + %89 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %86, 0 + %90 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %89, i64 2, 1 + %91 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %90, i64 2, 2 + %92 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %85, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %91, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %92) store ptr %92, ptr @"_llgo_func$MrYxYl10p_I07B55pBsGw9la9zbzU2vGDPLWrT714Uk", align 8 br label %_llgo_26 @@ -1130,14 +1130,14 @@ _llgo_26: ; preds = %_llgo_25, %_llgo_24 br i1 %2, label %_llgo_27, label %_llgo_28 _llgo_27: ; preds = %_llgo_26 - %94 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 7 }, ptr undef }, ptr %93, 1 - %95 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %96 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %95, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %94, ptr %96, align 8 - %97 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %95, 0 - %98 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %97, i64 1, 1 - %99 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %98, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %0, %"github.com/goplus/llgo/internal/runtime.Slice" %99) + %94 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 7 }, ptr undef }, ptr %93, 1 + %95 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %96 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %95, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %94, ptr %96, align 8 + %97 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %95, 0 + %98 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %97, i64 1, 1 + %99 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %98, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %99) br label %_llgo_28 _llgo_28: ; preds = %_llgo_27, %_llgo_26 @@ -1147,21 +1147,21 @@ _llgo_28: ; preds = %_llgo_27, %_llgo_26 br i1 %102, label %_llgo_29, label %_llgo_30 _llgo_29: ; preds = %_llgo_28 - %103 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 7 }, ptr undef }, ptr %100, 1 - %104 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %105 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %104, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %103, ptr %105, align 8 - %106 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %104, 0 - %107 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %106, i64 1, 1 - %108 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %107, i64 1, 2 - %109 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %108) + %103 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 7 }, ptr undef }, ptr %100, 1 + %104 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %105 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %104, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %103, ptr %105, align 8 + %106 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %104, 0 + %107 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %106, i64 1, 1 + %108 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %107, i64 1, 2 + %109 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %108) store ptr %109, ptr @"_llgo_iface$eN81k1zqixGTyagHw_4nqH4mGfwwehTOCTXUlbT9kzk", align 8 br label %_llgo_30 _llgo_30: ; preds = %_llgo_29, %_llgo_28 - %110 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 17 }, i64 25, i64 16, i64 3, i64 3) + %110 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 17 }, i64 25, i64 16, i64 3, i64 3) store ptr %110, ptr @_llgo_main.nopCloserWriterTo, align 8 - %111 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 6 }) + %111 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 6 }) %112 = load ptr, ptr @_llgo_main.Reader, align 8 %113 = icmp eq ptr %112, null br i1 %113, label %_llgo_31, label %_llgo_32 @@ -1176,32 +1176,32 @@ _llgo_32: ; preds = %_llgo_31, %_llgo_30 br i1 %113, label %_llgo_33, label %_llgo_34 _llgo_33: ; preds = %_llgo_32 - %116 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 4 }, ptr undef }, ptr %115, 1 - %117 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %118 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %117, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %116, ptr %118, align 8 - %119 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %117, 0 - %120 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %119, i64 1, 1 - %121 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %120, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %111, %"github.com/goplus/llgo/internal/runtime.Slice" %121) + %116 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef }, ptr %115, 1 + %117 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %118 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %117, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %116, ptr %118, align 8 + %119 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %117, 0 + %120 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %119, i64 1, 1 + %121 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %120, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %111, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %121) br label %_llgo_34 _llgo_34: ; preds = %_llgo_33, %_llgo_32 %122 = load ptr, ptr @_llgo_main.Reader, align 8 - %123 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 6 }) + %123 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 6 }) %124 = load ptr, ptr @"_llgo_struct$_3ow4zXXILqvC0WDqDRNq5DPhjE1DInJgN924VHWc2Y", align 8 %125 = icmp eq ptr %124, null br i1 %125, label %_llgo_35, label %_llgo_36 _llgo_35: ; preds = %_llgo_34 - %126 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 6 }, ptr %123, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 true) - %127 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %128 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %127, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %126, ptr %128, align 8 - %129 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %127, 0 - %130 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %129, i64 1, 1 - %131 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %130, i64 1, 2 - %132 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %131) + %126 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 6 }, ptr %123, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 true) + %127 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %128 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %127, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %126, ptr %128, align 8 + %129 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %127, 0 + %130 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %129, i64 1, 1 + %131 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %130, i64 1, 2 + %132 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %131) store ptr %132, ptr @"_llgo_struct$_3ow4zXXILqvC0WDqDRNq5DPhjE1DInJgN924VHWc2Y", align 8 br label %_llgo_36 @@ -1213,64 +1213,64 @@ _llgo_36: ; preds = %_llgo_35, %_llgo_34 br i1 %136, label %_llgo_37, label %_llgo_38 _llgo_37: ; preds = %_llgo_36 - %137 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %138 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %137, 0 - %139 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %138, i64 0, 1 - %140 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %139, i64 0, 2 - %141 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %137 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %138 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %137, 0 + %139 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %138, i64 0, 1 + %140 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %139, i64 0, 2 + %141 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %142 = getelementptr ptr, ptr %141, i64 0 store ptr %134, ptr %142, align 8 - %143 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %141, 0 - %144 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %143, i64 1, 1 - %145 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %144, i64 1, 2 - %146 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %140, %"github.com/goplus/llgo/internal/runtime.Slice" %145, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %146) + %143 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %141, 0 + %144 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %143, i64 1, 1 + %145 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %144, i64 1, 2 + %146 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %140, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %145, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %146) store ptr %146, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8 br label %_llgo_38 _llgo_38: ; preds = %_llgo_37, %_llgo_36 %147 = load ptr, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8 - %148 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %147, 1 - %149 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %148, ptr @"main.(*nopCloserWriterTo).Close", 2 - %150 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %149, ptr @"main.(*nopCloserWriterTo).Close", 3 - %151 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %147, 1 - %152 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %151, ptr @"main.(*nopCloserWriterTo).Close", 2 - %153 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %152, ptr @main.nopCloserWriterTo.Close, 3 + %148 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %147, 1 + %149 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %148, ptr @"main.(*nopCloserWriterTo).Close", 2 + %150 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %149, ptr @"main.(*nopCloserWriterTo).Close", 3 + %151 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %147, 1 + %152 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %151, ptr @"main.(*nopCloserWriterTo).Close", 2 + %153 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %152, ptr @main.nopCloserWriterTo.Close, 3 %154 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8 - %155 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %154, 1 - %156 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %155, ptr @"main.(*nopCloserWriterTo).Read", 2 - %157 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %156, ptr @"main.(*nopCloserWriterTo).Read", 3 - %158 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %154, 1 - %159 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %158, ptr @"main.(*nopCloserWriterTo).Read", 2 - %160 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %159, ptr @main.nopCloserWriterTo.Read, 3 + %155 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %154, 1 + %156 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %155, ptr @"main.(*nopCloserWriterTo).Read", 2 + %157 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %156, ptr @"main.(*nopCloserWriterTo).Read", 3 + %158 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %154, 1 + %159 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %158, ptr @"main.(*nopCloserWriterTo).Read", 2 + %160 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %159, ptr @main.nopCloserWriterTo.Read, 3 %161 = load ptr, ptr @"_llgo_func$MrYxYl10p_I07B55pBsGw9la9zbzU2vGDPLWrT714Uk", align 8 - %162 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %161, 1 - %163 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %162, ptr @"main.(*nopCloserWriterTo).WriteTo", 2 - %164 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %163, ptr @"main.(*nopCloserWriterTo).WriteTo", 3 - %165 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %161, 1 - %166 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %165, ptr @"main.(*nopCloserWriterTo).WriteTo", 2 - %167 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %166, ptr @main.nopCloserWriterTo.WriteTo, 3 - %168 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 120) - %169 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %168, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %153, ptr %169, align 8 - %170 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %168, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %160, ptr %170, align 8 - %171 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %168, i64 2 - store %"github.com/goplus/llgo/internal/abi.Method" %167, ptr %171, align 8 - %172 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %168, 0 - %173 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %172, i64 3, 1 - %174 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %173, i64 3, 2 - %175 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 120) - %176 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %175, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %150, ptr %176, align 8 - %177 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %175, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %157, ptr %177, align 8 - %178 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %175, i64 2 - store %"github.com/goplus/llgo/internal/abi.Method" %164, ptr %178, align 8 - %179 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %175, 0 - %180 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %179, i64 3, 1 - %181 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %180, i64 3, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %110, ptr %133, %"github.com/goplus/llgo/internal/runtime.Slice" %174, %"github.com/goplus/llgo/internal/runtime.Slice" %181) + %162 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %161, 1 + %163 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %162, ptr @"main.(*nopCloserWriterTo).WriteTo", 2 + %164 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %163, ptr @"main.(*nopCloserWriterTo).WriteTo", 3 + %165 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %161, 1 + %166 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %165, ptr @"main.(*nopCloserWriterTo).WriteTo", 2 + %167 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %166, ptr @main.nopCloserWriterTo.WriteTo, 3 + %168 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 120) + %169 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %168, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %153, ptr %169, align 8 + %170 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %168, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %160, ptr %170, align 8 + %171 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %168, i64 2 + store %"github.com/goplus/llgo/runtime/abi.Method" %167, ptr %171, align 8 + %172 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %168, 0 + %173 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %172, i64 3, 1 + %174 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %173, i64 3, 2 + %175 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 120) + %176 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %175, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %150, ptr %176, align 8 + %177 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %175, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %157, ptr %177, align 8 + %178 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %175, i64 2 + store %"github.com/goplus/llgo/runtime/abi.Method" %164, ptr %178, align 8 + %179 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %175, 0 + %180 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %179, i64 3, 1 + %181 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %180, i64 3, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %110, ptr %133, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %174, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %181) %182 = load ptr, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8 %183 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8 %184 = load ptr, ptr @"_llgo_iface$L2Ik-AJcd0jsoBw5fQ07pQpfUM-kh78Wn2bOeak6M3I", align 8 @@ -1278,56 +1278,56 @@ _llgo_38: ; preds = %_llgo_37, %_llgo_36 br i1 %185, label %_llgo_39, label %_llgo_40 _llgo_39: ; preds = %_llgo_38 - %186 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 5 }, ptr undef }, ptr %182, 1 - %187 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 4 }, ptr undef }, ptr %183, 1 - %188 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) - %189 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %188, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %186, ptr %189, align 8 - %190 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %188, i64 1 - store %"github.com/goplus/llgo/internal/abi.Imethod" %187, ptr %190, align 8 - %191 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %188, 0 - %192 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %191, i64 2, 1 - %193 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %192, i64 2, 2 - %194 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %193) + %186 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 5 }, ptr undef }, ptr %182, 1 + %187 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef }, ptr %183, 1 + %188 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) + %189 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %188, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %186, ptr %189, align 8 + %190 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %188, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %187, ptr %190, align 8 + %191 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %188, 0 + %192 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %191, i64 2, 1 + %193 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %192, i64 2, 2 + %194 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %193) store ptr %194, ptr @"_llgo_iface$L2Ik-AJcd0jsoBw5fQ07pQpfUM-kh78Wn2bOeak6M3I", align 8 br label %_llgo_40 _llgo_40: ; preds = %_llgo_39, %_llgo_38 - %195 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 9 }, i64 25, i64 16, i64 2, i64 2) + %195 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 9 }, i64 25, i64 16, i64 2, i64 2) store ptr %195, ptr @_llgo_main.nopCloser, align 8 %196 = load ptr, ptr @"_llgo_struct$_3ow4zXXILqvC0WDqDRNq5DPhjE1DInJgN924VHWc2Y", align 8 %197 = load ptr, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8 - %198 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %197, 1 - %199 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %198, ptr @"main.(*nopCloser).Close", 2 - %200 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %199, ptr @"main.(*nopCloser).Close", 3 - %201 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %197, 1 - %202 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %201, ptr @"main.(*nopCloser).Close", 2 - %203 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %202, ptr @main.nopCloser.Close, 3 + %198 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %197, 1 + %199 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %198, ptr @"main.(*nopCloser).Close", 2 + %200 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %199, ptr @"main.(*nopCloser).Close", 3 + %201 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %197, 1 + %202 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %201, ptr @"main.(*nopCloser).Close", 2 + %203 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %202, ptr @main.nopCloser.Close, 3 %204 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8 - %205 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %204, 1 - %206 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %205, ptr @"main.(*nopCloser).Read", 2 - %207 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %206, ptr @"main.(*nopCloser).Read", 3 - %208 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %204, 1 - %209 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %208, ptr @"main.(*nopCloser).Read", 2 - %210 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %209, ptr @main.nopCloser.Read, 3 - %211 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %212 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %211, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %203, ptr %212, align 8 - %213 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %211, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %210, ptr %213, align 8 - %214 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %211, 0 - %215 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %214, i64 2, 1 - %216 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %215, i64 2, 2 - %217 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %218 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %217, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %200, ptr %218, align 8 - %219 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %217, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %207, ptr %219, align 8 - %220 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %217, 0 - %221 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %220, i64 2, 1 - %222 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %221, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %195, ptr %196, %"github.com/goplus/llgo/internal/runtime.Slice" %216, %"github.com/goplus/llgo/internal/runtime.Slice" %222) - %223 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @12, i64 12 }) + %205 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %204, 1 + %206 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %205, ptr @"main.(*nopCloser).Read", 2 + %207 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %206, ptr @"main.(*nopCloser).Read", 3 + %208 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %204, 1 + %209 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %208, ptr @"main.(*nopCloser).Read", 2 + %210 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %209, ptr @main.nopCloser.Read, 3 + %211 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %212 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %211, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %203, ptr %212, align 8 + %213 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %211, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %210, ptr %213, align 8 + %214 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %211, 0 + %215 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %214, i64 2, 1 + %216 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %215, i64 2, 2 + %217 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %218 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %217, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %200, ptr %218, align 8 + %219 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %217, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %207, ptr %219, align 8 + %220 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %217, 0 + %221 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %220, i64 2, 1 + %222 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %221, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %195, ptr %196, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %216, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %222) + %223 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @12, i64 12 }) %224 = load ptr, ptr @_llgo_main.StringWriter, align 8 %225 = icmp eq ptr %224, null br i1 %225, label %_llgo_41, label %_llgo_42 @@ -1345,22 +1345,22 @@ _llgo_42: ; preds = %_llgo_41, %_llgo_40 br i1 %230, label %_llgo_43, label %_llgo_44 _llgo_43: ; preds = %_llgo_42 - %231 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %231 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %232 = getelementptr ptr, ptr %231, i64 0 store ptr %226, ptr %232, align 8 - %233 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %231, 0 - %234 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %233, i64 1, 1 - %235 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %234, i64 1, 2 - %236 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %233 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %231, 0 + %234 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %233, i64 1, 1 + %235 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %234, i64 1, 2 + %236 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %237 = getelementptr ptr, ptr %236, i64 0 store ptr %227, ptr %237, align 8 %238 = getelementptr ptr, ptr %236, i64 1 store ptr %228, ptr %238, align 8 - %239 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %236, 0 - %240 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %239, i64 2, 1 - %241 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %240, i64 2, 2 - %242 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %235, %"github.com/goplus/llgo/internal/runtime.Slice" %241, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %242) + %239 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %236, 0 + %240 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %239, i64 2, 1 + %241 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %240, i64 2, 2 + %242 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %235, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %241, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %242) store ptr %242, ptr @"_llgo_func$thH5FBpdXzJNnCpSfiLU5ItTntFU6LWp0RJhDm2XJjw", align 8 br label %_llgo_44 @@ -1369,14 +1369,14 @@ _llgo_44: ; preds = %_llgo_43, %_llgo_42 br i1 %225, label %_llgo_45, label %_llgo_46 _llgo_45: ; preds = %_llgo_44 - %244 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 11 }, ptr undef }, ptr %243, 1 - %245 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %246 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %245, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %244, ptr %246, align 8 - %247 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %245, 0 - %248 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %247, i64 1, 1 - %249 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %248, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %223, %"github.com/goplus/llgo/internal/runtime.Slice" %249) + %244 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 11 }, ptr undef }, ptr %243, 1 + %245 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %246 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %245, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %244, ptr %246, align 8 + %247 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %245, 0 + %248 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %247, i64 1, 1 + %249 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %248, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %223, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %249) br label %_llgo_46 _llgo_46: ; preds = %_llgo_45, %_llgo_44 @@ -1386,37 +1386,37 @@ _llgo_46: ; preds = %_llgo_45, %_llgo_44 br i1 %252, label %_llgo_47, label %_llgo_48 _llgo_47: ; preds = %_llgo_46 - %253 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 11 }, ptr undef }, ptr %250, 1 - %254 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %255 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %254, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %253, ptr %255, align 8 - %256 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %254, 0 - %257 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %256, i64 1, 1 - %258 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %257, i64 1, 2 - %259 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %258) + %253 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 11 }, ptr undef }, ptr %250, 1 + %254 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %255 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %254, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %253, ptr %255, align 8 + %256 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %254, 0 + %257 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %256, i64 1, 1 + %258 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %257, i64 1, 2 + %259 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %258) store ptr %259, ptr @"_llgo_iface$Ly4zXiUMEac-hYAMw6b6miJ1JEhGfLyBWyBOhpsRZcU", align 8 br label %_llgo_48 _llgo_48: ; preds = %_llgo_47, %_llgo_46 - %260 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 12 }, i64 25, i64 32, i64 0, i64 10) + %260 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 12 }, i64 25, i64 32, i64 0, i64 10) store ptr %260, ptr @_llgo_main.stringReader, align 8 - %261 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %262 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 1 }, ptr %261, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %263 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 38) - %264 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 1 }, ptr %263, i64 16, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %265 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %266 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @20, i64 8 }, ptr %265, i64 24, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %267 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 168) - %268 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %267, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %262, ptr %268, align 8 - %269 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %267, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %264, ptr %269, align 8 - %270 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %267, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %266, ptr %270, align 8 - %271 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %267, 0 - %272 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %271, i64 3, 1 - %273 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %272, i64 3, 2 - %274 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 32, %"github.com/goplus/llgo/internal/runtime.Slice" %273) + %261 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %262 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 1 }, ptr %261, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %263 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 38) + %264 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 1 }, ptr %263, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %265 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %266 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @20, i64 8 }, ptr %265, i64 24, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %267 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 168) + %268 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %267, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %262, ptr %268, align 8 + %269 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %267, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %264, ptr %269, align 8 + %270 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %267, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %266, ptr %270, align 8 + %271 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %267, 0 + %272 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %271, i64 3, 1 + %273 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %272, i64 3, 2 + %274 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 32, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %273) store ptr %274, ptr @"main.struct$Mdt84yjYYwxF9D2i4cRmpEPiWaO6tsjtrbGUjyESypk", align 8 %275 = load ptr, ptr @"main.struct$Mdt84yjYYwxF9D2i4cRmpEPiWaO6tsjtrbGUjyESypk", align 8 %276 = load ptr, ptr @_llgo_int, align 8 @@ -1425,31 +1425,31 @@ _llgo_48: ; preds = %_llgo_47, %_llgo_46 br i1 %278, label %_llgo_49, label %_llgo_50 _llgo_49: ; preds = %_llgo_48 - %279 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %280 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %279, 0 - %281 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %280, i64 0, 1 - %282 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %281, i64 0, 2 - %283 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %279 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %280 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %279, 0 + %281 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %280, i64 0, 1 + %282 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %281, i64 0, 2 + %283 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %284 = getelementptr ptr, ptr %283, i64 0 store ptr %276, ptr %284, align 8 - %285 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %283, 0 - %286 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %285, i64 1, 1 - %287 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %286, i64 1, 2 - %288 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %282, %"github.com/goplus/llgo/internal/runtime.Slice" %287, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %288) + %285 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %283, 0 + %286 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %285, i64 1, 1 + %287 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %286, i64 1, 2 + %288 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %282, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %287, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %288) store ptr %288, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 br label %_llgo_50 _llgo_50: ; preds = %_llgo_49, %_llgo_48 %289 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %290 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %289, 1 - %291 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %290, ptr @"main.(*stringReader).Len", 2 - %292 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %291, ptr @"main.(*stringReader).Len", 3 + %290 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %289, 1 + %291 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %290, ptr @"main.(*stringReader).Len", 2 + %292 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %291, ptr @"main.(*stringReader).Len", 3 %293 = load ptr, ptr @"[]_llgo_byte", align 8 %294 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8 - %295 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %294, 1 - %296 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %295, ptr @"main.(*stringReader).Read", 2 - %297 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %296, ptr @"main.(*stringReader).Read", 3 + %295 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %294, 1 + %296 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %295, ptr @"main.(*stringReader).Read", 2 + %297 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %296, ptr @"main.(*stringReader).Read", 3 %298 = load ptr, ptr @"[]_llgo_byte", align 8 %299 = load ptr, ptr @"[]_llgo_byte", align 8 %300 = load ptr, ptr @_llgo_int64, align 8 @@ -1460,32 +1460,32 @@ _llgo_50: ; preds = %_llgo_49, %_llgo_48 br i1 %304, label %_llgo_51, label %_llgo_52 _llgo_51: ; preds = %_llgo_50 - %305 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %305 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %306 = getelementptr ptr, ptr %305, i64 0 store ptr %299, ptr %306, align 8 %307 = getelementptr ptr, ptr %305, i64 1 store ptr %300, ptr %307, align 8 - %308 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %305, 0 - %309 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %308, i64 2, 1 - %310 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %309, i64 2, 2 - %311 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %308 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %305, 0 + %309 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %308, i64 2, 1 + %310 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %309, i64 2, 2 + %311 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %312 = getelementptr ptr, ptr %311, i64 0 store ptr %301, ptr %312, align 8 %313 = getelementptr ptr, ptr %311, i64 1 store ptr %302, ptr %313, align 8 - %314 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %311, 0 - %315 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %314, i64 2, 1 - %316 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %315, i64 2, 2 - %317 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %310, %"github.com/goplus/llgo/internal/runtime.Slice" %316, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %317) + %314 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %311, 0 + %315 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %314, i64 2, 1 + %316 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %315, i64 2, 2 + %317 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %310, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %316, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %317) store ptr %317, ptr @"_llgo_func$TY5Etv7VBKM_-2um1BDEeQEE2lP06Pt6G54EuKiNC3c", align 8 br label %_llgo_52 _llgo_52: ; preds = %_llgo_51, %_llgo_50 %318 = load ptr, ptr @"_llgo_func$TY5Etv7VBKM_-2um1BDEeQEE2lP06Pt6G54EuKiNC3c", align 8 - %319 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %318, 1 - %320 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %319, ptr @"main.(*stringReader).ReadAt", 2 - %321 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %320, ptr @"main.(*stringReader).ReadAt", 3 + %319 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %318, 1 + %320 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %319, ptr @"main.(*stringReader).ReadAt", 2 + %321 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %320, ptr @"main.(*stringReader).ReadAt", 3 %322 = load ptr, ptr @_llgo_byte, align 8 %323 = load ptr, ptr @_llgo_error, align 8 %324 = load ptr, ptr @"_llgo_func$6bvVpCcGPUc3z_EmsQTHB0AVT1hP5-NNLVRgm43teCM", align 8 @@ -1493,34 +1493,34 @@ _llgo_52: ; preds = %_llgo_51, %_llgo_50 br i1 %325, label %_llgo_53, label %_llgo_54 _llgo_53: ; preds = %_llgo_52 - %326 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %327 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %326, 0 - %328 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %327, i64 0, 1 - %329 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %328, i64 0, 2 - %330 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %326 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %327 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %326, 0 + %328 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %327, i64 0, 1 + %329 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %328, i64 0, 2 + %330 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %331 = getelementptr ptr, ptr %330, i64 0 store ptr %322, ptr %331, align 8 %332 = getelementptr ptr, ptr %330, i64 1 store ptr %323, ptr %332, align 8 - %333 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %330, 0 - %334 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %333, i64 2, 1 - %335 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %334, i64 2, 2 - %336 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %329, %"github.com/goplus/llgo/internal/runtime.Slice" %335, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %336) + %333 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %330, 0 + %334 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %333, i64 2, 1 + %335 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %334, i64 2, 2 + %336 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %329, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %335, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %336) store ptr %336, ptr @"_llgo_func$6bvVpCcGPUc3z_EmsQTHB0AVT1hP5-NNLVRgm43teCM", align 8 br label %_llgo_54 _llgo_54: ; preds = %_llgo_53, %_llgo_52 %337 = load ptr, ptr @"_llgo_func$6bvVpCcGPUc3z_EmsQTHB0AVT1hP5-NNLVRgm43teCM", align 8 - %338 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %337, 1 - %339 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %338, ptr @"main.(*stringReader).ReadByte", 2 - %340 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %339, ptr @"main.(*stringReader).ReadByte", 3 + %338 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %337, 1 + %339 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %338, ptr @"main.(*stringReader).ReadByte", 2 + %340 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %339, ptr @"main.(*stringReader).ReadByte", 3 %341 = load ptr, ptr @_llgo_rune, align 8 %342 = icmp eq ptr %341, null br i1 %342, label %_llgo_55, label %_llgo_56 _llgo_55: ; preds = %_llgo_54 - %343 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 37) + %343 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 37) store ptr %343, ptr @_llgo_rune, align 8 br label %_llgo_56 @@ -1534,30 +1534,30 @@ _llgo_56: ; preds = %_llgo_55, %_llgo_54 br i1 %349, label %_llgo_57, label %_llgo_58 _llgo_57: ; preds = %_llgo_56 - %350 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %351 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %350, 0 - %352 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %351, i64 0, 1 - %353 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %352, i64 0, 2 - %354 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) + %350 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %351 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %350, 0 + %352 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %351, i64 0, 1 + %353 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %352, i64 0, 2 + %354 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) %355 = getelementptr ptr, ptr %354, i64 0 store ptr %345, ptr %355, align 8 %356 = getelementptr ptr, ptr %354, i64 1 store ptr %346, ptr %356, align 8 %357 = getelementptr ptr, ptr %354, i64 2 store ptr %347, ptr %357, align 8 - %358 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %354, 0 - %359 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %358, i64 3, 1 - %360 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %359, i64 3, 2 - %361 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %353, %"github.com/goplus/llgo/internal/runtime.Slice" %360, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %361) + %358 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %354, 0 + %359 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %358, i64 3, 1 + %360 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %359, i64 3, 2 + %361 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %353, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %360, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %361) store ptr %361, ptr @"_llgo_func$CB0CO6hV_feSzhi4pz1P4omza2fKNK930wvOR1T33fU", align 8 br label %_llgo_58 _llgo_58: ; preds = %_llgo_57, %_llgo_56 %362 = load ptr, ptr @"_llgo_func$CB0CO6hV_feSzhi4pz1P4omza2fKNK930wvOR1T33fU", align 8 - %363 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %362, 1 - %364 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %363, ptr @"main.(*stringReader).ReadRune", 2 - %365 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %364, ptr @"main.(*stringReader).ReadRune", 3 + %363 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %362, 1 + %364 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %363, ptr @"main.(*stringReader).ReadRune", 2 + %365 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %364, ptr @"main.(*stringReader).ReadRune", 3 %366 = load ptr, ptr @_llgo_int64, align 8 %367 = load ptr, ptr @_llgo_int, align 8 %368 = load ptr, ptr @_llgo_int64, align 8 @@ -1567,98 +1567,98 @@ _llgo_58: ; preds = %_llgo_57, %_llgo_56 br i1 %371, label %_llgo_59, label %_llgo_60 _llgo_59: ; preds = %_llgo_58 - %372 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %372 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %373 = getelementptr ptr, ptr %372, i64 0 store ptr %366, ptr %373, align 8 %374 = getelementptr ptr, ptr %372, i64 1 store ptr %367, ptr %374, align 8 - %375 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %372, 0 - %376 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %375, i64 2, 1 - %377 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %376, i64 2, 2 - %378 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %375 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %372, 0 + %376 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %375, i64 2, 1 + %377 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %376, i64 2, 2 + %378 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %379 = getelementptr ptr, ptr %378, i64 0 store ptr %368, ptr %379, align 8 %380 = getelementptr ptr, ptr %378, i64 1 store ptr %369, ptr %380, align 8 - %381 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %378, 0 - %382 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %381, i64 2, 1 - %383 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %382, i64 2, 2 - %384 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %377, %"github.com/goplus/llgo/internal/runtime.Slice" %383, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %384) + %381 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %378, 0 + %382 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %381, i64 2, 1 + %383 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %382, i64 2, 2 + %384 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %377, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %383, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %384) store ptr %384, ptr @"_llgo_func$HE7H49xPa1uXmrkMDpqB3RCRGf3qzhLGrxKCEXOYjms", align 8 br label %_llgo_60 _llgo_60: ; preds = %_llgo_59, %_llgo_58 %385 = load ptr, ptr @"_llgo_func$HE7H49xPa1uXmrkMDpqB3RCRGf3qzhLGrxKCEXOYjms", align 8 - %386 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @25, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %385, 1 - %387 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %386, ptr @"main.(*stringReader).Seek", 2 - %388 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %387, ptr @"main.(*stringReader).Seek", 3 + %386 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @25, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %385, 1 + %387 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %386, ptr @"main.(*stringReader).Seek", 2 + %388 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %387, ptr @"main.(*stringReader).Seek", 3 %389 = load ptr, ptr @_llgo_int64, align 8 %390 = load ptr, ptr @"_llgo_func$Eoig9xhJM5GShHH5aNPxTZZXp1IZxprRl4zPuv2hkug", align 8 %391 = icmp eq ptr %390, null br i1 %391, label %_llgo_61, label %_llgo_62 _llgo_61: ; preds = %_llgo_60 - %392 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %393 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %392, 0 - %394 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %393, i64 0, 1 - %395 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %394, i64 0, 2 - %396 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %392 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %393 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %392, 0 + %394 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %393, i64 0, 1 + %395 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %394, i64 0, 2 + %396 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %397 = getelementptr ptr, ptr %396, i64 0 store ptr %389, ptr %397, align 8 - %398 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %396, 0 - %399 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %398, i64 1, 1 - %400 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %399, i64 1, 2 - %401 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %395, %"github.com/goplus/llgo/internal/runtime.Slice" %400, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %401) + %398 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %396, 0 + %399 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %398, i64 1, 1 + %400 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %399, i64 1, 2 + %401 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %395, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %400, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %401) store ptr %401, ptr @"_llgo_func$Eoig9xhJM5GShHH5aNPxTZZXp1IZxprRl4zPuv2hkug", align 8 br label %_llgo_62 _llgo_62: ; preds = %_llgo_61, %_llgo_60 %402 = load ptr, ptr @"_llgo_func$Eoig9xhJM5GShHH5aNPxTZZXp1IZxprRl4zPuv2hkug", align 8 - %403 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @26, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %402, 1 - %404 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %403, ptr @"main.(*stringReader).Size", 2 - %405 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %404, ptr @"main.(*stringReader).Size", 3 + %403 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @26, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %402, 1 + %404 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %403, ptr @"main.(*stringReader).Size", 2 + %405 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %404, ptr @"main.(*stringReader).Size", 3 %406 = load ptr, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8 - %407 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @27, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %406, 1 - %408 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %407, ptr @"main.(*stringReader).UnreadByte", 2 - %409 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %408, ptr @"main.(*stringReader).UnreadByte", 3 + %407 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @27, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %406, 1 + %408 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %407, ptr @"main.(*stringReader).UnreadByte", 2 + %409 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %408, ptr @"main.(*stringReader).UnreadByte", 3 %410 = load ptr, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8 - %411 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @28, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %410, 1 - %412 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %411, ptr @"main.(*stringReader).UnreadRune", 2 - %413 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %412, ptr @"main.(*stringReader).UnreadRune", 3 + %411 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @28, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %410, 1 + %412 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %411, ptr @"main.(*stringReader).UnreadRune", 2 + %413 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %412, ptr @"main.(*stringReader).UnreadRune", 3 %414 = load ptr, ptr @"_llgo_func$MrYxYl10p_I07B55pBsGw9la9zbzU2vGDPLWrT714Uk", align 8 - %415 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %414, 1 - %416 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %415, ptr @"main.(*stringReader).WriteTo", 2 - %417 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %416, ptr @"main.(*stringReader).WriteTo", 3 - %418 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 400) - %419 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %418, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %292, ptr %419, align 8 - %420 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %418, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %297, ptr %420, align 8 - %421 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %418, i64 2 - store %"github.com/goplus/llgo/internal/abi.Method" %321, ptr %421, align 8 - %422 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %418, i64 3 - store %"github.com/goplus/llgo/internal/abi.Method" %340, ptr %422, align 8 - %423 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %418, i64 4 - store %"github.com/goplus/llgo/internal/abi.Method" %365, ptr %423, align 8 - %424 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %418, i64 5 - store %"github.com/goplus/llgo/internal/abi.Method" %388, ptr %424, align 8 - %425 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %418, i64 6 - store %"github.com/goplus/llgo/internal/abi.Method" %405, ptr %425, align 8 - %426 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %418, i64 7 - store %"github.com/goplus/llgo/internal/abi.Method" %409, ptr %426, align 8 - %427 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %418, i64 8 - store %"github.com/goplus/llgo/internal/abi.Method" %413, ptr %427, align 8 - %428 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %418, i64 9 - store %"github.com/goplus/llgo/internal/abi.Method" %417, ptr %428, align 8 - %429 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %418, 0 - %430 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %429, i64 10, 1 - %431 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %430, i64 10, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %260, ptr %275, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %431) - %432 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 12 }, i64 25, i64 32, i64 0, i64 10) - %433 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %432) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %433) + %415 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %414, 1 + %416 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %415, ptr @"main.(*stringReader).WriteTo", 2 + %417 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %416, ptr @"main.(*stringReader).WriteTo", 3 + %418 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 400) + %419 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %418, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %292, ptr %419, align 8 + %420 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %418, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %297, ptr %420, align 8 + %421 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %418, i64 2 + store %"github.com/goplus/llgo/runtime/abi.Method" %321, ptr %421, align 8 + %422 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %418, i64 3 + store %"github.com/goplus/llgo/runtime/abi.Method" %340, ptr %422, align 8 + %423 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %418, i64 4 + store %"github.com/goplus/llgo/runtime/abi.Method" %365, ptr %423, align 8 + %424 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %418, i64 5 + store %"github.com/goplus/llgo/runtime/abi.Method" %388, ptr %424, align 8 + %425 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %418, i64 6 + store %"github.com/goplus/llgo/runtime/abi.Method" %405, ptr %425, align 8 + %426 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %418, i64 7 + store %"github.com/goplus/llgo/runtime/abi.Method" %409, ptr %426, align 8 + %427 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %418, i64 8 + store %"github.com/goplus/llgo/runtime/abi.Method" %413, ptr %427, align 8 + %428 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %418, i64 9 + store %"github.com/goplus/llgo/runtime/abi.Method" %417, ptr %428, align 8 + %429 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %418, 0 + %430 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %429, i64 10, 1 + %431 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %430, i64 10, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %260, ptr %275, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %431) + %432 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 12 }, i64 25, i64 32, i64 0, i64 10) + %433 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %432) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %433) store ptr %433, ptr @"*_llgo_main.stringReader", align 8 %434 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8 %435 = load ptr, ptr @"_llgo_iface$OFO8Us9n8ajWCabGedeuoJ-Za2zAMk4Jh0FunAcUCFE", align 8 @@ -1666,45 +1666,45 @@ _llgo_62: ; preds = %_llgo_61, %_llgo_60 br i1 %436, label %_llgo_63, label %_llgo_64 _llgo_63: ; preds = %_llgo_62 - %437 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 4 }, ptr undef }, ptr %434, 1 - %438 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %439 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %438, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %437, ptr %439, align 8 - %440 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %438, 0 - %441 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %440, i64 1, 1 - %442 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %441, i64 1, 2 - %443 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %442) + %437 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef }, ptr %434, 1 + %438 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %439 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %438, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %437, ptr %439, align 8 + %440 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %438, 0 + %441 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %440, i64 1, 1 + %442 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %441, i64 1, 2 + %443 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %442) store ptr %443, ptr @"_llgo_iface$OFO8Us9n8ajWCabGedeuoJ-Za2zAMk4Jh0FunAcUCFE", align 8 br label %_llgo_64 _llgo_64: ; preds = %_llgo_63, %_llgo_62 - %444 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @29, i64 11 }, i64 25, i64 16, i64 0, i64 1) + %444 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @29, i64 11 }, i64 25, i64 16, i64 0, i64 1) store ptr %444, ptr @_llgo_main.errorString, align 8 - %445 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %446 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 1 }, ptr %445, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %447 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %448 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %447, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %446, ptr %448, align 8 - %449 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %447, 0 - %450 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %449, i64 1, 1 - %451 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %450, i64 1, 2 - %452 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %451) + %445 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %446 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 1 }, ptr %445, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %447 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %448 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %447, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %446, ptr %448, align 8 + %449 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %447, 0 + %450 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %449, i64 1, 1 + %451 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %450, i64 1, 2 + %452 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %451) store ptr %452, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8 %453 = load ptr, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8 %454 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %455 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %454, 1 - %456 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %455, ptr @"main.(*errorString).Error", 2 - %457 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %456, ptr @"main.(*errorString).Error", 3 - %458 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %459 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %458, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %457, ptr %459, align 8 - %460 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %458, 0 - %461 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %460, i64 1, 1 - %462 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %461, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %444, ptr %453, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %462) - %463 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @29, i64 11 }, i64 25, i64 16, i64 0, i64 1) - %464 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %463) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %464) + %455 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %454, 1 + %456 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %455, ptr @"main.(*errorString).Error", 2 + %457 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %456, ptr @"main.(*errorString).Error", 3 + %458 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %459 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %458, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %457, ptr %459, align 8 + %460 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %458, 0 + %461 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %460, i64 1, 1 + %462 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %461, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %444, ptr %453, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %462) + %463 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @29, i64 11 }, i64 25, i64 16, i64 0, i64 1) + %464 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %463) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %464) store ptr %464, ptr @"*_llgo_main.errorString", align 8 %465 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 %466 = load ptr, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8 @@ -1712,14 +1712,14 @@ _llgo_64: ; preds = %_llgo_63, %_llgo_62 br i1 %467, label %_llgo_65, label %_llgo_66 _llgo_65: ; preds = %_llgo_64 - %468 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 5 }, ptr undef }, ptr %465, 1 - %469 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %470 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %469, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %468, ptr %470, align 8 - %471 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %469, 0 - %472 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %471, i64 1, 1 - %473 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %472, i64 1, 2 - %474 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %473) + %468 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 5 }, ptr undef }, ptr %465, 1 + %469 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %470 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %469, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %468, ptr %470, align 8 + %471 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %469, 0 + %472 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %471, i64 1, 1 + %473 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %472, i64 1, 2 + %474 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %473) store ptr %474, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8 br label %_llgo_66 @@ -1727,71 +1727,71 @@ _llgo_66: ; preds = %_llgo_65, %_llgo_64 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr, ptr) +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.Implements"(ptr, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr, ptr) ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr, i64, i64, i64, i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr, i64, i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface", %"github.com/goplus/llgo/internal/runtime.eface") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface", %"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/internal/runtime.Slice", ptr, i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr, i64, i64) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String") +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String") declare void @"unicode/utf8.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/internal/runtime.Slice") +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringSlice"(%"github.com/goplus/llgo/internal/runtime.String", i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64) -declare i64 @"github.com/goplus/llgo/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/internal/runtime.Slice", ptr, i64, i64) +declare i64 @"github.com/goplus/llgo/runtime/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr, i64, i64) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) -declare { i32, i64 } @"unicode/utf8.DecodeRuneInString"(%"github.com/goplus/llgo/internal/runtime.String") +declare { i32, i64 } @"unicode/utf8.DecodeRuneInString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testgo/reflect/out.ll b/compiler/cl/_testgo/reflect/out.ll index 574a7ad4..c25ba795 100644 --- a/compiler/cl/_testgo/reflect/out.ll +++ b/compiler/cl/_testgo/reflect/out.ll @@ -1,15 +1,15 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } %main.T = type { i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } %reflect.Value = type { ptr, ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } -%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.Imethod" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } @"main.init$guard" = global i1 false, align 1 @0 = private unnamed_addr constant [11 x i8] c"call.method", align 1 @@ -57,8 +57,8 @@ source_filename = "main" define i64 @"main.(*T).Add"(ptr %0, i64 %1) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 11 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 11 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %2 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 0 %3 = load i64, ptr %2, align 4 %4 = add i64 %3, %1 @@ -71,9 +71,9 @@ _llgo_0: define void @main.callClosure() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) store i64 100, ptr %0, align 4 - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %2 = getelementptr inbounds { ptr }, ptr %1, i32 0, i32 0 store ptr %0, ptr %2, align 8 %3 = insertvalue { ptr, ptr } { ptr @"main.callClosure$1", ptr undef }, ptr %1, 1 @@ -81,61 +81,61 @@ _llgo_0: %5 = load ptr, ptr @"_llgo_func$ekGNsrYBSzltfAjxbl6T8H6Yq8j16wzqS3nDj2xxGMU", align 8 %6 = load ptr, ptr @_llgo_Pointer, align 8 %7 = load ptr, ptr @"main.struct$QIHBTaw1IFobr8yvWpq-2AJFm3xBNhdW_aNBicqUBGk", align 8 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store { ptr, ptr } %3, ptr %8, align 8 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %7, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, ptr %8, 1 - %11 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %10) + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %7, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, ptr %8, 1 + %11 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %10) %12 = call i64 @reflect.Value.Kind(%reflect.Value %11) - %13 = call %"github.com/goplus/llgo/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %11) - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %13) - %15 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %13, 0 + %13 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %11) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %13) + %15 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %13, 0 %16 = getelementptr ptr, ptr %15, i64 37 %17 = load ptr, ptr %16, align 8 %18 = insertvalue { ptr, ptr } undef, ptr %17, 0 %19 = insertvalue { ptr, ptr } %18, ptr %14, 1 %20 = extractvalue { ptr, ptr } %19, 1 %21 = extractvalue { ptr, ptr } %19, 0 - %22 = call %"github.com/goplus/llgo/internal/runtime.String" %21(ptr %20) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %12) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %22) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %23 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %22 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %21(ptr %20) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %12) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %22) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %24 = getelementptr inbounds %reflect.Value, ptr %23, i64 0 %25 = load ptr, ptr @_llgo_int, align 8 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %25, 0 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %26, ptr inttoptr (i64 100 to ptr), 1 - %28 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %27) + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %25, 0 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %26, ptr inttoptr (i64 100 to ptr), 1 + %28 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %27) store %reflect.Value %28, ptr %24, align 8 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %23, 0 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %29, i64 1, 1 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %30, i64 1, 2 - %32 = call %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %11, %"github.com/goplus/llgo/internal/runtime.Slice" %31) - %33 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %32, 0 - %34 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %32, 1 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %23, 0 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, i64 1, 1 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30, i64 1, 2 + %32 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %11, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %31) + %33 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %32, 0 + %34 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %32, 1 %35 = icmp sge i64 0, %34 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %35) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %35) %36 = getelementptr inbounds %reflect.Value, ptr %33, i64 0 %37 = load %reflect.Value, ptr %36, align 8 %38 = call i64 @reflect.Value.Int(%reflect.Value %37) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %38) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %39 = call %"github.com/goplus/llgo/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %11) - %40 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %39, 0 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %38) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %39 = call %"github.com/goplus/llgo/runtime/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %11) + %40 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %39, 0 %41 = load ptr, ptr @"main.struct$QIHBTaw1IFobr8yvWpq-2AJFm3xBNhdW_aNBicqUBGk", align 8 %42 = icmp eq ptr %40, %41 br i1 %42, label %_llgo_3, label %_llgo_4 _llgo_1: ; preds = %_llgo_5 %43 = load ptr, ptr @_llgo_string, align 8 - %44 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr %44, align 8 - %45 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %43, 0 - %46 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %45, ptr %44, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %46) + %44 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr %44, align 8 + %45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %43, 0 + %46 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %45, ptr %44, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %46) unreachable _llgo_2: ; preds = %_llgo_5 @@ -145,7 +145,7 @@ _llgo_2: ; preds = %_llgo_5 ret void _llgo_3: ; preds = %_llgo_0 - %50 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %39, 1 + %50 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %39, 1 %51 = load { ptr, ptr }, ptr %50, align 8 %52 = insertvalue { { ptr, ptr }, i1 } undef, { ptr, ptr } %51, 0 %53 = insertvalue { { ptr, ptr }, i1 } %52, i1 true, 1 @@ -163,8 +163,8 @@ _llgo_5: ; preds = %_llgo_4, %_llgo_3 define i64 @"main.callClosure$1"(ptr %0, i64 %1) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 12 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 12 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %2 = load { ptr }, ptr %0, align 8 %3 = extractvalue { ptr } %2, 0 %4 = load i64, ptr %3, align 4 @@ -176,61 +176,61 @@ _llgo_0: define void @main.callFunc() { _llgo_0: %0 = load ptr, ptr @"main.struct$QIHBTaw1IFobr8yvWpq-2AJFm3xBNhdW_aNBicqUBGk", align 8 - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store { ptr, ptr } { ptr @"__llgo_stub.main.callFunc$1", ptr null }, ptr %1, align 8 - %2 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %0, 0 - %3 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %2, ptr %1, 1 - %4 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %3) + %2 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %0, 0 + %3 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %2, ptr %1, 1 + %4 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %3) %5 = call i64 @reflect.Value.Kind(%reflect.Value %4) - %6 = call %"github.com/goplus/llgo/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %4) - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %6) - %8 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %6, 0 + %6 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %4) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %6) + %8 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %6, 0 %9 = getelementptr ptr, ptr %8, i64 37 %10 = load ptr, ptr %9, align 8 %11 = insertvalue { ptr, ptr } undef, ptr %10, 0 %12 = insertvalue { ptr, ptr } %11, ptr %7, 1 %13 = extractvalue { ptr, ptr } %12, 1 %14 = extractvalue { ptr, ptr } %12, 0 - %15 = call %"github.com/goplus/llgo/internal/runtime.String" %14(ptr %13) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %5) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %15) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %15 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %14(ptr %13) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %5) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %15) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %17 = getelementptr inbounds %reflect.Value, ptr %16, i64 0 %18 = load ptr, ptr @_llgo_int, align 8 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %18, 0 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %19, ptr inttoptr (i64 100 to ptr), 1 - %21 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %20) + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %18, 0 + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %19, ptr inttoptr (i64 100 to ptr), 1 + %21 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %20) store %reflect.Value %21, ptr %17, align 8 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %16, 0 - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %22, i64 1, 1 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %23, i64 1, 2 - %25 = call %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %4, %"github.com/goplus/llgo/internal/runtime.Slice" %24) - %26 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %25, 0 - %27 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %25, 1 + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %16, 0 + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %22, i64 1, 1 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %23, i64 1, 2 + %25 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %4, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24) + %26 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, 0 + %27 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, 1 %28 = icmp sge i64 0, %27 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %28) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %28) %29 = getelementptr inbounds %reflect.Value, ptr %26, i64 0 %30 = load %reflect.Value, ptr %29, align 8 %31 = call i64 @reflect.Value.Int(%reflect.Value %30) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %31) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %32 = call %"github.com/goplus/llgo/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %4) - %33 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %32, 0 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %31) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %32 = call %"github.com/goplus/llgo/runtime/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %4) + %33 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %32, 0 %34 = load ptr, ptr @"main.struct$QIHBTaw1IFobr8yvWpq-2AJFm3xBNhdW_aNBicqUBGk", align 8 %35 = icmp eq ptr %33, %34 br i1 %35, label %_llgo_3, label %_llgo_4 _llgo_1: ; preds = %_llgo_5 %36 = load ptr, ptr @_llgo_string, align 8 - %37 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr %37, align 8 - %38 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %36, 0 - %39 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %38, ptr %37, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %39) + %37 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr %37, align 8 + %38 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %36, 0 + %39 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %38, ptr %37, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %39) unreachable _llgo_2: ; preds = %_llgo_5 @@ -240,7 +240,7 @@ _llgo_2: ; preds = %_llgo_5 ret void _llgo_3: ; preds = %_llgo_0 - %43 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %32, 1 + %43 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %32, 1 %44 = load { ptr, ptr }, ptr %43, align 8 %45 = insertvalue { { ptr, ptr }, i1 } undef, { ptr, ptr } %44, 0 %46 = insertvalue { { ptr, ptr }, i1 } %45, i1 true, 1 @@ -258,112 +258,112 @@ _llgo_5: ; preds = %_llgo_4, %_llgo_3 define i64 @"main.callFunc$1"(i64 %0) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 9 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 9 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %1 = add i64 %0, 1 ret i64 %1 } define void @main.callIMethod() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) %1 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 0 store i64 1, ptr %1, align 4 %2 = load ptr, ptr @_llgo_main.T, align 8 %3 = load ptr, ptr @"*_llgo_main.T", align 8 %4 = load ptr, ptr @"_llgo_func$ekGNsrYBSzltfAjxbl6T8H6Yq8j16wzqS3nDj2xxGMU", align 8 %5 = load ptr, ptr @"_llgo_iface$VdBKYV8-gcMjZtZfcf-u2oKoj9Lu3VXwuG8TGCW2S4A", align 8 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %5, ptr %3) - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %6, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %7, ptr %0, 1 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %8) - %10 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %8, 1 - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %9, 0 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %11, ptr %10, 1 - %13 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %12) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %5, ptr %3) + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %6, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %7, ptr %0, 1 + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %8) + %10 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %8, 1 + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %9, 0 + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %11, ptr %10, 1 + %13 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %12) %14 = call %reflect.Value @reflect.Value.Method(%reflect.Value %13, i64 0) %15 = call i64 @reflect.Value.Kind(%reflect.Value %14) - %16 = call %"github.com/goplus/llgo/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %14) - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %16) - %18 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %16, 0 + %16 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %14) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %16) + %18 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %16, 0 %19 = getelementptr ptr, ptr %18, i64 37 %20 = load ptr, ptr %19, align 8 %21 = insertvalue { ptr, ptr } undef, ptr %20, 0 %22 = insertvalue { ptr, ptr } %21, ptr %17, 1 %23 = extractvalue { ptr, ptr } %22, 1 %24 = extractvalue { ptr, ptr } %22, 0 - %25 = call %"github.com/goplus/llgo/internal/runtime.String" %24(ptr %23) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @12, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %15) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %25) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %25 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %24(ptr %23) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @12, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %15) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %25) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %27 = getelementptr inbounds %reflect.Value, ptr %26, i64 0 %28 = load ptr, ptr @_llgo_int, align 8 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %28, 0 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %29, ptr inttoptr (i64 100 to ptr), 1 - %31 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %30) + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %28, 0 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %29, ptr inttoptr (i64 100 to ptr), 1 + %31 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %30) store %reflect.Value %31, ptr %27, align 8 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %26, 0 - %33 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %32, i64 1, 1 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %33, i64 1, 2 - %35 = call %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %14, %"github.com/goplus/llgo/internal/runtime.Slice" %34) - %36 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %35, 0 - %37 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %35, 1 + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %26, 0 + %33 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %32, i64 1, 1 + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %33, i64 1, 2 + %35 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %14, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %34) + %36 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %35, 0 + %37 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %35, 1 %38 = icmp sge i64 0, %37 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %38) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %38) %39 = getelementptr inbounds %reflect.Value, ptr %36, i64 0 %40 = load %reflect.Value, ptr %39, align 8 %41 = call i64 @reflect.Value.Int(%reflect.Value %40) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %41) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %42 = call %"github.com/goplus/llgo/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %14) - %43 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %42, 0 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %41) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %42 = call %"github.com/goplus/llgo/runtime/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %14) + %43 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %42, 0 %44 = load ptr, ptr @"main.struct$QIHBTaw1IFobr8yvWpq-2AJFm3xBNhdW_aNBicqUBGk", align 8 %45 = icmp eq ptr %43, %44 br i1 %45, label %_llgo_3, label %_llgo_4 _llgo_1: ; preds = %_llgo_5 %46 = load ptr, ptr @_llgo_string, align 8 - %47 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr %47, align 8 - %48 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %46, 0 - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %48, ptr %47, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %49) + %47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr %47, align 8 + %48 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %46, 0 + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %48, ptr %47, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %49) unreachable _llgo_2: ; preds = %_llgo_5 %50 = extractvalue { ptr, ptr } %76, 1 %51 = extractvalue { ptr, ptr } %76, 0 %52 = call i64 %51(ptr %50, i64 1) - %53 = call %"github.com/goplus/llgo/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %14) - %54 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %53) - %55 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %53 = call %"github.com/goplus/llgo/runtime/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %14) + %54 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %53) + %55 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %56 = getelementptr inbounds %reflect.Value, ptr %55, i64 0 %57 = load ptr, ptr @_llgo_int, align 8 - %58 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %57, 0 - %59 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %58, ptr inttoptr (i64 100 to ptr), 1 - %60 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %59) + %58 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %57, 0 + %59 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %58, ptr inttoptr (i64 100 to ptr), 1 + %60 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %59) store %reflect.Value %60, ptr %56, align 8 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %55, 0 - %62 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %61, i64 1, 1 - %63 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %62, i64 1, 2 - %64 = call %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %54, %"github.com/goplus/llgo/internal/runtime.Slice" %63) - %65 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %64, 0 - %66 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %64, 1 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %55, 0 + %62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, i64 1, 1 + %63 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, i64 1, 2 + %64 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %54, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %63) + %65 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %64, 0 + %66 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %64, 1 %67 = icmp sge i64 0, %66 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %67) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %67) %68 = getelementptr inbounds %reflect.Value, ptr %65, i64 0 %69 = load %reflect.Value, ptr %68, align 8 %70 = call i64 @reflect.Value.Int(%reflect.Value %69) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %70) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %70) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void _llgo_3: ; preds = %_llgo_0 - %71 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %42, 1 + %71 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %42, 1 %72 = load { ptr, ptr }, ptr %71, align 8 %73 = insertvalue { { ptr, ptr }, i1 } undef, { ptr, ptr } %72, 0 %74 = insertvalue { { ptr, ptr }, i1 } %73, i1 true, 1 @@ -381,96 +381,96 @@ _llgo_5: ; preds = %_llgo_4, %_llgo_3 define void @main.callMethod() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) %1 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 0 store i64 1, ptr %1, align 4 %2 = load ptr, ptr @"*_llgo_main.T", align 8 - %3 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %2, 0 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %3, ptr %0, 1 - %5 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %4) + %3 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %2, 0 + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %3, ptr %0, 1 + %5 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %4) %6 = call %reflect.Value @reflect.Value.Method(%reflect.Value %5, i64 0) %7 = call i64 @reflect.Value.Kind(%reflect.Value %6) - %8 = call %"github.com/goplus/llgo/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %6) - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %8) - %10 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %8, 0 + %8 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %6) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %8) + %10 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %8, 0 %11 = getelementptr ptr, ptr %10, i64 37 %12 = load ptr, ptr %11, align 8 %13 = insertvalue { ptr, ptr } undef, ptr %12, 0 %14 = insertvalue { ptr, ptr } %13, ptr %9, 1 %15 = extractvalue { ptr, ptr } %14, 1 %16 = extractvalue { ptr, ptr } %14, 0 - %17 = call %"github.com/goplus/llgo/internal/runtime.String" %16(ptr %15) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 6 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %7) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %17) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %17 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" %16(ptr %15) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 6 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %7) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %17) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %19 = getelementptr inbounds %reflect.Value, ptr %18, i64 0 %20 = load ptr, ptr @_llgo_int, align 8 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %20, 0 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %21, ptr inttoptr (i64 100 to ptr), 1 - %23 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %22) + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %20, 0 + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %21, ptr inttoptr (i64 100 to ptr), 1 + %23 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %22) store %reflect.Value %23, ptr %19, align 8 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %18, 0 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %24, i64 1, 1 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %25, i64 1, 2 - %27 = call %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %6, %"github.com/goplus/llgo/internal/runtime.Slice" %26) - %28 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %27, 0 - %29 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %27, 1 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %18, 0 + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, i64 1, 1 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, i64 1, 2 + %27 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %6, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26) + %28 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %27, 0 + %29 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %27, 1 %30 = icmp sge i64 0, %29 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %30) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %30) %31 = getelementptr inbounds %reflect.Value, ptr %28, i64 0 %32 = load %reflect.Value, ptr %31, align 8 %33 = call i64 @reflect.Value.Int(%reflect.Value %32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %33) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %34 = call %"github.com/goplus/llgo/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %6) - %35 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %34, 0 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %33) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %34 = call %"github.com/goplus/llgo/runtime/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %6) + %35 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %34, 0 %36 = load ptr, ptr @"main.struct$QIHBTaw1IFobr8yvWpq-2AJFm3xBNhdW_aNBicqUBGk", align 8 %37 = icmp eq ptr %35, %36 br i1 %37, label %_llgo_3, label %_llgo_4 _llgo_1: ; preds = %_llgo_5 %38 = load ptr, ptr @_llgo_string, align 8 - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr %39, align 8 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %38, 0 - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %40, ptr %39, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %41) + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr %39, align 8 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %38, 0 + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %40, ptr %39, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %41) unreachable _llgo_2: ; preds = %_llgo_5 %42 = extractvalue { ptr, ptr } %68, 1 %43 = extractvalue { ptr, ptr } %68, 0 %44 = call i64 %43(ptr %42, i64 1) - %45 = call %"github.com/goplus/llgo/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %6) - %46 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %45) - %47 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %45 = call %"github.com/goplus/llgo/runtime/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value %6) + %46 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %45) + %47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %48 = getelementptr inbounds %reflect.Value, ptr %47, i64 0 %49 = load ptr, ptr @_llgo_int, align 8 - %50 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %49, 0 - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %50, ptr inttoptr (i64 100 to ptr), 1 - %52 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %51) + %50 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %49, 0 + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %50, ptr inttoptr (i64 100 to ptr), 1 + %52 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %51) store %reflect.Value %52, ptr %48, align 8 - %53 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %47, 0 - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %53, i64 1, 1 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, i64 1, 2 - %56 = call %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %46, %"github.com/goplus/llgo/internal/runtime.Slice" %55) - %57 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %56, 0 - %58 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %56, 1 + %53 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %47, 0 + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %53, i64 1, 1 + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, i64 1, 2 + %56 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %46, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %55) + %57 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, 0 + %58 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, 1 %59 = icmp sge i64 0, %58 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %59) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %59) %60 = getelementptr inbounds %reflect.Value, ptr %57, i64 0 %61 = load %reflect.Value, ptr %60, align 8 %62 = call i64 @reflect.Value.Int(%reflect.Value %61) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %62) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %62) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void _llgo_3: ; preds = %_llgo_0 - %63 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %34, 1 + %63 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %34, 1 %64 = load { ptr, ptr }, ptr %63, align 8 %65 = insertvalue { { ptr, ptr }, i1 } undef, { ptr, ptr } %64, 0 %66 = insertvalue { { ptr, ptr }, i1 } %65, i1 true, 1 @@ -492,16 +492,16 @@ _llgo_0: %1 = load ptr, ptr @"[]_llgo_any", align 8 %2 = load ptr, ptr @"_llgo_func$KK0iU4Wpi3BdRqssvycXqtgNe2Dq1riBlM61Rds1QsU", align 8 %3 = load ptr, ptr @"main.struct$FjMjjQr3-2iTiWyZP1IIQFOz0hUCa0OS6pEm5uVV6Pk", align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store { ptr, ptr } { ptr @__llgo_stub.main.demo, ptr null }, ptr %4, align 8 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %3, 0 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, ptr %4, 1 - %7 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %6) + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %3, 0 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %4, 1 + %7 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %6) %8 = load ptr, ptr @_llgo_int, align 8 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %8, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, ptr inttoptr (i64 1 to ptr), 1 - %11 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %10) - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 288) + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %8, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, ptr inttoptr (i64 1 to ptr), 1 + %11 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %10) + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 288) %13 = getelementptr inbounds %reflect.Value, ptr %12, i64 0 store %reflect.Value %11, ptr %13, align 8 %14 = getelementptr inbounds %reflect.Value, ptr %12, i64 1 @@ -522,47 +522,47 @@ _llgo_0: store %reflect.Value %11, ptr %21, align 8 %22 = getelementptr inbounds %reflect.Value, ptr %12, i64 9 %23 = load ptr, ptr @_llgo_int, align 8 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %23, 0 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %24, ptr inttoptr (i64 1 to ptr), 1 - %26 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %25) + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %23, 0 + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %24, ptr inttoptr (i64 1 to ptr), 1 + %26 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %25) store %reflect.Value %26, ptr %22, align 8 %27 = getelementptr inbounds %reflect.Value, ptr %12, i64 10 %28 = load ptr, ptr @_llgo_int, align 8 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %28, 0 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %29, ptr inttoptr (i64 2 to ptr), 1 - %31 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %30) + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %28, 0 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %29, ptr inttoptr (i64 2 to ptr), 1 + %31 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %30) store %reflect.Value %31, ptr %27, align 8 %32 = getelementptr inbounds %reflect.Value, ptr %12, i64 11 %33 = load ptr, ptr @_llgo_int, align 8 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %33, 0 - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %34, ptr inttoptr (i64 3 to ptr), 1 - %36 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %35) + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %33, 0 + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %34, ptr inttoptr (i64 3 to ptr), 1 + %36 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %35) store %reflect.Value %36, ptr %32, align 8 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %12, 0 - %38 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %37, i64 12, 1 - %39 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %38, i64 12, 2 - %40 = call %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %7, %"github.com/goplus/llgo/internal/runtime.Slice" %39) - %41 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %40, 0 - %42 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %40, 1 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %12, 0 + %38 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %37, i64 12, 1 + %39 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %38, i64 12, 2 + %40 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value %7, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %39) + %41 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %40, 0 + %42 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %40, 1 %43 = icmp sge i64 0, %42 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %43) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %43) %44 = getelementptr inbounds %reflect.Value, ptr %41, i64 0 %45 = load %reflect.Value, ptr %44, align 8 %46 = call i64 @reflect.Value.Int(%reflect.Value %45) - %47 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %40, 0 - %48 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %40, 1 + %47 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %40, 0 + %48 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %40, 1 %49 = icmp sge i64 1, %48 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %49) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %49) %50 = getelementptr inbounds %reflect.Value, ptr %47, i64 1 %51 = load %reflect.Value, ptr %50, align 8 %52 = call i64 @reflect.Value.Int(%reflect.Value %51) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @14, i64 10 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %46) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %52) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %53 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 240) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @14, i64 10 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %46) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %52) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %53 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 240) %54 = getelementptr inbounds %reflect.Value, ptr %53, i64 0 store %reflect.Value %11, ptr %54, align 8 %55 = getelementptr inbounds %reflect.Value, ptr %53, i64 1 @@ -582,62 +582,62 @@ _llgo_0: %62 = getelementptr inbounds %reflect.Value, ptr %53, i64 8 store %reflect.Value %11, ptr %62, align 8 %63 = getelementptr inbounds %reflect.Value, ptr %53, i64 9 - %64 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 48) - %65 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %64, i64 0 + %64 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 48) + %65 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %64, i64 0 %66 = load ptr, ptr @_llgo_int, align 8 - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %66, 0 - %68 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %67, ptr inttoptr (i64 1 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %68, ptr %65, align 8 - %69 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %64, i64 1 + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %66, 0 + %68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %67, ptr inttoptr (i64 1 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %68, ptr %65, align 8 + %69 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %64, i64 1 %70 = load ptr, ptr @_llgo_int, align 8 - %71 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %70, 0 - %72 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %71, ptr inttoptr (i64 2 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %72, ptr %69, align 8 - %73 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %64, i64 2 + %71 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %70, 0 + %72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %71, ptr inttoptr (i64 2 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %72, ptr %69, align 8 + %73 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %64, i64 2 %74 = load ptr, ptr @_llgo_int, align 8 - %75 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %74, 0 - %76 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %75, ptr inttoptr (i64 3 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %76, ptr %73, align 8 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %64, 0 - %78 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %77, i64 3, 1 - %79 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %78, i64 3, 2 + %75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %74, 0 + %76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %75, ptr inttoptr (i64 3 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %76, ptr %73, align 8 + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %64, 0 + %78 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %77, i64 3, 1 + %79 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %78, i64 3, 2 %80 = load ptr, ptr @"[]_llgo_any", align 8 - %81 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - store %"github.com/goplus/llgo/internal/runtime.Slice" %79, ptr %81, align 8 - %82 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %80, 0 - %83 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %82, ptr %81, 1 - %84 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %83) + %81 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + store %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %79, ptr %81, align 8 + %82 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %80, 0 + %83 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %82, ptr %81, 1 + %84 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %83) store %reflect.Value %84, ptr %63, align 8 - %85 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %53, 0 - %86 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %85, i64 10, 1 - %87 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %86, i64 10, 2 - %88 = call %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.CallSlice(%reflect.Value %7, %"github.com/goplus/llgo/internal/runtime.Slice" %87) - %89 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %88, 0 - %90 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %88, 1 + %85 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %53, 0 + %86 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %85, i64 10, 1 + %87 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %86, i64 10, 2 + %88 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.CallSlice(%reflect.Value %7, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %87) + %89 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %88, 0 + %90 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %88, 1 %91 = icmp sge i64 0, %90 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %91) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %91) %92 = getelementptr inbounds %reflect.Value, ptr %89, i64 0 %93 = load %reflect.Value, ptr %92, align 8 %94 = call i64 @reflect.Value.Int(%reflect.Value %93) - %95 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %88, 0 - %96 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %88, 1 + %95 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %88, 0 + %96 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %88, 1 %97 = icmp sge i64 1, %96 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %97) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %97) %98 = getelementptr inbounds %reflect.Value, ptr %95, i64 1 %99 = load %reflect.Value, ptr %98, align 8 %100 = call i64 @reflect.Value.Int(%reflect.Value %99) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @14, i64 10 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %94) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %100) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @14, i64 10 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %94) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %100) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } -define { i64, i64 } @main.demo(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i64 %6, i64 %7, i64 %8, %"github.com/goplus/llgo/internal/runtime.Slice" %9) { +define { i64, i64 } @main.demo(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i64 %6, i64 %7, i64 %8, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9) { _llgo_0: - %10 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 1 + %10 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 1 br label %_llgo_1 _llgo_1: ; preds = %_llgo_4, %_llgo_0 @@ -648,15 +648,15 @@ _llgo_1: ; preds = %_llgo_4, %_llgo_0 br i1 %14, label %_llgo_2, label %_llgo_3 _llgo_2: ; preds = %_llgo_1 - %15 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 0 - %16 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 1 + %15 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 0 + %16 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 1 %17 = icmp slt i64 %13, 0 %18 = icmp sge i64 %13, %16 %19 = or i1 %18, %17 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %19) - %20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %15, i64 %13 - %21 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %20, align 8 - %22 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %21, 0 + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %19) + %20 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %15, i64 %13 + %21 = load %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %20, align 8 + %22 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %21, 0 %23 = load ptr, ptr @_llgo_int, align 8 %24 = icmp eq ptr %22, %23 br i1 %24, label %_llgo_4, label %_llgo_5 @@ -675,18 +675,18 @@ _llgo_3: ; preds = %_llgo_1 ret { i64, i64 } %34 _llgo_4: ; preds = %_llgo_2 - %35 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %21, 1 + %35 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %21, 1 %36 = ptrtoint ptr %35 to i64 %37 = add i64 %11, %36 br label %_llgo_1 _llgo_5: ; preds = %_llgo_2 %38 = load ptr, ptr @_llgo_string, align 8 - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 21 }, ptr %39, align 8 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %38, 0 - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %40, ptr %39, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %41) + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 21 }, ptr %39, align 8 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %38, 0 + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %40, ptr %39, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %41) unreachable } @@ -709,7 +709,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @main.callSlice() call void @main.callFunc() @@ -724,129 +724,129 @@ _llgo_0: define void @main.mapDemo1() { _llgo_0: %0 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %0, i64 2) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %0, i64 2) %2 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 1, ptr %3, align 4 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %2, ptr %1, ptr %3) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @20, i64 5 }, ptr %4, align 8 + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %2, ptr %1, ptr %3) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @20, i64 5 }, ptr %4, align 8 %5 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 2, ptr %6, align 4 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %5, ptr %1, ptr %6) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 5 }, ptr %7, align 8 + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %5, ptr %1, ptr %6) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 5 }, ptr %7, align 8 %8 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %8, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, ptr %1, 1 - %11 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %10) + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %8, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, ptr %1, 1 + %11 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %10) %12 = call i64 @reflect.Value.Len(%reflect.Value %11) %13 = icmp ne i64 %12, 2 br i1 %13, label %_llgo_1, label %_llgo_3 _llgo_1: ; preds = %_llgo_3, %_llgo_0 %14 = load ptr, ptr @_llgo_string, align 8 - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr %15, align 8 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %14, 0 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %16, ptr %15, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %17) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr %15, align 8 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %14, 0 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %16, ptr %15, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %17) unreachable _llgo_2: ; preds = %_llgo_3 %18 = load ptr, ptr @_llgo_int, align 8 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %18, 0 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %19, ptr inttoptr (i64 2 to ptr), 1 - %21 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %20) + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %18, 0 + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %19, ptr inttoptr (i64 2 to ptr), 1 + %21 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %20) %22 = call %reflect.Value @reflect.Value.MapIndex(%reflect.Value %11, %reflect.Value %21) - %23 = call %"github.com/goplus/llgo/internal/runtime.String" @reflect.Value.String(%reflect.Value %22) - %24 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %23, %"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 5 }) + %23 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @reflect.Value.String(%reflect.Value %22) + %24 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %23, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 5 }) %25 = xor i1 %24, true br i1 %25, label %_llgo_4, label %_llgo_5 _llgo_3: ; preds = %_llgo_0 - %26 = call %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.MapKeys(%reflect.Value %11) - %27 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %26, 1 + %26 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.MapKeys(%reflect.Value %11) + %27 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26, 1 %28 = icmp ne i64 %27, 2 br i1 %28, label %_llgo_1, label %_llgo_2 _llgo_4: ; preds = %_llgo_2 %29 = load ptr, ptr @_llgo_string, align 8 - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 14 }, ptr %30, align 8 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %29, 0 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %31, ptr %30, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %32) + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 14 }, ptr %30, align 8 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %29, 0 + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %31, ptr %30, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %32) unreachable _llgo_5: ; preds = %_llgo_2 %33 = load ptr, ptr @_llgo_int, align 8 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %33, 0 - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %34, ptr inttoptr (i64 2 to ptr), 1 - %36 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %35) + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %33, 0 + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %34, ptr inttoptr (i64 2 to ptr), 1 + %36 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %35) %37 = load ptr, ptr @_llgo_string, align 8 - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 4 }, ptr %38, align 8 - %39 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %37, 0 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %39, ptr %38, 1 - %41 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %40) + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 4 }, ptr %38, align 8 + %39 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %37, 0 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %39, ptr %38, 1 + %41 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %40) call void @reflect.Value.SetMapIndex(%reflect.Value %11, %reflect.Value %36, %reflect.Value %41) %42 = load ptr, ptr @_llgo_int, align 8 - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %42, 0 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %43, ptr inttoptr (i64 2 to ptr), 1 - %45 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %44) + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %42, 0 + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %43, ptr inttoptr (i64 2 to ptr), 1 + %45 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %44) %46 = call %reflect.Value @reflect.Value.MapIndex(%reflect.Value %11, %reflect.Value %45) - %47 = call %"github.com/goplus/llgo/internal/runtime.String" @reflect.Value.String(%reflect.Value %46) - %48 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %47, %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 4 }) + %47 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @reflect.Value.String(%reflect.Value %46) + %48 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %47, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 4 }) %49 = xor i1 %48, true br i1 %49, label %_llgo_6, label %_llgo_7 _llgo_6: ; preds = %_llgo_5 %50 = load ptr, ptr @_llgo_string, align 8 - %51 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 14 }, ptr %51, align 8 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %50, 0 - %53 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %52, ptr %51, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %53) + %51 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 14 }, ptr %51, align 8 + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %50, 0 + %53 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %52, ptr %51, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %53) unreachable _llgo_7: ; preds = %_llgo_5 %54 = load ptr, ptr @_llgo_int, align 8 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %54, 0 - %56 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %55, ptr null, 1 - %57 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %56) + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %54, 0 + %56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %55, ptr null, 1 + %57 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %56) %58 = call %reflect.Value @reflect.Value.MapIndex(%reflect.Value %11, %reflect.Value %57) %59 = call i1 @reflect.Value.IsValid(%reflect.Value %58) br i1 %59, label %_llgo_8, label %_llgo_9 _llgo_8: ; preds = %_llgo_7 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 12 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 12 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_9 _llgo_9: ; preds = %_llgo_8, %_llgo_7 - %60 = call %"github.com/goplus/llgo/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %11) - %61 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %60) - %62 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %60, 0 + %60 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %11) + %61 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %60) + %62 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %60, 0 %63 = getelementptr ptr, ptr %62, i64 20 %64 = load ptr, ptr %63, align 8 %65 = insertvalue { ptr, ptr } undef, ptr %64, 0 %66 = insertvalue { ptr, ptr } %65, ptr %61, 1 %67 = extractvalue { ptr, ptr } %66, 1 %68 = extractvalue { ptr, ptr } %66, 0 - %69 = call %"github.com/goplus/llgo/internal/runtime.iface" %68(ptr %67) - %70 = call %reflect.Value @reflect.New(%"github.com/goplus/llgo/internal/runtime.iface" %69) + %69 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" %68(ptr %67) + %70 = call %reflect.Value @reflect.New(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %69) %71 = call %reflect.Value @reflect.Value.Elem(%reflect.Value %70) - %72 = call %"github.com/goplus/llgo/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %11) - %73 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %72) - %74 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %72, 0 + %72 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %11) + %73 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %72) + %74 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %72, 0 %75 = getelementptr ptr, ptr %74, i64 11 %76 = load ptr, ptr %75, align 8 %77 = insertvalue { ptr, ptr } undef, ptr %76, 0 %78 = insertvalue { ptr, ptr } %77, ptr %73, 1 %79 = extractvalue { ptr, ptr } %78, 1 %80 = extractvalue { ptr, ptr } %78, 0 - %81 = call %"github.com/goplus/llgo/internal/runtime.iface" %80(ptr %79) - %82 = call %reflect.Value @reflect.New(%"github.com/goplus/llgo/internal/runtime.iface" %81) + %81 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" %80(ptr %79) + %82 = call %reflect.Value @reflect.New(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %81) %83 = call %reflect.Value @reflect.Value.Elem(%reflect.Value %82) %84 = call ptr @reflect.Value.MapRange(%reflect.Value %11) br label %_llgo_12 @@ -869,18 +869,18 @@ _llgo_12: ; preds = %_llgo_14, %_llgo_9 _llgo_13: ; preds = %_llgo_14, %_llgo_10 %90 = load ptr, ptr @_llgo_string, align 8 - %91 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @25, i64 13 }, ptr %91, align 8 - %92 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %90, 0 - %93 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %92, ptr %91, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %93) + %91 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @25, i64 13 }, ptr %91, align 8 + %92 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %90, 0 + %93 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %92, ptr %91, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %93) unreachable _llgo_14: ; preds = %_llgo_10 - %94 = call %"github.com/goplus/llgo/internal/runtime.String" @reflect.Value.String(%reflect.Value %83) + %94 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @reflect.Value.String(%reflect.Value %83) %95 = call %reflect.Value @"reflect.(*MapIter).Value"(ptr %84) - %96 = call %"github.com/goplus/llgo/internal/runtime.String" @reflect.Value.String(%reflect.Value %95) - %97 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %94, %"github.com/goplus/llgo/internal/runtime.String" %96) + %96 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @reflect.Value.String(%reflect.Value %95) + %97 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %94, %"github.com/goplus/llgo/runtime/internal/runtime.String" %96) %98 = xor i1 %97, true br i1 %98, label %_llgo_13, label %_llgo_12 } @@ -888,38 +888,38 @@ _llgo_14: ; preds = %_llgo_10 define void @main.mapDemo2() { _llgo_0: %0 = load ptr, ptr @_llgo_int, align 8 - %1 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %0, 0 - %2 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %1, ptr null, 1 - %3 = call %"github.com/goplus/llgo/internal/runtime.iface" @reflect.TypeOf(%"github.com/goplus/llgo/internal/runtime.eface" %2) + %1 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %0, 0 + %2 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %1, ptr null, 1 + %3 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.TypeOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %2) %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - %8 = call %"github.com/goplus/llgo/internal/runtime.iface" @reflect.TypeOf(%"github.com/goplus/llgo/internal/runtime.eface" %7) - %9 = call %"github.com/goplus/llgo/internal/runtime.iface" @reflect.MapOf(%"github.com/goplus/llgo/internal/runtime.iface" %3, %"github.com/goplus/llgo/internal/runtime.iface" %8) - %10 = call %reflect.Value @reflect.MakeMap(%"github.com/goplus/llgo/internal/runtime.iface" %9) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + %8 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.TypeOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) + %9 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.MapOf(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %3, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %8) + %10 = call %reflect.Value @reflect.MakeMap(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %9) %11 = load ptr, ptr @_llgo_int, align 8 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %11, 0 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, ptr inttoptr (i64 1 to ptr), 1 - %14 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %13) + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %11, 0 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %12, ptr inttoptr (i64 1 to ptr), 1 + %14 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %13) %15 = load ptr, ptr @_llgo_string, align 8 - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @20, i64 5 }, ptr %16, align 8 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %15, 0 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %17, ptr %16, 1 - %19 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %18) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @20, i64 5 }, ptr %16, align 8 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %15, 0 + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %17, ptr %16, 1 + %19 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %18) call void @reflect.Value.SetMapIndex(%reflect.Value %10, %reflect.Value %14, %reflect.Value %19) %20 = load ptr, ptr @_llgo_int, align 8 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %20, 0 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %21, ptr inttoptr (i64 2 to ptr), 1 - %23 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %22) + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %20, 0 + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %21, ptr inttoptr (i64 2 to ptr), 1 + %23 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %22) %24 = load ptr, ptr @_llgo_string, align 8 - %25 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 5 }, ptr %25, align 8 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %24, 0 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %26, ptr %25, 1 - %28 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %27) + %25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 5 }, ptr %25, align 8 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %24, 0 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %26, ptr %25, 1 + %28 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %27) call void @reflect.Value.SetMapIndex(%reflect.Value %10, %reflect.Value %23, %reflect.Value %28) %29 = call i64 @reflect.Value.Len(%reflect.Value %10) %30 = icmp ne i64 %29, 2 @@ -927,108 +927,108 @@ _llgo_0: _llgo_1: ; preds = %_llgo_3, %_llgo_0 %31 = load ptr, ptr @_llgo_string, align 8 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr %32, align 8 - %33 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %31, 0 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %33, ptr %32, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %34) + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr %32, align 8 + %33 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %31, 0 + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %33, ptr %32, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %34) unreachable _llgo_2: ; preds = %_llgo_3 %35 = load ptr, ptr @_llgo_int, align 8 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %35, 0 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %36, ptr inttoptr (i64 2 to ptr), 1 - %38 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %37) + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %35, 0 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %36, ptr inttoptr (i64 2 to ptr), 1 + %38 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %37) %39 = call %reflect.Value @reflect.Value.MapIndex(%reflect.Value %10, %reflect.Value %38) - %40 = call %"github.com/goplus/llgo/internal/runtime.String" @reflect.Value.String(%reflect.Value %39) - %41 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %40, %"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 5 }) + %40 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @reflect.Value.String(%reflect.Value %39) + %41 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %40, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 5 }) %42 = xor i1 %41, true br i1 %42, label %_llgo_4, label %_llgo_5 _llgo_3: ; preds = %_llgo_0 - %43 = call %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.MapKeys(%reflect.Value %10) - %44 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %43, 1 + %43 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.MapKeys(%reflect.Value %10) + %44 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %43, 1 %45 = icmp ne i64 %44, 2 br i1 %45, label %_llgo_1, label %_llgo_2 _llgo_4: ; preds = %_llgo_2 %46 = load ptr, ptr @_llgo_string, align 8 - %47 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 14 }, ptr %47, align 8 - %48 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %46, 0 - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %48, ptr %47, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %49) + %47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 14 }, ptr %47, align 8 + %48 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %46, 0 + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %48, ptr %47, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %49) unreachable _llgo_5: ; preds = %_llgo_2 %50 = load ptr, ptr @_llgo_int, align 8 - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %50, 0 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %51, ptr inttoptr (i64 2 to ptr), 1 - %53 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %52) + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %50, 0 + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %51, ptr inttoptr (i64 2 to ptr), 1 + %53 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %52) %54 = load ptr, ptr @_llgo_string, align 8 - %55 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 4 }, ptr %55, align 8 - %56 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %54, 0 - %57 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %56, ptr %55, 1 - %58 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %57) + %55 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 4 }, ptr %55, align 8 + %56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %54, 0 + %57 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %56, ptr %55, 1 + %58 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %57) call void @reflect.Value.SetMapIndex(%reflect.Value %10, %reflect.Value %53, %reflect.Value %58) %59 = load ptr, ptr @_llgo_int, align 8 - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %59, 0 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %60, ptr inttoptr (i64 2 to ptr), 1 - %62 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %61) + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %59, 0 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %60, ptr inttoptr (i64 2 to ptr), 1 + %62 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %61) %63 = call %reflect.Value @reflect.Value.MapIndex(%reflect.Value %10, %reflect.Value %62) - %64 = call %"github.com/goplus/llgo/internal/runtime.String" @reflect.Value.String(%reflect.Value %63) - %65 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %64, %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 4 }) + %64 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @reflect.Value.String(%reflect.Value %63) + %65 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %64, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 4 }) %66 = xor i1 %65, true br i1 %66, label %_llgo_6, label %_llgo_7 _llgo_6: ; preds = %_llgo_5 %67 = load ptr, ptr @_llgo_string, align 8 - %68 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 14 }, ptr %68, align 8 - %69 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %67, 0 - %70 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %69, ptr %68, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %70) + %68 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 14 }, ptr %68, align 8 + %69 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %67, 0 + %70 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %69, ptr %68, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %70) unreachable _llgo_7: ; preds = %_llgo_5 %71 = load ptr, ptr @_llgo_int, align 8 - %72 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %71, 0 - %73 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %72, ptr null, 1 - %74 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface" %73) + %72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %71, 0 + %73 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %72, ptr null, 1 + %74 = call %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %73) %75 = call %reflect.Value @reflect.Value.MapIndex(%reflect.Value %10, %reflect.Value %74) %76 = call i1 @reflect.Value.IsValid(%reflect.Value %75) br i1 %76, label %_llgo_8, label %_llgo_9 _llgo_8: ; preds = %_llgo_7 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 12 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 12 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_9 _llgo_9: ; preds = %_llgo_8, %_llgo_7 - %77 = call %"github.com/goplus/llgo/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %10) - %78 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %77) - %79 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %77, 0 + %77 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %10) + %78 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %77) + %79 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %77, 0 %80 = getelementptr ptr, ptr %79, i64 20 %81 = load ptr, ptr %80, align 8 %82 = insertvalue { ptr, ptr } undef, ptr %81, 0 %83 = insertvalue { ptr, ptr } %82, ptr %78, 1 %84 = extractvalue { ptr, ptr } %83, 1 %85 = extractvalue { ptr, ptr } %83, 0 - %86 = call %"github.com/goplus/llgo/internal/runtime.iface" %85(ptr %84) - %87 = call %reflect.Value @reflect.New(%"github.com/goplus/llgo/internal/runtime.iface" %86) + %86 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" %85(ptr %84) + %87 = call %reflect.Value @reflect.New(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %86) %88 = call %reflect.Value @reflect.Value.Elem(%reflect.Value %87) - %89 = call %"github.com/goplus/llgo/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %10) - %90 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %89) - %91 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %89, 0 + %89 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.Value.Type(%reflect.Value %10) + %90 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %89) + %91 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %89, 0 %92 = getelementptr ptr, ptr %91, i64 11 %93 = load ptr, ptr %92, align 8 %94 = insertvalue { ptr, ptr } undef, ptr %93, 0 %95 = insertvalue { ptr, ptr } %94, ptr %90, 1 %96 = extractvalue { ptr, ptr } %95, 1 %97 = extractvalue { ptr, ptr } %95, 0 - %98 = call %"github.com/goplus/llgo/internal/runtime.iface" %97(ptr %96) - %99 = call %reflect.Value @reflect.New(%"github.com/goplus/llgo/internal/runtime.iface" %98) + %98 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" %97(ptr %96) + %99 = call %reflect.Value @reflect.New(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %98) %100 = call %reflect.Value @reflect.Value.Elem(%reflect.Value %99) %101 = call ptr @reflect.Value.MapRange(%reflect.Value %10) br label %_llgo_12 @@ -1051,31 +1051,31 @@ _llgo_12: ; preds = %_llgo_14, %_llgo_9 _llgo_13: ; preds = %_llgo_14, %_llgo_10 %107 = load ptr, ptr @_llgo_string, align 8 - %108 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @25, i64 13 }, ptr %108, align 8 - %109 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %107, 0 - %110 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %109, ptr %108, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %110) + %108 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @25, i64 13 }, ptr %108, align 8 + %109 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %107, 0 + %110 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %109, ptr %108, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %110) unreachable _llgo_14: ; preds = %_llgo_10 - %111 = call %"github.com/goplus/llgo/internal/runtime.String" @reflect.Value.String(%reflect.Value %100) + %111 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @reflect.Value.String(%reflect.Value %100) %112 = call %reflect.Value @"reflect.(*MapIter).Value"(ptr %101) - %113 = call %"github.com/goplus/llgo/internal/runtime.String" @reflect.Value.String(%reflect.Value %112) - %114 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %111, %"github.com/goplus/llgo/internal/runtime.String" %113) + %113 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @reflect.Value.String(%reflect.Value %112) + %114 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %111, %"github.com/goplus/llgo/runtime/internal/runtime.String" %113) %115 = xor i1 %114, true br i1 %115, label %_llgo_13, label %_llgo_12 } -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/internal/runtime.eface") +declare %reflect.Value @reflect.ValueOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface") define void @"main.init$after"() { _llgo_0: @@ -1084,7 +1084,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %2, ptr @_llgo_int, align 8 br label %_llgo_2 @@ -1096,20 +1096,20 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %6, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %8 = getelementptr ptr, ptr %7, i64 0 store ptr %3, ptr %8, align 8 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %7, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, i64 1, 1 - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %10, i64 1, 2 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %7, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, i64 1, 1 + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10, i64 1, 2 + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %13 = getelementptr ptr, ptr %12, i64 0 store ptr %4, ptr %13, align 8 - %14 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %12, 0 - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %14, i64 1, 1 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %15, i64 1, 2 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %11, %"github.com/goplus/llgo/internal/runtime.Slice" %16, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %17) + %14 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %12, 0 + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %14, i64 1, 1 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %15, i64 1, 2 + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %11, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %16, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %17) store ptr %17, ptr @"_llgo_func$ekGNsrYBSzltfAjxbl6T8H6Yq8j16wzqS3nDj2xxGMU", align 8 br label %_llgo_4 @@ -1119,51 +1119,51 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %19, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %20) + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %20) store ptr %20, ptr @_llgo_Pointer, align 8 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 %21 = load ptr, ptr @_llgo_int, align 8 %22 = load ptr, ptr @_llgo_int, align 8 - %23 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %24 = getelementptr ptr, ptr %23, i64 0 store ptr %21, ptr %24, align 8 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %23, 0 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %25, i64 1, 1 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %26, i64 1, 2 - %28 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %23, 0 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, i64 1, 1 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26, i64 1, 2 + %28 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %29 = getelementptr ptr, ptr %28, i64 0 store ptr %22, ptr %29, align 8 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %28, 0 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %30, i64 1, 1 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %31, i64 1, 2 - %33 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %27, %"github.com/goplus/llgo/internal/runtime.Slice" %32, i1 false) - %34 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 2 }, ptr %33, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %36 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 5 }, ptr %35, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %37 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %38 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %37, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %34, ptr %38, align 8 - %39 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %37, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %36, ptr %39, align 8 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %37, 0 - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %40, i64 2, 1 - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %41, i64 2, 2 - %43 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %42) + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %28, 0 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30, i64 1, 1 + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %31, i64 1, 2 + %33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %27, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %32, i1 false) + %34 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 2 }, ptr %33, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %36 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 5 }, ptr %35, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %37 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %38 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %37, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %34, ptr %38, align 8 + %39 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %37, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %36, ptr %39, align 8 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %37, 0 + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %40, i64 2, 1 + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %41, i64 2, 2 + %43 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %42) store ptr %43, ptr @"main.struct$QIHBTaw1IFobr8yvWpq-2AJFm3xBNhdW_aNBicqUBGk", align 8 %44 = load ptr, ptr @_llgo_string, align 8 %45 = icmp eq ptr %44, null br i1 %45, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %46 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %46 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %46, ptr @_llgo_string, align 8 br label %_llgo_8 _llgo_8: ; preds = %_llgo_7, %_llgo_6 - %47 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 8, i64 0, i64 1) + %47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 8, i64 0, i64 1) %48 = load ptr, ptr @_llgo_main.T, align 8 %49 = icmp eq ptr %48, null br i1 %49, label %_llgo_9, label %_llgo_10 @@ -1173,42 +1173,42 @@ _llgo_9: ; preds = %_llgo_8 br label %_llgo_10 _llgo_10: ; preds = %_llgo_9, %_llgo_8 - %50 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %51 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 1 }, ptr %50, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %52 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %53 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %52, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %51, ptr %53, align 8 - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %52, 0 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, i64 1, 1 - %56 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %55, i64 1, 2 - %57 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %56) + %50 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %51 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 1 }, ptr %50, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %52 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %53 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %52, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %51, ptr %53, align 8 + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %52, 0 + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, i64 1, 1 + %56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %55, i64 1, 2 + %57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56) store ptr %57, ptr @"main.struct$eovYmOhZg4X0zMSsuscSshndnbbAGvB2E3cyG8E7Y4U", align 8 %58 = load ptr, ptr @"main.struct$eovYmOhZg4X0zMSsuscSshndnbbAGvB2E3cyG8E7Y4U", align 8 br i1 %49, label %_llgo_11, label %_llgo_12 _llgo_11: ; preds = %_llgo_10 %59 = load ptr, ptr @"_llgo_func$ekGNsrYBSzltfAjxbl6T8H6Yq8j16wzqS3nDj2xxGMU", align 8 - %60 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %59, 1 - %61 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %60, ptr @"main.(*T).Add", 2 - %62 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %61, ptr @"main.(*T).Add", 3 - %63 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %64 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %62, ptr %64, align 8 - %65 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %63, 0 - %66 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %65, i64 1, 1 - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %66, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %47, ptr %58, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %67) + %60 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %59, 1 + %61 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %60, ptr @"main.(*T).Add", 2 + %62 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %61, ptr @"main.(*T).Add", 3 + %63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %64 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %63, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %62, ptr %64, align 8 + %65 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %63, 0 + %66 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %65, i64 1, 1 + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %66, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %47, ptr %58, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %67) br label %_llgo_12 _llgo_12: ; preds = %_llgo_11, %_llgo_10 - %68 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 8, i64 0, i64 1) + %68 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 8, i64 0, i64 1) %69 = load ptr, ptr @"*_llgo_main.T", align 8 %70 = icmp eq ptr %69, null br i1 %70, label %_llgo_13, label %_llgo_14 _llgo_13: ; preds = %_llgo_12 - %71 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %68) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %71) + %71 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %68) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %71) store ptr %71, ptr @"*_llgo_main.T", align 8 br label %_llgo_14 @@ -1219,14 +1219,14 @@ _llgo_14: ; preds = %_llgo_13, %_llgo_12 br i1 %74, label %_llgo_15, label %_llgo_16 _llgo_15: ; preds = %_llgo_14 - %75 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 3 }, ptr undef }, ptr %72, 1 - %76 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %77 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %76, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %75, ptr %77, align 8 - %78 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %76, 0 - %79 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %78, i64 1, 1 - %80 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %79, i64 1, 2 - %81 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %80) + %75 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 3 }, ptr undef }, ptr %72, 1 + %76 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %77 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %76, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %75, ptr %77, align 8 + %78 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %76, 0 + %79 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %78, i64 1, 1 + %80 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %79, i64 1, 2 + %81 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %80) store ptr %81, ptr @"_llgo_iface$VdBKYV8-gcMjZtZfcf-u2oKoj9Lu3VXwuG8TGCW2S4A", align 8 br label %_llgo_16 @@ -1236,11 +1236,11 @@ _llgo_16: ; preds = %_llgo_15, %_llgo_14 br i1 %83, label %_llgo_17, label %_llgo_18 _llgo_17: ; preds = %_llgo_16 - %84 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %85 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %84, 0 - %86 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %85, i64 0, 1 - %87 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %86, i64 0, 2 - %88 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %87) + %84 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %85 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %84, 0 + %86 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %85, i64 0, 1 + %87 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %86, i64 0, 2 + %88 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %87) store ptr %88, ptr @_llgo_any, align 8 br label %_llgo_18 @@ -1250,12 +1250,12 @@ _llgo_18: ; preds = %_llgo_17, %_llgo_16 br i1 %90, label %_llgo_19, label %_llgo_20 _llgo_19: ; preds = %_llgo_18 - %91 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %92 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %91, 0 - %93 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %92, i64 0, 1 - %94 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %93, i64 0, 2 - %95 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %94) - %96 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %95) + %91 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %92 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %91, 0 + %93 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %92, i64 0, 1 + %94 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %93, i64 0, 2 + %95 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %94) + %96 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %95) store ptr %96, ptr @"[]_llgo_any", align 8 br label %_llgo_20 @@ -1277,7 +1277,7 @@ _llgo_20: ; preds = %_llgo_19, %_llgo_18 br i1 %110, label %_llgo_21, label %_llgo_22 _llgo_21: ; preds = %_llgo_20 - %111 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) + %111 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) %112 = getelementptr ptr, ptr %111, i64 0 store ptr %97, ptr %112, align 8 %113 = getelementptr ptr, ptr %111, i64 1 @@ -1298,19 +1298,19 @@ _llgo_21: ; preds = %_llgo_20 store ptr %105, ptr %120, align 8 %121 = getelementptr ptr, ptr %111, i64 9 store ptr %106, ptr %121, align 8 - %122 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %111, 0 - %123 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %122, i64 10, 1 - %124 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %123, i64 10, 2 - %125 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %122 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %111, 0 + %123 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %122, i64 10, 1 + %124 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %123, i64 10, 2 + %125 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %126 = getelementptr ptr, ptr %125, i64 0 store ptr %107, ptr %126, align 8 %127 = getelementptr ptr, ptr %125, i64 1 store ptr %108, ptr %127, align 8 - %128 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %125, 0 - %129 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %128, i64 2, 1 - %130 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %129, i64 2, 2 - %131 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %124, %"github.com/goplus/llgo/internal/runtime.Slice" %130, i1 true) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %131) + %128 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %125, 0 + %129 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %128, i64 2, 1 + %130 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %129, i64 2, 2 + %131 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %124, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %130, i1 true) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %131) store ptr %131, ptr @"_llgo_func$KK0iU4Wpi3BdRqssvycXqtgNe2Dq1riBlM61Rds1QsU", align 8 br label %_llgo_22 @@ -1327,7 +1327,7 @@ _llgo_22: ; preds = %_llgo_21, %_llgo_20 %141 = load ptr, ptr @"[]_llgo_any", align 8 %142 = load ptr, ptr @_llgo_int, align 8 %143 = load ptr, ptr @_llgo_int, align 8 - %144 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) + %144 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) %145 = getelementptr ptr, ptr %144, i64 0 store ptr %132, ptr %145, align 8 %146 = getelementptr ptr, ptr %144, i64 1 @@ -1348,64 +1348,64 @@ _llgo_22: ; preds = %_llgo_21, %_llgo_20 store ptr %140, ptr %153, align 8 %154 = getelementptr ptr, ptr %144, i64 9 store ptr %141, ptr %154, align 8 - %155 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %144, 0 - %156 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %155, i64 10, 1 - %157 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %156, i64 10, 2 - %158 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %155 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %144, 0 + %156 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %155, i64 10, 1 + %157 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %156, i64 10, 2 + %158 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %159 = getelementptr ptr, ptr %158, i64 0 store ptr %142, ptr %159, align 8 %160 = getelementptr ptr, ptr %158, i64 1 store ptr %143, ptr %160, align 8 - %161 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %158, 0 - %162 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %161, i64 2, 1 - %163 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %162, i64 2, 2 - %164 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %157, %"github.com/goplus/llgo/internal/runtime.Slice" %163, i1 true) - %165 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 2 }, ptr %164, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %166 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %167 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 5 }, ptr %166, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %168 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %169 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %168, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %165, ptr %169, align 8 - %170 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %168, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %167, ptr %170, align 8 - %171 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %168, 0 - %172 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %171, i64 2, 1 - %173 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %172, i64 2, 2 - %174 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %173) + %161 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %158, 0 + %162 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %161, i64 2, 1 + %163 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %162, i64 2, 2 + %164 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %157, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %163, i1 true) + %165 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 2 }, ptr %164, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %166 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %167 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 5 }, ptr %166, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %168 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %169 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %168, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %165, ptr %169, align 8 + %170 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %168, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %167, ptr %170, align 8 + %171 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %168, 0 + %172 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %171, i64 2, 1 + %173 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %172, i64 2, 2 + %174 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %173) store ptr %174, ptr @"main.struct$FjMjjQr3-2iTiWyZP1IIQFOz0hUCa0OS6pEm5uVV6Pk", align 8 %175 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 %176 = icmp eq ptr %175, null br i1 %176, label %_llgo_23, label %_llgo_24 _llgo_23: ; preds = %_llgo_22 - %177 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %178 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %179 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %180 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %179) - %181 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @16, i64 7 }, ptr %180, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %182 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %183 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %182) - %184 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 4 }, ptr %183, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %185 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %186 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %185) - %187 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 5 }, ptr %186, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %188 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %189 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 8 }, ptr %188, i64 200, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %190 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %191 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %190, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %181, ptr %191, align 8 - %192 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %190, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %184, ptr %192, align 8 - %193 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %190, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %187, ptr %193, align 8 - %194 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %190, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %189, ptr %194, align 8 - %195 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %190, 0 - %196 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %195, i64 4, 1 - %197 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %196, i64 4, 2 - %198 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 208, %"github.com/goplus/llgo/internal/runtime.Slice" %197) - %199 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %177, ptr %178, ptr %198, i64 4) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %199) + %177 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %178 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %179 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %180 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %179) + %181 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @16, i64 7 }, ptr %180, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %182 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %183 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %182) + %184 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 4 }, ptr %183, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %185 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %186 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %185) + %187 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 5 }, ptr %186, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %188 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %189 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 8 }, ptr %188, i64 200, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %190 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %191 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %190, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %181, ptr %191, align 8 + %192 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %190, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %184, ptr %192, align 8 + %193 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %190, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %187, ptr %193, align 8 + %194 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %190, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %189, ptr %194, align 8 + %195 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %190, 0 + %196 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %195, i64 4, 1 + %197 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %196, i64 4, 2 + %198 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 208, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %197) + %199 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %177, ptr %178, ptr %198, i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %199) store ptr %199, ptr @"map[_llgo_int]_llgo_string", align 8 br label %_llgo_24 @@ -1413,35 +1413,35 @@ _llgo_24: ; preds = %_llgo_23, %_llgo_22 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) declare i64 @reflect.Value.Kind(%reflect.Value) -declare %"github.com/goplus/llgo/internal/runtime.iface" @reflect.Value.Type(%reflect.Value) +declare %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.Value.Type(%reflect.Value) -declare ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value, %"github.com/goplus/llgo/internal/runtime.Slice") +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.Call(%reflect.Value, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) declare i64 @reflect.Value.Int(%reflect.Value) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare %"github.com/goplus/llgo/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value) +declare %"github.com/goplus/llgo/runtime/internal/runtime.eface" @reflect.Value.Interface(%reflect.Value) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") define linkonce i64 @"__llgo_stub.main.callFunc$1"(ptr %0, i64 %1) { _llgo_0: @@ -1449,57 +1449,57 @@ _llgo_0: ret i64 %2 } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") declare %reflect.Value @reflect.Value.Method(%reflect.Value, i64) -define linkonce { i64, i64 } @__llgo_stub.main.demo(ptr %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i64 %6, i64 %7, i64 %8, i64 %9, %"github.com/goplus/llgo/internal/runtime.Slice" %10) { +define linkonce { i64, i64 } @__llgo_stub.main.demo(ptr %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i64 %6, i64 %7, i64 %8, i64 %9, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10) { _llgo_0: - %11 = tail call { i64, i64 } @main.demo(i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i64 %6, i64 %7, i64 %8, i64 %9, %"github.com/goplus/llgo/internal/runtime.Slice" %10) + %11 = tail call { i64, i64 } @main.demo(i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i64 %6, i64 %7, i64 %8, i64 %9, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10) ret { i64, i64 } %11 } -declare ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.CallSlice(%reflect.Value, %"github.com/goplus/llgo/internal/runtime.Slice") +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.CallSlice(%reflect.Value, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") declare void @reflect.init() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr, ptr, ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr, ptr, ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr, ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr, ptr, ptr) declare i64 @reflect.Value.Len(%reflect.Value) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @reflect.Value.MapKeys(%reflect.Value) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @reflect.Value.MapKeys(%reflect.Value) declare %reflect.Value @reflect.Value.MapIndex(%reflect.Value, %reflect.Value) -declare %"github.com/goplus/llgo/internal/runtime.String" @reflect.Value.String(%reflect.Value) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @reflect.Value.String(%reflect.Value) -declare i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") declare void @reflect.Value.SetMapIndex(%reflect.Value, %reflect.Value, %reflect.Value) declare i1 @reflect.Value.IsValid(%reflect.Value) -declare %reflect.Value @reflect.New(%"github.com/goplus/llgo/internal/runtime.iface") +declare %reflect.Value @reflect.New(%"github.com/goplus/llgo/runtime/internal/runtime.iface") declare %reflect.Value @reflect.Value.Elem(%reflect.Value) @@ -1515,8 +1515,8 @@ declare %reflect.Value @"reflect.(*MapIter).Key"(ptr) declare %reflect.Value @"reflect.(*MapIter).Value"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.iface" @reflect.TypeOf(%"github.com/goplus/llgo/internal/runtime.eface") +declare %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.TypeOf(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare %"github.com/goplus/llgo/internal/runtime.iface" @reflect.MapOf(%"github.com/goplus/llgo/internal/runtime.iface", %"github.com/goplus/llgo/internal/runtime.iface") +declare %"github.com/goplus/llgo/runtime/internal/runtime.iface" @reflect.MapOf(%"github.com/goplus/llgo/runtime/internal/runtime.iface", %"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare %reflect.Value @reflect.MakeMap(%"github.com/goplus/llgo/internal/runtime.iface") +declare %reflect.Value @reflect.MakeMap(%"github.com/goplus/llgo/runtime/internal/runtime.iface") diff --git a/compiler/cl/_testgo/selects/out.ll b/compiler/cl/_testgo/selects/out.ll index 6196d5c7..8b3338e8 100644 --- a/compiler/cl/_testgo/selects/out.ll +++ b/compiler/cl/_testgo/selects/out.ll @@ -1,10 +1,10 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.ChanOp" = type { ptr, ptr, i32, i1 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" = type { ptr, ptr, i32, i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -36,19 +36,19 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64 0, i64 1) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64 0, i64 1) store ptr %3, ptr %2, align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64 0, i64 1) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64 0, i64 1) store ptr %5, ptr %4, align 8 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64 0, i64 1) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64 0, i64 1) store ptr %7, ptr %6, align 8 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64 0, i64 1) - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64 0, i64 1) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) %10 = getelementptr inbounds { ptr, ptr, ptr }, ptr %9, i32 0, i32 0 store ptr %2, ptr %10, align 8 %11 = getelementptr inbounds { ptr, ptr, ptr }, ptr %9, i32 0, i32 1 @@ -60,41 +60,41 @@ _llgo_0: %15 = getelementptr inbounds { { ptr, ptr } }, ptr %14, i32 0, i32 0 store { ptr, ptr } %13, ptr %15, align 8 %16 = alloca i8, i64 8, align 1 - %17 = call i32 @"github.com/goplus/llgo/internal/runtime.CreateThread"(ptr %16, ptr null, ptr @"main._llgo_routine$1", ptr %14) + %17 = call i32 @"github.com/goplus/llgo/runtime/internal/runtime.CreateThread"(ptr %16, ptr null, ptr @"main._llgo_routine$1", ptr %14) %18 = load ptr, ptr %2, align 8 %19 = alloca {}, align 8 call void @llvm.memset(ptr %19, i8 0, i64 0, i1 false) store {} zeroinitializer, ptr %19, align 1 - %20 = call i1 @"github.com/goplus/llgo/internal/runtime.ChanSend"(ptr %18, ptr %19, i64 0) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %20 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.ChanSend"(ptr %18, ptr %19, i64 0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %21 = load ptr, ptr %4, align 8 %22 = alloca {}, align 8 call void @llvm.memset(ptr %22, i8 0, i64 0, i1 false) - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" undef, ptr %21, 0 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %23, ptr %22, 1 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %24, i32 0, 2 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %25, i1 false, 3 + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" undef, ptr %21, 0 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %23, ptr %22, 1 + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %24, i32 0, 2 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %25, i1 false, 3 %27 = alloca {}, align 8 call void @llvm.memset(ptr %27, i8 0, i64 0, i1 false) - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" undef, ptr %8, 0 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %28, ptr %27, 1 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %29, i32 0, 2 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %30, i1 false, 3 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) - %33 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %32, i64 0 - store %"github.com/goplus/llgo/internal/runtime.ChanOp" %26, ptr %33, align 8 - %34 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %32, i64 1 - store %"github.com/goplus/llgo/internal/runtime.ChanOp" %31, ptr %34, align 8 - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %32, 0 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %35, i64 2, 1 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %36, i64 2, 2 - %38 = call { i64, i1 } @"github.com/goplus/llgo/internal/runtime.Select"(%"github.com/goplus/llgo/internal/runtime.Slice" %37) + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" undef, ptr %8, 0 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %28, ptr %27, 1 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %29, i32 0, 2 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %30, i1 false, 3 + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) + %33 = getelementptr %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp", ptr %32, i64 0 + store %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %26, ptr %33, align 8 + %34 = getelementptr %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp", ptr %32, i64 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %31, ptr %34, align 8 + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %32, 0 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %35, i64 2, 1 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %36, i64 2, 2 + %38 = call { i64, i1 } @"github.com/goplus/llgo/runtime/internal/runtime.Select"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %37) %39 = extractvalue { i64, i1 } %38, 0 %40 = extractvalue { i64, i1 } %38, 1 - %41 = extractvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %26, 1 + %41 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %26, 1 %42 = load {}, ptr %41, align 1 - %43 = extractvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %31, 1 + %43 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %31, 1 %44 = load {}, ptr %43, align 1 %45 = insertvalue { i64, i1, {}, {} } undef, i64 %39, 0 %46 = insertvalue { i64, i1, {}, {} } %45, i1 %40, 1 @@ -108,8 +108,8 @@ _llgo_1: ; preds = %_llgo_4, %_llgo_2 ret i32 0 _llgo_2: ; preds = %_llgo_0 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_3: ; preds = %_llgo_0 @@ -117,17 +117,17 @@ _llgo_3: ; preds = %_llgo_0 br i1 %51, label %_llgo_4, label %_llgo_5 _llgo_4: ; preds = %_llgo_3 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_5: ; preds = %_llgo_3 %52 = load ptr, ptr @_llgo_string, align 8 - %53 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 31 }, ptr %53, align 8 - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %52, 0 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %54, ptr %53, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %55) + %53 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 31 }, ptr %53, align 8 + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %52, 0 + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %54, ptr %53, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %55) unreachable } @@ -138,10 +138,10 @@ _llgo_0: %3 = load ptr, ptr %2, align 8 %4 = alloca {}, align 8 call void @llvm.memset(ptr %4, i8 0, i64 0, i1 false) - %5 = call i1 @"github.com/goplus/llgo/internal/runtime.ChanRecv"(ptr %3, ptr %4, i64 0) + %5 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.ChanRecv"(ptr %3, ptr %4, i64 0) %6 = load {}, ptr %4, align 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %7 = extractvalue { ptr, ptr, ptr } %1, 1 %8 = load ptr, ptr %7, align 8 %9 = extractvalue { ptr, ptr, ptr } %1, 2 @@ -149,28 +149,28 @@ _llgo_0: %11 = alloca {}, align 8 call void @llvm.memset(ptr %11, i8 0, i64 0, i1 false) store {} zeroinitializer, ptr %11, align 1 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" undef, ptr %8, 0 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %12, ptr %11, 1 - %14 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %13, i32 0, 2 - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %14, i1 true, 3 + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" undef, ptr %8, 0 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %12, ptr %11, 1 + %14 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %13, i32 0, 2 + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %14, i1 true, 3 %16 = alloca {}, align 8 call void @llvm.memset(ptr %16, i8 0, i64 0, i1 false) - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" undef, ptr %10, 0 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %17, ptr %16, 1 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %18, i32 0, 2 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %19, i1 false, 3 - %21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) - %22 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %21, i64 0 - store %"github.com/goplus/llgo/internal/runtime.ChanOp" %15, ptr %22, align 8 - %23 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %21, i64 1 - store %"github.com/goplus/llgo/internal/runtime.ChanOp" %20, ptr %23, align 8 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %21, 0 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %24, i64 2, 1 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %25, i64 2, 2 - %27 = call { i64, i1 } @"github.com/goplus/llgo/internal/runtime.Select"(%"github.com/goplus/llgo/internal/runtime.Slice" %26) + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" undef, ptr %10, 0 + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %17, ptr %16, 1 + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %18, i32 0, 2 + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %19, i1 false, 3 + %21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) + %22 = getelementptr %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp", ptr %21, i64 0 + store %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %15, ptr %22, align 8 + %23 = getelementptr %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp", ptr %21, i64 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %20, ptr %23, align 8 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %21, 0 + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, i64 2, 1 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, i64 2, 2 + %27 = call { i64, i1 } @"github.com/goplus/llgo/runtime/internal/runtime.Select"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26) %28 = extractvalue { i64, i1 } %27, 0 %29 = extractvalue { i64, i1 } %27, 1 - %30 = extractvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %20, 1 + %30 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.ChanOp" %20, 1 %31 = load {}, ptr %30, align 1 %32 = insertvalue { i64, i1, {} } undef, i64 %28, 0 %33 = insertvalue { i64, i1, {} } %32, i1 %29, 1 @@ -183,8 +183,8 @@ _llgo_1: ; preds = %_llgo_4, %_llgo_2 ret void _llgo_2: ; preds = %_llgo_0 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_3: ; preds = %_llgo_0 @@ -192,27 +192,27 @@ _llgo_3: ; preds = %_llgo_0 br i1 %37, label %_llgo_4, label %_llgo_5 _llgo_4: ; preds = %_llgo_3 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_5: ; preds = %_llgo_3 %38 = load ptr, ptr @_llgo_string, align 8 - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 31 }, ptr %39, align 8 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %38, 0 - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %40, ptr %39, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %41) + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 31 }, ptr %39, align 8 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %38, 0 + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %40, ptr %39, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %41) unreachable } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) declare ptr @malloc(i64) @@ -229,18 +229,18 @@ _llgo_0: declare void @free(ptr) -declare i32 @"github.com/goplus/llgo/internal/runtime.CreateThread"(ptr, ptr, ptr, ptr) +declare i32 @"github.com/goplus/llgo/runtime/internal/runtime.CreateThread"(ptr, ptr, ptr, ptr) -declare i1 @"github.com/goplus/llgo/internal/runtime.ChanSend"(ptr, ptr, i64) +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.ChanSend"(ptr, ptr, i64) ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare { i64, i1 } @"github.com/goplus/llgo/internal/runtime.Select"(%"github.com/goplus/llgo/internal/runtime.Slice") +declare { i64, i1 } @"github.com/goplus/llgo/runtime/internal/runtime.Select"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice") define void @"main.init$after"() { _llgo_0: @@ -249,7 +249,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %2, ptr @_llgo_string, align 8 br label %_llgo_2 @@ -257,10 +257,10 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare i1 @"github.com/goplus/llgo/internal/runtime.ChanRecv"(ptr, ptr, i64) +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.ChanRecv"(ptr, ptr, i64) attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testgo/strucintf/out.ll b/compiler/cl/_testgo/strucintf/out.ll index daa813c8..70bdc94d 100644 --- a/compiler/cl/_testgo/strucintf/out.ll +++ b/compiler/cl/_testgo/strucintf/out.ll @@ -1,10 +1,10 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @_llgo_int = linkonce global ptr null, align 8 @@ -19,7 +19,7 @@ source_filename = "main" @4 = private unnamed_addr constant [11 x i8] c"Bar: not ok", align 1 @5 = private unnamed_addr constant [9 x i8] c"F: not ok", align 1 -define %"github.com/goplus/llgo/internal/runtime.eface" @main.Foo() { +define %"github.com/goplus/llgo/runtime/internal/runtime.eface" @main.Foo() { _llgo_0: %0 = alloca { i64 }, align 8 call void @llvm.memset(ptr %0, i8 0, i64 8, i1 false) @@ -30,9 +30,9 @@ _llgo_0: %4 = load ptr, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8 %5 = extractvalue { i64 } %2, 0 %6 = inttoptr i64 %5 to ptr - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %7, ptr %6, 1 - ret %"github.com/goplus/llgo/internal/runtime.eface" %8 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %7, ptr %6, 1 + ret %"github.com/goplus/llgo/runtime/internal/runtime.eface" %8 } define void @main.init() { @@ -42,7 +42,7 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 - call void @"github.com/goplus/llgo/cl/internal/foo.init"() + call void @"github.com/goplus/llgo/compiler/cl/internal/foo.init"() call void @"main.init$after"() br label %_llgo_2 @@ -54,12 +54,12 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call %"github.com/goplus/llgo/internal/runtime.eface" @main.Foo() + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.eface" @main.Foo() %3 = alloca { i64 }, align 8 call void @llvm.memset(ptr %3, i8 0, i64 8, i1 false) - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %2, 0 + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %2, 0 %5 = load ptr, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8 %6 = icmp eq ptr %4, %5 br i1 %6, label %_llgo_10, label %_llgo_11 @@ -67,62 +67,62 @@ _llgo_0: _llgo_1: ; preds = %_llgo_12 %7 = getelementptr inbounds { i64 }, ptr %3, i32 0, i32 0 %8 = load i64, ptr %7, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %8) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_2 _llgo_2: ; preds = %_llgo_3, %_llgo_1 - %9 = call %"github.com/goplus/llgo/internal/runtime.eface" @"github.com/goplus/llgo/cl/internal/foo.Bar"() + %9 = call %"github.com/goplus/llgo/runtime/internal/runtime.eface" @"github.com/goplus/llgo/compiler/cl/internal/foo.Bar"() %10 = alloca { i64 }, align 8 call void @llvm.memset(ptr %10, i8 0, i64 8, i1 false) - %11 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, 0 + %11 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, 0 %12 = load ptr, ptr @"_llgo_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk", align 8 %13 = icmp eq ptr %11, %12 br i1 %13, label %_llgo_13, label %_llgo_14 _llgo_3: ; preds = %_llgo_12 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 11 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 11 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_2 _llgo_4: ; preds = %_llgo_15 %14 = getelementptr inbounds { i64 }, ptr %10, i32 0, i32 0 %15 = load i64, ptr %14, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %15) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %15) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_5 _llgo_5: ; preds = %_llgo_6, %_llgo_4 %16 = alloca { i64 }, align 8 call void @llvm.memset(ptr %16, i8 0, i64 8, i1 false) - %17 = call %"github.com/goplus/llgo/internal/runtime.eface" @"github.com/goplus/llgo/cl/internal/foo.F"() - %18 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %17, 0 + %17 = call %"github.com/goplus/llgo/runtime/internal/runtime.eface" @"github.com/goplus/llgo/compiler/cl/internal/foo.F"() + %18 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %17, 0 %19 = load ptr, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8 %20 = icmp eq ptr %18, %19 br i1 %20, label %_llgo_16, label %_llgo_17 _llgo_6: ; preds = %_llgo_15 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 11 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 11 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_5 _llgo_7: ; preds = %_llgo_18 %21 = getelementptr inbounds { i64 }, ptr %16, i32 0, i32 0 %22 = load i64, ptr %21, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %22) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %22) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_8 _llgo_8: ; preds = %_llgo_9, %_llgo_7 ret i32 0 _llgo_9: ; preds = %_llgo_18 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 9 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 9 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_8 _llgo_10: ; preds = %_llgo_0 - %23 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %2, 1 + %23 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %2, 1 %24 = ptrtoint ptr %23 to i64 %25 = insertvalue { i64 } undef, i64 %24, 0 %26 = insertvalue { { i64 }, i1 } undef, { i64 } %25, 0 @@ -140,7 +140,7 @@ _llgo_12: ; preds = %_llgo_11, %_llgo_10 br i1 %30, label %_llgo_1, label %_llgo_3 _llgo_13: ; preds = %_llgo_2 - %31 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, 1 + %31 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, 1 %32 = ptrtoint ptr %31 to i64 %33 = insertvalue { i64 } undef, i64 %32, 0 %34 = insertvalue { { i64 }, i1 } undef, { i64 } %33, 0 @@ -158,7 +158,7 @@ _llgo_15: ; preds = %_llgo_14, %_llgo_13 br i1 %38, label %_llgo_4, label %_llgo_6 _llgo_16: ; preds = %_llgo_5 - %39 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %17, 1 + %39 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %17, 1 %40 = ptrtoint ptr %39 to i64 %41 = insertvalue { i64 } undef, i64 %40, 0 %42 = insertvalue { { i64 }, i1 } undef, { i64 } %41, 0 @@ -186,35 +186,35 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %2, ptr @_llgo_int, align 8 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %4 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 1 }, ptr %3, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %6 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %5, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %4, ptr %6, align 8 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %5, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %7, i64 1, 1 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, i64 1, 2 - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %9) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %4 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 1 }, ptr %3, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %6 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %5, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %4, ptr %6, align 8 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %5, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, i64 1, 1 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, i64 1, 2 + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9) store ptr %10, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8 %11 = load ptr, ptr @"_llgo_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk", align 8 %12 = icmp eq ptr %11, null br i1 %12, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %14 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 1 }, ptr %13, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %16 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %15, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %14, ptr %16, align 8 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %15, 0 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %17, i64 1, 1 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %18, i64 1, 2 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %19) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %14 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 1 }, ptr %13, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %16 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %15, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %14, ptr %16, align 8 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %15, 0 + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %17, i64 1, 1 + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %18, i64 1, 2 + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19) store ptr %20, ptr @"_llgo_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk", align 8 br label %_llgo_4 @@ -222,26 +222,26 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/cl/internal/foo.init"() +declare void @"github.com/goplus/llgo/compiler/cl/internal/foo.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare %"github.com/goplus/llgo/internal/runtime.eface" @"github.com/goplus/llgo/cl/internal/foo.Bar"() +declare %"github.com/goplus/llgo/runtime/internal/runtime.eface" @"github.com/goplus/llgo/compiler/cl/internal/foo.Bar"() -declare %"github.com/goplus/llgo/internal/runtime.eface" @"github.com/goplus/llgo/cl/internal/foo.F"() +declare %"github.com/goplus/llgo/runtime/internal/runtime.eface" @"github.com/goplus/llgo/compiler/cl/internal/foo.F"() attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testgo/struczero/out.ll b/compiler/cl/_testgo/struczero/out.ll index ab1c9335..41df8c35 100644 --- a/compiler/cl/_testgo/struczero/out.ll +++ b/compiler/cl/_testgo/struczero/out.ll @@ -1,17 +1,17 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/cl/internal/foo.Foo" = type { ptr, float } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/compiler/cl/internal/foo.Foo" = type { ptr, float } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } %main.bar = type { ptr, float } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } @"main.init$guard" = global i1 false, align 1 -@"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo" = linkonce global ptr null, align 8 -@0 = private unnamed_addr constant [38 x i8] c"github.com/goplus/llgo/cl/internal/foo", align 1 +@"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Foo" = linkonce global ptr null, align 8 +@0 = private unnamed_addr constant [47 x i8] c"github.com/goplus/llgo/compiler/cl/internal/foo", align 1 @1 = private unnamed_addr constant [3 x i8] c"Foo", align 1 @_llgo_byte = linkonce global ptr null, align 8 @"*_llgo_byte" = linkonce global ptr null, align 8 @@ -30,41 +30,41 @@ source_filename = "main" @__llgo_argv = global ptr null, align 8 @8 = private unnamed_addr constant [6 x i8] c"notOk:", align 1 -define { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } @main.Bar(%"github.com/goplus/llgo/internal/runtime.eface" %0) { +define { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } @main.Bar(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 - %2 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 + %2 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Foo", align 8 %3 = icmp eq ptr %1, %2 br i1 %3, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 - %5 = load %"github.com/goplus/llgo/cl/internal/foo.Foo", ptr %4, align 8 - %6 = insertvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } undef, %"github.com/goplus/llgo/cl/internal/foo.Foo" %5, 0 - %7 = insertvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %6, i1 true, 1 + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 + %5 = load %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", ptr %4, align 8 + %6 = insertvalue { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } undef, %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo" %5, 0 + %7 = insertvalue { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } %6, i1 true, 1 br label %_llgo_3 _llgo_2: ; preds = %_llgo_0 br label %_llgo_3 _llgo_3: ; preds = %_llgo_2, %_llgo_1 - %8 = phi { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } [ %7, %_llgo_1 ], [ zeroinitializer, %_llgo_2 ] - %9 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %8, 0 - %10 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %8, 1 - %11 = insertvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } undef, %"github.com/goplus/llgo/cl/internal/foo.Foo" %9, 0 - %12 = insertvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %11, i1 %10, 1 - ret { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %12 + %8 = phi { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } [ %7, %_llgo_1 ], [ zeroinitializer, %_llgo_2 ] + %9 = extractvalue { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } %8, 0 + %10 = extractvalue { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } %8, 1 + %11 = insertvalue { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } undef, %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo" %9, 0 + %12 = insertvalue { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } %11, i1 %10, 1 + ret { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } %12 } -define { %main.bar, i1 } @main.Foo(%"github.com/goplus/llgo/internal/runtime.eface" %0) { +define { %main.bar, i1 } @main.Foo(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %2 = load ptr, ptr @_llgo_main.bar, align 8 %3 = icmp eq ptr %1, %2 br i1 %3, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %5 = load %main.bar, ptr %4, align 8 %6 = insertvalue { %main.bar, i1 } undef, %main.bar %5, 0 %7 = insertvalue { %main.bar, i1 } %6, i1 true, 1 @@ -89,7 +89,7 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 - call void @"github.com/goplus/llgo/cl/internal/foo.init"() + call void @"github.com/goplus/llgo/compiler/cl/internal/foo.init"() call void @"main.init$after"() br label %_llgo_2 @@ -101,11 +101,11 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = alloca %main.bar, align 8 call void @llvm.memset(ptr %2, i8 0, i64 16, i1 false) - %3 = call { %main.bar, i1 } @main.Foo(%"github.com/goplus/llgo/internal/runtime.eface" zeroinitializer) + %3 = call { %main.bar, i1 } @main.Foo(%"github.com/goplus/llgo/runtime/internal/runtime.eface" zeroinitializer) %4 = extractvalue { %main.bar, i1 } %3, 0 store %main.bar %4, ptr %2, align 8 %5 = extractvalue { %main.bar, i1 } %3, 1 @@ -114,49 +114,49 @@ _llgo_0: %8 = getelementptr inbounds %main.bar, ptr %2, i32 0, i32 1 %9 = load float, ptr %8, align 4 %10 = xor i1 %5, true - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %7) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %7) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %11 = fpext float %9 to double - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %11) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 6 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %10) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %12 = alloca %"github.com/goplus/llgo/cl/internal/foo.Foo", align 8 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 6 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %12 = alloca %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", align 8 call void @llvm.memset(ptr %12, i8 0, i64 16, i1 false) - %13 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/cl/internal/foo.Foo" zeroinitializer, ptr %14, align 8 - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %13, 0 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %15, ptr %14, 1 - %17 = call { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } @main.Bar(%"github.com/goplus/llgo/internal/runtime.eface" %16) - %18 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %17, 0 - store %"github.com/goplus/llgo/cl/internal/foo.Foo" %18, ptr %12, align 8 - %19 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %17, 1 - %20 = load %"github.com/goplus/llgo/cl/internal/foo.Foo", ptr %12, align 8 - %21 = call ptr @"github.com/goplus/llgo/cl/internal/foo.Foo.Pb"(%"github.com/goplus/llgo/cl/internal/foo.Foo" %20) - %22 = getelementptr inbounds %"github.com/goplus/llgo/cl/internal/foo.Foo", ptr %12, i32 0, i32 1 + %13 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Foo", align 8 + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo" zeroinitializer, ptr %14, align 8 + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %13, 0 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %15, ptr %14, 1 + %17 = call { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } @main.Bar(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %16) + %18 = extractvalue { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } %17, 0 + store %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo" %18, ptr %12, align 8 + %19 = extractvalue { %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", i1 } %17, 1 + %20 = load %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", ptr %12, align 8 + %21 = call ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.Foo.Pb"(%"github.com/goplus/llgo/compiler/cl/internal/foo.Foo" %20) + %22 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/internal/foo.Foo", ptr %12, i32 0, i32 1 %23 = load float, ptr %22, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %21) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %21) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %24 = fpext float %23 to double - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %24) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %19) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %24) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %19) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 38 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 3 }, i64 25, i64 16, i64 1, i64 1) - %1 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8 + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 47 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 3 }, i64 25, i64 16, i64 1, i64 1) + %1 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Foo", align 8 %2 = icmp eq ptr %1, null br i1 %2, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - store ptr %0, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8 + store ptr %0, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/internal/foo.Foo", align 8 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 @@ -165,7 +165,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) store ptr %5, ptr @_llgo_byte, align 8 br label %_llgo_4 @@ -176,9 +176,9 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %8, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %9) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %10) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %10) store ptr %10, ptr @"*_llgo_byte", align 8 br label %_llgo_6 @@ -189,26 +189,26 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 br i1 %13, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 45) store ptr %14, ptr @_llgo_float32, align 8 br label %_llgo_8 _llgo_8: ; preds = %_llgo_7, %_llgo_6 %15 = load ptr, ptr @_llgo_float32, align 8 - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %16) - %18 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 2 }, ptr %17, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45) - %20 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 1 }, ptr %19, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %22 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %18, ptr %22, align 8 - %23 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %20, ptr %23, align 8 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %21, 0 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %24, i64 2, 1 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %25, i64 2, 2 - %27 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %26) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %16) + %18 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }, ptr %17, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 45) + %20 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 1 }, ptr %19, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %22 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %21, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %18, ptr %22, align 8 + %23 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %21, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %20, ptr %23, align 8 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %21, 0 + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, i64 2, 1 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, i64 2, 2 + %27 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26) store ptr %27, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8 %28 = load ptr, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8 br i1 %2, label %_llgo_9, label %_llgo_10 @@ -221,105 +221,105 @@ _llgo_9: ; preds = %_llgo_8 br i1 %32, label %_llgo_11, label %_llgo_12 _llgo_10: ; preds = %_llgo_12, %_llgo_8 - %33 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 3 }, i64 25, i64 16, i64 0, i64 0) + %33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 3 }, i64 25, i64 16, i64 0, i64 0) store ptr %33, ptr @_llgo_main.bar, align 8 %34 = load ptr, ptr @"*_llgo_byte", align 8 - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %36 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %35) - %37 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 2 }, ptr %36, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45) - %39 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 1 }, ptr %38, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %40 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %41 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %40, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %37, ptr %41, align 8 - %42 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %40, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %39, ptr %42, align 8 - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %40, 0 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %43, i64 2, 1 - %45 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %44, i64 2, 2 - %46 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %45) + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %36 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %35) + %37 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }, ptr %36, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 45) + %39 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 1 }, ptr %38, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %40 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %41 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %40, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %37, ptr %41, align 8 + %42 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %40, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %39, ptr %42, align 8 + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %40, 0 + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %43, i64 2, 1 + %45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %44, i64 2, 2 + %46 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %45) store ptr %46, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8 %47 = load ptr, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %33, ptr %47, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %33, ptr %47, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) ret void _llgo_11: ; preds = %_llgo_9 - %48 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %48, 0 - %50 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %49, i64 0, 1 - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %50, i64 0, 2 - %52 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %48 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %48, 0 + %50 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %49, i64 0, 1 + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %50, i64 0, 2 + %52 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %53 = getelementptr ptr, ptr %52, i64 0 store ptr %30, ptr %53, align 8 - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %52, 0 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, i64 1, 1 - %56 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %55, i64 1, 2 - %57 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %51, %"github.com/goplus/llgo/internal/runtime.Slice" %56, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %57) + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %52, 0 + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, i64 1, 1 + %56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %55, i64 1, 2 + %57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %51, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %57) store ptr %57, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8 br label %_llgo_12 _llgo_12: ; preds = %_llgo_11, %_llgo_9 %58 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8 - %59 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 2 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1 - %60 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %59, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", 2 - %61 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %60, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", 3 - %62 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 2 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1 - %63 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %62, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", 2 - %64 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %63, ptr @"github.com/goplus/llgo/cl/internal/foo.Foo.Pb", 3 - %65 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %66 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %65, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %64, ptr %66, align 8 - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %65, 0 - %68 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %67, i64 1, 1 - %69 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %68, i64 1, 2 - %70 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %71 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %70, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %61, ptr %71, align 8 - %72 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %70, 0 - %73 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %72, i64 1, 1 - %74 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %73, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, ptr %28, %"github.com/goplus/llgo/internal/runtime.Slice" %69, %"github.com/goplus/llgo/internal/runtime.Slice" %74) + %59 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1 + %60 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %59, ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Foo).Pb", 2 + %61 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %60, ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Foo).Pb", 3 + %62 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1 + %63 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %62, ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Foo).Pb", 2 + %64 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %63, ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.Foo.Pb", 3 + %65 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %66 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %65, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %64, ptr %66, align 8 + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %65, 0 + %68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %67, i64 1, 1 + %69 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %68, i64 1, 2 + %70 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %71 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %70, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %61, ptr %71, align 8 + %72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %70, 0 + %73 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %72, i64 1, 1 + %74 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %73, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %28, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %69, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %74) br label %_llgo_10 } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb"(ptr) +declare ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.(*Foo).Pb"(ptr) -declare ptr @"github.com/goplus/llgo/cl/internal/foo.Foo.Pb"(%"github.com/goplus/llgo/cl/internal/foo.Foo") +declare ptr @"github.com/goplus/llgo/compiler/cl/internal/foo.Foo.Pb"(%"github.com/goplus/llgo/compiler/cl/internal/foo.Foo") -declare void @"github.com/goplus/llgo/cl/internal/foo.init"() +declare void @"github.com/goplus/llgo/compiler/cl/internal/foo.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testgo/tpindex/out.ll b/compiler/cl/_testgo/tpindex/out.ll index fdf6db3d..cbbf1fc9 100644 --- a/compiler/cl/_testgo/tpindex/out.ll +++ b/compiler/cl/_testgo/tpindex/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -24,9 +24,9 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %3 = getelementptr inbounds i64, ptr %2, i64 0 store i64 1, ptr %3, align 4 %4 = getelementptr inbounds i64, ptr %2, i64 1 @@ -37,25 +37,25 @@ _llgo_0: store i64 2, ptr %6, align 4 %7 = getelementptr inbounds i64, ptr %2, i64 4 store i64 4, ptr %7, align 4 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %2, 0 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, i64 5, 1 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, i64 5, 2 - %11 = call i64 @"main.index[int]"(%"github.com/goplus/llgo/internal/runtime.Slice" %10, i64 3) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %11) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %12 = call i64 @"main.index[int]"(%"github.com/goplus/llgo/internal/runtime.Slice" %10, i64 6) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %12) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %2, 0 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, i64 5, 1 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, i64 5, 2 + %11 = call i64 @"main.index[int]"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10, i64 3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %12 = call i64 @"main.index[int]"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10, i64 6) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %12) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -define linkonce i64 @"main.index[int]"(%"github.com/goplus/llgo/internal/runtime.Slice" %0, i64 %1) { +define linkonce i64 @"main.index[int]"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, i64 %1) { _llgo_0: - %2 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %2 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 br label %_llgo_1 _llgo_1: ; preds = %_llgo_2, %_llgo_0 @@ -65,12 +65,12 @@ _llgo_1: ; preds = %_llgo_2, %_llgo_0 br i1 %5, label %_llgo_2, label %_llgo_3 _llgo_2: ; preds = %_llgo_1 - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 0 - %7 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 0 + %7 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 %8 = icmp slt i64 %4, 0 %9 = icmp sge i64 %4, %7 %10 = or i1 %9, %8 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %10) %11 = getelementptr inbounds i64, ptr %6, i64 %4 %12 = load i64, ptr %11, align 4 %13 = icmp eq i64 %1, %12 @@ -83,8 +83,8 @@ _llgo_4: ; preds = %_llgo_2 ret i64 %4 } -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) diff --git a/compiler/cl/_testgo/tpnamed/out.ll b/compiler/cl/_testgo/tpnamed/out.ll index d7eb5ea6..f726cec4 100644 --- a/compiler/cl/_testgo/tpnamed/out.ll +++ b/compiler/cl/_testgo/tpnamed/out.ll @@ -2,9 +2,9 @@ source_filename = "main" %"main.IO[error]" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } %"main.Future[error]" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } %"main.IO[[0]byte]" = type { ptr, ptr } %"main.Future[[0]byte]" = type { ptr, ptr } @@ -12,7 +12,7 @@ source_filename = "main" @__llgo_argc = global i32 0, align 4 @__llgo_argv = global ptr null, align 8 -define %"main.IO[error]" @main.WriteFile(%"github.com/goplus/llgo/internal/runtime.String" %0) { +define %"main.IO[error]" @main.WriteFile(%"github.com/goplus/llgo/runtime/internal/runtime.String" %0) { _llgo_0: ret %"main.IO[error]" { ptr @"__llgo_stub.main.WriteFile$1", ptr null } } @@ -22,9 +22,9 @@ _llgo_0: ret %"main.Future[error]" { ptr @"__llgo_stub.main.WriteFile$1$1", ptr null } } -define %"github.com/goplus/llgo/internal/runtime.iface" @"main.WriteFile$1$1"() { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.WriteFile$1$1"() { _llgo_0: - ret %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer } define void @main.init() { @@ -44,7 +44,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call [0 x i8] @"main.RunIO[[0]byte]"(%"main.IO[[0]byte]" { ptr @"__llgo_stub.main.main$1", ptr null }) ret i32 0 @@ -66,13 +66,13 @@ _llgo_0: ret %"main.Future[error]" %1 } -define linkonce %"github.com/goplus/llgo/internal/runtime.iface" @"__llgo_stub.main.WriteFile$1$1"(ptr %0) { +define linkonce %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"__llgo_stub.main.WriteFile$1$1"(ptr %0) { _llgo_0: - %1 = tail call %"github.com/goplus/llgo/internal/runtime.iface" @"main.WriteFile$1$1"() - ret %"github.com/goplus/llgo/internal/runtime.iface" %1 + %1 = tail call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.WriteFile$1$1"() + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define linkonce %"main.Future[[0]byte]" @"__llgo_stub.main.main$1"(ptr %0) { _llgo_0: diff --git a/compiler/cl/_testgo/tprecur/out.ll b/compiler/cl/_testgo/tprecur/out.ll index 079d15df..4e8654a0 100644 --- a/compiler/cl/_testgo/tprecur/out.ll +++ b/compiler/cl/_testgo/tprecur/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -29,7 +29,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @main.recursive() ret i32 0 @@ -43,18 +43,18 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %2 = load ptr, ptr @_llgo_string, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %3, align 8 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %2, 0 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %4, ptr %3, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %5) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %3, align 8 + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %2, 0 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %4, ptr %3, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %5) unreachable _llgo_2: ; preds = %_llgo_0 ret void } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define linkonce i64 @"main.recur1[main.T]"(i64 %0) { _llgo_0: @@ -82,7 +82,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %2, ptr @_llgo_string, align 8 br label %_llgo_2 @@ -90,16 +90,16 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") define linkonce i64 @"main.recur2[main.T]"(i64 %0) { _llgo_0: - %1 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.MakeSlice"(i64 %0, i64 %0, i64 8) - %2 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 1 + %1 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.MakeSlice"(i64 %0, i64 %0, i64 8) + %2 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 1 br label %_llgo_1 _llgo_1: ; preds = %_llgo_2, %_llgo_0 @@ -110,18 +110,18 @@ _llgo_1: ; preds = %_llgo_2, %_llgo_0 _llgo_2: ; preds = %_llgo_1 %6 = add i64 %4, 1 - %7 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 0 - %8 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 1 + %7 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 0 + %8 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 1 %9 = icmp slt i64 %4, 0 %10 = icmp sge i64 %4, %8 %11 = or i1 %10, %9 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %11) %12 = getelementptr inbounds i64, ptr %7, i64 %4 store i64 %6, ptr %12, align 4 br label %_llgo_1 _llgo_3: ; preds = %_llgo_1 - %13 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 1 + %13 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 1 br label %_llgo_4 _llgo_4: ; preds = %_llgo_5, %_llgo_3 @@ -132,12 +132,12 @@ _llgo_4: ; preds = %_llgo_5, %_llgo_3 br i1 %17, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %18 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 0 - %19 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 1 + %18 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 0 + %19 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 1 %20 = icmp slt i64 %16, 0 %21 = icmp sge i64 %16, %19 %22 = or i1 %21, %20 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %22) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %22) %23 = getelementptr inbounds i64, ptr %18, i64 %16 %24 = load i64, ptr %23, align 4 %25 = add i64 %14, %24 @@ -150,6 +150,6 @@ _llgo_6: ; preds = %_llgo_4 ret i64 %28 } -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.MakeSlice"(i64, i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.MakeSlice"(i64, i64, i64) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) diff --git a/compiler/cl/_testgo/tprecurfn/out.ll b/compiler/cl/_testgo/tprecurfn/out.ll index abb374ce..adafcf8e 100644 --- a/compiler/cl/_testgo/tprecurfn/out.ll +++ b/compiler/cl/_testgo/tprecurfn/out.ll @@ -24,11 +24,11 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %3 = getelementptr inbounds %"main.My[int]", ptr %2, i32 0, i32 1 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %5 = getelementptr inbounds %"main.My[int]", ptr %4, i32 0, i32 0 store { ptr, ptr } { ptr @"__llgo_stub.main.main$1", ptr null }, ptr %5, align 8 store ptr %4, ptr %3, align 8 @@ -44,14 +44,14 @@ _llgo_0: define void @"main.main$1"(i64 %0) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %0) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) define linkonce void @"__llgo_stub.main.main$1"(ptr %0, i64 %1) { _llgo_0: @@ -59,6 +59,6 @@ _llgo_0: ret void } -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) diff --git a/compiler/cl/_testgo/tptypes/out.ll b/compiler/cl/_testgo/tptypes/out.ll index 8838ada6..69bb5529 100644 --- a/compiler/cl/_testgo/tptypes/out.ll +++ b/compiler/cl/_testgo/tptypes/out.ll @@ -2,11 +2,11 @@ source_filename = "main" %"main.Data[int]" = type { i64 } -%"main.Data[string]" = type { %"github.com/goplus/llgo/internal/runtime.String" } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"main.Slice[[]int,int]" = type { %"github.com/goplus/llgo/internal/runtime.Slice" } -%"main.Slice[[]string,string]" = type { %"github.com/goplus/llgo/internal/runtime.Slice" } +%"main.Data[string]" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String" } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"main.Slice[[]int,int]" = type { %"github.com/goplus/llgo/runtime/internal/runtime.Slice" } +%"main.Slice[[]string,string]" = type { %"github.com/goplus/llgo/runtime/internal/runtime.Slice" } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -30,7 +30,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = alloca %"main.Data[int]", align 8 call void @llvm.memset(ptr %2, i8 0, i64 8, i1 false) @@ -38,52 +38,52 @@ _llgo_0: store i64 1, ptr %3, align 4 %4 = load %"main.Data[int]", ptr %2, align 4 %5 = extractvalue %"main.Data[int]" %4, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %5) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %5) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %6 = alloca %"main.Data[string]", align 8 call void @llvm.memset(ptr %6, i8 0, i64 16, i1 false) %7 = getelementptr inbounds %"main.Data[string]", ptr %6, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %7, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %7, align 8 %8 = load %"main.Data[string]", ptr %6, align 8 %9 = extractvalue %"main.Data[string]" %8, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %10 = alloca %"main.Data[int]", align 8 call void @llvm.memset(ptr %10, i8 0, i64 8, i1 false) %11 = getelementptr inbounds %"main.Data[int]", ptr %10, i32 0, i32 0 store i64 100, ptr %11, align 4 %12 = load %"main.Data[int]", ptr %10, align 4 %13 = extractvalue %"main.Data[int]" %12, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %13) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %13) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %14 = alloca %"main.Data[string]", align 8 call void @llvm.memset(ptr %14, i8 0, i64 16, i1 false) %15 = getelementptr inbounds %"main.Data[string]", ptr %14, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %15, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %15, align 8 %16 = load %"main.Data[string]", ptr %14, align 8 %17 = extractvalue %"main.Data[string]" %16, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %17) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 0) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %17) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) %20 = getelementptr inbounds i64, ptr %19, i64 0 store i64 100, ptr %20, align 4 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %19, 0 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %21, i64 1, 1 - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %22, i64 1, 2 - %24 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append"(ptr %18, %"github.com/goplus/llgo/internal/runtime.Slice" %23) - %25 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) - %27 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %26, i64 0 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %27, align 8 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %26, 0 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %28, i64 1, 1 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %29, i64 1, 2 - %31 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]string,string]).Append"(ptr %25, %"github.com/goplus/llgo/internal/runtime.Slice" %30) - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) - %33 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %19, 0 + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %21, i64 1, 1 + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %22, i64 1, 2 + %24 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append"(ptr %18, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %23) + %25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) + %27 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %26, i64 0 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %27, align 8 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %26, 0 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %28, i64 1, 1 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, i64 1, 2 + %31 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"main.(*Slice[[]string,string]).Append"(ptr %25, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30) + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) + %33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) %34 = getelementptr inbounds i64, ptr %33, i64 0 store i64 1, ptr %34, align 4 %35 = getelementptr inbounds i64, ptr %33, i64 1 @@ -92,11 +92,11 @@ _llgo_0: store i64 3, ptr %36, align 4 %37 = getelementptr inbounds i64, ptr %33, i64 3 store i64 4, ptr %37, align 4 - %38 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %33, 0 - %39 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %38, i64 4, 1 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %39, i64 4, 2 - %41 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append"(ptr %32, %"github.com/goplus/llgo/internal/runtime.Slice" %40) - %42 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) + %38 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %33, 0 + %39 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %38, i64 4, 1 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %39, i64 4, 2 + %41 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append"(ptr %32, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %40) + %42 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) %43 = getelementptr inbounds i64, ptr %42, i64 0 store i64 1, ptr %43, align 4 %44 = getelementptr inbounds i64, ptr %42, i64 1 @@ -105,114 +105,114 @@ _llgo_0: store i64 3, ptr %45, align 4 %46 = getelementptr inbounds i64, ptr %42, i64 3 store i64 4, ptr %46, align 4 - %47 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %42, 0 - %48 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %47, i64 4, 1 - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %48, i64 4, 2 - %50 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append2"(ptr %32, %"github.com/goplus/llgo/internal/runtime.Slice" %49) + %47 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %42, 0 + %48 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %47, i64 4, 1 + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %48, i64 4, 2 + %50 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append2"(ptr %32, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %49) %51 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %18, i32 0, i32 0 - %52 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %51, align 8 + %52 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %51, align 8 %53 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %18, i32 0, i32 0 - %54 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %53, align 8 - %55 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, 0 - %56 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, 1 + %54 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %53, align 8 + %55 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, 0 + %56 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, 1 %57 = icmp sge i64 0, %56 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %57) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %57) %58 = getelementptr inbounds i64, ptr %55, i64 0 %59 = load i64, ptr %58, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %52) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %59) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %52) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %59) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %60 = getelementptr inbounds %"main.Slice[[]string,string]", ptr %25, i32 0, i32 0 - %61 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %60, align 8 + %61 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %60, align 8 %62 = getelementptr inbounds %"main.Slice[[]string,string]", ptr %25, i32 0, i32 0 - %63 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %62, align 8 - %64 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %63, 0 - %65 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %63, 1 + %63 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %62, align 8 + %64 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %63, 0 + %65 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %63, 1 %66 = icmp sge i64 0, %65 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %66) - %67 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %64, i64 0 - %68 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %67, align 8 - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %61) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %68) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %66) + %67 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %64, i64 0 + %68 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %67, align 8 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %68) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %69 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %32, i32 0, i32 0 - %70 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %69, align 8 + %70 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %69, align 8 %71 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %32, i32 0, i32 0 - %72 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %71, align 8 - %73 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %72, 0 - %74 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %72, 1 + %72 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %71, align 8 + %73 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %72, 0 + %74 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %72, 1 %75 = icmp sge i64 0, %74 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %75) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %75) %76 = getelementptr inbounds i64, ptr %73, i64 0 %77 = load i64, ptr %76, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %70) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %77) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %70) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %77) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -define linkonce %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append"(ptr %0, %"github.com/goplus/llgo/internal/runtime.Slice" %1) { +define linkonce %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) { _llgo_0: %2 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %0, i32 0, i32 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %2, align 8 - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 0 - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 1 - %6 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/internal/runtime.Slice" %3, ptr %4, i64 %5, i64 8) + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %2, align 8 + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 0 + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 1 + %6 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, ptr %4, i64 %5, i64 8) %7 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %0, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.Slice" %6, ptr %7, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6, ptr %7, align 8 %8 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %0, i32 0, i32 0 - %9 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %8, align 8 - ret %"github.com/goplus/llgo/internal/runtime.Slice" %9 + %9 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %8, align 8 + ret %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9 } -define linkonce %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]string,string]).Append"(ptr %0, %"github.com/goplus/llgo/internal/runtime.Slice" %1) { +define linkonce %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"main.(*Slice[[]string,string]).Append"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) { _llgo_0: %2 = getelementptr inbounds %"main.Slice[[]string,string]", ptr %0, i32 0, i32 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %2, align 8 - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 0 - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 1 - %6 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/internal/runtime.Slice" %3, ptr %4, i64 %5, i64 16) + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %2, align 8 + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 0 + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 1 + %6 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, ptr %4, i64 %5, i64 16) %7 = getelementptr inbounds %"main.Slice[[]string,string]", ptr %0, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.Slice" %6, ptr %7, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6, ptr %7, align 8 %8 = getelementptr inbounds %"main.Slice[[]string,string]", ptr %0, i32 0, i32 0 - %9 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %8, align 8 - ret %"github.com/goplus/llgo/internal/runtime.Slice" %9 + %9 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %8, align 8 + ret %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9 } -define linkonce %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append2"(ptr %0, %"github.com/goplus/llgo/internal/runtime.Slice" %1) { +define linkonce %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append2"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1) { _llgo_0: %2 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %0, i32 0, i32 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %2, align 8 - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 0 - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1, 1 - %6 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/internal/runtime.Slice" %3, ptr %4, i64 %5, i64 8) + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %2, align 8 + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 0 + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1, 1 + %6 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, ptr %4, i64 %5, i64 8) %7 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %0, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.Slice" %6, ptr %7, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6, ptr %7, align 8 %8 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %0, i32 0, i32 0 - %9 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %8, align 8 - ret %"github.com/goplus/llgo/internal/runtime.Slice" %9 + %9 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %8, align 8 + ret %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9 } -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) -declare void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/internal/runtime.Slice", ptr, i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr, i64, i64) attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testlibc/allocacstrs/out.ll b/compiler/cl/_testlibc/allocacstrs/out.ll index ecbd40d4..c61ab832 100644 --- a/compiler/cl/_testlibc/allocacstrs/out.ll +++ b/compiler/cl/_testlibc/allocacstrs/out.ll @@ -1,8 +1,8 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -29,19 +29,19 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 48) - %3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i64 0 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 1 }, ptr %3, align 8 - %4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i64 1 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 1 }, ptr %4, align 8 - %5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i64 2 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 1 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %2, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %6, i64 3, 1 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %7, i64 3, 2 - %9 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, 1 + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 48) + %3 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %2, i64 0 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 1 }, ptr %3, align 8 + %4 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %2, i64 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 1 }, ptr %4, align 8 + %5 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %2, i64 2 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 1 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %2, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6, i64 3, 1 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, i64 3, 2 + %9 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, 1 %10 = add i64 %9, 1 %11 = alloca ptr, i64 %10, align 8 br label %_llgo_4 @@ -67,19 +67,19 @@ _llgo_4: ; preds = %_llgo_5, %_llgo_0 br i1 %19, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %20 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, 0 - %21 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, 1 + %20 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, 0 + %21 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, 1 %22 = icmp slt i64 %18, 0 %23 = icmp sge i64 %18, %21 %24 = or i1 %23, %22 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %24) - %25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %20, i64 %18 - %26 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %25, align 8 + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %24) + %25 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %20, i64 %18 + %26 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %25, align 8 %27 = getelementptr ptr, ptr %11, i64 %18 - %28 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %26, 1 + %28 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %26, 1 %29 = add i64 %28, 1 %30 = alloca i8, i64 %29, align 1 - %31 = call ptr @"github.com/goplus/llgo/internal/runtime.CStrCopy"(ptr %30, %"github.com/goplus/llgo/internal/runtime.String" %26) + %31 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.CStrCopy"(ptr %30, %"github.com/goplus/llgo/runtime/internal/runtime.String" %26) store ptr %31, ptr %27, align 8 %32 = add i64 %18, 1 br label %_llgo_4 @@ -90,12 +90,12 @@ _llgo_6: ; preds = %_llgo_4 br label %_llgo_1 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.CStrCopy"(ptr, %"github.com/goplus/llgo/internal/runtime.String") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.CStrCopy"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.String") declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testlibc/argv/out.ll b/compiler/cl/_testlibc/argv/out.ll index 4c849ce8..2bda712d 100644 --- a/compiler/cl/_testlibc/argv/out.ll +++ b/compiler/cl/_testlibc/argv/out.ll @@ -23,7 +23,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() br label %_llgo_1 @@ -45,6 +45,6 @@ _llgo_3: ; preds = %_llgo_1 ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testlibc/atomic/out.ll b/compiler/cl/_testlibc/atomic/out.ll index bbe00131..436b2cf5 100644 --- a/compiler/cl/_testlibc/atomic/out.ll +++ b/compiler/cl/_testlibc/atomic/out.ll @@ -27,9 +27,9 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) store atomic i64 100, ptr %2 seq_cst, align 4 %3 = load atomic i64, ptr %2 seq_cst, align 4 %4 = call i32 (ptr, ...) @printf(ptr @0, i64 %3) @@ -52,8 +52,8 @@ _llgo_0: ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testlibc/complex/out.ll b/compiler/cl/_testlibc/complex/out.ll index f0265aff..177fcf1e 100644 --- a/compiler/cl/_testlibc/complex/out.ll +++ b/compiler/cl/_testlibc/complex/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @0 = private unnamed_addr constant [5 x i8] c"addr:", align 1 @@ -13,28 +13,28 @@ source_filename = "main" define void @main.f({ float, float } %0, { float, float } %1, ptr %2) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %3 = call float @cabsf({ float, float } %0) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 10 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 10 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %4 = fpext float %3 to double - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %5 = extractvalue { float, float } %1, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 11 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 11 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %6 = fpext float %5 to double - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %6) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %6) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %7 = extractvalue { float, float } %1, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 11 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 11 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %8 = fpext float %7 to double - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %8) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } @@ -55,20 +55,20 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @main.f({ float, float } { float 3.000000e+00, float 4.000000e+00 }, { float, float } { float 3.000000e+00, float 4.000000e+00 }, ptr @main.f) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr) declare float @cabsf({ float, float }) -declare void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double) -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testlibc/demangle/out.ll b/compiler/cl/_testlibc/demangle/out.ll index 45438d96..9cd62d7b 100644 --- a/compiler/cl/_testlibc/demangle/out.ll +++ b/compiler/cl/_testlibc/demangle/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -27,9 +27,9 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @_ZN4llvm15itaniumDemangleENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 29 }, i1 true) + %2 = call ptr @_ZN4llvm15itaniumDemangleENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 29 }, i1 true) %3 = icmp ne ptr %2, null br i1 %3, label %_llgo_1, label %_llgo_3 @@ -41,17 +41,17 @@ _llgo_2: ; preds = %_llgo_3, %_llgo_1 ret i32 0 _llgo_3: ; preds = %_llgo_0 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 18 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 18 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_2 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @_ZN4llvm15itaniumDemangleENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb(%"github.com/goplus/llgo/internal/runtime.String", i1) +declare ptr @_ZN4llvm15itaniumDemangleENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb(%"github.com/goplus/llgo/runtime/internal/runtime.String", i1) declare i32 @printf(ptr, ...) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) diff --git a/compiler/cl/_testlibc/sqlite/out.ll b/compiler/cl/_testlibc/sqlite/out.ll index 2d19d3a0..bd535eee 100644 --- a/compiler/cl/_testlibc/sqlite/out.ll +++ b/compiler/cl/_testlibc/sqlite/out.ll @@ -39,7 +39,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call { ptr, i32 } @"github.com/goplus/llgo/c/sqlite.OpenV2"(ptr @1, i32 130, ptr null) %3 = extractvalue { ptr, i32 } %2, 0 @@ -55,7 +55,7 @@ declare i32 @printf(ptr, ...) declare void @exit(i32) -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare { ptr, i32 } @"github.com/goplus/llgo/c/sqlite.OpenV2"(ptr, i32, ptr) diff --git a/compiler/cl/_testlibgo/atomic/out.ll b/compiler/cl/_testlibgo/atomic/out.ll index 765b0452..682cd4f0 100644 --- a/compiler/cl/_testlibgo/atomic/out.ll +++ b/compiler/cl/_testlibgo/atomic/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -29,72 +29,72 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) store atomic i64 100, ptr %2 seq_cst, align 4 %3 = load atomic i64, ptr %2 seq_cst, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 6 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 6 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %4 = call i64 @"sync/atomic.AddInt64"(ptr %2, i64 1) %5 = load i64, ptr %2, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 2 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %5) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %5) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %6 = call i1 @"sync/atomic.CompareAndSwapInt64"(ptr %2, i64 100, i64 102) %7 = load i64, ptr %2, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %6) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 2 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %7) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %6) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %7) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %8 = call i1 @"sync/atomic.CompareAndSwapInt64"(ptr %2, i64 101, i64 102) %9 = load i64, ptr %2, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %8) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 2 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %10 = call i64 @"sync/atomic.AddInt64"(ptr %2, i64 -1) %11 = load i64, ptr %2, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %10) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 2 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %11) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } declare void @"sync/atomic.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) declare i64 @"sync/atomic.AddInt64"(ptr, i64) declare i1 @"sync/atomic.CompareAndSwapInt64"(ptr, i64, i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) diff --git a/compiler/cl/_testlibgo/bytes/out.ll b/compiler/cl/_testlibgo/bytes/out.ll index b65455b7..4dd5b018 100644 --- a/compiler/cl/_testlibgo/bytes/out.ll +++ b/compiler/cl/_testlibgo/bytes/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -32,50 +32,50 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) - %3 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 6 }) - %4 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"bytes.(*Buffer).Write"(ptr %2, %"github.com/goplus/llgo/internal/runtime.Slice" %3) - %5 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"bytes.(*Buffer).WriteString"(ptr %2, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }) - %6 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"bytes.(*Buffer).Bytes"(ptr %2) - %7 = call %"github.com/goplus/llgo/internal/runtime.String" @"bytes.(*Buffer).String"(ptr %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 3 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %6) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %7) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %8 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 2 }) - %9 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 2 }) - %10 = call i1 @bytes.EqualFold(%"github.com/goplus/llgo/internal/runtime.Slice" %8, %"github.com/goplus/llgo/internal/runtime.Slice" %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %10) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) + %3 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 6 }) + %4 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"bytes.(*Buffer).Write"(ptr %2, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3) + %5 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"bytes.(*Buffer).WriteString"(ptr %2, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }) + %6 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"bytes.(*Buffer).Bytes"(ptr %2) + %7 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"bytes.(*Buffer).String"(ptr %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 3 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %7) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %8 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 2 }) + %9 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 2 }) + %10 = call i1 @bytes.EqualFold(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } declare void @bytes.init() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String") +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"bytes.(*Buffer).Write"(ptr, %"github.com/goplus/llgo/internal/runtime.Slice") +declare { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"bytes.(*Buffer).Write"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"bytes.(*Buffer).WriteString"(ptr, %"github.com/goplus/llgo/internal/runtime.String") +declare { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"bytes.(*Buffer).WriteString"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"bytes.(*Buffer).Bytes"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"bytes.(*Buffer).Bytes"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"bytes.(*Buffer).String"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"bytes.(*Buffer).String"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare i1 @bytes.EqualFold(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare i1 @bytes.EqualFold(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) diff --git a/compiler/cl/_testlibgo/complex/out.ll b/compiler/cl/_testlibgo/complex/out.ll index a7c5af4e..e25e563d 100644 --- a/compiler/cl/_testlibgo/complex/out.ll +++ b/compiler/cl/_testlibgo/complex/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @0 = private unnamed_addr constant [10 x i8] c"abs(3+4i):", align 1 @@ -13,20 +13,20 @@ source_filename = "main" define void @main.f({ double, double } %0, { double, double } %1) { _llgo_0: %2 = call double @cabs({ double, double } %0) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 10 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 10 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %3 = extractvalue { double, double } %1, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 11 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 11 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %4 = extractvalue { double, double } %1, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 11 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 11 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } @@ -48,7 +48,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @main.f({ double, double } { double 3.000000e+00, double 4.000000e+00 }, { double, double } { double 3.000000e+00, double 4.000000e+00 }) ret i32 0 @@ -56,12 +56,12 @@ _llgo_0: declare double @cabs({ double, double }) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double) declare void @"math/cmplx.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testlibgo/errors/out.ll b/compiler/cl/_testlibgo/errors/out.ll index aca6ef5e..39cbd43e 100644 --- a/compiler/cl/_testlibgo/errors/out.ll +++ b/compiler/cl/_testlibgo/errors/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -28,23 +28,23 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call %"github.com/goplus/llgo/internal/runtime.iface" @errors.New(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }) - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %2) - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %2, 1 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %3, 0 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, ptr %4, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %6) + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @errors.New(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %2) + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %2, 1 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %3, 0 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %4, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %6) unreachable } declare void @errors.init() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare %"github.com/goplus/llgo/internal/runtime.iface" @errors.New(%"github.com/goplus/llgo/internal/runtime.String") +declare %"github.com/goplus/llgo/runtime/internal/runtime.iface" @errors.New(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") diff --git a/compiler/cl/_testlibgo/math/out.ll b/compiler/cl/_testlibgo/math/out.ll index deb4b57e..500ae362 100644 --- a/compiler/cl/_testlibgo/math/out.ll +++ b/compiler/cl/_testlibgo/math/out.ll @@ -23,29 +23,29 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call double @sqrt(double 2.000000e+00) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %3 = call double @math.Abs(double -1.200000e+00) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %4 = call double @math.Ldexp(double 1.200000e+00, i64 3) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } declare void @math.init() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare double @sqrt(double) -declare void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) declare double @math.Abs(double) diff --git a/compiler/cl/_testlibgo/mathbits/out.ll b/compiler/cl/_testlibgo/mathbits/out.ll index 95ac3a40..843caec6 100644 --- a/compiler/cl/_testlibgo/mathbits/out.ll +++ b/compiler/cl/_testlibgo/mathbits/out.ll @@ -23,25 +23,25 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call i64 @"math/bits.Len8"(i8 20) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %3 = call i64 @"math/bits.OnesCount"(i64 20) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } declare void @"math/bits.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i64 @"math/bits.Len8"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) declare i64 @"math/bits.OnesCount"(i64) diff --git a/compiler/cl/_testlibgo/nettextproto/out.ll b/compiler/cl/_testlibgo/nettextproto/out.ll index 929af524..bee86d3d 100644 --- a/compiler/cl/_testlibgo/nettextproto/out.ll +++ b/compiler/cl/_testlibgo/nettextproto/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -26,20 +26,20 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call %"github.com/goplus/llgo/internal/runtime.String" @"net/textproto.CanonicalMIMEHeaderKey"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"net/textproto.CanonicalMIMEHeaderKey"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } declare void @"net/textproto.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare %"github.com/goplus/llgo/internal/runtime.String" @"net/textproto.CanonicalMIMEHeaderKey"(%"github.com/goplus/llgo/internal/runtime.String") +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"net/textproto.CanonicalMIMEHeaderKey"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) diff --git a/compiler/cl/_testlibgo/os/out.ll b/compiler/cl/_testlibgo/os/out.ll index 369d7f64..98c3a820 100644 --- a/compiler/cl/_testlibgo/os/out.ll +++ b/compiler/cl/_testlibgo/os/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -28,50 +28,50 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call { %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.iface" } @os.Getwd() - %3 = extractvalue { %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.iface" } %2, 0 - %4 = extractvalue { %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.iface" } %2, 1 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %4) - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %4, 1 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %5, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %7, ptr %6, 1 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %9, 0 - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %10, ptr null, 1 - %12 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %8, %"github.com/goplus/llgo/internal/runtime.eface" %11) + %2 = call { %"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @os.Getwd() + %3 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %2, 0 + %4 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %2, 1 + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %4) + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %4, 1 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %5, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %7, ptr %6, 1 + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %9, 0 + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %10, ptr null, 1 + %12 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %8, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %11) %13 = xor i1 %12, true br i1 %13, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %4) - %15 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %4, 1 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %14, 0 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %16, ptr %15, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %17) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %4) + %15 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %4, 1 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %14, 0 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %16, ptr %15, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %17) unreachable _llgo_2: ; preds = %_llgo_0 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } declare void @os.init() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare { %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.iface" } @os.Getwd() +declare { %"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @os.Getwd() -declare i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface", %"github.com/goplus/llgo/internal/runtime.eface") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface", %"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) diff --git a/compiler/cl/_testlibgo/strings/out.ll b/compiler/cl/_testlibgo/strings/out.ll index 5b4ea28a..eb1f1494 100644 --- a/compiler/cl/_testlibgo/strings/out.ll +++ b/compiler/cl/_testlibgo/strings/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -36,33 +36,33 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) - %3 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 6 }) - %4 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"strings.(*Builder).Write"(ptr %2, %"github.com/goplus/llgo/internal/runtime.Slice" %3) - %5 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"strings.(*Builder).WriteString"(ptr %2, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) + %3 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 6 }) + %4 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"strings.(*Builder).Write"(ptr %2, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3) + %5 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"strings.(*Builder).WriteString"(ptr %2, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }) %6 = call i64 @"strings.(*Builder).Len"(ptr %2) %7 = call i64 @"strings.(*Builder).Cap"(ptr %2) - %8 = call %"github.com/goplus/llgo/internal/runtime.String" @"strings.(*Builder).String"(ptr %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %6) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %7) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %8) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %9 = call i64 @strings.IndexFunc(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 13 }, { ptr, ptr } { ptr @"__llgo_stub.main.main$1", ptr null }) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %10 = call i64 @strings.IndexFunc(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 12 }, { ptr, ptr } { ptr @"__llgo_stub.main.main$1", ptr null }) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %10) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %8 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"strings.(*Builder).String"(ptr %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %6) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %7) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %9 = call i64 @strings.IndexFunc(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 13 }, { ptr, ptr } { ptr @"__llgo_stub.main.main$1", ptr null }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %10 = call i64 @strings.IndexFunc(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 12 }, { ptr, ptr } { ptr @"__llgo_stub.main.main$1", ptr null }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } @@ -77,29 +77,29 @@ declare void @strings.init() declare void @unicode.init() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String") +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"strings.(*Builder).Write"(ptr, %"github.com/goplus/llgo/internal/runtime.Slice") +declare { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"strings.(*Builder).Write"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @"strings.(*Builder).WriteString"(ptr, %"github.com/goplus/llgo/internal/runtime.String") +declare { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @"strings.(*Builder).WriteString"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.String") declare i64 @"strings.(*Builder).Len"(ptr) declare i64 @"strings.(*Builder).Cap"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"strings.(*Builder).String"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"strings.(*Builder).String"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare i64 @strings.IndexFunc(%"github.com/goplus/llgo/internal/runtime.String", { ptr, ptr }) +declare i64 @strings.IndexFunc(%"github.com/goplus/llgo/runtime/internal/runtime.String", { ptr, ptr }) define linkonce i1 @"__llgo_stub.main.main$1"(ptr %0, i32 %1) { _llgo_0: diff --git a/compiler/cl/_testpy/callpy/out.ll b/compiler/cl/_testpy/callpy/out.ll index 484cf44e..be2ec827 100644 --- a/compiler/cl/_testpy/callpy/out.ll +++ b/compiler/cl/_testpy/callpy/out.ll @@ -42,7 +42,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call ptr @PyFloat_FromDouble(double 2.000000e+00) %3 = load ptr, ptr @__llgo_py.math.sqrt, align 8 @@ -63,7 +63,7 @@ declare void @"github.com/goplus/llgo/py/os.init"() declare void @"github.com/goplus/llgo/py/std.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare ptr @PyFloat_FromDouble(double) diff --git a/compiler/cl/_testpy/gcd/out.ll b/compiler/cl/_testpy/gcd/out.ll index 0fdec606..34a2000b 100644 --- a/compiler/cl/_testpy/gcd/out.ll +++ b/compiler/cl/_testpy/gcd/out.ll @@ -29,7 +29,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call ptr @PyLong_FromLong(i64 60) %3 = call ptr @PyLong_FromLong(i64 20) @@ -43,7 +43,7 @@ _llgo_0: declare void @"github.com/goplus/llgo/py/math.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare ptr @PyLong_FromLong(i64) diff --git a/compiler/cl/_testpy/math/out.ll b/compiler/cl/_testpy/math/out.ll index 9eeddcbc..f05f04fd 100644 --- a/compiler/cl/_testpy/math/out.ll +++ b/compiler/cl/_testpy/math/out.ll @@ -1,17 +1,17 @@ -; ModuleID = 'github.com/goplus/llgo/cl/_testpy/math' -source_filename = "github.com/goplus/llgo/cl/_testpy/math" +; ModuleID = 'github.com/goplus/llgo/compiler/cl/_testpy/math' +source_filename = "github.com/goplus/llgo/compiler/cl/_testpy/math" -@"github.com/goplus/llgo/cl/_testpy/math.init$guard" = global i1 false, align 1 +@"github.com/goplus/llgo/compiler/cl/_testpy/math.init$guard" = global i1 false, align 1 @__llgo_py.math = linkonce global ptr null, align 8 @0 = private unnamed_addr constant [5 x i8] c"math\00", align 1 -define void @"github.com/goplus/llgo/cl/_testpy/math.init"() { +define void @"github.com/goplus/llgo/compiler/cl/_testpy/math.init"() { _llgo_0: - %0 = load i1, ptr @"github.com/goplus/llgo/cl/_testpy/math.init$guard", align 1 + %0 = load i1, ptr @"github.com/goplus/llgo/compiler/cl/_testpy/math.init$guard", align 1 br i1 %0, label %_llgo_2, label %_llgo_1 _llgo_1: ; preds = %_llgo_0 - store i1 true, ptr @"github.com/goplus/llgo/cl/_testpy/math.init$guard", align 1 + store i1 true, ptr @"github.com/goplus/llgo/compiler/cl/_testpy/math.init$guard", align 1 %1 = load ptr, ptr @__llgo_py.math, align 8 %2 = icmp ne ptr %1, null br i1 %2, label %_llgo_2, label %_llgo_3 diff --git a/compiler/cl/_testpy/matrix/out.ll b/compiler/cl/_testpy/matrix/out.ll index 7fe94c57..95050021 100644 --- a/compiler/cl/_testpy/matrix/out.ll +++ b/compiler/cl/_testpy/matrix/out.ll @@ -31,7 +31,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call ptr @PyList_New(i64 3) %3 = call ptr @PyFloat_FromDouble(double 1.000000e+00) @@ -99,7 +99,7 @@ _llgo_0: declare void @"github.com/goplus/llgo/py/numpy.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare ptr @PyList_New(i64) diff --git a/compiler/cl/_testpy/max/out.ll b/compiler/cl/_testpy/max/out.ll index 46b66d48..0b444928 100644 --- a/compiler/cl/_testpy/max/out.ll +++ b/compiler/cl/_testpy/max/out.ll @@ -32,7 +32,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call ptr @PyFloat_FromDouble(double 3.000000e+00) %3 = call ptr @PyFloat_FromDouble(double 9.000000e+00) @@ -75,7 +75,7 @@ _llgo_0: declare void @"github.com/goplus/llgo/py/std.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare ptr @PyFloat_FromDouble(double) diff --git a/compiler/cl/_testpy/pi/out.ll b/compiler/cl/_testpy/pi/out.ll index 083e6d54..5af4e5e6 100644 --- a/compiler/cl/_testpy/pi/out.ll +++ b/compiler/cl/_testpy/pi/out.ll @@ -26,7 +26,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load ptr, ptr @__llgo_py.math, align 8 %3 = call ptr @PyObject_GetAttrString(ptr %2, ptr @1) @@ -37,7 +37,7 @@ _llgo_0: declare void @"github.com/goplus/llgo/py/math.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare ptr @PyObject_GetAttrString(ptr, ptr) diff --git a/compiler/cl/_testpy/pow/out.ll b/compiler/cl/_testpy/pow/out.ll index 29ee34d2..4f6b881a 100644 --- a/compiler/cl/_testpy/pow/out.ll +++ b/compiler/cl/_testpy/pow/out.ll @@ -29,7 +29,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call ptr @PyFloat_FromDouble(double 2.000000e+00) %3 = call ptr @PyFloat_FromDouble(double 3.000000e+00) @@ -42,7 +42,7 @@ _llgo_0: declare void @"github.com/goplus/llgo/py/math.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare ptr @PyFloat_FromDouble(double) diff --git a/compiler/cl/_testrt/abinamed/out.ll b/compiler/cl/_testrt/abinamed/out.ll index ae7c8efc..7365c383 100644 --- a/compiler/cl/_testrt/abinamed/out.ll +++ b/compiler/cl/_testrt/abinamed/out.ll @@ -1,15 +1,15 @@ ; ModuleID = 'main' source_filename = "main" -%main.T = type { ptr, ptr, i64, %"github.com/goplus/llgo/internal/runtime.Slice" } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%main.T = type { ptr, ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } %main.eface = type { ptr, ptr } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/abi.StructType" = type { %"github.com/goplus/llgo/internal/abi.Type", %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice" } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/abi.StructType" = type { %"github.com/goplus/llgo/runtime/abi.Type", %"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice" } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -18,12 +18,12 @@ source_filename = "main" @0 = private unnamed_addr constant [4 x i8] c"main", align 1 @1 = private unnamed_addr constant [1 x i8] c"T", align 1 @"*_llgo_main.T" = linkonce global ptr null, align 8 -@"_llgo_github.com/goplus/llgo/internal/abi.Type" = linkonce global ptr null, align 8 -@2 = private unnamed_addr constant [35 x i8] c"github.com/goplus/llgo/internal/abi", align 1 +@"_llgo_github.com/goplus/llgo/runtime/abi.Type" = linkonce global ptr null, align 8 +@2 = private unnamed_addr constant [34 x i8] c"github.com/goplus/llgo/runtime/abi", align 1 @3 = private unnamed_addr constant [4 x i8] c"Type", align 1 @_llgo_uintptr = linkonce global ptr null, align 8 @_llgo_uint32 = linkonce global ptr null, align 8 -@"_llgo_github.com/goplus/llgo/internal/abi.TFlag" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.TFlag" = linkonce global ptr null, align 8 @4 = private unnamed_addr constant [5 x i8] c"TFlag", align 1 @_llgo_uint8 = linkonce global ptr null, align 8 @_llgo_Pointer = linkonce global ptr null, align 8 @@ -35,8 +35,8 @@ source_filename = "main" @_llgo_byte = linkonce global ptr null, align 8 @"*_llgo_byte" = linkonce global ptr null, align 8 @_llgo_string = linkonce global ptr null, align 8 -@"*_llgo_github.com/goplus/llgo/internal/abi.Type" = linkonce global ptr null, align 8 -@"main.struct$s_4wS-L0c3X6acFEdGgOe80u4rOxTCyvHVAjIByYQqY" = linkonce global ptr null, align 8 +@"*_llgo_github.com/goplus/llgo/runtime/abi.Type" = linkonce global ptr null, align 8 +@"main.struct$-sQ1S_TW5WNLDageftHP017iwpTTWpvZTx7xZ5oHpvI" = linkonce global ptr null, align 8 @7 = private unnamed_addr constant [5 x i8] c"Size_", align 1 @8 = private unnamed_addr constant [8 x i8] c"PtrBytes", align 1 @9 = private unnamed_addr constant [4 x i8] c"Hash", align 1 @@ -51,66 +51,66 @@ source_filename = "main" @_llgo_int = linkonce global ptr null, align 8 @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA" = linkonce global ptr null, align 8 @18 = private unnamed_addr constant [9 x i8] c"ArrayType", align 1 -@"_llgo_github.com/goplus/llgo/internal/abi.ArrayType" = linkonce global ptr null, align 8 -@"_llgo_struct$eLreYy_0Tx9Ip-rgTmC6_uCvf27HVl_zBUTfLS0WYaY" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.ArrayType" = linkonce global ptr null, align 8 +@"_llgo_struct$_wxpay9lRP3cWU1eNzUY8uwDJyoHmQ6toXBadyiL6io" = linkonce global ptr null, align 8 @19 = private unnamed_addr constant [4 x i8] c"Elem", align 1 @20 = private unnamed_addr constant [5 x i8] c"Slice", align 1 @21 = private unnamed_addr constant [3 x i8] c"Len", align 1 -@"*_llgo_github.com/goplus/llgo/internal/abi.ArrayType" = linkonce global ptr null, align 8 -@"_llgo_func$CsVqlCxhoEcIvPD5BSBukfSiD9C7Ic5_Gf32MLbCWB4" = linkonce global ptr null, align 8 +@"*_llgo_github.com/goplus/llgo/runtime/abi.ArrayType" = linkonce global ptr null, align 8 +@"_llgo_func$E73lcQT8QN1_ra27XNBjrI9wUEDUjSPMu2bmnQKIbfk" = linkonce global ptr null, align 8 @22 = private unnamed_addr constant [7 x i8] c"ChanDir", align 1 -@"_llgo_github.com/goplus/llgo/internal/abi.ChanDir" = linkonce global ptr null, align 8 -@"_llgo_func$TrNr0CVWj6qegOngzWbt2Jl7pr7IBJ5gOmgUf2ieIi4" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.ChanDir" = linkonce global ptr null, align 8 +@"_llgo_func$Qwe8YykhcqDIDEcT1jS_t1iUv4Im6IdGf17ASgXRQdc" = linkonce global ptr null, align 8 @23 = private unnamed_addr constant [6 x i8] c"Common", align 1 -@"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo" = linkonce global ptr null, align 8 +@"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw" = linkonce global ptr null, align 8 @24 = private unnamed_addr constant [15 x i8] c"ExportedMethods", align 1 -@"_llgo_github.com/goplus/llgo/internal/abi.Method" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.Method" = linkonce global ptr null, align 8 @25 = private unnamed_addr constant [6 x i8] c"Method", align 1 -@"_llgo_github.com/goplus/llgo/internal/abi.FuncType" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.FuncType" = linkonce global ptr null, align 8 @26 = private unnamed_addr constant [8 x i8] c"FuncType", align 1 -@"[]*_llgo_github.com/goplus/llgo/internal/abi.Type" = linkonce global ptr null, align 8 -@"_llgo_struct$wRu7InfmQeSkq7akLN3soDNninnS1dQajawdYvmHbzw" = linkonce global ptr null, align 8 +@"[]*_llgo_github.com/goplus/llgo/runtime/abi.Type" = linkonce global ptr null, align 8 +@"_llgo_struct$1ug-gfLTkNOIzG-RN7EFFwGKI01E7iqUGVZBMudT8KA" = linkonce global ptr null, align 8 @27 = private unnamed_addr constant [2 x i8] c"In", align 1 @28 = private unnamed_addr constant [3 x i8] c"Out", align 1 -@"[]_llgo_github.com/goplus/llgo/internal/abi.Method" = linkonce global ptr null, align 8 -@"_llgo_func$r0w3aCNVheLGqjxncuxitGhNtWJagb9gZLqOSrNI7dg" = linkonce global ptr null, align 8 +@"[]_llgo_github.com/goplus/llgo/runtime/abi.Method" = linkonce global ptr null, align 8 +@"_llgo_func$fPOUeAcTITSSbJEvFFjAWZP6Eli7dk4j7E9mFFHRoNM" = linkonce global ptr null, align 8 @29 = private unnamed_addr constant [10 x i8] c"FieldAlign", align 1 -@"*_llgo_github.com/goplus/llgo/internal/abi.FuncType" = linkonce global ptr null, align 8 -@"_llgo_func$DsoxgOnxqV7tLvokF3AA14v1gtHsHaThoC8Q_XGcQww" = linkonce global ptr null, align 8 +@"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType" = linkonce global ptr null, align 8 +@"_llgo_func$Jm50llMLYG9ysTYiSohNC-Ho1mhjzn-vnTRBILhJI88" = linkonce global ptr null, align 8 @30 = private unnamed_addr constant [7 x i8] c"HasName", align 1 @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk" = linkonce global ptr null, align 8 @31 = private unnamed_addr constant [10 x i8] c"IfaceIndir", align 1 @32 = private unnamed_addr constant [13 x i8] c"InterfaceType", align 1 -@"_llgo_github.com/goplus/llgo/internal/abi.InterfaceType" = linkonce global ptr null, align 8 -@"_llgo_github.com/goplus/llgo/internal/abi.Imethod" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.Imethod" = linkonce global ptr null, align 8 @33 = private unnamed_addr constant [7 x i8] c"Imethod", align 1 -@"_llgo_struct$-SVMNS9vOT5F9q4yodRiL9MFhdPf0tfZ2Cx2o7KjSDw" = linkonce global ptr null, align 8 +@"_llgo_struct$nK3p3a0VXRT6CeR0p3-gSrD3XdcHx2I7dlhqG-Zjudw" = linkonce global ptr null, align 8 @34 = private unnamed_addr constant [5 x i8] c"Name_", align 1 @35 = private unnamed_addr constant [4 x i8] c"Typ_", align 1 @36 = private unnamed_addr constant [8 x i8] c"Exported", align 1 @37 = private unnamed_addr constant [4 x i8] c"Name", align 1 @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to" = linkonce global ptr null, align 8 @38 = private unnamed_addr constant [7 x i8] c"PkgPath", align 1 -@"[]_llgo_github.com/goplus/llgo/internal/abi.Imethod" = linkonce global ptr null, align 8 -@"_llgo_struct$mWxYYevLxpL1wQyiQtAy4OszkqTlHtrmEcPpzW9Air4" = linkonce global ptr null, align 8 +@"[]_llgo_github.com/goplus/llgo/runtime/abi.Imethod" = linkonce global ptr null, align 8 +@"_llgo_struct$eoXJdAUqA_SyytMpb3QTBaQ2Bh9nLc089-gvCiW55io" = linkonce global ptr null, align 8 @39 = private unnamed_addr constant [8 x i8] c"PkgPath_", align 1 @40 = private unnamed_addr constant [7 x i8] c"Methods", align 1 -@"*_llgo_github.com/goplus/llgo/internal/abi.InterfaceType" = linkonce global ptr null, align 8 -@"_llgo_func$1QmforOaCy2fBAssC2y1FWCCT6fpq9RKwP2j2HIASY8" = linkonce global ptr null, align 8 +@"*_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType" = linkonce global ptr null, align 8 +@"_llgo_func$gPJieW0gawapuP7u0nJWjqAizA6ianfpIMmF5SojVDM" = linkonce global ptr null, align 8 @41 = private unnamed_addr constant [9 x i8] c"IsClosure", align 1 @42 = private unnamed_addr constant [13 x i8] c"IsDirectIface", align 1 @43 = private unnamed_addr constant [3 x i8] c"Key", align 1 @44 = private unnamed_addr constant [4 x i8] c"Kind", align 1 -@"_llgo_github.com/goplus/llgo/internal/abi.Kind" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.Kind" = linkonce global ptr null, align 8 @_llgo_uint = linkonce global ptr null, align 8 @45 = private unnamed_addr constant [6 x i8] c"String", align 1 -@"_llgo_func$ntUE0UmVAWPS2O7GpCCGszSn-XnjHJntZZ2jYtwbFXI" = linkonce global ptr null, align 8 +@"_llgo_func$Hsg8cfKiWmyMHfTCLbUouCMFmF6kp9x3qasAGPBLLfc" = linkonce global ptr null, align 8 @46 = private unnamed_addr constant [7 x i8] c"MapType", align 1 -@"_llgo_github.com/goplus/llgo/internal/abi.MapType" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.MapType" = linkonce global ptr null, align 8 @"_llgo_func$ahHMZCcDhfW-lrs446sPkiW0NoVa2vpmK_wKarVa_20" = linkonce global ptr null, align 8 @"main.struct$Oy3XhjARgY_pH1HU6oBj0nSC2Qs1A6CU4bRajpBttZc" = linkonce global ptr null, align 8 @_llgo_uint16 = linkonce global ptr null, align 8 -@"main.struct$NNQFCWl7PM2tdO3Cxl4doIs1_JQl2vsUbnXLc46j14k" = linkonce global ptr null, align 8 +@"main.struct$fcvaNpt6kbBgWOAYzHzrrsaKXunEtzMD4RdymMNJqTs" = linkonce global ptr null, align 8 @47 = private unnamed_addr constant [6 x i8] c"Bucket", align 1 @48 = private unnamed_addr constant [6 x i8] c"Hasher", align 1 @49 = private unnamed_addr constant [7 x i8] c"KeySize", align 1 @@ -120,8 +120,8 @@ source_filename = "main" @53 = private unnamed_addr constant [14 x i8] c"HashMightPanic", align 1 @54 = private unnamed_addr constant [12 x i8] c"IndirectElem", align 1 @55 = private unnamed_addr constant [11 x i8] c"IndirectKey", align 1 -@"*_llgo_github.com/goplus/llgo/internal/abi.MapType" = linkonce global ptr null, align 8 -@"_llgo_func$d-NlqnjcQnaMjsBQY7qh2SWQmHb0XIigoceXdiJ8YT4" = linkonce global ptr null, align 8 +@"*_llgo_github.com/goplus/llgo/runtime/abi.MapType" = linkonce global ptr null, align 8 +@"_llgo_func$v23QoXYwI62Le4EtGc42fZr4iF7nBhA8A8t9lvpy0QY" = linkonce global ptr null, align 8 @56 = private unnamed_addr constant [13 x i8] c"NeedKeyUpdate", align 1 @57 = private unnamed_addr constant [9 x i8] c"NumMethod", align 1 @58 = private unnamed_addr constant [8 x i8] c"Pointers", align 1 @@ -129,36 +129,36 @@ source_filename = "main" @60 = private unnamed_addr constant [4 x i8] c"Size", align 1 @"_llgo_func$1kITCsyu7hFLMxHLR7kDlvu4SOra_HtrtdFUQH9P13s" = linkonce global ptr null, align 8 @61 = private unnamed_addr constant [10 x i8] c"StructType", align 1 -@"_llgo_github.com/goplus/llgo/internal/abi.StructType" = linkonce global ptr null, align 8 -@"_llgo_github.com/goplus/llgo/internal/abi.StructField" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.StructType" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.StructField" = linkonce global ptr null, align 8 @62 = private unnamed_addr constant [11 x i8] c"StructField", align 1 -@"_llgo_struct$GYlWrg0B_axMyyq9xClGPKuTjurG0iQMRoz8Me1fQig" = linkonce global ptr null, align 8 +@"_llgo_struct$kJjSbRGD6vW5GBpnW3h2bqoH3rm-w30ibwmCd552LPU" = linkonce global ptr null, align 8 @63 = private unnamed_addr constant [3 x i8] c"Typ", align 1 @64 = private unnamed_addr constant [6 x i8] c"Offset", align 1 @65 = private unnamed_addr constant [4 x i8] c"Tag_", align 1 @66 = private unnamed_addr constant [9 x i8] c"Embedded_", align 1 @67 = private unnamed_addr constant [8 x i8] c"Embedded", align 1 -@"[]_llgo_github.com/goplus/llgo/internal/abi.StructField" = linkonce global ptr null, align 8 -@"_llgo_struct$K_cvuhBwc2_5r7UW089ibWfcfsGoDb4pZ7K19IcMTk0" = linkonce global ptr null, align 8 +@"[]_llgo_github.com/goplus/llgo/runtime/abi.StructField" = linkonce global ptr null, align 8 +@"_llgo_struct$a40Ph0zKu8cPeYh4GJjFLIY8XDqrC7uc-XzprrJaUh0" = linkonce global ptr null, align 8 @68 = private unnamed_addr constant [6 x i8] c"Fields", align 1 -@"*_llgo_github.com/goplus/llgo/internal/abi.StructType" = linkonce global ptr null, align 8 -@"_llgo_func$qiNnn6Cbm3GtDp4gDI4U_DRV3h8zlz91s9jrfOXC--U" = linkonce global ptr null, align 8 +@"*_llgo_github.com/goplus/llgo/runtime/abi.StructType" = linkonce global ptr null, align 8 +@"_llgo_func$JNZyRh9Ldf2v-LKH-spUrxoORHTTH5NO358kWdhabp0" = linkonce global ptr null, align 8 @69 = private unnamed_addr constant [8 x i8] c"Uncommon", align 1 -@"_llgo_github.com/goplus/llgo/internal/abi.UncommonType" = linkonce global ptr null, align 8 +@"_llgo_github.com/goplus/llgo/runtime/abi.UncommonType" = linkonce global ptr null, align 8 @70 = private unnamed_addr constant [12 x i8] c"UncommonType", align 1 @"_llgo_struct$OKIlItfBJsawrEMnVSc2VQ7pxNxCHIgSoitcM9n4FVI" = linkonce global ptr null, align 8 @71 = private unnamed_addr constant [6 x i8] c"Mcount", align 1 @72 = private unnamed_addr constant [6 x i8] c"Xcount", align 1 @73 = private unnamed_addr constant [4 x i8] c"Moff", align 1 -@"*_llgo_github.com/goplus/llgo/internal/abi.UncommonType" = linkonce global ptr null, align 8 -@"_llgo_func$DbD4nZv_bjE4tH8hh-VfAjMXMpNfIsMlLJJJPKupp34" = linkonce global ptr null, align 8 +@"*_llgo_github.com/goplus/llgo/runtime/abi.UncommonType" = linkonce global ptr null, align 8 +@"_llgo_func$iG49bujiXjI2lVflYdE0hPXlCAABL-XKRANSNJEKOio" = linkonce global ptr null, align 8 @74 = private unnamed_addr constant [8 x i8] c"Variadic", align 1 -@"_llgo_struct$SDp3TNnYnxb26MhB1v8VMbmY71BX77YOaY7lgS1cFx0" = linkonce global ptr null, align 8 +@"_llgo_struct$jXUHcnL1PMmNRB-pn2cBRAQ7OYcwCM_YkvLqlL0ZYaE" = linkonce global ptr null, align 8 @75 = private unnamed_addr constant [5 x i8] c"Mtyp_", align 1 @76 = private unnamed_addr constant [4 x i8] c"Ifn_", align 1 @77 = private unnamed_addr constant [4 x i8] c"Tfn_", align 1 @"[]_llgo_main.T" = linkonce global ptr null, align 8 -@"main.struct$FYfyNCnlvkYOztpQWjt-y8D_WY3tpxyt5Qo62CJffTE" = linkonce global ptr null, align 8 +@"main.struct$0I14CsQEZ9iadCku0_1cAZfCJoBbFdmFH4XChi4XRoo" = linkonce global ptr null, align 8 @78 = private unnamed_addr constant [1 x i8] c"p", align 1 @79 = private unnamed_addr constant [1 x i8] c"t", align 1 @80 = private unnamed_addr constant [1 x i8] c"n", align 1 @@ -177,7 +177,7 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 - call void @"github.com/goplus/llgo/internal/abi.init"() + call void @"github.com/goplus/llgo/runtime/abi.init"() call void @"main.init$after"() br label %_llgo_2 @@ -189,76 +189,76 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load ptr, ptr @_llgo_main.T, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) store %main.T zeroinitializer, ptr %3, align 8 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %2, 0 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %4, ptr %3, 1 - %6 = call ptr @main.toEface(%"github.com/goplus/llgo/internal/runtime.eface" %5) - %7 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 72) - store %"github.com/goplus/llgo/internal/abi.Type" zeroinitializer, ptr %8, align 8 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %7, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, ptr %8, 1 - %11 = call ptr @main.toEface(%"github.com/goplus/llgo/internal/runtime.eface" %10) + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %2, 0 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %4, ptr %3, 1 + %6 = call ptr @main.toEface(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %5) + %7 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 72) + store %"github.com/goplus/llgo/runtime/abi.Type" zeroinitializer, ptr %8, align 8 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %7, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, ptr %8, 1 + %11 = call ptr @main.toEface(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %10) %12 = getelementptr inbounds %main.eface, ptr %6, i32 0, i32 0 %13 = load ptr, ptr %12, align 8 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %13) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %13) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %14 = getelementptr inbounds %main.eface, ptr %6, i32 0, i32 0 %15 = load ptr, ptr %14, align 8 - %16 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %15, i32 0, i32 10 + %16 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %15, i32 0, i32 10 %17 = load ptr, ptr %16, align 8 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %17) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %17) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %18 = getelementptr inbounds %main.eface, ptr %11, i32 0, i32 0 %19 = load ptr, ptr %18, align 8 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %19) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %19) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %20 = getelementptr inbounds %main.eface, ptr %11, i32 0, i32 0 %21 = load ptr, ptr %20, align 8 - %22 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %21, i32 0, i32 10 + %22 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %21, i32 0, i32 10 %23 = load ptr, ptr %22, align 8 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %23) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %24 = alloca %"github.com/goplus/llgo/internal/abi.StructField", align 8 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %23) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %24 = alloca %"github.com/goplus/llgo/runtime/abi.StructField", align 8 call void @llvm.memset(ptr %24, i8 0, i64 56, i1 false) %25 = getelementptr inbounds %main.eface, ptr %6, i32 0, i32 0 %26 = load ptr, ptr %25, align 8 - %27 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).StructType"(ptr %26) - %28 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructType", ptr %27, i32 0, i32 2 - %29 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %28, align 8 - %30 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %29, 0 - %31 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %29, 1 + %27 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).StructType"(ptr %26) + %28 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructType", ptr %27, i32 0, i32 2 + %29 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %28, align 8 + %30 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, 0 + %31 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, 1 %32 = icmp sge i64 0, %31 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %32) - %33 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %30, i64 0 - %34 = load %"github.com/goplus/llgo/internal/abi.StructField", ptr %33, align 8 - store %"github.com/goplus/llgo/internal/abi.StructField" %34, ptr %24, align 8 - %35 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %24, i32 0, i32 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %32) + %33 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %30, i64 0 + %34 = load %"github.com/goplus/llgo/runtime/abi.StructField", ptr %33, align 8 + store %"github.com/goplus/llgo/runtime/abi.StructField" %34, ptr %24, align 8 + %35 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %24, i32 0, i32 1 %36 = load ptr, ptr %35, align 8 %37 = getelementptr inbounds %main.eface, ptr %6, i32 0, i32 0 %38 = load ptr, ptr %37, align 8 - %39 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %38, i32 0, i32 10 + %39 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %38, i32 0, i32 10 %40 = load ptr, ptr %39, align 8 %41 = icmp ne ptr %36, %40 br i1 %41, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 %42 = load ptr, ptr @_llgo_string, align 8 - %43 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @82, i64 13 }, ptr %43, align 8 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %42, 0 - %45 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %44, ptr %43, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %45) + %43 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @82, i64 13 }, ptr %43, align 8 + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %42, 0 + %45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %44, ptr %43, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %45) unreachable _llgo_2: ; preds = %_llgo_0 - %46 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %24, i32 0, i32 1 + %46 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %24, i32 0, i32 1 %47 = load ptr, ptr %46, align 8 - %48 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Elem"(ptr %47) + %48 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Elem"(ptr %47) %49 = getelementptr inbounds %main.eface, ptr %6, i32 0, i32 0 %50 = load ptr, ptr %49, align 8 %51 = icmp ne ptr %48, %50 @@ -266,50 +266,50 @@ _llgo_2: ; preds = %_llgo_0 _llgo_3: ; preds = %_llgo_2 %52 = load ptr, ptr @_llgo_string, align 8 - %53 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @83, i64 18 }, ptr %53, align 8 - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %52, 0 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %54, ptr %53, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %55) + %53 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @83, i64 18 }, ptr %53, align 8 + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %52, 0 + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %54, ptr %53, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %55) unreachable _llgo_4: ; preds = %_llgo_2 - %56 = alloca %"github.com/goplus/llgo/internal/abi.StructField", align 8 + %56 = alloca %"github.com/goplus/llgo/runtime/abi.StructField", align 8 call void @llvm.memset(ptr %56, i8 0, i64 56, i1 false) %57 = getelementptr inbounds %main.eface, ptr %6, i32 0, i32 0 %58 = load ptr, ptr %57, align 8 - %59 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).StructType"(ptr %58) - %60 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructType", ptr %59, i32 0, i32 2 - %61 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %60, align 8 - %62 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %61, 0 - %63 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %61, 1 + %59 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).StructType"(ptr %58) + %60 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructType", ptr %59, i32 0, i32 2 + %61 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %60, align 8 + %62 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, 0 + %63 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, 1 %64 = icmp sge i64 1, %63 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %64) - %65 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %62, i64 1 - %66 = load %"github.com/goplus/llgo/internal/abi.StructField", ptr %65, align 8 - store %"github.com/goplus/llgo/internal/abi.StructField" %66, ptr %56, align 8 - %67 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %56, i32 0, i32 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %64) + %65 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %62, i64 1 + %66 = load %"github.com/goplus/llgo/runtime/abi.StructField", ptr %65, align 8 + store %"github.com/goplus/llgo/runtime/abi.StructField" %66, ptr %56, align 8 + %67 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %56, i32 0, i32 1 %68 = load ptr, ptr %67, align 8 %69 = getelementptr inbounds %main.eface, ptr %11, i32 0, i32 0 %70 = load ptr, ptr %69, align 8 - %71 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %70, i32 0, i32 10 + %71 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %70, i32 0, i32 10 %72 = load ptr, ptr %71, align 8 %73 = icmp ne ptr %68, %72 br i1 %73, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 %74 = load ptr, ptr @_llgo_string, align 8 - %75 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @84, i64 13 }, ptr %75, align 8 - %76 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %74, 0 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %76, ptr %75, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %77) + %75 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @84, i64 13 }, ptr %75, align 8 + %76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %74, 0 + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %76, ptr %75, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %77) unreachable _llgo_6: ; preds = %_llgo_4 - %78 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %56, i32 0, i32 1 + %78 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %56, i32 0, i32 1 %79 = load ptr, ptr %78, align 8 - %80 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Elem"(ptr %79) + %80 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Elem"(ptr %79) %81 = getelementptr inbounds %main.eface, ptr %11, i32 0, i32 0 %82 = load ptr, ptr %81, align 8 %83 = icmp ne ptr %80, %82 @@ -317,72 +317,72 @@ _llgo_6: ; preds = %_llgo_4 _llgo_7: ; preds = %_llgo_6 %84 = load ptr, ptr @_llgo_string, align 8 - %85 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @85, i64 18 }, ptr %85, align 8 - %86 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %84, 0 - %87 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %86, ptr %85, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %87) + %85 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @85, i64 18 }, ptr %85, align 8 + %86 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %84, 0 + %87 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %86, ptr %85, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %87) unreachable _llgo_8: ; preds = %_llgo_6 - %88 = alloca %"github.com/goplus/llgo/internal/abi.StructField", align 8 + %88 = alloca %"github.com/goplus/llgo/runtime/abi.StructField", align 8 call void @llvm.memset(ptr %88, i8 0, i64 56, i1 false) %89 = getelementptr inbounds %main.eface, ptr %6, i32 0, i32 0 %90 = load ptr, ptr %89, align 8 - %91 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).StructType"(ptr %90) - %92 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructType", ptr %91, i32 0, i32 2 - %93 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %92, align 8 - %94 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %93, 0 - %95 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %93, 1 + %91 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).StructType"(ptr %90) + %92 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructType", ptr %91, i32 0, i32 2 + %93 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %92, align 8 + %94 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %93, 0 + %95 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %93, 1 %96 = icmp sge i64 2, %95 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %96) - %97 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %94, i64 2 - %98 = load %"github.com/goplus/llgo/internal/abi.StructField", ptr %97, align 8 - store %"github.com/goplus/llgo/internal/abi.StructField" %98, ptr %88, align 8 - %99 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %88, i32 0, i32 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %96) + %97 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %94, i64 2 + %98 = load %"github.com/goplus/llgo/runtime/abi.StructField", ptr %97, align 8 + store %"github.com/goplus/llgo/runtime/abi.StructField" %98, ptr %88, align 8 + %99 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %88, i32 0, i32 1 %100 = load ptr, ptr %99, align 8 %101 = getelementptr inbounds %main.eface, ptr %11, i32 0, i32 0 %102 = load ptr, ptr %101, align 8 - %103 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).StructType"(ptr %102) - %104 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructType", ptr %103, i32 0, i32 2 - %105 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %104, align 8 - %106 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %105, 0 - %107 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %105, 1 + %103 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).StructType"(ptr %102) + %104 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructType", ptr %103, i32 0, i32 2 + %105 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %104, align 8 + %106 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %105, 0 + %107 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %105, 1 %108 = icmp sge i64 0, %107 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %108) - %109 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %106, i64 0 - %110 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %109, i32 0, i32 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %108) + %109 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %106, i64 0 + %110 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %109, i32 0, i32 1 %111 = load ptr, ptr %110, align 8 %112 = icmp ne ptr %100, %111 br i1 %112, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 %113 = load ptr, ptr @_llgo_string, align 8 - %114 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @86, i64 13 }, ptr %114, align 8 - %115 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %113, 0 - %116 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %115, ptr %114, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %116) + %114 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @86, i64 13 }, ptr %114, align 8 + %115 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %113, 0 + %116 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %115, ptr %114, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %116) unreachable _llgo_10: ; preds = %_llgo_8 - %117 = alloca %"github.com/goplus/llgo/internal/abi.StructField", align 8 + %117 = alloca %"github.com/goplus/llgo/runtime/abi.StructField", align 8 call void @llvm.memset(ptr %117, i8 0, i64 56, i1 false) %118 = getelementptr inbounds %main.eface, ptr %6, i32 0, i32 0 %119 = load ptr, ptr %118, align 8 - %120 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).StructType"(ptr %119) - %121 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructType", ptr %120, i32 0, i32 2 - %122 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %121, align 8 - %123 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %122, 0 - %124 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %122, 1 + %120 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).StructType"(ptr %119) + %121 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructType", ptr %120, i32 0, i32 2 + %122 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %121, align 8 + %123 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %122, 0 + %124 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %122, 1 %125 = icmp sge i64 3, %124 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %125) - %126 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %123, i64 3 - %127 = load %"github.com/goplus/llgo/internal/abi.StructField", ptr %126, align 8 - store %"github.com/goplus/llgo/internal/abi.StructField" %127, ptr %117, align 8 - %128 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.StructField", ptr %117, i32 0, i32 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %125) + %126 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %123, i64 3 + %127 = load %"github.com/goplus/llgo/runtime/abi.StructField", ptr %126, align 8 + store %"github.com/goplus/llgo/runtime/abi.StructField" %127, ptr %117, align 8 + %128 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.StructField", ptr %117, i32 0, i32 1 %129 = load ptr, ptr %128, align 8 - %130 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Elem"(ptr %129) + %130 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Elem"(ptr %129) %131 = getelementptr inbounds %main.eface, ptr %6, i32 0, i32 0 %132 = load ptr, ptr %131, align 8 %133 = icmp ne ptr %130, %132 @@ -390,31 +390,31 @@ _llgo_10: ; preds = %_llgo_8 _llgo_11: ; preds = %_llgo_10 %134 = load ptr, ptr @_llgo_string, align 8 - %135 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @87, i64 13 }, ptr %135, align 8 - %136 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %134, 0 - %137 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %136, ptr %135, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %137) + %135 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @87, i64 13 }, ptr %135, align 8 + %136 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %134, 0 + %137 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %136, ptr %135, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %137) unreachable _llgo_12: ; preds = %_llgo_10 ret i32 0 } -define ptr @main.toEface(%"github.com/goplus/llgo/internal/runtime.eface" %0) { +define ptr @main.toEface(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.eface" %0, ptr %1, align 8 + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, ptr %1, align 8 ret ptr %1 } -declare void @"github.com/goplus/llgo/internal/abi.init"() +declare void @"github.com/goplus/llgo/runtime/abi.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 1 }, i64 25, i64 48, i64 0, i64 0) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 1 }, i64 25, i64 48, i64 0, i64 0) %1 = load ptr, ptr @_llgo_main.T, align 8 %2 = icmp eq ptr %1, null br i1 %2, label %_llgo_1, label %_llgo_2 @@ -425,26 +425,26 @@ _llgo_1: ; preds = %_llgo_0 _llgo_2: ; preds = %_llgo_1, %_llgo_0 %3 = load ptr, ptr @_llgo_main.T, align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 1 }, i64 25, i64 48, i64 0, i64 0) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 1 }, i64 25, i64 48, i64 0, i64 0) %5 = load ptr, ptr @"*_llgo_main.T", align 8 %6 = icmp eq ptr %5, null br i1 %6, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %4) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %7) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %7) store ptr %7, ptr @"*_llgo_main.T", align 8 br label %_llgo_4 _llgo_4: ; preds = %_llgo_3, %_llgo_2 %8 = load ptr, ptr @"*_llgo_main.T", align 8 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %10 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %10 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 %11 = icmp eq ptr %10, null br i1 %11, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - store ptr %9, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 + store ptr %9, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 @@ -453,7 +453,7 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 br i1 %13, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) store ptr %14, ptr @_llgo_uintptr, align 8 br label %_llgo_8 @@ -464,19 +464,19 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 br i1 %17, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 42) + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 42) store ptr %18, ptr @_llgo_uint32, align 8 br label %_llgo_10 _llgo_10: ; preds = %_llgo_9, %_llgo_8 %19 = load ptr, ptr @_llgo_uint32, align 8 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 5 }, i64 8, i64 1, i64 0, i64 0) - %21 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.TFlag", align 8 + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 5 }, i64 8, i64 1, i64 0, i64 0) + %21 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.TFlag", align 8 %22 = icmp eq ptr %21, null br i1 %22, label %_llgo_11, label %_llgo_12 _llgo_11: ; preds = %_llgo_10 - store ptr %20, ptr @"_llgo_github.com/goplus/llgo/internal/abi.TFlag", align 8 + store ptr %20, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.TFlag", align 8 br label %_llgo_12 _llgo_12: ; preds = %_llgo_11, %_llgo_10 @@ -485,7 +485,7 @@ _llgo_12: ; preds = %_llgo_11, %_llgo_10 br i1 %24, label %_llgo_13, label %_llgo_14 _llgo_13: ; preds = %_llgo_12 - %25 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) + %25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) store ptr %25, ptr @_llgo_uint8, align 8 br label %_llgo_14 @@ -494,18 +494,18 @@ _llgo_14: ; preds = %_llgo_13, %_llgo_12 br i1 %22, label %_llgo_15, label %_llgo_16 _llgo_15: ; preds = %_llgo_14 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %20, ptr %26, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %20, ptr %26, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_16 _llgo_16: ; preds = %_llgo_15, %_llgo_14 - %27 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.TFlag", align 8 + %27 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.TFlag", align 8 %28 = load ptr, ptr @_llgo_Pointer, align 8 %29 = icmp eq ptr %28, null br i1 %29, label %_llgo_17, label %_llgo_18 _llgo_17: ; preds = %_llgo_16 - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %30) + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %30) store ptr %30, ptr @_llgo_Pointer, align 8 br label %_llgo_18 @@ -516,7 +516,7 @@ _llgo_18: ; preds = %_llgo_17, %_llgo_16 br i1 %33, label %_llgo_19, label %_llgo_20 _llgo_19: ; preds = %_llgo_18 - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 33) + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 33) store ptr %34, ptr @_llgo_bool, align 8 br label %_llgo_20 @@ -530,22 +530,22 @@ _llgo_20: ; preds = %_llgo_19, %_llgo_18 br i1 %40, label %_llgo_21, label %_llgo_22 _llgo_21: ; preds = %_llgo_20 - %41 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %41 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %42 = getelementptr ptr, ptr %41, i64 0 store ptr %36, ptr %42, align 8 %43 = getelementptr ptr, ptr %41, i64 1 store ptr %37, ptr %43, align 8 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %41, 0 - %45 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %44, i64 2, 1 - %46 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %45, i64 2, 2 - %47 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %41, 0 + %45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %44, i64 2, 1 + %46 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %45, i64 2, 2 + %47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %48 = getelementptr ptr, ptr %47, i64 0 store ptr %38, ptr %48, align 8 - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %47, 0 - %50 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %49, i64 1, 1 - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %50, i64 1, 2 - %52 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %46, %"github.com/goplus/llgo/internal/runtime.Slice" %51, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %52) + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %47, 0 + %50 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %49, i64 1, 1 + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %50, i64 1, 2 + %52 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %46, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %51, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %52) store ptr %52, ptr @"_llgo_func$fC75jGwF1nV5TF91gEeTF_JCtbG9Z7_yOawHBxqBh6E", align 8 br label %_llgo_22 @@ -554,33 +554,33 @@ _llgo_22: ; preds = %_llgo_21, %_llgo_20 %54 = load ptr, ptr @_llgo_Pointer, align 8 %55 = load ptr, ptr @_llgo_Pointer, align 8 %56 = load ptr, ptr @_llgo_bool, align 8 - %57 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %58 = getelementptr ptr, ptr %57, i64 0 store ptr %54, ptr %58, align 8 %59 = getelementptr ptr, ptr %57, i64 1 store ptr %55, ptr %59, align 8 - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %57, 0 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, i64 2, 1 - %62 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %61, i64 2, 2 - %63 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %57, 0 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, i64 2, 1 + %62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, i64 2, 2 + %63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %64 = getelementptr ptr, ptr %63, i64 0 store ptr %56, ptr %64, align 8 - %65 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %63, 0 - %66 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %65, i64 1, 1 - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %66, i64 1, 2 - %68 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %62, %"github.com/goplus/llgo/internal/runtime.Slice" %67, i1 false) - %69 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 2 }, ptr %68, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %70 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %71 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 5 }, ptr %70, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %72 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %73 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %72, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %69, ptr %73, align 8 - %74 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %72, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %71, ptr %74, align 8 - %75 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %72, 0 - %76 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %75, i64 2, 1 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %76, i64 2, 2 - %78 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %77) + %65 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %63, 0 + %66 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %65, i64 1, 1 + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %66, i64 1, 2 + %68 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %67, i1 false) + %69 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }, ptr %68, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %70 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %71 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 5 }, ptr %70, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %72 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %73 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %72, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %69, ptr %73, align 8 + %74 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %72, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %71, ptr %74, align 8 + %75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %72, 0 + %76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %75, i64 2, 1 + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %76, i64 2, 2 + %78 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %77) store ptr %78, ptr @"main.struct$6Ehc6TOqEXOG056rtIWcVOuWzJK8QENYOqW7yQ1sEPU", align 8 %79 = load ptr, ptr @"main.struct$6Ehc6TOqEXOG056rtIWcVOuWzJK8QENYOqW7yQ1sEPU", align 8 %80 = load ptr, ptr @_llgo_byte, align 8 @@ -588,7 +588,7 @@ _llgo_22: ; preds = %_llgo_21, %_llgo_20 br i1 %81, label %_llgo_23, label %_llgo_24 _llgo_23: ; preds = %_llgo_22 - %82 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) + %82 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) store ptr %82, ptr @_llgo_byte, align 8 br label %_llgo_24 @@ -599,9 +599,9 @@ _llgo_24: ; preds = %_llgo_23, %_llgo_22 br i1 %85, label %_llgo_25, label %_llgo_26 _llgo_25: ; preds = %_llgo_24 - %86 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %87 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %86) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %87) + %86 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %87 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %86) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %87) store ptr %87, ptr @"*_llgo_byte", align 8 br label %_llgo_26 @@ -612,108 +612,108 @@ _llgo_26: ; preds = %_llgo_25, %_llgo_24 br i1 %90, label %_llgo_27, label %_llgo_28 _llgo_27: ; preds = %_llgo_26 - %91 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %91 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %91, ptr @_llgo_string, align 8 br label %_llgo_28 _llgo_28: ; preds = %_llgo_27, %_llgo_26 %92 = load ptr, ptr @_llgo_string, align 8 - %93 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %94 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 72, i64 0, i64 23) - %95 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 + %93 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %94 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 72, i64 0, i64 23) + %95 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 %96 = icmp eq ptr %95, null br i1 %96, label %_llgo_29, label %_llgo_30 _llgo_29: ; preds = %_llgo_28 - %97 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %94) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %97) - store ptr %97, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 + %97 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %94) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %97) + store ptr %97, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 br label %_llgo_30 _llgo_30: ; preds = %_llgo_29, %_llgo_28 - %98 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %99 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 5 }, i64 8, i64 1, i64 0, i64 0) + %98 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %99 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 5 }, i64 8, i64 1, i64 0, i64 0) %100 = load ptr, ptr @_llgo_Pointer, align 8 %101 = load ptr, ptr @_llgo_Pointer, align 8 %102 = load ptr, ptr @_llgo_bool, align 8 - %103 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 72, i64 0, i64 23) - %104 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) - %105 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 5 }, ptr %104, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %106 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) - %107 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 8 }, ptr %106, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %108 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 42) - %109 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 4 }, ptr %108, i64 16, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %110 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 5 }, ptr %99, i64 20, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %111 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %112 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 6 }, ptr %111, i64 21, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %113 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %114 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 11 }, ptr %113, i64 22, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %115 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %116 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @12, i64 5 }, ptr %115, i64 23, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %117 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %103 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 72, i64 0, i64 23) + %104 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) + %105 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 5 }, ptr %104, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %106 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) + %107 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 8 }, ptr %106, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %108 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 42) + %109 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr %108, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %110 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 5 }, ptr %99, i64 20, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %111 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %112 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 6 }, ptr %111, i64 21, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %113 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %114 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 11 }, ptr %113, i64 22, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %115 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %116 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @12, i64 5 }, ptr %115, i64 23, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %117 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %118 = getelementptr ptr, ptr %117, i64 0 store ptr %100, ptr %118, align 8 %119 = getelementptr ptr, ptr %117, i64 1 store ptr %101, ptr %119, align 8 - %120 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %117, 0 - %121 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %120, i64 2, 1 - %122 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %121, i64 2, 2 - %123 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %120 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %117, 0 + %121 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %120, i64 2, 1 + %122 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %121, i64 2, 2 + %123 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %124 = getelementptr ptr, ptr %123, i64 0 store ptr %102, ptr %124, align 8 - %125 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %123, 0 - %126 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %125, i64 1, 1 - %127 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %126, i64 1, 2 - %128 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %122, %"github.com/goplus/llgo/internal/runtime.Slice" %127, i1 false) - %129 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 2 }, ptr %128, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %130 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %131 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 5 }, ptr %130, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %132 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %133 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %132, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %129, ptr %133, align 8 - %134 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %132, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %131, ptr %134, align 8 - %135 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %132, 0 - %136 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %135, i64 2, 1 - %137 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %136, i64 2, 2 - %138 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %137) - %139 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 5 }, ptr %138, i64 24, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %140 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %141 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %140) - %142 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @14, i64 6 }, ptr %141, i64 40, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %143 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %144 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 4 }, ptr %143, i64 48, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %145 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %103) - %146 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @16, i64 10 }, ptr %145, i64 64, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %147 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 616) - %148 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %147, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %105, ptr %148, align 8 - %149 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %147, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %107, ptr %149, align 8 - %150 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %147, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %109, ptr %150, align 8 - %151 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %147, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %110, ptr %151, align 8 - %152 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %147, i64 4 - store %"github.com/goplus/llgo/internal/abi.StructField" %112, ptr %152, align 8 - %153 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %147, i64 5 - store %"github.com/goplus/llgo/internal/abi.StructField" %114, ptr %153, align 8 - %154 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %147, i64 6 - store %"github.com/goplus/llgo/internal/abi.StructField" %116, ptr %154, align 8 - %155 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %147, i64 7 - store %"github.com/goplus/llgo/internal/abi.StructField" %139, ptr %155, align 8 - %156 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %147, i64 8 - store %"github.com/goplus/llgo/internal/abi.StructField" %142, ptr %156, align 8 - %157 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %147, i64 9 - store %"github.com/goplus/llgo/internal/abi.StructField" %144, ptr %157, align 8 - %158 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %147, i64 10 - store %"github.com/goplus/llgo/internal/abi.StructField" %146, ptr %158, align 8 - %159 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %147, 0 - %160 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %159, i64 11, 1 - %161 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %160, i64 11, 2 - %162 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 72, %"github.com/goplus/llgo/internal/runtime.Slice" %161) - store ptr %162, ptr @"main.struct$s_4wS-L0c3X6acFEdGgOe80u4rOxTCyvHVAjIByYQqY", align 8 - %163 = load ptr, ptr @"main.struct$s_4wS-L0c3X6acFEdGgOe80u4rOxTCyvHVAjIByYQqY", align 8 + %125 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %123, 0 + %126 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %125, i64 1, 1 + %127 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %126, i64 1, 2 + %128 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %122, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %127, i1 false) + %129 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }, ptr %128, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %130 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %131 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 5 }, ptr %130, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %132 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %133 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %132, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %129, ptr %133, align 8 + %134 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %132, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %131, ptr %134, align 8 + %135 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %132, 0 + %136 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %135, i64 2, 1 + %137 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %136, i64 2, 2 + %138 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %137) + %139 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 5 }, ptr %138, i64 24, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %140 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %141 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %140) + %142 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @14, i64 6 }, ptr %141, i64 40, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %143 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %144 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 4 }, ptr %143, i64 48, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %145 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %103) + %146 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @16, i64 10 }, ptr %145, i64 64, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %147 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 616) + %148 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %147, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %105, ptr %148, align 8 + %149 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %147, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %107, ptr %149, align 8 + %150 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %147, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %109, ptr %150, align 8 + %151 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %147, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %110, ptr %151, align 8 + %152 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %147, i64 4 + store %"github.com/goplus/llgo/runtime/abi.StructField" %112, ptr %152, align 8 + %153 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %147, i64 5 + store %"github.com/goplus/llgo/runtime/abi.StructField" %114, ptr %153, align 8 + %154 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %147, i64 6 + store %"github.com/goplus/llgo/runtime/abi.StructField" %116, ptr %154, align 8 + %155 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %147, i64 7 + store %"github.com/goplus/llgo/runtime/abi.StructField" %139, ptr %155, align 8 + %156 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %147, i64 8 + store %"github.com/goplus/llgo/runtime/abi.StructField" %142, ptr %156, align 8 + %157 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %147, i64 9 + store %"github.com/goplus/llgo/runtime/abi.StructField" %144, ptr %157, align 8 + %158 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %147, i64 10 + store %"github.com/goplus/llgo/runtime/abi.StructField" %146, ptr %158, align 8 + %159 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %147, 0 + %160 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %159, i64 11, 1 + %161 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %160, i64 11, 2 + %162 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %161) + store ptr %162, ptr @"main.struct$-sQ1S_TW5WNLDageftHP017iwpTTWpvZTx7xZ5oHpvI", align 8 + %163 = load ptr, ptr @"main.struct$-sQ1S_TW5WNLDageftHP017iwpTTWpvZTx7xZ5oHpvI", align 8 br i1 %11, label %_llgo_31, label %_llgo_32 _llgo_31: ; preds = %_llgo_30 @@ -722,15 +722,15 @@ _llgo_31: ; preds = %_llgo_30 br i1 %165, label %_llgo_33, label %_llgo_34 _llgo_32: ; preds = %_llgo_42, %_llgo_30 - %166 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %167 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %168 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 1 }, i64 25, i64 48, i64 0, i64 0) + %166 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %167 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %168 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 1 }, i64 25, i64 48, i64 0, i64 0) %169 = load ptr, ptr @"[]_llgo_main.T", align 8 %170 = icmp eq ptr %169, null br i1 %170, label %_llgo_149, label %_llgo_150 _llgo_33: ; preds = %_llgo_31 - %171 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %171 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %171, ptr @_llgo_int, align 8 br label %_llgo_34 @@ -742,276 +742,276 @@ _llgo_34: ; preds = %_llgo_33, %_llgo_31 br i1 %175, label %_llgo_35, label %_llgo_36 _llgo_35: ; preds = %_llgo_34 - %176 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %177 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %176, 0 - %178 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %177, i64 0, 1 - %179 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %178, i64 0, 2 - %180 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %176 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %177 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %176, 0 + %178 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %177, i64 0, 1 + %179 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %178, i64 0, 2 + %180 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %181 = getelementptr ptr, ptr %180, i64 0 store ptr %173, ptr %181, align 8 - %182 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %180, 0 - %183 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %182, i64 1, 1 - %184 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %183, i64 1, 2 - %185 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %179, %"github.com/goplus/llgo/internal/runtime.Slice" %184, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %185) + %182 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %180, 0 + %183 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %182, i64 1, 1 + %184 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %183, i64 1, 2 + %185 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %179, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %184, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %185) store ptr %185, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 br label %_llgo_36 _llgo_36: ; preds = %_llgo_35, %_llgo_34 %186 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %187 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %186, 1 - %188 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %187, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Align", 2 - %189 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %188, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Align", 3 - %190 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 9 }, i64 25, i64 104, i64 0, i64 21) - %191 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 + %187 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %186, 1 + %188 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %187, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Align", 2 + %189 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %188, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Align", 3 + %190 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 9 }, i64 25, i64 104, i64 0, i64 21) + %191 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 %192 = icmp eq ptr %191, null br i1 %192, label %_llgo_37, label %_llgo_38 _llgo_37: ; preds = %_llgo_36 - store ptr %190, ptr @"_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 + store ptr %190, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 br label %_llgo_38 _llgo_38: ; preds = %_llgo_37, %_llgo_36 - %193 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %194 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %195 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %196 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %197 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %198 = load ptr, ptr @"_llgo_struct$eLreYy_0Tx9Ip-rgTmC6_uCvf27HVl_zBUTfLS0WYaY", align 8 + %193 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %194 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %195 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %196 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %197 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %198 = load ptr, ptr @"_llgo_struct$_wxpay9lRP3cWU1eNzUY8uwDJyoHmQ6toXBadyiL6io", align 8 %199 = icmp eq ptr %198, null br i1 %199, label %_llgo_39, label %_llgo_40 _llgo_39: ; preds = %_llgo_38 - %200 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, ptr %195, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 true) - %201 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %196) - %202 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 4 }, ptr %201, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %203 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %197) - %204 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @20, i64 5 }, ptr %203, i64 80, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %205 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) - %206 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 3 }, ptr %205, i64 88, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %207 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %208 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %207, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %200, ptr %208, align 8 - %209 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %207, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %202, ptr %209, align 8 - %210 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %207, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %204, ptr %210, align 8 - %211 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %207, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %206, ptr %211, align 8 - %212 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %207, 0 - %213 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %212, i64 4, 1 - %214 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %213, i64 4, 2 - %215 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 96, %"github.com/goplus/llgo/internal/runtime.Slice" %214) - store ptr %215, ptr @"_llgo_struct$eLreYy_0Tx9Ip-rgTmC6_uCvf27HVl_zBUTfLS0WYaY", align 8 + %200 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, ptr %195, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 true) + %201 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %196) + %202 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 4 }, ptr %201, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %203 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %197) + %204 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @20, i64 5 }, ptr %203, i64 80, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %205 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) + %206 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 3 }, ptr %205, i64 88, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %207 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %208 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %207, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %200, ptr %208, align 8 + %209 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %207, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %202, ptr %209, align 8 + %210 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %207, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %204, ptr %210, align 8 + %211 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %207, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %206, ptr %211, align 8 + %212 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %207, 0 + %213 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %212, i64 4, 1 + %214 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %213, i64 4, 2 + %215 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 96, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %214) + store ptr %215, ptr @"_llgo_struct$_wxpay9lRP3cWU1eNzUY8uwDJyoHmQ6toXBadyiL6io", align 8 br label %_llgo_40 _llgo_40: ; preds = %_llgo_39, %_llgo_38 - %216 = load ptr, ptr @"_llgo_struct$eLreYy_0Tx9Ip-rgTmC6_uCvf27HVl_zBUTfLS0WYaY", align 8 + %216 = load ptr, ptr @"_llgo_struct$_wxpay9lRP3cWU1eNzUY8uwDJyoHmQ6toXBadyiL6io", align 8 br i1 %192, label %_llgo_41, label %_llgo_42 _llgo_41: ; preds = %_llgo_40 %217 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %218 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %217, 1 - %219 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %218, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Align", 2 - %220 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %219, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Align", 3 - %221 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 9 }, i64 25, i64 104, i64 0, i64 21) - %222 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 + %218 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %217, 1 + %219 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %218, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Align", 2 + %220 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %219, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Align", 3 + %221 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 9 }, i64 25, i64 104, i64 0, i64 21) + %222 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 %223 = icmp eq ptr %222, null br i1 %223, label %_llgo_43, label %_llgo_44 _llgo_42: ; preds = %_llgo_148, %_llgo_40 - %224 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 - %225 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 - %226 = load ptr, ptr @"_llgo_func$CsVqlCxhoEcIvPD5BSBukfSiD9C7Ic5_Gf32MLbCWB4", align 8 - %227 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %226, 1 - %228 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %227, ptr @"github.com/goplus/llgo/internal/abi.(*Type).ArrayType", 2 - %229 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %228, ptr @"github.com/goplus/llgo/internal/abi.(*Type).ArrayType", 3 - %230 = load ptr, ptr @"_llgo_func$TrNr0CVWj6qegOngzWbt2Jl7pr7IBJ5gOmgUf2ieIi4", align 8 - %231 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %230, 1 - %232 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %231, ptr @"github.com/goplus/llgo/internal/abi.(*Type).ChanDir", 2 - %233 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %232, ptr @"github.com/goplus/llgo/internal/abi.(*Type).ChanDir", 3 - %234 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %235 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %236 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %235, 1 - %237 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %236, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Common", 2 - %238 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %237, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Common", 3 - %239 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %240 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %241 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %240, 1 - %242 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %241, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Elem", 2 - %243 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %242, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Elem", 3 - %244 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 - %245 = load ptr, ptr @"_llgo_func$r0w3aCNVheLGqjxncuxitGhNtWJagb9gZLqOSrNI7dg", align 8 - %246 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %245, 1 - %247 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %246, ptr @"github.com/goplus/llgo/internal/abi.(*Type).ExportedMethods", 2 - %248 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %247, ptr @"github.com/goplus/llgo/internal/abi.(*Type).ExportedMethods", 3 + %224 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 + %225 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 + %226 = load ptr, ptr @"_llgo_func$E73lcQT8QN1_ra27XNBjrI9wUEDUjSPMu2bmnQKIbfk", align 8 + %227 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %226, 1 + %228 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %227, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).ArrayType", 2 + %229 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %228, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).ArrayType", 3 + %230 = load ptr, ptr @"_llgo_func$Qwe8YykhcqDIDEcT1jS_t1iUv4Im6IdGf17ASgXRQdc", align 8 + %231 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %230, 1 + %232 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %231, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).ChanDir", 2 + %233 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %232, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).ChanDir", 3 + %234 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %235 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %236 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %235, 1 + %237 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %236, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Common", 2 + %238 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %237, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Common", 3 + %239 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %240 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %241 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %240, 1 + %242 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %241, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Elem", 2 + %243 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %242, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Elem", 3 + %244 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 + %245 = load ptr, ptr @"_llgo_func$fPOUeAcTITSSbJEvFFjAWZP6Eli7dk4j7E9mFFHRoNM", align 8 + %246 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %245, 1 + %247 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %246, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).ExportedMethods", 2 + %248 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %247, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).ExportedMethods", 3 %249 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %250 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %249, 1 - %251 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %250, ptr @"github.com/goplus/llgo/internal/abi.(*Type).FieldAlign", 2 - %252 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %251, ptr @"github.com/goplus/llgo/internal/abi.(*Type).FieldAlign", 3 - %253 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 - %254 = load ptr, ptr @"_llgo_func$DsoxgOnxqV7tLvokF3AA14v1gtHsHaThoC8Q_XGcQww", align 8 - %255 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %254, 1 - %256 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %255, ptr @"github.com/goplus/llgo/internal/abi.(*Type).FuncType", 2 - %257 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %256, ptr @"github.com/goplus/llgo/internal/abi.(*Type).FuncType", 3 + %250 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %249, 1 + %251 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %250, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).FieldAlign", 2 + %252 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %251, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).FieldAlign", 3 + %253 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 + %254 = load ptr, ptr @"_llgo_func$Jm50llMLYG9ysTYiSohNC-Ho1mhjzn-vnTRBILhJI88", align 8 + %255 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %254, 1 + %256 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %255, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).FuncType", 2 + %257 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %256, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).FuncType", 3 %258 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %259 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %258, 1 - %260 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %259, ptr @"github.com/goplus/llgo/internal/abi.(*Type).HasName", 2 - %261 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %260, ptr @"github.com/goplus/llgo/internal/abi.(*Type).HasName", 3 + %259 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %258, 1 + %260 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %259, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).HasName", 2 + %261 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %260, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).HasName", 3 %262 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %263 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %262, 1 - %264 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %263, ptr @"github.com/goplus/llgo/internal/abi.(*Type).IfaceIndir", 2 - %265 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %264, ptr @"github.com/goplus/llgo/internal/abi.(*Type).IfaceIndir", 3 - %266 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 - %267 = load ptr, ptr @"_llgo_func$1QmforOaCy2fBAssC2y1FWCCT6fpq9RKwP2j2HIASY8", align 8 - %268 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %267, 1 - %269 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %268, ptr @"github.com/goplus/llgo/internal/abi.(*Type).InterfaceType", 2 - %270 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %269, ptr @"github.com/goplus/llgo/internal/abi.(*Type).InterfaceType", 3 + %263 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %262, 1 + %264 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %263, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).IfaceIndir", 2 + %265 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %264, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).IfaceIndir", 3 + %266 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 + %267 = load ptr, ptr @"_llgo_func$gPJieW0gawapuP7u0nJWjqAizA6ianfpIMmF5SojVDM", align 8 + %268 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %267, 1 + %269 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %268, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).InterfaceType", 2 + %270 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %269, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).InterfaceType", 3 %271 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %272 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %271, 1 - %273 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %272, ptr @"github.com/goplus/llgo/internal/abi.(*Type).IsClosure", 2 - %274 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %273, ptr @"github.com/goplus/llgo/internal/abi.(*Type).IsClosure", 3 + %272 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %271, 1 + %273 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %272, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).IsClosure", 2 + %274 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %273, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).IsClosure", 3 %275 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %276 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %275, 1 - %277 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %276, ptr @"github.com/goplus/llgo/internal/abi.(*Type).IsDirectIface", 2 - %278 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %277, ptr @"github.com/goplus/llgo/internal/abi.(*Type).IsDirectIface", 3 - %279 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %280 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %281 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @43, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %280, 1 - %282 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %281, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Key", 2 - %283 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %282, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Key", 3 - %284 = load ptr, ptr @"_llgo_func$ntUE0UmVAWPS2O7GpCCGszSn-XnjHJntZZ2jYtwbFXI", align 8 - %285 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %284, 1 - %286 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %285, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Kind", 2 - %287 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %286, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Kind", 3 + %276 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %275, 1 + %277 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %276, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).IsDirectIface", 2 + %278 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %277, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).IsDirectIface", 3 + %279 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %280 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %281 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @43, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %280, 1 + %282 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %281, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Key", 2 + %283 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %282, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Key", 3 + %284 = load ptr, ptr @"_llgo_func$Hsg8cfKiWmyMHfTCLbUouCMFmF6kp9x3qasAGPBLLfc", align 8 + %285 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %284, 1 + %286 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %285, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Kind", 2 + %287 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %286, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Kind", 3 %288 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %289 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %288, 1 - %290 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %289, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Len", 2 - %291 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %290, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Len", 3 - %292 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 - %293 = load ptr, ptr @"_llgo_func$d-NlqnjcQnaMjsBQY7qh2SWQmHb0XIigoceXdiJ8YT4", align 8 - %294 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %293, 1 - %295 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %294, ptr @"github.com/goplus/llgo/internal/abi.(*Type).MapType", 2 - %296 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %295, ptr @"github.com/goplus/llgo/internal/abi.(*Type).MapType", 3 + %289 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %288, 1 + %290 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %289, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Len", 2 + %291 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %290, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Len", 3 + %292 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 + %293 = load ptr, ptr @"_llgo_func$v23QoXYwI62Le4EtGc42fZr4iF7nBhA8A8t9lvpy0QY", align 8 + %294 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %293, 1 + %295 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %294, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).MapType", 2 + %296 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %295, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).MapType", 3 %297 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %298 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %297, 1 - %299 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %298, ptr @"github.com/goplus/llgo/internal/abi.(*Type).NumMethod", 2 - %300 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %299, ptr @"github.com/goplus/llgo/internal/abi.(*Type).NumMethod", 3 + %298 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %297, 1 + %299 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %298, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).NumMethod", 2 + %300 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %299, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).NumMethod", 3 %301 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %302 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %301, 1 - %303 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %302, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Pointers", 2 - %304 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %303, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Pointers", 3 + %302 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %301, 1 + %303 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %302, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Pointers", 2 + %304 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %303, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Pointers", 3 %305 = load ptr, ptr @"_llgo_func$1kITCsyu7hFLMxHLR7kDlvu4SOra_HtrtdFUQH9P13s", align 8 - %306 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %305, 1 - %307 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %306, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Size", 2 - %308 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %307, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Size", 3 + %306 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %305, 1 + %307 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %306, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Size", 2 + %308 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %307, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Size", 3 %309 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %310 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %309, 1 - %311 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %310, ptr @"github.com/goplus/llgo/internal/abi.(*Type).String", 2 - %312 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %311, ptr @"github.com/goplus/llgo/internal/abi.(*Type).String", 3 - %313 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 - %314 = load ptr, ptr @"_llgo_func$qiNnn6Cbm3GtDp4gDI4U_DRV3h8zlz91s9jrfOXC--U", align 8 - %315 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %314, 1 - %316 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %315, ptr @"github.com/goplus/llgo/internal/abi.(*Type).StructType", 2 - %317 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %316, ptr @"github.com/goplus/llgo/internal/abi.(*Type).StructType", 3 - %318 = load ptr, ptr @"_llgo_func$DbD4nZv_bjE4tH8hh-VfAjMXMpNfIsMlLJJJPKupp34", align 8 - %319 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %318, 1 - %320 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %319, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Uncommon", 2 - %321 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %320, ptr @"github.com/goplus/llgo/internal/abi.(*Type).Uncommon", 3 - %322 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 920) - %323 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %189, ptr %323, align 8 - %324 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %229, ptr %324, align 8 - %325 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 2 - store %"github.com/goplus/llgo/internal/abi.Method" %233, ptr %325, align 8 - %326 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 3 - store %"github.com/goplus/llgo/internal/abi.Method" %238, ptr %326, align 8 - %327 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 4 - store %"github.com/goplus/llgo/internal/abi.Method" %243, ptr %327, align 8 - %328 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 5 - store %"github.com/goplus/llgo/internal/abi.Method" %248, ptr %328, align 8 - %329 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 6 - store %"github.com/goplus/llgo/internal/abi.Method" %252, ptr %329, align 8 - %330 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 7 - store %"github.com/goplus/llgo/internal/abi.Method" %257, ptr %330, align 8 - %331 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 8 - store %"github.com/goplus/llgo/internal/abi.Method" %261, ptr %331, align 8 - %332 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 9 - store %"github.com/goplus/llgo/internal/abi.Method" %265, ptr %332, align 8 - %333 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 10 - store %"github.com/goplus/llgo/internal/abi.Method" %270, ptr %333, align 8 - %334 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 11 - store %"github.com/goplus/llgo/internal/abi.Method" %274, ptr %334, align 8 - %335 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 12 - store %"github.com/goplus/llgo/internal/abi.Method" %278, ptr %335, align 8 - %336 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 13 - store %"github.com/goplus/llgo/internal/abi.Method" %283, ptr %336, align 8 - %337 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 14 - store %"github.com/goplus/llgo/internal/abi.Method" %287, ptr %337, align 8 - %338 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 15 - store %"github.com/goplus/llgo/internal/abi.Method" %291, ptr %338, align 8 - %339 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 16 - store %"github.com/goplus/llgo/internal/abi.Method" %296, ptr %339, align 8 - %340 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 17 - store %"github.com/goplus/llgo/internal/abi.Method" %300, ptr %340, align 8 - %341 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 18 - store %"github.com/goplus/llgo/internal/abi.Method" %304, ptr %341, align 8 - %342 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 19 - store %"github.com/goplus/llgo/internal/abi.Method" %308, ptr %342, align 8 - %343 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 20 - store %"github.com/goplus/llgo/internal/abi.Method" %312, ptr %343, align 8 - %344 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 21 - store %"github.com/goplus/llgo/internal/abi.Method" %317, ptr %344, align 8 - %345 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %322, i64 22 - store %"github.com/goplus/llgo/internal/abi.Method" %321, ptr %345, align 8 - %346 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %322, 0 - %347 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %346, i64 23, 1 - %348 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %347, i64 23, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %9, ptr %163, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %348) + %310 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %309, 1 + %311 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %310, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).String", 2 + %312 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %311, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).String", 3 + %313 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 + %314 = load ptr, ptr @"_llgo_func$JNZyRh9Ldf2v-LKH-spUrxoORHTTH5NO358kWdhabp0", align 8 + %315 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %314, 1 + %316 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %315, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).StructType", 2 + %317 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %316, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).StructType", 3 + %318 = load ptr, ptr @"_llgo_func$iG49bujiXjI2lVflYdE0hPXlCAABL-XKRANSNJEKOio", align 8 + %319 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %318, 1 + %320 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %319, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Uncommon", 2 + %321 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %320, ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Uncommon", 3 + %322 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 920) + %323 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %189, ptr %323, align 8 + %324 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %229, ptr %324, align 8 + %325 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 2 + store %"github.com/goplus/llgo/runtime/abi.Method" %233, ptr %325, align 8 + %326 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 3 + store %"github.com/goplus/llgo/runtime/abi.Method" %238, ptr %326, align 8 + %327 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 4 + store %"github.com/goplus/llgo/runtime/abi.Method" %243, ptr %327, align 8 + %328 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 5 + store %"github.com/goplus/llgo/runtime/abi.Method" %248, ptr %328, align 8 + %329 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 6 + store %"github.com/goplus/llgo/runtime/abi.Method" %252, ptr %329, align 8 + %330 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 7 + store %"github.com/goplus/llgo/runtime/abi.Method" %257, ptr %330, align 8 + %331 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 8 + store %"github.com/goplus/llgo/runtime/abi.Method" %261, ptr %331, align 8 + %332 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 9 + store %"github.com/goplus/llgo/runtime/abi.Method" %265, ptr %332, align 8 + %333 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 10 + store %"github.com/goplus/llgo/runtime/abi.Method" %270, ptr %333, align 8 + %334 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 11 + store %"github.com/goplus/llgo/runtime/abi.Method" %274, ptr %334, align 8 + %335 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 12 + store %"github.com/goplus/llgo/runtime/abi.Method" %278, ptr %335, align 8 + %336 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 13 + store %"github.com/goplus/llgo/runtime/abi.Method" %283, ptr %336, align 8 + %337 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 14 + store %"github.com/goplus/llgo/runtime/abi.Method" %287, ptr %337, align 8 + %338 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 15 + store %"github.com/goplus/llgo/runtime/abi.Method" %291, ptr %338, align 8 + %339 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 16 + store %"github.com/goplus/llgo/runtime/abi.Method" %296, ptr %339, align 8 + %340 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 17 + store %"github.com/goplus/llgo/runtime/abi.Method" %300, ptr %340, align 8 + %341 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 18 + store %"github.com/goplus/llgo/runtime/abi.Method" %304, ptr %341, align 8 + %342 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 19 + store %"github.com/goplus/llgo/runtime/abi.Method" %308, ptr %342, align 8 + %343 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 20 + store %"github.com/goplus/llgo/runtime/abi.Method" %312, ptr %343, align 8 + %344 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 21 + store %"github.com/goplus/llgo/runtime/abi.Method" %317, ptr %344, align 8 + %345 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %322, i64 22 + store %"github.com/goplus/llgo/runtime/abi.Method" %321, ptr %345, align 8 + %346 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %322, 0 + %347 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %346, i64 23, 1 + %348 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %347, i64 23, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %9, ptr %163, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %348) br label %_llgo_32 _llgo_43: ; preds = %_llgo_41 - %349 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %221) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %349) - store ptr %349, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 + %349 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %221) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %349) + store ptr %349, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 br label %_llgo_44 _llgo_44: ; preds = %_llgo_43, %_llgo_41 - %350 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 - %351 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 - %352 = load ptr, ptr @"_llgo_func$CsVqlCxhoEcIvPD5BSBukfSiD9C7Ic5_Gf32MLbCWB4", align 8 + %350 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 + %351 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 + %352 = load ptr, ptr @"_llgo_func$E73lcQT8QN1_ra27XNBjrI9wUEDUjSPMu2bmnQKIbfk", align 8 %353 = icmp eq ptr %352, null br i1 %353, label %_llgo_45, label %_llgo_46 _llgo_45: ; preds = %_llgo_44 - %354 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %355 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %354, 0 - %356 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %355, i64 0, 1 - %357 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %356, i64 0, 2 - %358 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %354 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %355 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %354, 0 + %356 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %355, i64 0, 1 + %357 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %356, i64 0, 2 + %358 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %359 = getelementptr ptr, ptr %358, i64 0 store ptr %351, ptr %359, align 8 - %360 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %358, 0 - %361 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %360, i64 1, 1 - %362 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %361, i64 1, 2 - %363 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %357, %"github.com/goplus/llgo/internal/runtime.Slice" %362, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %363) - store ptr %363, ptr @"_llgo_func$CsVqlCxhoEcIvPD5BSBukfSiD9C7Ic5_Gf32MLbCWB4", align 8 + %360 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %358, 0 + %361 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %360, i64 1, 1 + %362 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %361, i64 1, 2 + %363 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %357, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %362, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %363) + store ptr %363, ptr @"_llgo_func$E73lcQT8QN1_ra27XNBjrI9wUEDUjSPMu2bmnQKIbfk", align 8 br label %_llgo_46 _llgo_46: ; preds = %_llgo_45, %_llgo_44 - %364 = load ptr, ptr @"_llgo_func$CsVqlCxhoEcIvPD5BSBukfSiD9C7Ic5_Gf32MLbCWB4", align 8 - %365 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %364, 1 - %366 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %365, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).ArrayType", 2 - %367 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %366, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).ArrayType", 3 - %368 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 7 }, i64 2, i64 8, i64 0, i64 0) - %369 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.ChanDir", align 8 + %364 = load ptr, ptr @"_llgo_func$E73lcQT8QN1_ra27XNBjrI9wUEDUjSPMu2bmnQKIbfk", align 8 + %365 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %364, 1 + %366 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %365, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).ArrayType", 2 + %367 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %366, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).ArrayType", 3 + %368 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 7 }, i64 2, i64 8, i64 0, i64 0) + %369 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.ChanDir", align 8 %370 = icmp eq ptr %369, null br i1 %370, label %_llgo_47, label %_llgo_48 _llgo_47: ; preds = %_llgo_46 - store ptr %368, ptr @"_llgo_github.com/goplus/llgo/internal/abi.ChanDir", align 8 + store ptr %368, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.ChanDir", align 8 br label %_llgo_48 _llgo_48: ; preds = %_llgo_47, %_llgo_46 @@ -1019,637 +1019,637 @@ _llgo_48: ; preds = %_llgo_47, %_llgo_46 br i1 %370, label %_llgo_49, label %_llgo_50 _llgo_49: ; preds = %_llgo_48 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %368, ptr %371, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %368, ptr %371, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_50 _llgo_50: ; preds = %_llgo_49, %_llgo_48 - %372 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.ChanDir", align 8 - %373 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.ChanDir", align 8 - %374 = load ptr, ptr @"_llgo_func$TrNr0CVWj6qegOngzWbt2Jl7pr7IBJ5gOmgUf2ieIi4", align 8 + %372 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.ChanDir", align 8 + %373 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.ChanDir", align 8 + %374 = load ptr, ptr @"_llgo_func$Qwe8YykhcqDIDEcT1jS_t1iUv4Im6IdGf17ASgXRQdc", align 8 %375 = icmp eq ptr %374, null br i1 %375, label %_llgo_51, label %_llgo_52 _llgo_51: ; preds = %_llgo_50 - %376 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %377 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %376, 0 - %378 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %377, i64 0, 1 - %379 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %378, i64 0, 2 - %380 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %376 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %377 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %376, 0 + %378 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %377, i64 0, 1 + %379 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %378, i64 0, 2 + %380 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %381 = getelementptr ptr, ptr %380, i64 0 store ptr %373, ptr %381, align 8 - %382 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %380, 0 - %383 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %382, i64 1, 1 - %384 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %383, i64 1, 2 - %385 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %379, %"github.com/goplus/llgo/internal/runtime.Slice" %384, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %385) - store ptr %385, ptr @"_llgo_func$TrNr0CVWj6qegOngzWbt2Jl7pr7IBJ5gOmgUf2ieIi4", align 8 + %382 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %380, 0 + %383 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %382, i64 1, 1 + %384 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %383, i64 1, 2 + %385 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %379, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %384, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %385) + store ptr %385, ptr @"_llgo_func$Qwe8YykhcqDIDEcT1jS_t1iUv4Im6IdGf17ASgXRQdc", align 8 br label %_llgo_52 _llgo_52: ; preds = %_llgo_51, %_llgo_50 - %386 = load ptr, ptr @"_llgo_func$TrNr0CVWj6qegOngzWbt2Jl7pr7IBJ5gOmgUf2ieIi4", align 8 - %387 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %386, 1 - %388 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %387, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).ChanDir", 2 - %389 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %388, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).ChanDir", 3 - %390 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %391 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %392 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 + %386 = load ptr, ptr @"_llgo_func$Qwe8YykhcqDIDEcT1jS_t1iUv4Im6IdGf17ASgXRQdc", align 8 + %387 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %386, 1 + %388 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %387, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).ChanDir", 2 + %389 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %388, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).ChanDir", 3 + %390 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %391 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %392 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 %393 = icmp eq ptr %392, null br i1 %393, label %_llgo_53, label %_llgo_54 _llgo_53: ; preds = %_llgo_52 - %394 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %395 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %394, 0 - %396 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %395, i64 0, 1 - %397 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %396, i64 0, 2 - %398 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %394 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %395 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %394, 0 + %396 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %395, i64 0, 1 + %397 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %396, i64 0, 2 + %398 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %399 = getelementptr ptr, ptr %398, i64 0 store ptr %391, ptr %399, align 8 - %400 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %398, 0 - %401 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %400, i64 1, 1 - %402 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %401, i64 1, 2 - %403 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %397, %"github.com/goplus/llgo/internal/runtime.Slice" %402, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %403) - store ptr %403, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 + %400 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %398, 0 + %401 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %400, i64 1, 1 + %402 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %401, i64 1, 2 + %403 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %397, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %402, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %403) + store ptr %403, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 br label %_llgo_54 _llgo_54: ; preds = %_llgo_53, %_llgo_52 - %404 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %405 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %404, 1 - %406 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %405, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Common", 2 - %407 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %406, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Common", 3 - %408 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @25, i64 6 }, i64 25, i64 40, i64 0, i64 3) - %409 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 + %404 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %405 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %404, 1 + %406 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %405, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Common", 2 + %407 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %406, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Common", 3 + %408 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @25, i64 6 }, i64 25, i64 40, i64 0, i64 3) + %409 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 %410 = icmp eq ptr %409, null br i1 %410, label %_llgo_55, label %_llgo_56 _llgo_55: ; preds = %_llgo_54 - store ptr %408, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 + store ptr %408, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 br label %_llgo_56 _llgo_56: ; preds = %_llgo_55, %_llgo_54 - %411 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @26, i64 8 }, i64 25, i64 128, i64 0, i64 24) - %412 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 + %411 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @26, i64 8 }, i64 25, i64 128, i64 0, i64 24) + %412 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 %413 = icmp eq ptr %412, null br i1 %413, label %_llgo_57, label %_llgo_58 _llgo_57: ; preds = %_llgo_56 - store ptr %411, ptr @"_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 + store ptr %411, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 br label %_llgo_58 _llgo_58: ; preds = %_llgo_57, %_llgo_56 - %414 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %415 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %416 = load ptr, ptr @"[]*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 + %414 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %415 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %416 = load ptr, ptr @"[]*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 %417 = icmp eq ptr %416, null br i1 %417, label %_llgo_59, label %_llgo_60 _llgo_59: ; preds = %_llgo_58 - %418 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %415) - %419 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %418) - store ptr %419, ptr @"[]*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 + %418 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %415) + %419 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %418) + store ptr %419, ptr @"[]*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 br label %_llgo_60 _llgo_60: ; preds = %_llgo_59, %_llgo_58 - %420 = load ptr, ptr @"[]*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %421 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %422 = load ptr, ptr @"[]*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %423 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %424 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %425 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %426 = load ptr, ptr @"_llgo_struct$wRu7InfmQeSkq7akLN3soDNninnS1dQajawdYvmHbzw", align 8 + %420 = load ptr, ptr @"[]*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %421 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %422 = load ptr, ptr @"[]*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %423 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %424 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %425 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %426 = load ptr, ptr @"_llgo_struct$1ug-gfLTkNOIzG-RN7EFFwGKI01E7iqUGVZBMudT8KA", align 8 %427 = icmp eq ptr %426, null br i1 %427, label %_llgo_61, label %_llgo_62 _llgo_61: ; preds = %_llgo_60 - %428 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, ptr %423, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 true) - %429 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %424) - %430 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %429) - %431 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @27, i64 2 }, ptr %430, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %432 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %425) - %433 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %432) - %434 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @28, i64 3 }, ptr %433, i64 96, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %435 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 168) - %436 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %435, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %428, ptr %436, align 8 - %437 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %435, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %431, ptr %437, align 8 - %438 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %435, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %434, ptr %438, align 8 - %439 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %435, 0 - %440 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %439, i64 3, 1 - %441 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %440, i64 3, 2 - %442 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 120, %"github.com/goplus/llgo/internal/runtime.Slice" %441) - store ptr %442, ptr @"_llgo_struct$wRu7InfmQeSkq7akLN3soDNninnS1dQajawdYvmHbzw", align 8 + %428 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, ptr %423, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 true) + %429 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %424) + %430 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %429) + %431 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @27, i64 2 }, ptr %430, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %432 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %425) + %433 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %432) + %434 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @28, i64 3 }, ptr %433, i64 96, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %435 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 168) + %436 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %435, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %428, ptr %436, align 8 + %437 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %435, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %431, ptr %437, align 8 + %438 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %435, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %434, ptr %438, align 8 + %439 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %435, 0 + %440 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %439, i64 3, 1 + %441 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %440, i64 3, 2 + %442 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 120, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %441) + store ptr %442, ptr @"_llgo_struct$1ug-gfLTkNOIzG-RN7EFFwGKI01E7iqUGVZBMudT8KA", align 8 br label %_llgo_62 _llgo_62: ; preds = %_llgo_61, %_llgo_60 - %443 = load ptr, ptr @"_llgo_struct$wRu7InfmQeSkq7akLN3soDNninnS1dQajawdYvmHbzw", align 8 + %443 = load ptr, ptr @"_llgo_struct$1ug-gfLTkNOIzG-RN7EFFwGKI01E7iqUGVZBMudT8KA", align 8 br i1 %413, label %_llgo_63, label %_llgo_64 _llgo_63: ; preds = %_llgo_62 %444 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %445 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %444, 1 - %446 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %445, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Align", 2 - %447 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %446, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Align", 3 - %448 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 - %449 = load ptr, ptr @"_llgo_func$CsVqlCxhoEcIvPD5BSBukfSiD9C7Ic5_Gf32MLbCWB4", align 8 - %450 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %449, 1 - %451 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %450, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).ArrayType", 2 - %452 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %451, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).ArrayType", 3 - %453 = load ptr, ptr @"_llgo_func$TrNr0CVWj6qegOngzWbt2Jl7pr7IBJ5gOmgUf2ieIi4", align 8 - %454 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %453, 1 - %455 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %454, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).ChanDir", 2 - %456 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %455, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).ChanDir", 3 - %457 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %458 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %459 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %458, 1 - %460 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %459, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Common", 2 - %461 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %460, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Common", 3 - %462 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %463 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %464 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %463, 1 - %465 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %464, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Elem", 2 - %466 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %465, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Elem", 3 - %467 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @25, i64 6 }, i64 25, i64 40, i64 0, i64 3) - %468 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 + %445 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %444, 1 + %446 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %445, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Align", 2 + %447 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %446, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Align", 3 + %448 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 + %449 = load ptr, ptr @"_llgo_func$E73lcQT8QN1_ra27XNBjrI9wUEDUjSPMu2bmnQKIbfk", align 8 + %450 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %449, 1 + %451 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %450, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).ArrayType", 2 + %452 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %451, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).ArrayType", 3 + %453 = load ptr, ptr @"_llgo_func$Qwe8YykhcqDIDEcT1jS_t1iUv4Im6IdGf17ASgXRQdc", align 8 + %454 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %453, 1 + %455 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %454, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).ChanDir", 2 + %456 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %455, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).ChanDir", 3 + %457 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %458 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %459 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %458, 1 + %460 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %459, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Common", 2 + %461 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %460, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Common", 3 + %462 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %463 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %464 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %463, 1 + %465 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %464, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Elem", 2 + %466 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %465, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Elem", 3 + %467 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @25, i64 6 }, i64 25, i64 40, i64 0, i64 3) + %468 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 %469 = icmp eq ptr %468, null br i1 %469, label %_llgo_65, label %_llgo_66 _llgo_64: ; preds = %_llgo_90, %_llgo_62 - %470 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 - %471 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 - %472 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @26, i64 8 }, i64 25, i64 128, i64 0, i64 24) - %473 = load ptr, ptr @"_llgo_struct$SDp3TNnYnxb26MhB1v8VMbmY71BX77YOaY7lgS1cFx0", align 8 + %470 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 + %471 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 + %472 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @26, i64 8 }, i64 25, i64 128, i64 0, i64 24) + %473 = load ptr, ptr @"_llgo_struct$jXUHcnL1PMmNRB-pn2cBRAQ7OYcwCM_YkvLqlL0ZYaE", align 8 %474 = icmp eq ptr %473, null br i1 %474, label %_llgo_145, label %_llgo_146 _llgo_65: ; preds = %_llgo_63 - %475 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %467) - store ptr %475, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 + %475 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %467) + store ptr %475, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 br label %_llgo_66 _llgo_66: ; preds = %_llgo_65, %_llgo_63 - %476 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 - %477 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 - %478 = load ptr, ptr @"_llgo_func$r0w3aCNVheLGqjxncuxitGhNtWJagb9gZLqOSrNI7dg", align 8 + %476 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 + %477 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 + %478 = load ptr, ptr @"_llgo_func$fPOUeAcTITSSbJEvFFjAWZP6Eli7dk4j7E9mFFHRoNM", align 8 %479 = icmp eq ptr %478, null br i1 %479, label %_llgo_67, label %_llgo_68 _llgo_67: ; preds = %_llgo_66 - %480 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %481 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %480, 0 - %482 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %481, i64 0, 1 - %483 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %482, i64 0, 2 - %484 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %480 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %481 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %480, 0 + %482 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %481, i64 0, 1 + %483 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %482, i64 0, 2 + %484 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %485 = getelementptr ptr, ptr %484, i64 0 store ptr %477, ptr %485, align 8 - %486 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %484, 0 - %487 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %486, i64 1, 1 - %488 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %487, i64 1, 2 - %489 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %483, %"github.com/goplus/llgo/internal/runtime.Slice" %488, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %489) - store ptr %489, ptr @"_llgo_func$r0w3aCNVheLGqjxncuxitGhNtWJagb9gZLqOSrNI7dg", align 8 + %486 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %484, 0 + %487 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %486, i64 1, 1 + %488 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %487, i64 1, 2 + %489 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %483, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %488, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %489) + store ptr %489, ptr @"_llgo_func$fPOUeAcTITSSbJEvFFjAWZP6Eli7dk4j7E9mFFHRoNM", align 8 br label %_llgo_68 _llgo_68: ; preds = %_llgo_67, %_llgo_66 - %490 = load ptr, ptr @"_llgo_func$r0w3aCNVheLGqjxncuxitGhNtWJagb9gZLqOSrNI7dg", align 8 - %491 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %490, 1 - %492 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %491, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).ExportedMethods", 2 - %493 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %492, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).ExportedMethods", 3 + %490 = load ptr, ptr @"_llgo_func$fPOUeAcTITSSbJEvFFjAWZP6Eli7dk4j7E9mFFHRoNM", align 8 + %491 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %490, 1 + %492 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %491, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).ExportedMethods", 2 + %493 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %492, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).ExportedMethods", 3 %494 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %495 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %494, 1 - %496 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %495, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).FieldAlign", 2 - %497 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %496, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).FieldAlign", 3 - %498 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @26, i64 8 }, i64 25, i64 128, i64 0, i64 24) - %499 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 + %495 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %494, 1 + %496 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %495, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).FieldAlign", 2 + %497 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %496, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).FieldAlign", 3 + %498 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @26, i64 8 }, i64 25, i64 128, i64 0, i64 24) + %499 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 %500 = icmp eq ptr %499, null br i1 %500, label %_llgo_69, label %_llgo_70 _llgo_69: ; preds = %_llgo_68 - %501 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %498) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %501) - store ptr %501, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 + %501 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %498) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %501) + store ptr %501, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 br label %_llgo_70 _llgo_70: ; preds = %_llgo_69, %_llgo_68 - %502 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 - %503 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 - %504 = load ptr, ptr @"_llgo_func$DsoxgOnxqV7tLvokF3AA14v1gtHsHaThoC8Q_XGcQww", align 8 + %502 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 + %503 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 + %504 = load ptr, ptr @"_llgo_func$Jm50llMLYG9ysTYiSohNC-Ho1mhjzn-vnTRBILhJI88", align 8 %505 = icmp eq ptr %504, null br i1 %505, label %_llgo_71, label %_llgo_72 _llgo_71: ; preds = %_llgo_70 - %506 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %507 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %506, 0 - %508 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %507, i64 0, 1 - %509 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %508, i64 0, 2 - %510 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %506 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %507 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %506, 0 + %508 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %507, i64 0, 1 + %509 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %508, i64 0, 2 + %510 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %511 = getelementptr ptr, ptr %510, i64 0 store ptr %503, ptr %511, align 8 - %512 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %510, 0 - %513 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %512, i64 1, 1 - %514 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %513, i64 1, 2 - %515 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %509, %"github.com/goplus/llgo/internal/runtime.Slice" %514, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %515) - store ptr %515, ptr @"_llgo_func$DsoxgOnxqV7tLvokF3AA14v1gtHsHaThoC8Q_XGcQww", align 8 + %512 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %510, 0 + %513 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %512, i64 1, 1 + %514 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %513, i64 1, 2 + %515 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %509, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %514, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %515) + store ptr %515, ptr @"_llgo_func$Jm50llMLYG9ysTYiSohNC-Ho1mhjzn-vnTRBILhJI88", align 8 br label %_llgo_72 _llgo_72: ; preds = %_llgo_71, %_llgo_70 - %516 = load ptr, ptr @"_llgo_func$DsoxgOnxqV7tLvokF3AA14v1gtHsHaThoC8Q_XGcQww", align 8 - %517 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %516, 1 - %518 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %517, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).FuncType", 2 - %519 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %518, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).FuncType", 3 + %516 = load ptr, ptr @"_llgo_func$Jm50llMLYG9ysTYiSohNC-Ho1mhjzn-vnTRBILhJI88", align 8 + %517 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %516, 1 + %518 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %517, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).FuncType", 2 + %519 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %518, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).FuncType", 3 %520 = load ptr, ptr @_llgo_bool, align 8 %521 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 %522 = icmp eq ptr %521, null br i1 %522, label %_llgo_73, label %_llgo_74 _llgo_73: ; preds = %_llgo_72 - %523 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %524 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %523, 0 - %525 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %524, i64 0, 1 - %526 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %525, i64 0, 2 - %527 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %523 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %524 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %523, 0 + %525 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %524, i64 0, 1 + %526 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %525, i64 0, 2 + %527 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %528 = getelementptr ptr, ptr %527, i64 0 store ptr %520, ptr %528, align 8 - %529 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %527, 0 - %530 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %529, i64 1, 1 - %531 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %530, i64 1, 2 - %532 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %526, %"github.com/goplus/llgo/internal/runtime.Slice" %531, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %532) + %529 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %527, 0 + %530 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %529, i64 1, 1 + %531 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %530, i64 1, 2 + %532 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %526, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %531, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %532) store ptr %532, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 br label %_llgo_74 _llgo_74: ; preds = %_llgo_73, %_llgo_72 %533 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %534 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %533, 1 - %535 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %534, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).HasName", 2 - %536 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %535, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).HasName", 3 + %534 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %533, 1 + %535 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %534, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).HasName", 2 + %536 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %535, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).HasName", 3 %537 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %538 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %537, 1 - %539 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %538, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).IfaceIndir", 2 - %540 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %539, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).IfaceIndir", 3 - %541 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @32, i64 13 }, i64 25, i64 120, i64 0, i64 23) - %542 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 + %538 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %537, 1 + %539 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %538, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).IfaceIndir", 2 + %540 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %539, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).IfaceIndir", 3 + %541 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @32, i64 13 }, i64 25, i64 120, i64 0, i64 23) + %542 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 %543 = icmp eq ptr %542, null br i1 %543, label %_llgo_75, label %_llgo_76 _llgo_75: ; preds = %_llgo_74 - store ptr %541, ptr @"_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 + store ptr %541, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 br label %_llgo_76 _llgo_76: ; preds = %_llgo_75, %_llgo_74 - %544 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @33, i64 7 }, i64 25, i64 24, i64 0, i64 3) - %545 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Imethod", align 8 + %544 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @33, i64 7 }, i64 25, i64 24, i64 0, i64 3) + %545 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Imethod", align 8 %546 = icmp eq ptr %545, null br i1 %546, label %_llgo_77, label %_llgo_78 _llgo_77: ; preds = %_llgo_76 - store ptr %544, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Imethod", align 8 + store ptr %544, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Imethod", align 8 br label %_llgo_78 _llgo_78: ; preds = %_llgo_77, %_llgo_76 - %547 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 - %548 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @26, i64 8 }, i64 25, i64 128, i64 0, i64 24) - %549 = load ptr, ptr @"_llgo_struct$-SVMNS9vOT5F9q4yodRiL9MFhdPf0tfZ2Cx2o7KjSDw", align 8 + %547 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 + %548 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @26, i64 8 }, i64 25, i64 128, i64 0, i64 24) + %549 = load ptr, ptr @"_llgo_struct$nK3p3a0VXRT6CeR0p3-gSrD3XdcHx2I7dlhqG-Zjudw", align 8 %550 = icmp eq ptr %549, null br i1 %550, label %_llgo_79, label %_llgo_80 _llgo_79: ; preds = %_llgo_78 - %551 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %552 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @34, i64 5 }, ptr %551, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %553 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %548) - %554 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @35, i64 4 }, ptr %553, i64 16, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %555 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %556 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %555, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %552, ptr %556, align 8 - %557 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %555, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %554, ptr %557, align 8 - %558 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %555, 0 - %559 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %558, i64 2, 1 - %560 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %559, i64 2, 2 - %561 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 24, %"github.com/goplus/llgo/internal/runtime.Slice" %560) - store ptr %561, ptr @"_llgo_struct$-SVMNS9vOT5F9q4yodRiL9MFhdPf0tfZ2Cx2o7KjSDw", align 8 + %551 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %552 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @34, i64 5 }, ptr %551, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %553 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %548) + %554 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @35, i64 4 }, ptr %553, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %555 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %556 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %555, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %552, ptr %556, align 8 + %557 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %555, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %554, ptr %557, align 8 + %558 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %555, 0 + %559 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %558, i64 2, 1 + %560 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %559, i64 2, 2 + %561 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 24, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %560) + store ptr %561, ptr @"_llgo_struct$nK3p3a0VXRT6CeR0p3-gSrD3XdcHx2I7dlhqG-Zjudw", align 8 br label %_llgo_80 _llgo_80: ; preds = %_llgo_79, %_llgo_78 - %562 = load ptr, ptr @"_llgo_struct$-SVMNS9vOT5F9q4yodRiL9MFhdPf0tfZ2Cx2o7KjSDw", align 8 + %562 = load ptr, ptr @"_llgo_struct$nK3p3a0VXRT6CeR0p3-gSrD3XdcHx2I7dlhqG-Zjudw", align 8 br i1 %546, label %_llgo_81, label %_llgo_82 _llgo_81: ; preds = %_llgo_80 %563 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %564 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @36, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %563, 1 - %565 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %564, ptr @"github.com/goplus/llgo/internal/abi.(*Imethod).Exported", 2 - %566 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %565, ptr @"github.com/goplus/llgo/internal/abi.(*Imethod).Exported", 3 + %564 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @36, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %563, 1 + %565 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %564, ptr @"github.com/goplus/llgo/runtime/abi.(*Imethod).Exported", 2 + %566 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %565, ptr @"github.com/goplus/llgo/runtime/abi.(*Imethod).Exported", 3 %567 = load ptr, ptr @_llgo_string, align 8 %568 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 %569 = icmp eq ptr %568, null br i1 %569, label %_llgo_83, label %_llgo_84 _llgo_82: ; preds = %_llgo_84, %_llgo_80 - %570 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Imethod", align 8 - %571 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @33, i64 7 }, i64 25, i64 24, i64 0, i64 3) - %572 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Imethod", align 8 + %570 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Imethod", align 8 + %571 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @33, i64 7 }, i64 25, i64 24, i64 0, i64 3) + %572 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Imethod", align 8 %573 = icmp eq ptr %572, null br i1 %573, label %_llgo_85, label %_llgo_86 _llgo_83: ; preds = %_llgo_81 - %574 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %575 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %574, 0 - %576 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %575, i64 0, 1 - %577 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %576, i64 0, 2 - %578 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %574 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %575 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %574, 0 + %576 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %575, i64 0, 1 + %577 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %576, i64 0, 2 + %578 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %579 = getelementptr ptr, ptr %578, i64 0 store ptr %567, ptr %579, align 8 - %580 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %578, 0 - %581 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %580, i64 1, 1 - %582 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %581, i64 1, 2 - %583 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %577, %"github.com/goplus/llgo/internal/runtime.Slice" %582, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %583) + %580 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %578, 0 + %581 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %580, i64 1, 1 + %582 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %581, i64 1, 2 + %583 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %577, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %582, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %583) store ptr %583, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 br label %_llgo_84 _llgo_84: ; preds = %_llgo_83, %_llgo_81 %584 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %585 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @37, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %584, 1 - %586 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %585, ptr @"github.com/goplus/llgo/internal/abi.(*Imethod).Name", 2 - %587 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %586, ptr @"github.com/goplus/llgo/internal/abi.(*Imethod).Name", 3 + %585 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @37, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %584, 1 + %586 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %585, ptr @"github.com/goplus/llgo/runtime/abi.(*Imethod).Name", 2 + %587 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %586, ptr @"github.com/goplus/llgo/runtime/abi.(*Imethod).Name", 3 %588 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %589 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @38, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %588, 1 - %590 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %589, ptr @"github.com/goplus/llgo/internal/abi.(*Imethod).PkgPath", 2 - %591 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %590, ptr @"github.com/goplus/llgo/internal/abi.(*Imethod).PkgPath", 3 - %592 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 120) - %593 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %592, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %566, ptr %593, align 8 - %594 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %592, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %587, ptr %594, align 8 - %595 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %592, i64 2 - store %"github.com/goplus/llgo/internal/abi.Method" %591, ptr %595, align 8 - %596 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %592, 0 - %597 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %596, i64 3, 1 - %598 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %597, i64 3, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %544, ptr %562, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %598) + %589 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @38, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %588, 1 + %590 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %589, ptr @"github.com/goplus/llgo/runtime/abi.(*Imethod).PkgPath", 2 + %591 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %590, ptr @"github.com/goplus/llgo/runtime/abi.(*Imethod).PkgPath", 3 + %592 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 120) + %593 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %592, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %566, ptr %593, align 8 + %594 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %592, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %587, ptr %594, align 8 + %595 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %592, i64 2 + store %"github.com/goplus/llgo/runtime/abi.Method" %591, ptr %595, align 8 + %596 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %592, 0 + %597 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %596, i64 3, 1 + %598 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %597, i64 3, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %544, ptr %562, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %598) br label %_llgo_82 _llgo_85: ; preds = %_llgo_82 - %599 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %571) - store ptr %599, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Imethod", align 8 + %599 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %571) + store ptr %599, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Imethod", align 8 br label %_llgo_86 _llgo_86: ; preds = %_llgo_85, %_llgo_82 - %600 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Imethod", align 8 - %601 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %602 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @33, i64 7 }, i64 25, i64 24, i64 0, i64 3) - %603 = load ptr, ptr @"_llgo_struct$mWxYYevLxpL1wQyiQtAy4OszkqTlHtrmEcPpzW9Air4", align 8 + %600 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Imethod", align 8 + %601 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %602 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @33, i64 7 }, i64 25, i64 24, i64 0, i64 3) + %603 = load ptr, ptr @"_llgo_struct$eoXJdAUqA_SyytMpb3QTBaQ2Bh9nLc089-gvCiW55io", align 8 %604 = icmp eq ptr %603, null br i1 %604, label %_llgo_87, label %_llgo_88 _llgo_87: ; preds = %_llgo_86 - %605 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, ptr %601, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 true) - %606 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %607 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @39, i64 8 }, ptr %606, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %608 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %602) - %609 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @40, i64 7 }, ptr %608, i64 88, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %610 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 168) - %611 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %610, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %605, ptr %611, align 8 - %612 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %610, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %607, ptr %612, align 8 - %613 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %610, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %609, ptr %613, align 8 - %614 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %610, 0 - %615 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %614, i64 3, 1 - %616 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %615, i64 3, 2 - %617 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 112, %"github.com/goplus/llgo/internal/runtime.Slice" %616) - store ptr %617, ptr @"_llgo_struct$mWxYYevLxpL1wQyiQtAy4OszkqTlHtrmEcPpzW9Air4", align 8 + %605 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, ptr %601, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 true) + %606 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %607 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @39, i64 8 }, ptr %606, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %608 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %602) + %609 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @40, i64 7 }, ptr %608, i64 88, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %610 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 168) + %611 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %610, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %605, ptr %611, align 8 + %612 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %610, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %607, ptr %612, align 8 + %613 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %610, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %609, ptr %613, align 8 + %614 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %610, 0 + %615 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %614, i64 3, 1 + %616 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %615, i64 3, 2 + %617 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 112, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %616) + store ptr %617, ptr @"_llgo_struct$eoXJdAUqA_SyytMpb3QTBaQ2Bh9nLc089-gvCiW55io", align 8 br label %_llgo_88 _llgo_88: ; preds = %_llgo_87, %_llgo_86 - %618 = load ptr, ptr @"_llgo_struct$mWxYYevLxpL1wQyiQtAy4OszkqTlHtrmEcPpzW9Air4", align 8 + %618 = load ptr, ptr @"_llgo_struct$eoXJdAUqA_SyytMpb3QTBaQ2Bh9nLc089-gvCiW55io", align 8 br i1 %543, label %_llgo_89, label %_llgo_90 _llgo_89: ; preds = %_llgo_88 %619 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %620 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %619, 1 - %621 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %620, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Align", 2 - %622 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %621, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Align", 3 - %623 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 - %624 = load ptr, ptr @"_llgo_func$CsVqlCxhoEcIvPD5BSBukfSiD9C7Ic5_Gf32MLbCWB4", align 8 - %625 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %624, 1 - %626 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %625, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).ArrayType", 2 - %627 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %626, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).ArrayType", 3 - %628 = load ptr, ptr @"_llgo_func$TrNr0CVWj6qegOngzWbt2Jl7pr7IBJ5gOmgUf2ieIi4", align 8 - %629 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %628, 1 - %630 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %629, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).ChanDir", 2 - %631 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %630, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).ChanDir", 3 - %632 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %633 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %634 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %633, 1 - %635 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %634, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Common", 2 - %636 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %635, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Common", 3 - %637 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %638 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %639 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %638, 1 - %640 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %639, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Elem", 2 - %641 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %640, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Elem", 3 - %642 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 - %643 = load ptr, ptr @"_llgo_func$r0w3aCNVheLGqjxncuxitGhNtWJagb9gZLqOSrNI7dg", align 8 - %644 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %643, 1 - %645 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %644, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).ExportedMethods", 2 - %646 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %645, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).ExportedMethods", 3 + %620 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %619, 1 + %621 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %620, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Align", 2 + %622 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %621, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Align", 3 + %623 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 + %624 = load ptr, ptr @"_llgo_func$E73lcQT8QN1_ra27XNBjrI9wUEDUjSPMu2bmnQKIbfk", align 8 + %625 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %624, 1 + %626 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %625, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).ArrayType", 2 + %627 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %626, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).ArrayType", 3 + %628 = load ptr, ptr @"_llgo_func$Qwe8YykhcqDIDEcT1jS_t1iUv4Im6IdGf17ASgXRQdc", align 8 + %629 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %628, 1 + %630 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %629, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).ChanDir", 2 + %631 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %630, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).ChanDir", 3 + %632 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %633 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %634 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %633, 1 + %635 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %634, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Common", 2 + %636 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %635, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Common", 3 + %637 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %638 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %639 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %638, 1 + %640 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %639, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Elem", 2 + %641 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %640, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Elem", 3 + %642 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 + %643 = load ptr, ptr @"_llgo_func$fPOUeAcTITSSbJEvFFjAWZP6Eli7dk4j7E9mFFHRoNM", align 8 + %644 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %643, 1 + %645 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %644, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).ExportedMethods", 2 + %646 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %645, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).ExportedMethods", 3 %647 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %648 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %647, 1 - %649 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %648, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).FieldAlign", 2 - %650 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %649, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).FieldAlign", 3 - %651 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 - %652 = load ptr, ptr @"_llgo_func$DsoxgOnxqV7tLvokF3AA14v1gtHsHaThoC8Q_XGcQww", align 8 - %653 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %652, 1 - %654 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %653, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).FuncType", 2 - %655 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %654, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).FuncType", 3 + %648 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %647, 1 + %649 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %648, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).FieldAlign", 2 + %650 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %649, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).FieldAlign", 3 + %651 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 + %652 = load ptr, ptr @"_llgo_func$Jm50llMLYG9ysTYiSohNC-Ho1mhjzn-vnTRBILhJI88", align 8 + %653 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %652, 1 + %654 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %653, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).FuncType", 2 + %655 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %654, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).FuncType", 3 %656 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %657 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %656, 1 - %658 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %657, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).HasName", 2 - %659 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %658, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).HasName", 3 + %657 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %656, 1 + %658 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %657, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).HasName", 2 + %659 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %658, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).HasName", 3 %660 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %661 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %660, 1 - %662 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %661, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).IfaceIndir", 2 - %663 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %662, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).IfaceIndir", 3 - %664 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @32, i64 13 }, i64 25, i64 120, i64 0, i64 23) - %665 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 + %661 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %660, 1 + %662 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %661, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).IfaceIndir", 2 + %663 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %662, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).IfaceIndir", 3 + %664 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @32, i64 13 }, i64 25, i64 120, i64 0, i64 23) + %665 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 %666 = icmp eq ptr %665, null br i1 %666, label %_llgo_91, label %_llgo_92 _llgo_90: ; preds = %_llgo_110, %_llgo_88 - %667 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 - %668 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 - %669 = load ptr, ptr @"_llgo_func$1QmforOaCy2fBAssC2y1FWCCT6fpq9RKwP2j2HIASY8", align 8 - %670 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %669, 1 - %671 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %670, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).InterfaceType", 2 - %672 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %671, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).InterfaceType", 3 + %667 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 + %668 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 + %669 = load ptr, ptr @"_llgo_func$gPJieW0gawapuP7u0nJWjqAizA6ianfpIMmF5SojVDM", align 8 + %670 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %669, 1 + %671 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %670, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).InterfaceType", 2 + %672 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %671, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).InterfaceType", 3 %673 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %674 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %673, 1 - %675 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %674, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).IsClosure", 2 - %676 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %675, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).IsClosure", 3 + %674 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %673, 1 + %675 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %674, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).IsClosure", 2 + %676 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %675, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).IsClosure", 3 %677 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %678 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %677, 1 - %679 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %678, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).IsDirectIface", 2 - %680 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %679, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).IsDirectIface", 3 - %681 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %682 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %683 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @43, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %682, 1 - %684 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %683, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Key", 2 - %685 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %684, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Key", 3 - %686 = load ptr, ptr @"_llgo_func$ntUE0UmVAWPS2O7GpCCGszSn-XnjHJntZZ2jYtwbFXI", align 8 - %687 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %686, 1 - %688 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %687, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Kind", 2 - %689 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %688, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Kind", 3 + %678 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %677, 1 + %679 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %678, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).IsDirectIface", 2 + %680 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %679, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).IsDirectIface", 3 + %681 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %682 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %683 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @43, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %682, 1 + %684 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %683, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Key", 2 + %685 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %684, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Key", 3 + %686 = load ptr, ptr @"_llgo_func$Hsg8cfKiWmyMHfTCLbUouCMFmF6kp9x3qasAGPBLLfc", align 8 + %687 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %686, 1 + %688 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %687, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Kind", 2 + %689 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %688, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Kind", 3 %690 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %691 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %690, 1 - %692 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %691, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Len", 2 - %693 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %692, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Len", 3 - %694 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 - %695 = load ptr, ptr @"_llgo_func$d-NlqnjcQnaMjsBQY7qh2SWQmHb0XIigoceXdiJ8YT4", align 8 - %696 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %695, 1 - %697 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %696, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).MapType", 2 - %698 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %697, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).MapType", 3 + %691 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %690, 1 + %692 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %691, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Len", 2 + %693 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %692, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Len", 3 + %694 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 + %695 = load ptr, ptr @"_llgo_func$v23QoXYwI62Le4EtGc42fZr4iF7nBhA8A8t9lvpy0QY", align 8 + %696 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %695, 1 + %697 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %696, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).MapType", 2 + %698 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %697, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).MapType", 3 %699 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %700 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %699, 1 - %701 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %700, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).NumMethod", 2 - %702 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %701, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).NumMethod", 3 + %700 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %699, 1 + %701 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %700, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).NumMethod", 2 + %702 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %701, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).NumMethod", 3 %703 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %704 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %703, 1 - %705 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %704, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Pointers", 2 - %706 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %705, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Pointers", 3 + %704 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %703, 1 + %705 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %704, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Pointers", 2 + %706 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %705, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Pointers", 3 %707 = load ptr, ptr @"_llgo_func$1kITCsyu7hFLMxHLR7kDlvu4SOra_HtrtdFUQH9P13s", align 8 - %708 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %707, 1 - %709 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %708, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Size", 2 - %710 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %709, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Size", 3 + %708 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %707, 1 + %709 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %708, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Size", 2 + %710 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %709, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Size", 3 %711 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %712 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %711, 1 - %713 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %712, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).String", 2 - %714 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %713, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).String", 3 - %715 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 - %716 = load ptr, ptr @"_llgo_func$qiNnn6Cbm3GtDp4gDI4U_DRV3h8zlz91s9jrfOXC--U", align 8 - %717 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %716, 1 - %718 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %717, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).StructType", 2 - %719 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %718, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).StructType", 3 - %720 = load ptr, ptr @"_llgo_func$DbD4nZv_bjE4tH8hh-VfAjMXMpNfIsMlLJJJPKupp34", align 8 - %721 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %720, 1 - %722 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %721, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Uncommon", 2 - %723 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %722, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Uncommon", 3 + %712 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %711, 1 + %713 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %712, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).String", 2 + %714 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %713, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).String", 3 + %715 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 + %716 = load ptr, ptr @"_llgo_func$JNZyRh9Ldf2v-LKH-spUrxoORHTTH5NO358kWdhabp0", align 8 + %717 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %716, 1 + %718 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %717, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).StructType", 2 + %719 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %718, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).StructType", 3 + %720 = load ptr, ptr @"_llgo_func$iG49bujiXjI2lVflYdE0hPXlCAABL-XKRANSNJEKOio", align 8 + %721 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %720, 1 + %722 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %721, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Uncommon", 2 + %723 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %722, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Uncommon", 3 %724 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %725 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @74, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %724, 1 - %726 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %725, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Variadic", 2 - %727 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %726, ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Variadic", 3 - %728 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 960) - %729 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %447, ptr %729, align 8 - %730 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %452, ptr %730, align 8 - %731 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 2 - store %"github.com/goplus/llgo/internal/abi.Method" %456, ptr %731, align 8 - %732 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 3 - store %"github.com/goplus/llgo/internal/abi.Method" %461, ptr %732, align 8 - %733 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 4 - store %"github.com/goplus/llgo/internal/abi.Method" %466, ptr %733, align 8 - %734 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 5 - store %"github.com/goplus/llgo/internal/abi.Method" %493, ptr %734, align 8 - %735 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 6 - store %"github.com/goplus/llgo/internal/abi.Method" %497, ptr %735, align 8 - %736 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 7 - store %"github.com/goplus/llgo/internal/abi.Method" %519, ptr %736, align 8 - %737 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 8 - store %"github.com/goplus/llgo/internal/abi.Method" %536, ptr %737, align 8 - %738 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 9 - store %"github.com/goplus/llgo/internal/abi.Method" %540, ptr %738, align 8 - %739 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 10 - store %"github.com/goplus/llgo/internal/abi.Method" %672, ptr %739, align 8 - %740 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 11 - store %"github.com/goplus/llgo/internal/abi.Method" %676, ptr %740, align 8 - %741 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 12 - store %"github.com/goplus/llgo/internal/abi.Method" %680, ptr %741, align 8 - %742 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 13 - store %"github.com/goplus/llgo/internal/abi.Method" %685, ptr %742, align 8 - %743 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 14 - store %"github.com/goplus/llgo/internal/abi.Method" %689, ptr %743, align 8 - %744 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 15 - store %"github.com/goplus/llgo/internal/abi.Method" %693, ptr %744, align 8 - %745 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 16 - store %"github.com/goplus/llgo/internal/abi.Method" %698, ptr %745, align 8 - %746 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 17 - store %"github.com/goplus/llgo/internal/abi.Method" %702, ptr %746, align 8 - %747 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 18 - store %"github.com/goplus/llgo/internal/abi.Method" %706, ptr %747, align 8 - %748 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 19 - store %"github.com/goplus/llgo/internal/abi.Method" %710, ptr %748, align 8 - %749 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 20 - store %"github.com/goplus/llgo/internal/abi.Method" %714, ptr %749, align 8 - %750 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 21 - store %"github.com/goplus/llgo/internal/abi.Method" %719, ptr %750, align 8 - %751 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 22 - store %"github.com/goplus/llgo/internal/abi.Method" %723, ptr %751, align 8 - %752 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %728, i64 23 - store %"github.com/goplus/llgo/internal/abi.Method" %727, ptr %752, align 8 - %753 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %728, 0 - %754 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %753, i64 24, 1 - %755 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %754, i64 24, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %411, ptr %443, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %755) + %725 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @74, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %724, 1 + %726 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %725, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Variadic", 2 + %727 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %726, ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Variadic", 3 + %728 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 960) + %729 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %447, ptr %729, align 8 + %730 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %452, ptr %730, align 8 + %731 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 2 + store %"github.com/goplus/llgo/runtime/abi.Method" %456, ptr %731, align 8 + %732 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 3 + store %"github.com/goplus/llgo/runtime/abi.Method" %461, ptr %732, align 8 + %733 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 4 + store %"github.com/goplus/llgo/runtime/abi.Method" %466, ptr %733, align 8 + %734 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 5 + store %"github.com/goplus/llgo/runtime/abi.Method" %493, ptr %734, align 8 + %735 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 6 + store %"github.com/goplus/llgo/runtime/abi.Method" %497, ptr %735, align 8 + %736 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 7 + store %"github.com/goplus/llgo/runtime/abi.Method" %519, ptr %736, align 8 + %737 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 8 + store %"github.com/goplus/llgo/runtime/abi.Method" %536, ptr %737, align 8 + %738 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 9 + store %"github.com/goplus/llgo/runtime/abi.Method" %540, ptr %738, align 8 + %739 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 10 + store %"github.com/goplus/llgo/runtime/abi.Method" %672, ptr %739, align 8 + %740 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 11 + store %"github.com/goplus/llgo/runtime/abi.Method" %676, ptr %740, align 8 + %741 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 12 + store %"github.com/goplus/llgo/runtime/abi.Method" %680, ptr %741, align 8 + %742 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 13 + store %"github.com/goplus/llgo/runtime/abi.Method" %685, ptr %742, align 8 + %743 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 14 + store %"github.com/goplus/llgo/runtime/abi.Method" %689, ptr %743, align 8 + %744 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 15 + store %"github.com/goplus/llgo/runtime/abi.Method" %693, ptr %744, align 8 + %745 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 16 + store %"github.com/goplus/llgo/runtime/abi.Method" %698, ptr %745, align 8 + %746 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 17 + store %"github.com/goplus/llgo/runtime/abi.Method" %702, ptr %746, align 8 + %747 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 18 + store %"github.com/goplus/llgo/runtime/abi.Method" %706, ptr %747, align 8 + %748 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 19 + store %"github.com/goplus/llgo/runtime/abi.Method" %710, ptr %748, align 8 + %749 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 20 + store %"github.com/goplus/llgo/runtime/abi.Method" %714, ptr %749, align 8 + %750 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 21 + store %"github.com/goplus/llgo/runtime/abi.Method" %719, ptr %750, align 8 + %751 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 22 + store %"github.com/goplus/llgo/runtime/abi.Method" %723, ptr %751, align 8 + %752 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %728, i64 23 + store %"github.com/goplus/llgo/runtime/abi.Method" %727, ptr %752, align 8 + %753 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %728, 0 + %754 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %753, i64 24, 1 + %755 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %754, i64 24, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %411, ptr %443, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %755) br label %_llgo_64 _llgo_91: ; preds = %_llgo_89 - %756 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %664) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %756) - store ptr %756, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 + %756 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %664) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %756) + store ptr %756, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 br label %_llgo_92 _llgo_92: ; preds = %_llgo_91, %_llgo_89 - %757 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 - %758 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 - %759 = load ptr, ptr @"_llgo_func$1QmforOaCy2fBAssC2y1FWCCT6fpq9RKwP2j2HIASY8", align 8 + %757 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 + %758 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 + %759 = load ptr, ptr @"_llgo_func$gPJieW0gawapuP7u0nJWjqAizA6ianfpIMmF5SojVDM", align 8 %760 = icmp eq ptr %759, null br i1 %760, label %_llgo_93, label %_llgo_94 _llgo_93: ; preds = %_llgo_92 - %761 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %762 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %761, 0 - %763 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %762, i64 0, 1 - %764 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %763, i64 0, 2 - %765 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %761 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %762 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %761, 0 + %763 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %762, i64 0, 1 + %764 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %763, i64 0, 2 + %765 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %766 = getelementptr ptr, ptr %765, i64 0 store ptr %758, ptr %766, align 8 - %767 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %765, 0 - %768 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %767, i64 1, 1 - %769 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %768, i64 1, 2 - %770 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %764, %"github.com/goplus/llgo/internal/runtime.Slice" %769, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %770) - store ptr %770, ptr @"_llgo_func$1QmforOaCy2fBAssC2y1FWCCT6fpq9RKwP2j2HIASY8", align 8 + %767 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %765, 0 + %768 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %767, i64 1, 1 + %769 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %768, i64 1, 2 + %770 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %764, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %769, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %770) + store ptr %770, ptr @"_llgo_func$gPJieW0gawapuP7u0nJWjqAizA6ianfpIMmF5SojVDM", align 8 br label %_llgo_94 _llgo_94: ; preds = %_llgo_93, %_llgo_92 - %771 = load ptr, ptr @"_llgo_func$1QmforOaCy2fBAssC2y1FWCCT6fpq9RKwP2j2HIASY8", align 8 - %772 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %771, 1 - %773 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %772, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).InterfaceType", 2 - %774 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %773, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).InterfaceType", 3 + %771 = load ptr, ptr @"_llgo_func$gPJieW0gawapuP7u0nJWjqAizA6ianfpIMmF5SojVDM", align 8 + %772 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %771, 1 + %773 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %772, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).InterfaceType", 2 + %774 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %773, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).InterfaceType", 3 %775 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %776 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %775, 1 - %777 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %776, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).IsClosure", 2 - %778 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %777, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).IsClosure", 3 + %776 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %775, 1 + %777 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %776, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).IsClosure", 2 + %778 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %777, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).IsClosure", 3 %779 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %780 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %779, 1 - %781 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %780, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).IsDirectIface", 2 - %782 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %781, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).IsDirectIface", 3 - %783 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %784 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %785 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @43, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %784, 1 - %786 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %785, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Key", 2 - %787 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %786, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Key", 3 - %788 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @44, i64 4 }, i64 7, i64 8, i64 1, i64 1) - %789 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Kind", align 8 + %780 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %779, 1 + %781 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %780, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).IsDirectIface", 2 + %782 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %781, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).IsDirectIface", 3 + %783 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %784 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %785 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @43, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %784, 1 + %786 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %785, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Key", 2 + %787 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %786, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Key", 3 + %788 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @44, i64 4 }, i64 7, i64 8, i64 1, i64 1) + %789 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Kind", align 8 %790 = icmp eq ptr %789, null br i1 %790, label %_llgo_95, label %_llgo_96 _llgo_95: ; preds = %_llgo_94 - store ptr %788, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Kind", align 8 + store ptr %788, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Kind", align 8 br label %_llgo_96 _llgo_96: ; preds = %_llgo_95, %_llgo_94 @@ -1658,7 +1658,7 @@ _llgo_96: ; preds = %_llgo_95, %_llgo_94 br i1 %792, label %_llgo_97, label %_llgo_98 _llgo_97: ; preds = %_llgo_96 - %793 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 39) + %793 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 39) store ptr %793, ptr @_llgo_uint, align 8 br label %_llgo_98 @@ -1668,72 +1668,72 @@ _llgo_98: ; preds = %_llgo_97, %_llgo_96 _llgo_99: ; preds = %_llgo_98 %795 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %796 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %795, 1 - %797 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %796, ptr @"github.com/goplus/llgo/internal/abi.(*Kind).String", 2 - %798 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %797, ptr @"github.com/goplus/llgo/internal/abi.(*Kind).String", 3 - %799 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %795, 1 - %800 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %799, ptr @"github.com/goplus/llgo/internal/abi.(*Kind).String", 2 - %801 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %800, ptr @"github.com/goplus/llgo/internal/abi.Kind.String", 3 - %802 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %803 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %802, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %801, ptr %803, align 8 - %804 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %802, 0 - %805 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %804, i64 1, 1 - %806 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %805, i64 1, 2 - %807 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %808 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %807, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %798, ptr %808, align 8 - %809 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %807, 0 - %810 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %809, i64 1, 1 - %811 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %810, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %788, ptr %794, %"github.com/goplus/llgo/internal/runtime.Slice" %806, %"github.com/goplus/llgo/internal/runtime.Slice" %811) + %796 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %795, 1 + %797 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %796, ptr @"github.com/goplus/llgo/runtime/abi.(*Kind).String", 2 + %798 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %797, ptr @"github.com/goplus/llgo/runtime/abi.(*Kind).String", 3 + %799 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %795, 1 + %800 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %799, ptr @"github.com/goplus/llgo/runtime/abi.(*Kind).String", 2 + %801 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %800, ptr @"github.com/goplus/llgo/runtime/abi.Kind.String", 3 + %802 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %803 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %802, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %801, ptr %803, align 8 + %804 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %802, 0 + %805 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %804, i64 1, 1 + %806 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %805, i64 1, 2 + %807 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %808 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %807, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %798, ptr %808, align 8 + %809 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %807, 0 + %810 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %809, i64 1, 1 + %811 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %810, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %788, ptr %794, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %806, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %811) br label %_llgo_100 _llgo_100: ; preds = %_llgo_99, %_llgo_98 - %812 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Kind", align 8 - %813 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Kind", align 8 - %814 = load ptr, ptr @"_llgo_func$ntUE0UmVAWPS2O7GpCCGszSn-XnjHJntZZ2jYtwbFXI", align 8 + %812 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Kind", align 8 + %813 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Kind", align 8 + %814 = load ptr, ptr @"_llgo_func$Hsg8cfKiWmyMHfTCLbUouCMFmF6kp9x3qasAGPBLLfc", align 8 %815 = icmp eq ptr %814, null br i1 %815, label %_llgo_101, label %_llgo_102 _llgo_101: ; preds = %_llgo_100 - %816 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %817 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %816, 0 - %818 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %817, i64 0, 1 - %819 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %818, i64 0, 2 - %820 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %816 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %817 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %816, 0 + %818 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %817, i64 0, 1 + %819 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %818, i64 0, 2 + %820 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %821 = getelementptr ptr, ptr %820, i64 0 store ptr %813, ptr %821, align 8 - %822 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %820, 0 - %823 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %822, i64 1, 1 - %824 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %823, i64 1, 2 - %825 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %819, %"github.com/goplus/llgo/internal/runtime.Slice" %824, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %825) - store ptr %825, ptr @"_llgo_func$ntUE0UmVAWPS2O7GpCCGszSn-XnjHJntZZ2jYtwbFXI", align 8 + %822 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %820, 0 + %823 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %822, i64 1, 1 + %824 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %823, i64 1, 2 + %825 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %819, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %824, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %825) + store ptr %825, ptr @"_llgo_func$Hsg8cfKiWmyMHfTCLbUouCMFmF6kp9x3qasAGPBLLfc", align 8 br label %_llgo_102 _llgo_102: ; preds = %_llgo_101, %_llgo_100 - %826 = load ptr, ptr @"_llgo_func$ntUE0UmVAWPS2O7GpCCGszSn-XnjHJntZZ2jYtwbFXI", align 8 - %827 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %826, 1 - %828 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %827, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Kind", 2 - %829 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %828, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Kind", 3 + %826 = load ptr, ptr @"_llgo_func$Hsg8cfKiWmyMHfTCLbUouCMFmF6kp9x3qasAGPBLLfc", align 8 + %827 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %826, 1 + %828 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %827, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Kind", 2 + %829 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %828, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Kind", 3 %830 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %831 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %830, 1 - %832 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %831, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Len", 2 - %833 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %832, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Len", 3 - %834 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @46, i64 7 }, i64 25, i64 136, i64 0, i64 26) - %835 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 + %831 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %830, 1 + %832 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %831, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Len", 2 + %833 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %832, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Len", 3 + %834 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @46, i64 7 }, i64 25, i64 136, i64 0, i64 26) + %835 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 %836 = icmp eq ptr %835, null br i1 %836, label %_llgo_103, label %_llgo_104 _llgo_103: ; preds = %_llgo_102 - store ptr %834, ptr @"_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 + store ptr %834, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 br label %_llgo_104 _llgo_104: ; preds = %_llgo_103, %_llgo_102 - %837 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %838 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %839 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 + %837 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %838 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %839 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 %840 = load ptr, ptr @_llgo_Pointer, align 8 %841 = load ptr, ptr @_llgo_uintptr, align 8 %842 = load ptr, ptr @_llgo_uintptr, align 8 @@ -1742,22 +1742,22 @@ _llgo_104: ; preds = %_llgo_103, %_llgo_1 br i1 %844, label %_llgo_105, label %_llgo_106 _llgo_105: ; preds = %_llgo_104 - %845 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %845 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %846 = getelementptr ptr, ptr %845, i64 0 store ptr %840, ptr %846, align 8 %847 = getelementptr ptr, ptr %845, i64 1 store ptr %841, ptr %847, align 8 - %848 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %845, 0 - %849 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %848, i64 2, 1 - %850 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %849, i64 2, 2 - %851 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %848 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %845, 0 + %849 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %848, i64 2, 1 + %850 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %849, i64 2, 2 + %851 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %852 = getelementptr ptr, ptr %851, i64 0 store ptr %842, ptr %852, align 8 - %853 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %851, 0 - %854 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %853, i64 1, 1 - %855 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %854, i64 1, 2 - %856 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %850, %"github.com/goplus/llgo/internal/runtime.Slice" %855, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %856) + %853 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %851, 0 + %854 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %853, i64 1, 1 + %855 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %854, i64 1, 2 + %856 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %850, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %855, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %856) store ptr %856, ptr @"_llgo_func$ahHMZCcDhfW-lrs446sPkiW0NoVa2vpmK_wKarVa_20", align 8 br label %_llgo_106 @@ -1766,33 +1766,33 @@ _llgo_106: ; preds = %_llgo_105, %_llgo_1 %858 = load ptr, ptr @_llgo_Pointer, align 8 %859 = load ptr, ptr @_llgo_uintptr, align 8 %860 = load ptr, ptr @_llgo_uintptr, align 8 - %861 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %861 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %862 = getelementptr ptr, ptr %861, i64 0 store ptr %858, ptr %862, align 8 %863 = getelementptr ptr, ptr %861, i64 1 store ptr %859, ptr %863, align 8 - %864 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %861, 0 - %865 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %864, i64 2, 1 - %866 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %865, i64 2, 2 - %867 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %864 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %861, 0 + %865 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %864, i64 2, 1 + %866 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %865, i64 2, 2 + %867 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %868 = getelementptr ptr, ptr %867, i64 0 store ptr %860, ptr %868, align 8 - %869 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %867, 0 - %870 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %869, i64 1, 1 - %871 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %870, i64 1, 2 - %872 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %866, %"github.com/goplus/llgo/internal/runtime.Slice" %871, i1 false) - %873 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 2 }, ptr %872, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %874 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %875 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 5 }, ptr %874, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %876 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %877 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %876, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %873, ptr %877, align 8 - %878 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %876, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %875, ptr %878, align 8 - %879 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %876, 0 - %880 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %879, i64 2, 1 - %881 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %880, i64 2, 2 - %882 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %881) + %869 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %867, 0 + %870 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %869, i64 1, 1 + %871 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %870, i64 1, 2 + %872 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %866, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %871, i1 false) + %873 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }, ptr %872, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %874 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %875 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 5 }, ptr %874, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %876 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %877 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %876, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %873, ptr %877, align 8 + %878 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %876, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %875, ptr %878, align 8 + %879 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %876, 0 + %880 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %879, i64 2, 1 + %881 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %880, i64 2, 2 + %882 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %881) store ptr %882, ptr @"main.struct$Oy3XhjARgY_pH1HU6oBj0nSC2Qs1A6CU4bRajpBttZc", align 8 %883 = load ptr, ptr @"main.struct$Oy3XhjARgY_pH1HU6oBj0nSC2Qs1A6CU4bRajpBttZc", align 8 %884 = load ptr, ptr @_llgo_uint16, align 8 @@ -1800,665 +1800,665 @@ _llgo_106: ; preds = %_llgo_105, %_llgo_1 br i1 %885, label %_llgo_107, label %_llgo_108 _llgo_107: ; preds = %_llgo_106 - %886 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 41) + %886 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 41) store ptr %886, ptr @_llgo_uint16, align 8 br label %_llgo_108 _llgo_108: ; preds = %_llgo_107, %_llgo_106 %887 = load ptr, ptr @_llgo_uint16, align 8 - %888 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %889 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %890 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %891 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %888 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %889 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %890 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %891 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) %892 = load ptr, ptr @_llgo_Pointer, align 8 %893 = load ptr, ptr @_llgo_uintptr, align 8 %894 = load ptr, ptr @_llgo_uintptr, align 8 - %895 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, ptr %888, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 true) - %896 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %889) - %897 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @43, i64 3 }, ptr %896, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %898 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %890) - %899 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 4 }, ptr %898, i64 80, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %900 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %891) - %901 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @47, i64 6 }, ptr %900, i64 88, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %902 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %895 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, ptr %888, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 true) + %896 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %889) + %897 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @43, i64 3 }, ptr %896, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %898 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %890) + %899 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 4 }, ptr %898, i64 80, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %900 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %891) + %901 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @47, i64 6 }, ptr %900, i64 88, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %902 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) %903 = getelementptr ptr, ptr %902, i64 0 store ptr %892, ptr %903, align 8 %904 = getelementptr ptr, ptr %902, i64 1 store ptr %893, ptr %904, align 8 - %905 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %902, 0 - %906 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %905, i64 2, 1 - %907 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %906, i64 2, 2 - %908 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %905 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %902, 0 + %906 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %905, i64 2, 1 + %907 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %906, i64 2, 2 + %908 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %909 = getelementptr ptr, ptr %908, i64 0 store ptr %894, ptr %909, align 8 - %910 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %908, 0 - %911 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %910, i64 1, 1 - %912 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %911, i64 1, 2 - %913 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %907, %"github.com/goplus/llgo/internal/runtime.Slice" %912, i1 false) - %914 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 2 }, ptr %913, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %915 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %916 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 5 }, ptr %915, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %917 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %918 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %917, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %914, ptr %918, align 8 - %919 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %917, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %916, ptr %919, align 8 - %920 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %917, 0 - %921 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %920, i64 2, 1 - %922 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %921, i64 2, 2 - %923 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %922) - %924 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @48, i64 6 }, ptr %923, i64 96, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %925 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %926 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @49, i64 7 }, ptr %925, i64 112, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %927 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %928 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @50, i64 9 }, ptr %927, i64 113, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %929 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 41) - %930 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @51, i64 10 }, ptr %929, i64 114, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %931 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 42) - %932 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @52, i64 5 }, ptr %931, i64 116, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %933 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 504) - %934 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %933, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %895, ptr %934, align 8 - %935 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %933, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %897, ptr %935, align 8 - %936 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %933, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %899, ptr %936, align 8 - %937 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %933, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %901, ptr %937, align 8 - %938 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %933, i64 4 - store %"github.com/goplus/llgo/internal/abi.StructField" %924, ptr %938, align 8 - %939 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %933, i64 5 - store %"github.com/goplus/llgo/internal/abi.StructField" %926, ptr %939, align 8 - %940 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %933, i64 6 - store %"github.com/goplus/llgo/internal/abi.StructField" %928, ptr %940, align 8 - %941 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %933, i64 7 - store %"github.com/goplus/llgo/internal/abi.StructField" %930, ptr %941, align 8 - %942 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %933, i64 8 - store %"github.com/goplus/llgo/internal/abi.StructField" %932, ptr %942, align 8 - %943 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %933, 0 - %944 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %943, i64 9, 1 - %945 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %944, i64 9, 2 - %946 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 120, %"github.com/goplus/llgo/internal/runtime.Slice" %945) - store ptr %946, ptr @"main.struct$NNQFCWl7PM2tdO3Cxl4doIs1_JQl2vsUbnXLc46j14k", align 8 - %947 = load ptr, ptr @"main.struct$NNQFCWl7PM2tdO3Cxl4doIs1_JQl2vsUbnXLc46j14k", align 8 + %910 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %908, 0 + %911 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %910, i64 1, 1 + %912 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %911, i64 1, 2 + %913 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %907, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %912, i1 false) + %914 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }, ptr %913, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %915 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %916 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 5 }, ptr %915, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %917 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %918 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %917, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %914, ptr %918, align 8 + %919 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %917, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %916, ptr %919, align 8 + %920 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %917, 0 + %921 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %920, i64 2, 1 + %922 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %921, i64 2, 2 + %923 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %922) + %924 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @48, i64 6 }, ptr %923, i64 96, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %925 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %926 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @49, i64 7 }, ptr %925, i64 112, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %927 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %928 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @50, i64 9 }, ptr %927, i64 113, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %929 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 41) + %930 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @51, i64 10 }, ptr %929, i64 114, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %931 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 42) + %932 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @52, i64 5 }, ptr %931, i64 116, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %933 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 504) + %934 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %933, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %895, ptr %934, align 8 + %935 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %933, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %897, ptr %935, align 8 + %936 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %933, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %899, ptr %936, align 8 + %937 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %933, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %901, ptr %937, align 8 + %938 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %933, i64 4 + store %"github.com/goplus/llgo/runtime/abi.StructField" %924, ptr %938, align 8 + %939 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %933, i64 5 + store %"github.com/goplus/llgo/runtime/abi.StructField" %926, ptr %939, align 8 + %940 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %933, i64 6 + store %"github.com/goplus/llgo/runtime/abi.StructField" %928, ptr %940, align 8 + %941 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %933, i64 7 + store %"github.com/goplus/llgo/runtime/abi.StructField" %930, ptr %941, align 8 + %942 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %933, i64 8 + store %"github.com/goplus/llgo/runtime/abi.StructField" %932, ptr %942, align 8 + %943 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %933, 0 + %944 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %943, i64 9, 1 + %945 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %944, i64 9, 2 + %946 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 120, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %945) + store ptr %946, ptr @"main.struct$fcvaNpt6kbBgWOAYzHzrrsaKXunEtzMD4RdymMNJqTs", align 8 + %947 = load ptr, ptr @"main.struct$fcvaNpt6kbBgWOAYzHzrrsaKXunEtzMD4RdymMNJqTs", align 8 br i1 %836, label %_llgo_109, label %_llgo_110 _llgo_109: ; preds = %_llgo_108 %948 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %949 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %948, 1 - %950 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %949, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Align", 2 - %951 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %950, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Align", 3 - %952 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 - %953 = load ptr, ptr @"_llgo_func$CsVqlCxhoEcIvPD5BSBukfSiD9C7Ic5_Gf32MLbCWB4", align 8 - %954 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %953, 1 - %955 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %954, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).ArrayType", 2 - %956 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %955, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).ArrayType", 3 - %957 = load ptr, ptr @"_llgo_func$TrNr0CVWj6qegOngzWbt2Jl7pr7IBJ5gOmgUf2ieIi4", align 8 - %958 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %957, 1 - %959 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %958, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).ChanDir", 2 - %960 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %959, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).ChanDir", 3 - %961 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %962 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %963 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %962, 1 - %964 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %963, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Common", 2 - %965 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %964, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Common", 3 - %966 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 - %967 = load ptr, ptr @"_llgo_func$r0w3aCNVheLGqjxncuxitGhNtWJagb9gZLqOSrNI7dg", align 8 - %968 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %967, 1 - %969 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %968, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).ExportedMethods", 2 - %970 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %969, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).ExportedMethods", 3 + %949 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %948, 1 + %950 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %949, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Align", 2 + %951 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %950, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Align", 3 + %952 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 + %953 = load ptr, ptr @"_llgo_func$E73lcQT8QN1_ra27XNBjrI9wUEDUjSPMu2bmnQKIbfk", align 8 + %954 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %953, 1 + %955 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %954, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).ArrayType", 2 + %956 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %955, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).ArrayType", 3 + %957 = load ptr, ptr @"_llgo_func$Qwe8YykhcqDIDEcT1jS_t1iUv4Im6IdGf17ASgXRQdc", align 8 + %958 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %957, 1 + %959 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %958, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).ChanDir", 2 + %960 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %959, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).ChanDir", 3 + %961 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %962 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %963 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %962, 1 + %964 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %963, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Common", 2 + %965 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %964, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Common", 3 + %966 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 + %967 = load ptr, ptr @"_llgo_func$fPOUeAcTITSSbJEvFFjAWZP6Eli7dk4j7E9mFFHRoNM", align 8 + %968 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %967, 1 + %969 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %968, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).ExportedMethods", 2 + %970 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %969, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).ExportedMethods", 3 %971 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %972 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %971, 1 - %973 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %972, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).FieldAlign", 2 - %974 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %973, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).FieldAlign", 3 - %975 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 - %976 = load ptr, ptr @"_llgo_func$DsoxgOnxqV7tLvokF3AA14v1gtHsHaThoC8Q_XGcQww", align 8 - %977 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %976, 1 - %978 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %977, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).FuncType", 2 - %979 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %978, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).FuncType", 3 + %972 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %971, 1 + %973 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %972, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).FieldAlign", 2 + %974 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %973, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).FieldAlign", 3 + %975 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 + %976 = load ptr, ptr @"_llgo_func$Jm50llMLYG9ysTYiSohNC-Ho1mhjzn-vnTRBILhJI88", align 8 + %977 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %976, 1 + %978 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %977, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).FuncType", 2 + %979 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %978, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).FuncType", 3 %980 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %981 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %980, 1 - %982 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %981, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).HasName", 2 - %983 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %982, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).HasName", 3 + %981 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %980, 1 + %982 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %981, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).HasName", 2 + %983 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %982, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).HasName", 3 %984 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %985 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @53, i64 14 }, ptr undef, ptr undef, ptr undef }, ptr %984, 1 - %986 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %985, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).HashMightPanic", 2 - %987 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %986, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).HashMightPanic", 3 + %985 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @53, i64 14 }, ptr undef, ptr undef, ptr undef }, ptr %984, 1 + %986 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %985, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).HashMightPanic", 2 + %987 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %986, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).HashMightPanic", 3 %988 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %989 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %988, 1 - %990 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %989, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).IfaceIndir", 2 - %991 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %990, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).IfaceIndir", 3 + %989 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %988, 1 + %990 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %989, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).IfaceIndir", 2 + %991 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %990, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).IfaceIndir", 3 %992 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %993 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @54, i64 12 }, ptr undef, ptr undef, ptr undef }, ptr %992, 1 - %994 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %993, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).IndirectElem", 2 - %995 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %994, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).IndirectElem", 3 + %993 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @54, i64 12 }, ptr undef, ptr undef, ptr undef }, ptr %992, 1 + %994 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %993, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).IndirectElem", 2 + %995 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %994, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).IndirectElem", 3 %996 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %997 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @55, i64 11 }, ptr undef, ptr undef, ptr undef }, ptr %996, 1 - %998 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %997, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).IndirectKey", 2 - %999 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %998, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).IndirectKey", 3 - %1000 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 - %1001 = load ptr, ptr @"_llgo_func$1QmforOaCy2fBAssC2y1FWCCT6fpq9RKwP2j2HIASY8", align 8 - %1002 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1001, 1 - %1003 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1002, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).InterfaceType", 2 - %1004 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1003, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).InterfaceType", 3 + %997 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @55, i64 11 }, ptr undef, ptr undef, ptr undef }, ptr %996, 1 + %998 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %997, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).IndirectKey", 2 + %999 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %998, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).IndirectKey", 3 + %1000 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 + %1001 = load ptr, ptr @"_llgo_func$gPJieW0gawapuP7u0nJWjqAizA6ianfpIMmF5SojVDM", align 8 + %1002 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1001, 1 + %1003 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1002, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).InterfaceType", 2 + %1004 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1003, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).InterfaceType", 3 %1005 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1006 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1005, 1 - %1007 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1006, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).IsClosure", 2 - %1008 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1007, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).IsClosure", 3 + %1006 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1005, 1 + %1007 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1006, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).IsClosure", 2 + %1008 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1007, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).IsClosure", 3 %1009 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1010 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1009, 1 - %1011 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1010, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).IsDirectIface", 2 - %1012 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1011, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).IsDirectIface", 3 - %1013 = load ptr, ptr @"_llgo_func$ntUE0UmVAWPS2O7GpCCGszSn-XnjHJntZZ2jYtwbFXI", align 8 - %1014 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1013, 1 - %1015 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1014, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Kind", 2 - %1016 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1015, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Kind", 3 + %1010 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1009, 1 + %1011 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1010, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).IsDirectIface", 2 + %1012 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1011, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).IsDirectIface", 3 + %1013 = load ptr, ptr @"_llgo_func$Hsg8cfKiWmyMHfTCLbUouCMFmF6kp9x3qasAGPBLLfc", align 8 + %1014 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1013, 1 + %1015 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1014, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Kind", 2 + %1016 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1015, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Kind", 3 %1017 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %1018 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %1017, 1 - %1019 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1018, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Len", 2 - %1020 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1019, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Len", 3 - %1021 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @46, i64 7 }, i64 25, i64 136, i64 0, i64 26) - %1022 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 + %1018 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %1017, 1 + %1019 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1018, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Len", 2 + %1020 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1019, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Len", 3 + %1021 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @46, i64 7 }, i64 25, i64 136, i64 0, i64 26) + %1022 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 %1023 = icmp eq ptr %1022, null br i1 %1023, label %_llgo_111, label %_llgo_112 _llgo_110: ; preds = %_llgo_130, %_llgo_108 - %1024 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 - %1025 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 - %1026 = load ptr, ptr @"_llgo_func$d-NlqnjcQnaMjsBQY7qh2SWQmHb0XIigoceXdiJ8YT4", align 8 - %1027 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1026, 1 - %1028 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1027, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).MapType", 2 - %1029 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1028, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).MapType", 3 + %1024 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 + %1025 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 + %1026 = load ptr, ptr @"_llgo_func$v23QoXYwI62Le4EtGc42fZr4iF7nBhA8A8t9lvpy0QY", align 8 + %1027 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1026, 1 + %1028 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1027, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).MapType", 2 + %1029 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1028, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).MapType", 3 %1030 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %1031 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1030, 1 - %1032 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1031, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).NumMethod", 2 - %1033 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1032, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).NumMethod", 3 + %1031 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1030, 1 + %1032 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1031, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).NumMethod", 2 + %1033 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1032, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).NumMethod", 3 %1034 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1035 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1034, 1 - %1036 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1035, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Pointers", 2 - %1037 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1036, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Pointers", 3 + %1035 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1034, 1 + %1036 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1035, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Pointers", 2 + %1037 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1036, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Pointers", 3 %1038 = load ptr, ptr @"_llgo_func$1kITCsyu7hFLMxHLR7kDlvu4SOra_HtrtdFUQH9P13s", align 8 - %1039 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1038, 1 - %1040 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1039, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Size", 2 - %1041 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1040, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Size", 3 + %1039 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1038, 1 + %1040 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1039, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Size", 2 + %1041 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1040, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Size", 3 %1042 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %1043 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %1042, 1 - %1044 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1043, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).String", 2 - %1045 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1044, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).String", 3 - %1046 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 - %1047 = load ptr, ptr @"_llgo_func$qiNnn6Cbm3GtDp4gDI4U_DRV3h8zlz91s9jrfOXC--U", align 8 - %1048 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1047, 1 - %1049 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1048, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).StructType", 2 - %1050 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1049, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).StructType", 3 - %1051 = load ptr, ptr @"_llgo_func$DbD4nZv_bjE4tH8hh-VfAjMXMpNfIsMlLJJJPKupp34", align 8 - %1052 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1051, 1 - %1053 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1052, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Uncommon", 2 - %1054 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1053, ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Uncommon", 3 - %1055 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 920) - %1056 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %622, ptr %1056, align 8 - %1057 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %627, ptr %1057, align 8 - %1058 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 2 - store %"github.com/goplus/llgo/internal/abi.Method" %631, ptr %1058, align 8 - %1059 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 3 - store %"github.com/goplus/llgo/internal/abi.Method" %636, ptr %1059, align 8 - %1060 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 4 - store %"github.com/goplus/llgo/internal/abi.Method" %641, ptr %1060, align 8 - %1061 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 5 - store %"github.com/goplus/llgo/internal/abi.Method" %646, ptr %1061, align 8 - %1062 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 6 - store %"github.com/goplus/llgo/internal/abi.Method" %650, ptr %1062, align 8 - %1063 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 7 - store %"github.com/goplus/llgo/internal/abi.Method" %655, ptr %1063, align 8 - %1064 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 8 - store %"github.com/goplus/llgo/internal/abi.Method" %659, ptr %1064, align 8 - %1065 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 9 - store %"github.com/goplus/llgo/internal/abi.Method" %663, ptr %1065, align 8 - %1066 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 10 - store %"github.com/goplus/llgo/internal/abi.Method" %774, ptr %1066, align 8 - %1067 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 11 - store %"github.com/goplus/llgo/internal/abi.Method" %778, ptr %1067, align 8 - %1068 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 12 - store %"github.com/goplus/llgo/internal/abi.Method" %782, ptr %1068, align 8 - %1069 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 13 - store %"github.com/goplus/llgo/internal/abi.Method" %787, ptr %1069, align 8 - %1070 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 14 - store %"github.com/goplus/llgo/internal/abi.Method" %829, ptr %1070, align 8 - %1071 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 15 - store %"github.com/goplus/llgo/internal/abi.Method" %833, ptr %1071, align 8 - %1072 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 16 - store %"github.com/goplus/llgo/internal/abi.Method" %1029, ptr %1072, align 8 - %1073 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 17 - store %"github.com/goplus/llgo/internal/abi.Method" %1033, ptr %1073, align 8 - %1074 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 18 - store %"github.com/goplus/llgo/internal/abi.Method" %1037, ptr %1074, align 8 - %1075 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 19 - store %"github.com/goplus/llgo/internal/abi.Method" %1041, ptr %1075, align 8 - %1076 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 20 - store %"github.com/goplus/llgo/internal/abi.Method" %1045, ptr %1076, align 8 - %1077 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 21 - store %"github.com/goplus/llgo/internal/abi.Method" %1050, ptr %1077, align 8 - %1078 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1055, i64 22 - store %"github.com/goplus/llgo/internal/abi.Method" %1054, ptr %1078, align 8 - %1079 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1055, 0 - %1080 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1079, i64 23, 1 - %1081 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1080, i64 23, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %541, ptr %618, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %1081) + %1043 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %1042, 1 + %1044 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1043, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).String", 2 + %1045 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1044, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).String", 3 + %1046 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 + %1047 = load ptr, ptr @"_llgo_func$JNZyRh9Ldf2v-LKH-spUrxoORHTTH5NO358kWdhabp0", align 8 + %1048 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1047, 1 + %1049 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1048, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).StructType", 2 + %1050 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1049, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).StructType", 3 + %1051 = load ptr, ptr @"_llgo_func$iG49bujiXjI2lVflYdE0hPXlCAABL-XKRANSNJEKOio", align 8 + %1052 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1051, 1 + %1053 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1052, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Uncommon", 2 + %1054 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1053, ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Uncommon", 3 + %1055 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 920) + %1056 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %622, ptr %1056, align 8 + %1057 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %627, ptr %1057, align 8 + %1058 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 2 + store %"github.com/goplus/llgo/runtime/abi.Method" %631, ptr %1058, align 8 + %1059 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 3 + store %"github.com/goplus/llgo/runtime/abi.Method" %636, ptr %1059, align 8 + %1060 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 4 + store %"github.com/goplus/llgo/runtime/abi.Method" %641, ptr %1060, align 8 + %1061 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 5 + store %"github.com/goplus/llgo/runtime/abi.Method" %646, ptr %1061, align 8 + %1062 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 6 + store %"github.com/goplus/llgo/runtime/abi.Method" %650, ptr %1062, align 8 + %1063 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 7 + store %"github.com/goplus/llgo/runtime/abi.Method" %655, ptr %1063, align 8 + %1064 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 8 + store %"github.com/goplus/llgo/runtime/abi.Method" %659, ptr %1064, align 8 + %1065 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 9 + store %"github.com/goplus/llgo/runtime/abi.Method" %663, ptr %1065, align 8 + %1066 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 10 + store %"github.com/goplus/llgo/runtime/abi.Method" %774, ptr %1066, align 8 + %1067 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 11 + store %"github.com/goplus/llgo/runtime/abi.Method" %778, ptr %1067, align 8 + %1068 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 12 + store %"github.com/goplus/llgo/runtime/abi.Method" %782, ptr %1068, align 8 + %1069 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 13 + store %"github.com/goplus/llgo/runtime/abi.Method" %787, ptr %1069, align 8 + %1070 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 14 + store %"github.com/goplus/llgo/runtime/abi.Method" %829, ptr %1070, align 8 + %1071 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 15 + store %"github.com/goplus/llgo/runtime/abi.Method" %833, ptr %1071, align 8 + %1072 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 16 + store %"github.com/goplus/llgo/runtime/abi.Method" %1029, ptr %1072, align 8 + %1073 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 17 + store %"github.com/goplus/llgo/runtime/abi.Method" %1033, ptr %1073, align 8 + %1074 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 18 + store %"github.com/goplus/llgo/runtime/abi.Method" %1037, ptr %1074, align 8 + %1075 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 19 + store %"github.com/goplus/llgo/runtime/abi.Method" %1041, ptr %1075, align 8 + %1076 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 20 + store %"github.com/goplus/llgo/runtime/abi.Method" %1045, ptr %1076, align 8 + %1077 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 21 + store %"github.com/goplus/llgo/runtime/abi.Method" %1050, ptr %1077, align 8 + %1078 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1055, i64 22 + store %"github.com/goplus/llgo/runtime/abi.Method" %1054, ptr %1078, align 8 + %1079 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1055, 0 + %1080 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1079, i64 23, 1 + %1081 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1080, i64 23, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %541, ptr %618, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1081) br label %_llgo_90 _llgo_111: ; preds = %_llgo_109 - %1082 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %1021) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %1082) - store ptr %1082, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 + %1082 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %1021) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %1082) + store ptr %1082, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 br label %_llgo_112 _llgo_112: ; preds = %_llgo_111, %_llgo_109 - %1083 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 - %1084 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 - %1085 = load ptr, ptr @"_llgo_func$d-NlqnjcQnaMjsBQY7qh2SWQmHb0XIigoceXdiJ8YT4", align 8 + %1083 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 + %1084 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 + %1085 = load ptr, ptr @"_llgo_func$v23QoXYwI62Le4EtGc42fZr4iF7nBhA8A8t9lvpy0QY", align 8 %1086 = icmp eq ptr %1085, null br i1 %1086, label %_llgo_113, label %_llgo_114 _llgo_113: ; preds = %_llgo_112 - %1087 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %1088 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1087, 0 - %1089 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1088, i64 0, 1 - %1090 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1089, i64 0, 2 - %1091 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %1087 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %1088 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1087, 0 + %1089 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1088, i64 0, 1 + %1090 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1089, i64 0, 2 + %1091 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %1092 = getelementptr ptr, ptr %1091, i64 0 store ptr %1084, ptr %1092, align 8 - %1093 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1091, 0 - %1094 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1093, i64 1, 1 - %1095 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1094, i64 1, 2 - %1096 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %1090, %"github.com/goplus/llgo/internal/runtime.Slice" %1095, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %1096) - store ptr %1096, ptr @"_llgo_func$d-NlqnjcQnaMjsBQY7qh2SWQmHb0XIigoceXdiJ8YT4", align 8 + %1093 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1091, 0 + %1094 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1093, i64 1, 1 + %1095 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1094, i64 1, 2 + %1096 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1090, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1095, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %1096) + store ptr %1096, ptr @"_llgo_func$v23QoXYwI62Le4EtGc42fZr4iF7nBhA8A8t9lvpy0QY", align 8 br label %_llgo_114 _llgo_114: ; preds = %_llgo_113, %_llgo_112 - %1097 = load ptr, ptr @"_llgo_func$d-NlqnjcQnaMjsBQY7qh2SWQmHb0XIigoceXdiJ8YT4", align 8 - %1098 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1097, 1 - %1099 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1098, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).MapType", 2 - %1100 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1099, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).MapType", 3 + %1097 = load ptr, ptr @"_llgo_func$v23QoXYwI62Le4EtGc42fZr4iF7nBhA8A8t9lvpy0QY", align 8 + %1098 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1097, 1 + %1099 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1098, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).MapType", 2 + %1100 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1099, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).MapType", 3 %1101 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1102 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @56, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1101, 1 - %1103 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1102, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).NeedKeyUpdate", 2 - %1104 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1103, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).NeedKeyUpdate", 3 + %1102 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @56, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1101, 1 + %1103 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1102, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).NeedKeyUpdate", 2 + %1104 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1103, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).NeedKeyUpdate", 3 %1105 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %1106 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1105, 1 - %1107 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1106, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).NumMethod", 2 - %1108 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1107, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).NumMethod", 3 + %1106 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1105, 1 + %1107 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1106, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).NumMethod", 2 + %1108 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1107, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).NumMethod", 3 %1109 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1110 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1109, 1 - %1111 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1110, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Pointers", 2 - %1112 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1111, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Pointers", 3 + %1110 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1109, 1 + %1111 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1110, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Pointers", 2 + %1112 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1111, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Pointers", 3 %1113 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1114 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @59, i64 12 }, ptr undef, ptr undef, ptr undef }, ptr %1113, 1 - %1115 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1114, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).ReflexiveKey", 2 - %1116 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1115, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).ReflexiveKey", 3 + %1114 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @59, i64 12 }, ptr undef, ptr undef, ptr undef }, ptr %1113, 1 + %1115 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1114, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).ReflexiveKey", 2 + %1116 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1115, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).ReflexiveKey", 3 %1117 = load ptr, ptr @_llgo_uintptr, align 8 %1118 = load ptr, ptr @"_llgo_func$1kITCsyu7hFLMxHLR7kDlvu4SOra_HtrtdFUQH9P13s", align 8 %1119 = icmp eq ptr %1118, null br i1 %1119, label %_llgo_115, label %_llgo_116 _llgo_115: ; preds = %_llgo_114 - %1120 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %1121 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1120, 0 - %1122 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1121, i64 0, 1 - %1123 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1122, i64 0, 2 - %1124 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %1120 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %1121 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1120, 0 + %1122 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1121, i64 0, 1 + %1123 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1122, i64 0, 2 + %1124 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %1125 = getelementptr ptr, ptr %1124, i64 0 store ptr %1117, ptr %1125, align 8 - %1126 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1124, 0 - %1127 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1126, i64 1, 1 - %1128 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1127, i64 1, 2 - %1129 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %1123, %"github.com/goplus/llgo/internal/runtime.Slice" %1128, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %1129) + %1126 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1124, 0 + %1127 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1126, i64 1, 1 + %1128 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1127, i64 1, 2 + %1129 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1123, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1128, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %1129) store ptr %1129, ptr @"_llgo_func$1kITCsyu7hFLMxHLR7kDlvu4SOra_HtrtdFUQH9P13s", align 8 br label %_llgo_116 _llgo_116: ; preds = %_llgo_115, %_llgo_114 %1130 = load ptr, ptr @"_llgo_func$1kITCsyu7hFLMxHLR7kDlvu4SOra_HtrtdFUQH9P13s", align 8 - %1131 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1130, 1 - %1132 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1131, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Size", 2 - %1133 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1132, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Size", 3 + %1131 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1130, 1 + %1132 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1131, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Size", 2 + %1133 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1132, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Size", 3 %1134 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %1135 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %1134, 1 - %1136 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1135, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).String", 2 - %1137 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1136, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).String", 3 - %1138 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @61, i64 10 }, i64 25, i64 120, i64 0, i64 23) - %1139 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 + %1135 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %1134, 1 + %1136 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1135, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).String", 2 + %1137 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1136, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).String", 3 + %1138 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @61, i64 10 }, i64 25, i64 120, i64 0, i64 23) + %1139 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 %1140 = icmp eq ptr %1139, null br i1 %1140, label %_llgo_117, label %_llgo_118 _llgo_117: ; preds = %_llgo_116 - store ptr %1138, ptr @"_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 + store ptr %1138, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 br label %_llgo_118 _llgo_118: ; preds = %_llgo_117, %_llgo_116 - %1141 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @62, i64 11 }, i64 25, i64 56, i64 0, i64 2) - %1142 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.StructField", align 8 + %1141 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @62, i64 11 }, i64 25, i64 56, i64 0, i64 2) + %1142 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.StructField", align 8 %1143 = icmp eq ptr %1142, null br i1 %1143, label %_llgo_119, label %_llgo_120 _llgo_119: ; preds = %_llgo_118 - store ptr %1141, ptr @"_llgo_github.com/goplus/llgo/internal/abi.StructField", align 8 + store ptr %1141, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.StructField", align 8 br label %_llgo_120 _llgo_120: ; preds = %_llgo_119, %_llgo_118 - %1144 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %1145 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %1146 = load ptr, ptr @"_llgo_struct$GYlWrg0B_axMyyq9xClGPKuTjurG0iQMRoz8Me1fQig", align 8 + %1144 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %1145 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %1146 = load ptr, ptr @"_llgo_struct$kJjSbRGD6vW5GBpnW3h2bqoH3rm-w30ibwmCd552LPU", align 8 %1147 = icmp eq ptr %1146, null br i1 %1147, label %_llgo_121, label %_llgo_122 _llgo_121: ; preds = %_llgo_120 - %1148 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %1149 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @34, i64 5 }, ptr %1148, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1150 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %1145) - %1151 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @63, i64 3 }, ptr %1150, i64 16, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1152 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) - %1153 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @64, i64 6 }, ptr %1152, i64 24, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1154 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %1155 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @65, i64 4 }, ptr %1154, i64 32, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1156 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 33) - %1157 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @66, i64 9 }, ptr %1156, i64 48, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1158 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 280) - %1159 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1158, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %1149, ptr %1159, align 8 - %1160 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1158, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %1151, ptr %1160, align 8 - %1161 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1158, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %1153, ptr %1161, align 8 - %1162 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1158, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %1155, ptr %1162, align 8 - %1163 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1158, i64 4 - store %"github.com/goplus/llgo/internal/abi.StructField" %1157, ptr %1163, align 8 - %1164 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1158, 0 - %1165 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1164, i64 5, 1 - %1166 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1165, i64 5, 2 - %1167 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 56, %"github.com/goplus/llgo/internal/runtime.Slice" %1166) - store ptr %1167, ptr @"_llgo_struct$GYlWrg0B_axMyyq9xClGPKuTjurG0iQMRoz8Me1fQig", align 8 + %1148 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %1149 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @34, i64 5 }, ptr %1148, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1150 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %1145) + %1151 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @63, i64 3 }, ptr %1150, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1152 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) + %1153 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @64, i64 6 }, ptr %1152, i64 24, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1154 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %1155 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @65, i64 4 }, ptr %1154, i64 32, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1156 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 33) + %1157 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @66, i64 9 }, ptr %1156, i64 48, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1158 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 280) + %1159 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1158, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1149, ptr %1159, align 8 + %1160 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1158, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1151, ptr %1160, align 8 + %1161 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1158, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1153, ptr %1161, align 8 + %1162 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1158, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1155, ptr %1162, align 8 + %1163 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1158, i64 4 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1157, ptr %1163, align 8 + %1164 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1158, 0 + %1165 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1164, i64 5, 1 + %1166 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1165, i64 5, 2 + %1167 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 56, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1166) + store ptr %1167, ptr @"_llgo_struct$kJjSbRGD6vW5GBpnW3h2bqoH3rm-w30ibwmCd552LPU", align 8 br label %_llgo_122 _llgo_122: ; preds = %_llgo_121, %_llgo_120 - %1168 = load ptr, ptr @"_llgo_struct$GYlWrg0B_axMyyq9xClGPKuTjurG0iQMRoz8Me1fQig", align 8 + %1168 = load ptr, ptr @"_llgo_struct$kJjSbRGD6vW5GBpnW3h2bqoH3rm-w30ibwmCd552LPU", align 8 br i1 %1143, label %_llgo_123, label %_llgo_124 _llgo_123: ; preds = %_llgo_122 %1169 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1170 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @67, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1169, 1 - %1171 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1170, ptr @"github.com/goplus/llgo/internal/abi.(*StructField).Embedded", 2 - %1172 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1171, ptr @"github.com/goplus/llgo/internal/abi.(*StructField).Embedded", 3 + %1170 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @67, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1169, 1 + %1171 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1170, ptr @"github.com/goplus/llgo/runtime/abi.(*StructField).Embedded", 2 + %1172 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1171, ptr @"github.com/goplus/llgo/runtime/abi.(*StructField).Embedded", 3 %1173 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1174 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @36, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1173, 1 - %1175 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1174, ptr @"github.com/goplus/llgo/internal/abi.(*StructField).Exported", 2 - %1176 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1175, ptr @"github.com/goplus/llgo/internal/abi.(*StructField).Exported", 3 - %1177 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %1178 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1177, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %1172, ptr %1178, align 8 - %1179 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1177, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %1176, ptr %1179, align 8 - %1180 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1177, 0 - %1181 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1180, i64 2, 1 - %1182 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1181, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %1141, ptr %1168, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %1182) + %1174 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @36, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1173, 1 + %1175 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1174, ptr @"github.com/goplus/llgo/runtime/abi.(*StructField).Exported", 2 + %1176 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1175, ptr @"github.com/goplus/llgo/runtime/abi.(*StructField).Exported", 3 + %1177 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %1178 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1177, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %1172, ptr %1178, align 8 + %1179 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1177, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %1176, ptr %1179, align 8 + %1180 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1177, 0 + %1181 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1180, i64 2, 1 + %1182 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1181, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %1141, ptr %1168, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1182) br label %_llgo_124 _llgo_124: ; preds = %_llgo_123, %_llgo_122 - %1183 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.StructField", align 8 - %1184 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @62, i64 11 }, i64 25, i64 56, i64 0, i64 2) - %1185 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.StructField", align 8 + %1183 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.StructField", align 8 + %1184 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @62, i64 11 }, i64 25, i64 56, i64 0, i64 2) + %1185 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.StructField", align 8 %1186 = icmp eq ptr %1185, null br i1 %1186, label %_llgo_125, label %_llgo_126 _llgo_125: ; preds = %_llgo_124 - %1187 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %1184) - store ptr %1187, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.StructField", align 8 + %1187 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %1184) + store ptr %1187, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.StructField", align 8 br label %_llgo_126 _llgo_126: ; preds = %_llgo_125, %_llgo_124 - %1188 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.StructField", align 8 - %1189 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %1190 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @62, i64 11 }, i64 25, i64 56, i64 0, i64 2) - %1191 = load ptr, ptr @"_llgo_struct$K_cvuhBwc2_5r7UW089ibWfcfsGoDb4pZ7K19IcMTk0", align 8 + %1188 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.StructField", align 8 + %1189 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %1190 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @62, i64 11 }, i64 25, i64 56, i64 0, i64 2) + %1191 = load ptr, ptr @"_llgo_struct$a40Ph0zKu8cPeYh4GJjFLIY8XDqrC7uc-XzprrJaUh0", align 8 %1192 = icmp eq ptr %1191, null br i1 %1192, label %_llgo_127, label %_llgo_128 _llgo_127: ; preds = %_llgo_126 - %1193 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, ptr %1189, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 true) - %1194 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %1195 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @39, i64 8 }, ptr %1194, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1196 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %1190) - %1197 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @68, i64 6 }, ptr %1196, i64 88, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1198 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 168) - %1199 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1198, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %1193, ptr %1199, align 8 - %1200 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1198, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %1195, ptr %1200, align 8 - %1201 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1198, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %1197, ptr %1201, align 8 - %1202 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1198, 0 - %1203 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1202, i64 3, 1 - %1204 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1203, i64 3, 2 - %1205 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 112, %"github.com/goplus/llgo/internal/runtime.Slice" %1204) - store ptr %1205, ptr @"_llgo_struct$K_cvuhBwc2_5r7UW089ibWfcfsGoDb4pZ7K19IcMTk0", align 8 + %1193 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, ptr %1189, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 true) + %1194 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %1195 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @39, i64 8 }, ptr %1194, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1196 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %1190) + %1197 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @68, i64 6 }, ptr %1196, i64 88, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1198 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 168) + %1199 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1198, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1193, ptr %1199, align 8 + %1200 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1198, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1195, ptr %1200, align 8 + %1201 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1198, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1197, ptr %1201, align 8 + %1202 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1198, 0 + %1203 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1202, i64 3, 1 + %1204 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1203, i64 3, 2 + %1205 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 112, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1204) + store ptr %1205, ptr @"_llgo_struct$a40Ph0zKu8cPeYh4GJjFLIY8XDqrC7uc-XzprrJaUh0", align 8 br label %_llgo_128 _llgo_128: ; preds = %_llgo_127, %_llgo_126 - %1206 = load ptr, ptr @"_llgo_struct$K_cvuhBwc2_5r7UW089ibWfcfsGoDb4pZ7K19IcMTk0", align 8 + %1206 = load ptr, ptr @"_llgo_struct$a40Ph0zKu8cPeYh4GJjFLIY8XDqrC7uc-XzprrJaUh0", align 8 br i1 %1140, label %_llgo_129, label %_llgo_130 _llgo_129: ; preds = %_llgo_128 %1207 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %1208 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %1207, 1 - %1209 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1208, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Align", 2 - %1210 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1209, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Align", 3 - %1211 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.ArrayType", align 8 - %1212 = load ptr, ptr @"_llgo_func$CsVqlCxhoEcIvPD5BSBukfSiD9C7Ic5_Gf32MLbCWB4", align 8 - %1213 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1212, 1 - %1214 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1213, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).ArrayType", 2 - %1215 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1214, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).ArrayType", 3 - %1216 = load ptr, ptr @"_llgo_func$TrNr0CVWj6qegOngzWbt2Jl7pr7IBJ5gOmgUf2ieIi4", align 8 - %1217 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1216, 1 - %1218 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1217, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).ChanDir", 2 - %1219 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1218, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).ChanDir", 3 - %1220 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %1221 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %1222 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %1221, 1 - %1223 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1222, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Common", 2 - %1224 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1223, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Common", 3 - %1225 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %1226 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %1227 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1226, 1 - %1228 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1227, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Elem", 2 - %1229 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1228, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Elem", 3 - %1230 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 - %1231 = load ptr, ptr @"_llgo_func$r0w3aCNVheLGqjxncuxitGhNtWJagb9gZLqOSrNI7dg", align 8 - %1232 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %1231, 1 - %1233 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1232, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).ExportedMethods", 2 - %1234 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1233, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).ExportedMethods", 3 + %1208 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %1207, 1 + %1209 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1208, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Align", 2 + %1210 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1209, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Align", 3 + %1211 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.ArrayType", align 8 + %1212 = load ptr, ptr @"_llgo_func$E73lcQT8QN1_ra27XNBjrI9wUEDUjSPMu2bmnQKIbfk", align 8 + %1213 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1212, 1 + %1214 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1213, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).ArrayType", 2 + %1215 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1214, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).ArrayType", 3 + %1216 = load ptr, ptr @"_llgo_func$Qwe8YykhcqDIDEcT1jS_t1iUv4Im6IdGf17ASgXRQdc", align 8 + %1217 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1216, 1 + %1218 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1217, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).ChanDir", 2 + %1219 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1218, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).ChanDir", 3 + %1220 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %1221 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %1222 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %1221, 1 + %1223 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1222, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Common", 2 + %1224 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1223, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Common", 3 + %1225 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %1226 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %1227 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1226, 1 + %1228 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1227, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Elem", 2 + %1229 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1228, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Elem", 3 + %1230 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 + %1231 = load ptr, ptr @"_llgo_func$fPOUeAcTITSSbJEvFFjAWZP6Eli7dk4j7E9mFFHRoNM", align 8 + %1232 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %1231, 1 + %1233 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1232, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).ExportedMethods", 2 + %1234 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1233, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).ExportedMethods", 3 %1235 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %1236 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1235, 1 - %1237 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1236, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).FieldAlign", 2 - %1238 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1237, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).FieldAlign", 3 - %1239 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 - %1240 = load ptr, ptr @"_llgo_func$DsoxgOnxqV7tLvokF3AA14v1gtHsHaThoC8Q_XGcQww", align 8 - %1241 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1240, 1 - %1242 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1241, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).FuncType", 2 - %1243 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1242, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).FuncType", 3 + %1236 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1235, 1 + %1237 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1236, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).FieldAlign", 2 + %1238 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1237, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).FieldAlign", 3 + %1239 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 + %1240 = load ptr, ptr @"_llgo_func$Jm50llMLYG9ysTYiSohNC-Ho1mhjzn-vnTRBILhJI88", align 8 + %1241 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1240, 1 + %1242 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1241, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).FuncType", 2 + %1243 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1242, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).FuncType", 3 %1244 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1245 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1244, 1 - %1246 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1245, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).HasName", 2 - %1247 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1246, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).HasName", 3 + %1245 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1244, 1 + %1246 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1245, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).HasName", 2 + %1247 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1246, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).HasName", 3 %1248 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1249 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1248, 1 - %1250 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1249, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).IfaceIndir", 2 - %1251 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1250, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).IfaceIndir", 3 - %1252 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 - %1253 = load ptr, ptr @"_llgo_func$1QmforOaCy2fBAssC2y1FWCCT6fpq9RKwP2j2HIASY8", align 8 - %1254 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1253, 1 - %1255 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1254, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).InterfaceType", 2 - %1256 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1255, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).InterfaceType", 3 + %1249 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1248, 1 + %1250 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1249, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).IfaceIndir", 2 + %1251 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1250, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).IfaceIndir", 3 + %1252 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 + %1253 = load ptr, ptr @"_llgo_func$gPJieW0gawapuP7u0nJWjqAizA6ianfpIMmF5SojVDM", align 8 + %1254 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1253, 1 + %1255 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1254, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).InterfaceType", 2 + %1256 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1255, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).InterfaceType", 3 %1257 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1258 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1257, 1 - %1259 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1258, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).IsClosure", 2 - %1260 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1259, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).IsClosure", 3 + %1258 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1257, 1 + %1259 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1258, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).IsClosure", 2 + %1260 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1259, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).IsClosure", 3 %1261 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1262 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1261, 1 - %1263 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1262, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).IsDirectIface", 2 - %1264 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1263, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).IsDirectIface", 3 - %1265 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %1266 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %1267 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @43, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %1266, 1 - %1268 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1267, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Key", 2 - %1269 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1268, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Key", 3 - %1270 = load ptr, ptr @"_llgo_func$ntUE0UmVAWPS2O7GpCCGszSn-XnjHJntZZ2jYtwbFXI", align 8 - %1271 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1270, 1 - %1272 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1271, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Kind", 2 - %1273 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1272, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Kind", 3 + %1262 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1261, 1 + %1263 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1262, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).IsDirectIface", 2 + %1264 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1263, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).IsDirectIface", 3 + %1265 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %1266 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %1267 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @43, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %1266, 1 + %1268 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1267, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Key", 2 + %1269 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1268, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Key", 3 + %1270 = load ptr, ptr @"_llgo_func$Hsg8cfKiWmyMHfTCLbUouCMFmF6kp9x3qasAGPBLLfc", align 8 + %1271 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1270, 1 + %1272 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1271, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Kind", 2 + %1273 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1272, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Kind", 3 %1274 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %1275 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %1274, 1 - %1276 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1275, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Len", 2 - %1277 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1276, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Len", 3 - %1278 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 - %1279 = load ptr, ptr @"_llgo_func$d-NlqnjcQnaMjsBQY7qh2SWQmHb0XIigoceXdiJ8YT4", align 8 - %1280 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1279, 1 - %1281 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1280, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).MapType", 2 - %1282 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1281, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).MapType", 3 + %1275 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %1274, 1 + %1276 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1275, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Len", 2 + %1277 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1276, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Len", 3 + %1278 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 + %1279 = load ptr, ptr @"_llgo_func$v23QoXYwI62Le4EtGc42fZr4iF7nBhA8A8t9lvpy0QY", align 8 + %1280 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1279, 1 + %1281 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1280, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).MapType", 2 + %1282 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1281, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).MapType", 3 %1283 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %1284 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1283, 1 - %1285 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1284, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).NumMethod", 2 - %1286 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1285, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).NumMethod", 3 + %1284 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1283, 1 + %1285 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1284, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).NumMethod", 2 + %1286 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1285, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).NumMethod", 3 %1287 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1288 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1287, 1 - %1289 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1288, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Pointers", 2 - %1290 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1289, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Pointers", 3 + %1288 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1287, 1 + %1289 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1288, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Pointers", 2 + %1290 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1289, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Pointers", 3 %1291 = load ptr, ptr @"_llgo_func$1kITCsyu7hFLMxHLR7kDlvu4SOra_HtrtdFUQH9P13s", align 8 - %1292 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1291, 1 - %1293 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1292, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Size", 2 - %1294 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1293, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Size", 3 + %1292 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1291, 1 + %1293 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1292, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Size", 2 + %1294 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1293, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Size", 3 %1295 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %1296 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %1295, 1 - %1297 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1296, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).String", 2 - %1298 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1297, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).String", 3 - %1299 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @61, i64 10 }, i64 25, i64 120, i64 0, i64 23) - %1300 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 + %1296 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %1295, 1 + %1297 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1296, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).String", 2 + %1298 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1297, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).String", 3 + %1299 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @61, i64 10 }, i64 25, i64 120, i64 0, i64 23) + %1300 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 %1301 = icmp eq ptr %1300, null br i1 %1301, label %_llgo_131, label %_llgo_132 _llgo_130: ; preds = %_llgo_144, %_llgo_128 - %1302 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 - %1303 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 - %1304 = load ptr, ptr @"_llgo_func$qiNnn6Cbm3GtDp4gDI4U_DRV3h8zlz91s9jrfOXC--U", align 8 - %1305 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1304, 1 - %1306 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1305, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).StructType", 2 - %1307 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1306, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).StructType", 3 - %1308 = load ptr, ptr @"_llgo_func$DbD4nZv_bjE4tH8hh-VfAjMXMpNfIsMlLJJJPKupp34", align 8 - %1309 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1308, 1 - %1310 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1309, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Uncommon", 2 - %1311 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1310, ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Uncommon", 3 - %1312 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 1040) - %1313 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %951, ptr %1313, align 8 - %1314 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %956, ptr %1314, align 8 - %1315 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 2 - store %"github.com/goplus/llgo/internal/abi.Method" %960, ptr %1315, align 8 - %1316 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 3 - store %"github.com/goplus/llgo/internal/abi.Method" %965, ptr %1316, align 8 - %1317 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 4 - store %"github.com/goplus/llgo/internal/abi.Method" %970, ptr %1317, align 8 - %1318 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 5 - store %"github.com/goplus/llgo/internal/abi.Method" %974, ptr %1318, align 8 - %1319 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 6 - store %"github.com/goplus/llgo/internal/abi.Method" %979, ptr %1319, align 8 - %1320 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 7 - store %"github.com/goplus/llgo/internal/abi.Method" %983, ptr %1320, align 8 - %1321 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 8 - store %"github.com/goplus/llgo/internal/abi.Method" %987, ptr %1321, align 8 - %1322 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 9 - store %"github.com/goplus/llgo/internal/abi.Method" %991, ptr %1322, align 8 - %1323 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 10 - store %"github.com/goplus/llgo/internal/abi.Method" %995, ptr %1323, align 8 - %1324 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 11 - store %"github.com/goplus/llgo/internal/abi.Method" %999, ptr %1324, align 8 - %1325 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 12 - store %"github.com/goplus/llgo/internal/abi.Method" %1004, ptr %1325, align 8 - %1326 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 13 - store %"github.com/goplus/llgo/internal/abi.Method" %1008, ptr %1326, align 8 - %1327 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 14 - store %"github.com/goplus/llgo/internal/abi.Method" %1012, ptr %1327, align 8 - %1328 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 15 - store %"github.com/goplus/llgo/internal/abi.Method" %1016, ptr %1328, align 8 - %1329 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 16 - store %"github.com/goplus/llgo/internal/abi.Method" %1020, ptr %1329, align 8 - %1330 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 17 - store %"github.com/goplus/llgo/internal/abi.Method" %1100, ptr %1330, align 8 - %1331 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 18 - store %"github.com/goplus/llgo/internal/abi.Method" %1104, ptr %1331, align 8 - %1332 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 19 - store %"github.com/goplus/llgo/internal/abi.Method" %1108, ptr %1332, align 8 - %1333 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 20 - store %"github.com/goplus/llgo/internal/abi.Method" %1112, ptr %1333, align 8 - %1334 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 21 - store %"github.com/goplus/llgo/internal/abi.Method" %1116, ptr %1334, align 8 - %1335 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 22 - store %"github.com/goplus/llgo/internal/abi.Method" %1133, ptr %1335, align 8 - %1336 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 23 - store %"github.com/goplus/llgo/internal/abi.Method" %1137, ptr %1336, align 8 - %1337 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 24 - store %"github.com/goplus/llgo/internal/abi.Method" %1307, ptr %1337, align 8 - %1338 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1312, i64 25 - store %"github.com/goplus/llgo/internal/abi.Method" %1311, ptr %1338, align 8 - %1339 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1312, 0 - %1340 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1339, i64 26, 1 - %1341 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1340, i64 26, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %834, ptr %947, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %1341) + %1302 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 + %1303 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 + %1304 = load ptr, ptr @"_llgo_func$JNZyRh9Ldf2v-LKH-spUrxoORHTTH5NO358kWdhabp0", align 8 + %1305 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1304, 1 + %1306 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1305, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).StructType", 2 + %1307 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1306, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).StructType", 3 + %1308 = load ptr, ptr @"_llgo_func$iG49bujiXjI2lVflYdE0hPXlCAABL-XKRANSNJEKOio", align 8 + %1309 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1308, 1 + %1310 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1309, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Uncommon", 2 + %1311 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1310, ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Uncommon", 3 + %1312 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 1040) + %1313 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %951, ptr %1313, align 8 + %1314 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %956, ptr %1314, align 8 + %1315 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 2 + store %"github.com/goplus/llgo/runtime/abi.Method" %960, ptr %1315, align 8 + %1316 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 3 + store %"github.com/goplus/llgo/runtime/abi.Method" %965, ptr %1316, align 8 + %1317 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 4 + store %"github.com/goplus/llgo/runtime/abi.Method" %970, ptr %1317, align 8 + %1318 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 5 + store %"github.com/goplus/llgo/runtime/abi.Method" %974, ptr %1318, align 8 + %1319 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 6 + store %"github.com/goplus/llgo/runtime/abi.Method" %979, ptr %1319, align 8 + %1320 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 7 + store %"github.com/goplus/llgo/runtime/abi.Method" %983, ptr %1320, align 8 + %1321 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 8 + store %"github.com/goplus/llgo/runtime/abi.Method" %987, ptr %1321, align 8 + %1322 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 9 + store %"github.com/goplus/llgo/runtime/abi.Method" %991, ptr %1322, align 8 + %1323 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 10 + store %"github.com/goplus/llgo/runtime/abi.Method" %995, ptr %1323, align 8 + %1324 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 11 + store %"github.com/goplus/llgo/runtime/abi.Method" %999, ptr %1324, align 8 + %1325 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 12 + store %"github.com/goplus/llgo/runtime/abi.Method" %1004, ptr %1325, align 8 + %1326 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 13 + store %"github.com/goplus/llgo/runtime/abi.Method" %1008, ptr %1326, align 8 + %1327 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 14 + store %"github.com/goplus/llgo/runtime/abi.Method" %1012, ptr %1327, align 8 + %1328 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 15 + store %"github.com/goplus/llgo/runtime/abi.Method" %1016, ptr %1328, align 8 + %1329 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 16 + store %"github.com/goplus/llgo/runtime/abi.Method" %1020, ptr %1329, align 8 + %1330 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 17 + store %"github.com/goplus/llgo/runtime/abi.Method" %1100, ptr %1330, align 8 + %1331 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 18 + store %"github.com/goplus/llgo/runtime/abi.Method" %1104, ptr %1331, align 8 + %1332 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 19 + store %"github.com/goplus/llgo/runtime/abi.Method" %1108, ptr %1332, align 8 + %1333 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 20 + store %"github.com/goplus/llgo/runtime/abi.Method" %1112, ptr %1333, align 8 + %1334 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 21 + store %"github.com/goplus/llgo/runtime/abi.Method" %1116, ptr %1334, align 8 + %1335 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 22 + store %"github.com/goplus/llgo/runtime/abi.Method" %1133, ptr %1335, align 8 + %1336 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 23 + store %"github.com/goplus/llgo/runtime/abi.Method" %1137, ptr %1336, align 8 + %1337 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 24 + store %"github.com/goplus/llgo/runtime/abi.Method" %1307, ptr %1337, align 8 + %1338 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1312, i64 25 + store %"github.com/goplus/llgo/runtime/abi.Method" %1311, ptr %1338, align 8 + %1339 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1312, 0 + %1340 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1339, i64 26, 1 + %1341 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1340, i64 26, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %834, ptr %947, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1341) br label %_llgo_110 _llgo_131: ; preds = %_llgo_129 - %1342 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %1299) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %1342) - store ptr %1342, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 + %1342 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %1299) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %1342) + store ptr %1342, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 br label %_llgo_132 _llgo_132: ; preds = %_llgo_131, %_llgo_129 - %1343 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 - %1344 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 - %1345 = load ptr, ptr @"_llgo_func$qiNnn6Cbm3GtDp4gDI4U_DRV3h8zlz91s9jrfOXC--U", align 8 + %1343 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 + %1344 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 + %1345 = load ptr, ptr @"_llgo_func$JNZyRh9Ldf2v-LKH-spUrxoORHTTH5NO358kWdhabp0", align 8 %1346 = icmp eq ptr %1345, null br i1 %1346, label %_llgo_133, label %_llgo_134 _llgo_133: ; preds = %_llgo_132 - %1347 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %1348 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1347, 0 - %1349 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1348, i64 0, 1 - %1350 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1349, i64 0, 2 - %1351 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %1347 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %1348 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1347, 0 + %1349 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1348, i64 0, 1 + %1350 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1349, i64 0, 2 + %1351 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %1352 = getelementptr ptr, ptr %1351, i64 0 store ptr %1344, ptr %1352, align 8 - %1353 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1351, 0 - %1354 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1353, i64 1, 1 - %1355 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1354, i64 1, 2 - %1356 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %1350, %"github.com/goplus/llgo/internal/runtime.Slice" %1355, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %1356) - store ptr %1356, ptr @"_llgo_func$qiNnn6Cbm3GtDp4gDI4U_DRV3h8zlz91s9jrfOXC--U", align 8 + %1353 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1351, 0 + %1354 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1353, i64 1, 1 + %1355 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1354, i64 1, 2 + %1356 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1350, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1355, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %1356) + store ptr %1356, ptr @"_llgo_func$JNZyRh9Ldf2v-LKH-spUrxoORHTTH5NO358kWdhabp0", align 8 br label %_llgo_134 _llgo_134: ; preds = %_llgo_133, %_llgo_132 - %1357 = load ptr, ptr @"_llgo_func$qiNnn6Cbm3GtDp4gDI4U_DRV3h8zlz91s9jrfOXC--U", align 8 - %1358 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1357, 1 - %1359 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1358, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).StructType", 2 - %1360 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1359, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).StructType", 3 - %1361 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @70, i64 12 }, i64 25, i64 24, i64 0, i64 2) - %1362 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.UncommonType", align 8 + %1357 = load ptr, ptr @"_llgo_func$JNZyRh9Ldf2v-LKH-spUrxoORHTTH5NO358kWdhabp0", align 8 + %1358 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1357, 1 + %1359 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1358, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).StructType", 2 + %1360 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1359, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).StructType", 3 + %1361 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @70, i64 12 }, i64 25, i64 24, i64 0, i64 2) + %1362 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.UncommonType", align 8 %1363 = icmp eq ptr %1362, null br i1 %1363, label %_llgo_135, label %_llgo_136 _llgo_135: ; preds = %_llgo_134 - store ptr %1361, ptr @"_llgo_github.com/goplus/llgo/internal/abi.UncommonType", align 8 + store ptr %1361, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.UncommonType", align 8 br label %_llgo_136 _llgo_136: ; preds = %_llgo_135, %_llgo_134 @@ -2467,27 +2467,27 @@ _llgo_136: ; preds = %_llgo_135, %_llgo_1 br i1 %1365, label %_llgo_137, label %_llgo_138 _llgo_137: ; preds = %_llgo_136 - %1366 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %1367 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @39, i64 8 }, ptr %1366, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1368 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 41) - %1369 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @71, i64 6 }, ptr %1368, i64 16, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1370 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 41) - %1371 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @72, i64 6 }, ptr %1370, i64 18, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1372 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 42) - %1373 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @73, i64 4 }, ptr %1372, i64 20, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1374 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %1375 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1374, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %1367, ptr %1375, align 8 - %1376 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1374, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %1369, ptr %1376, align 8 - %1377 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1374, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %1371, ptr %1377, align 8 - %1378 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1374, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %1373, ptr %1378, align 8 - %1379 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1374, 0 - %1380 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1379, i64 4, 1 - %1381 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1380, i64 4, 2 - %1382 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 24, %"github.com/goplus/llgo/internal/runtime.Slice" %1381) + %1366 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %1367 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @39, i64 8 }, ptr %1366, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1368 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 41) + %1369 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @71, i64 6 }, ptr %1368, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1370 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 41) + %1371 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @72, i64 6 }, ptr %1370, i64 18, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1372 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 42) + %1373 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @73, i64 4 }, ptr %1372, i64 20, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1374 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %1375 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1374, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1367, ptr %1375, align 8 + %1376 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1374, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1369, ptr %1376, align 8 + %1377 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1374, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1371, ptr %1377, align 8 + %1378 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1374, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1373, ptr %1378, align 8 + %1379 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1374, 0 + %1380 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1379, i64 4, 1 + %1381 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1380, i64 4, 2 + %1382 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 24, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1381) store ptr %1382, ptr @"_llgo_struct$OKIlItfBJsawrEMnVSc2VQ7pxNxCHIgSoitcM9n4FVI", align 8 br label %_llgo_138 @@ -2496,679 +2496,679 @@ _llgo_138: ; preds = %_llgo_137, %_llgo_1 br i1 %1363, label %_llgo_139, label %_llgo_140 _llgo_139: ; preds = %_llgo_138 - %1384 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 - %1385 = load ptr, ptr @"_llgo_func$r0w3aCNVheLGqjxncuxitGhNtWJagb9gZLqOSrNI7dg", align 8 - %1386 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %1385, 1 - %1387 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1386, ptr @"github.com/goplus/llgo/internal/abi.(*UncommonType).ExportedMethods", 2 - %1388 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1387, ptr @"github.com/goplus/llgo/internal/abi.(*UncommonType).ExportedMethods", 3 - %1389 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 - %1390 = load ptr, ptr @"_llgo_func$r0w3aCNVheLGqjxncuxitGhNtWJagb9gZLqOSrNI7dg", align 8 - %1391 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @40, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1390, 1 - %1392 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1391, ptr @"github.com/goplus/llgo/internal/abi.(*UncommonType).Methods", 2 - %1393 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1392, ptr @"github.com/goplus/llgo/internal/abi.(*UncommonType).Methods", 3 - %1394 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %1395 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1394, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %1388, ptr %1395, align 8 - %1396 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1394, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %1393, ptr %1396, align 8 - %1397 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1394, 0 - %1398 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1397, i64 2, 1 - %1399 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1398, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %1361, ptr %1383, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %1399) + %1384 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 + %1385 = load ptr, ptr @"_llgo_func$fPOUeAcTITSSbJEvFFjAWZP6Eli7dk4j7E9mFFHRoNM", align 8 + %1386 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %1385, 1 + %1387 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1386, ptr @"github.com/goplus/llgo/runtime/abi.(*UncommonType).ExportedMethods", 2 + %1388 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1387, ptr @"github.com/goplus/llgo/runtime/abi.(*UncommonType).ExportedMethods", 3 + %1389 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 + %1390 = load ptr, ptr @"_llgo_func$fPOUeAcTITSSbJEvFFjAWZP6Eli7dk4j7E9mFFHRoNM", align 8 + %1391 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @40, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1390, 1 + %1392 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1391, ptr @"github.com/goplus/llgo/runtime/abi.(*UncommonType).Methods", 2 + %1393 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1392, ptr @"github.com/goplus/llgo/runtime/abi.(*UncommonType).Methods", 3 + %1394 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %1395 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1394, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %1388, ptr %1395, align 8 + %1396 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1394, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %1393, ptr %1396, align 8 + %1397 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1394, 0 + %1398 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1397, i64 2, 1 + %1399 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1398, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %1361, ptr %1383, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1399) br label %_llgo_140 _llgo_140: ; preds = %_llgo_139, %_llgo_138 - %1400 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.UncommonType", align 8 - %1401 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @70, i64 12 }, i64 25, i64 24, i64 0, i64 2) - %1402 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.UncommonType", align 8 + %1400 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.UncommonType", align 8 + %1401 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @70, i64 12 }, i64 25, i64 24, i64 0, i64 2) + %1402 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.UncommonType", align 8 %1403 = icmp eq ptr %1402, null br i1 %1403, label %_llgo_141, label %_llgo_142 _llgo_141: ; preds = %_llgo_140 - %1404 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %1401) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %1404) - store ptr %1404, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.UncommonType", align 8 + %1404 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %1401) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %1404) + store ptr %1404, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.UncommonType", align 8 br label %_llgo_142 _llgo_142: ; preds = %_llgo_141, %_llgo_140 - %1405 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.UncommonType", align 8 - %1406 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.UncommonType", align 8 - %1407 = load ptr, ptr @"_llgo_func$DbD4nZv_bjE4tH8hh-VfAjMXMpNfIsMlLJJJPKupp34", align 8 + %1405 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.UncommonType", align 8 + %1406 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.UncommonType", align 8 + %1407 = load ptr, ptr @"_llgo_func$iG49bujiXjI2lVflYdE0hPXlCAABL-XKRANSNJEKOio", align 8 %1408 = icmp eq ptr %1407, null br i1 %1408, label %_llgo_143, label %_llgo_144 _llgo_143: ; preds = %_llgo_142 - %1409 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %1410 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1409, 0 - %1411 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1410, i64 0, 1 - %1412 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1411, i64 0, 2 - %1413 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %1409 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %1410 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1409, 0 + %1411 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1410, i64 0, 1 + %1412 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1411, i64 0, 2 + %1413 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %1414 = getelementptr ptr, ptr %1413, i64 0 store ptr %1406, ptr %1414, align 8 - %1415 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1413, 0 - %1416 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1415, i64 1, 1 - %1417 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1416, i64 1, 2 - %1418 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %1412, %"github.com/goplus/llgo/internal/runtime.Slice" %1417, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %1418) - store ptr %1418, ptr @"_llgo_func$DbD4nZv_bjE4tH8hh-VfAjMXMpNfIsMlLJJJPKupp34", align 8 + %1415 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1413, 0 + %1416 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1415, i64 1, 1 + %1417 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1416, i64 1, 2 + %1418 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1412, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1417, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %1418) + store ptr %1418, ptr @"_llgo_func$iG49bujiXjI2lVflYdE0hPXlCAABL-XKRANSNJEKOio", align 8 br label %_llgo_144 _llgo_144: ; preds = %_llgo_143, %_llgo_142 - %1419 = load ptr, ptr @"_llgo_func$DbD4nZv_bjE4tH8hh-VfAjMXMpNfIsMlLJJJPKupp34", align 8 - %1420 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1419, 1 - %1421 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1420, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Uncommon", 2 - %1422 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1421, ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Uncommon", 3 - %1423 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 920) - %1424 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %1210, ptr %1424, align 8 - %1425 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %1215, ptr %1425, align 8 - %1426 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 2 - store %"github.com/goplus/llgo/internal/abi.Method" %1219, ptr %1426, align 8 - %1427 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 3 - store %"github.com/goplus/llgo/internal/abi.Method" %1224, ptr %1427, align 8 - %1428 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 4 - store %"github.com/goplus/llgo/internal/abi.Method" %1229, ptr %1428, align 8 - %1429 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 5 - store %"github.com/goplus/llgo/internal/abi.Method" %1234, ptr %1429, align 8 - %1430 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 6 - store %"github.com/goplus/llgo/internal/abi.Method" %1238, ptr %1430, align 8 - %1431 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 7 - store %"github.com/goplus/llgo/internal/abi.Method" %1243, ptr %1431, align 8 - %1432 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 8 - store %"github.com/goplus/llgo/internal/abi.Method" %1247, ptr %1432, align 8 - %1433 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 9 - store %"github.com/goplus/llgo/internal/abi.Method" %1251, ptr %1433, align 8 - %1434 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 10 - store %"github.com/goplus/llgo/internal/abi.Method" %1256, ptr %1434, align 8 - %1435 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 11 - store %"github.com/goplus/llgo/internal/abi.Method" %1260, ptr %1435, align 8 - %1436 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 12 - store %"github.com/goplus/llgo/internal/abi.Method" %1264, ptr %1436, align 8 - %1437 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 13 - store %"github.com/goplus/llgo/internal/abi.Method" %1269, ptr %1437, align 8 - %1438 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 14 - store %"github.com/goplus/llgo/internal/abi.Method" %1273, ptr %1438, align 8 - %1439 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 15 - store %"github.com/goplus/llgo/internal/abi.Method" %1277, ptr %1439, align 8 - %1440 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 16 - store %"github.com/goplus/llgo/internal/abi.Method" %1282, ptr %1440, align 8 - %1441 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 17 - store %"github.com/goplus/llgo/internal/abi.Method" %1286, ptr %1441, align 8 - %1442 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 18 - store %"github.com/goplus/llgo/internal/abi.Method" %1290, ptr %1442, align 8 - %1443 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 19 - store %"github.com/goplus/llgo/internal/abi.Method" %1294, ptr %1443, align 8 - %1444 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 20 - store %"github.com/goplus/llgo/internal/abi.Method" %1298, ptr %1444, align 8 - %1445 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 21 - store %"github.com/goplus/llgo/internal/abi.Method" %1360, ptr %1445, align 8 - %1446 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1423, i64 22 - store %"github.com/goplus/llgo/internal/abi.Method" %1422, ptr %1446, align 8 - %1447 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1423, 0 - %1448 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1447, i64 23, 1 - %1449 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1448, i64 23, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %1138, ptr %1206, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %1449) + %1419 = load ptr, ptr @"_llgo_func$iG49bujiXjI2lVflYdE0hPXlCAABL-XKRANSNJEKOio", align 8 + %1420 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1419, 1 + %1421 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1420, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Uncommon", 2 + %1422 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1421, ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Uncommon", 3 + %1423 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 920) + %1424 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %1210, ptr %1424, align 8 + %1425 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %1215, ptr %1425, align 8 + %1426 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 2 + store %"github.com/goplus/llgo/runtime/abi.Method" %1219, ptr %1426, align 8 + %1427 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 3 + store %"github.com/goplus/llgo/runtime/abi.Method" %1224, ptr %1427, align 8 + %1428 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 4 + store %"github.com/goplus/llgo/runtime/abi.Method" %1229, ptr %1428, align 8 + %1429 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 5 + store %"github.com/goplus/llgo/runtime/abi.Method" %1234, ptr %1429, align 8 + %1430 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 6 + store %"github.com/goplus/llgo/runtime/abi.Method" %1238, ptr %1430, align 8 + %1431 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 7 + store %"github.com/goplus/llgo/runtime/abi.Method" %1243, ptr %1431, align 8 + %1432 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 8 + store %"github.com/goplus/llgo/runtime/abi.Method" %1247, ptr %1432, align 8 + %1433 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 9 + store %"github.com/goplus/llgo/runtime/abi.Method" %1251, ptr %1433, align 8 + %1434 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 10 + store %"github.com/goplus/llgo/runtime/abi.Method" %1256, ptr %1434, align 8 + %1435 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 11 + store %"github.com/goplus/llgo/runtime/abi.Method" %1260, ptr %1435, align 8 + %1436 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 12 + store %"github.com/goplus/llgo/runtime/abi.Method" %1264, ptr %1436, align 8 + %1437 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 13 + store %"github.com/goplus/llgo/runtime/abi.Method" %1269, ptr %1437, align 8 + %1438 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 14 + store %"github.com/goplus/llgo/runtime/abi.Method" %1273, ptr %1438, align 8 + %1439 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 15 + store %"github.com/goplus/llgo/runtime/abi.Method" %1277, ptr %1439, align 8 + %1440 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 16 + store %"github.com/goplus/llgo/runtime/abi.Method" %1282, ptr %1440, align 8 + %1441 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 17 + store %"github.com/goplus/llgo/runtime/abi.Method" %1286, ptr %1441, align 8 + %1442 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 18 + store %"github.com/goplus/llgo/runtime/abi.Method" %1290, ptr %1442, align 8 + %1443 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 19 + store %"github.com/goplus/llgo/runtime/abi.Method" %1294, ptr %1443, align 8 + %1444 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 20 + store %"github.com/goplus/llgo/runtime/abi.Method" %1298, ptr %1444, align 8 + %1445 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 21 + store %"github.com/goplus/llgo/runtime/abi.Method" %1360, ptr %1445, align 8 + %1446 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1423, i64 22 + store %"github.com/goplus/llgo/runtime/abi.Method" %1422, ptr %1446, align 8 + %1447 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1423, 0 + %1448 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1447, i64 23, 1 + %1449 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1448, i64 23, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %1138, ptr %1206, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1449) br label %_llgo_130 _llgo_145: ; preds = %_llgo_64 - %1450 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %1451 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @34, i64 5 }, ptr %1450, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1452 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %472) - %1453 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @75, i64 5 }, ptr %1452, i64 16, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1454 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %1455 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @76, i64 4 }, ptr %1454, i64 24, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1456 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %1457 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @77, i64 4 }, ptr %1456, i64 32, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1458 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %1459 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1458, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %1451, ptr %1459, align 8 - %1460 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1458, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %1453, ptr %1460, align 8 - %1461 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1458, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %1455, ptr %1461, align 8 - %1462 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1458, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %1457, ptr %1462, align 8 - %1463 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1458, 0 - %1464 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1463, i64 4, 1 - %1465 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1464, i64 4, 2 - %1466 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 40, %"github.com/goplus/llgo/internal/runtime.Slice" %1465) - store ptr %1466, ptr @"_llgo_struct$SDp3TNnYnxb26MhB1v8VMbmY71BX77YOaY7lgS1cFx0", align 8 + %1450 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %1451 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @34, i64 5 }, ptr %1450, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1452 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %472) + %1453 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @75, i64 5 }, ptr %1452, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1454 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %1455 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @76, i64 4 }, ptr %1454, i64 24, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1456 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %1457 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @77, i64 4 }, ptr %1456, i64 32, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1458 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %1459 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1458, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1451, ptr %1459, align 8 + %1460 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1458, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1453, ptr %1460, align 8 + %1461 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1458, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1455, ptr %1461, align 8 + %1462 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1458, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1457, ptr %1462, align 8 + %1463 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1458, 0 + %1464 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1463, i64 4, 1 + %1465 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1464, i64 4, 2 + %1466 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 40, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1465) + store ptr %1466, ptr @"_llgo_struct$jXUHcnL1PMmNRB-pn2cBRAQ7OYcwCM_YkvLqlL0ZYaE", align 8 br label %_llgo_146 _llgo_146: ; preds = %_llgo_145, %_llgo_64 - %1467 = load ptr, ptr @"_llgo_struct$SDp3TNnYnxb26MhB1v8VMbmY71BX77YOaY7lgS1cFx0", align 8 + %1467 = load ptr, ptr @"_llgo_struct$jXUHcnL1PMmNRB-pn2cBRAQ7OYcwCM_YkvLqlL0ZYaE", align 8 br i1 %410, label %_llgo_147, label %_llgo_148 _llgo_147: ; preds = %_llgo_146 %1468 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1469 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @36, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1468, 1 - %1470 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1469, ptr @"github.com/goplus/llgo/internal/abi.(*Method).Exported", 2 - %1471 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1470, ptr @"github.com/goplus/llgo/internal/abi.(*Method).Exported", 3 + %1469 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @36, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1468, 1 + %1470 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1469, ptr @"github.com/goplus/llgo/runtime/abi.(*Method).Exported", 2 + %1471 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1470, ptr @"github.com/goplus/llgo/runtime/abi.(*Method).Exported", 3 %1472 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %1473 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @37, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1472, 1 - %1474 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1473, ptr @"github.com/goplus/llgo/internal/abi.(*Method).Name", 2 - %1475 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1474, ptr @"github.com/goplus/llgo/internal/abi.(*Method).Name", 3 + %1473 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @37, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1472, 1 + %1474 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1473, ptr @"github.com/goplus/llgo/runtime/abi.(*Method).Name", 2 + %1475 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1474, ptr @"github.com/goplus/llgo/runtime/abi.(*Method).Name", 3 %1476 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %1477 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @38, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1476, 1 - %1478 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1477, ptr @"github.com/goplus/llgo/internal/abi.(*Method).PkgPath", 2 - %1479 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1478, ptr @"github.com/goplus/llgo/internal/abi.(*Method).PkgPath", 3 - %1480 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 120) - %1481 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1480, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %1471, ptr %1481, align 8 - %1482 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1480, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %1475, ptr %1482, align 8 - %1483 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1480, i64 2 - store %"github.com/goplus/llgo/internal/abi.Method" %1479, ptr %1483, align 8 - %1484 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1480, 0 - %1485 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1484, i64 3, 1 - %1486 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1485, i64 3, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %408, ptr %1467, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %1486) + %1477 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @38, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1476, 1 + %1478 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1477, ptr @"github.com/goplus/llgo/runtime/abi.(*Method).PkgPath", 2 + %1479 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1478, ptr @"github.com/goplus/llgo/runtime/abi.(*Method).PkgPath", 3 + %1480 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 120) + %1481 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1480, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %1471, ptr %1481, align 8 + %1482 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1480, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %1475, ptr %1482, align 8 + %1483 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1480, i64 2 + store %"github.com/goplus/llgo/runtime/abi.Method" %1479, ptr %1483, align 8 + %1484 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1480, 0 + %1485 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1484, i64 3, 1 + %1486 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1485, i64 3, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %408, ptr %1467, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1486) br label %_llgo_148 _llgo_148: ; preds = %_llgo_147, %_llgo_146 - %1487 = load ptr, ptr @"_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 - %1488 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/internal/abi.Method", align 8 - %1489 = load ptr, ptr @"_llgo_func$r0w3aCNVheLGqjxncuxitGhNtWJagb9gZLqOSrNI7dg", align 8 - %1490 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %1489, 1 - %1491 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1490, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).ExportedMethods", 2 - %1492 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1491, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).ExportedMethods", 3 + %1487 = load ptr, ptr @"_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 + %1488 = load ptr, ptr @"[]_llgo_github.com/goplus/llgo/runtime/abi.Method", align 8 + %1489 = load ptr, ptr @"_llgo_func$fPOUeAcTITSSbJEvFFjAWZP6Eli7dk4j7E9mFFHRoNM", align 8 + %1490 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @24, i64 15 }, ptr undef, ptr undef, ptr undef }, ptr %1489, 1 + %1491 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1490, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).ExportedMethods", 2 + %1492 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1491, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).ExportedMethods", 3 %1493 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %1494 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1493, 1 - %1495 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1494, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).FieldAlign", 2 - %1496 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1495, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).FieldAlign", 3 - %1497 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.FuncType", align 8 - %1498 = load ptr, ptr @"_llgo_func$DsoxgOnxqV7tLvokF3AA14v1gtHsHaThoC8Q_XGcQww", align 8 - %1499 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1498, 1 - %1500 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1499, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).FuncType", 2 - %1501 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1500, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).FuncType", 3 + %1494 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @29, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1493, 1 + %1495 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1494, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).FieldAlign", 2 + %1496 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1495, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).FieldAlign", 3 + %1497 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.FuncType", align 8 + %1498 = load ptr, ptr @"_llgo_func$Jm50llMLYG9ysTYiSohNC-Ho1mhjzn-vnTRBILhJI88", align 8 + %1499 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @26, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1498, 1 + %1500 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1499, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).FuncType", 2 + %1501 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1500, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).FuncType", 3 %1502 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1503 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1502, 1 - %1504 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1503, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).HasName", 2 - %1505 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1504, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).HasName", 3 + %1503 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @30, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1502, 1 + %1504 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1503, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).HasName", 2 + %1505 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1504, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).HasName", 3 %1506 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1507 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1506, 1 - %1508 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1507, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).IfaceIndir", 2 - %1509 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1508, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).IfaceIndir", 3 - %1510 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.InterfaceType", align 8 - %1511 = load ptr, ptr @"_llgo_func$1QmforOaCy2fBAssC2y1FWCCT6fpq9RKwP2j2HIASY8", align 8 - %1512 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1511, 1 - %1513 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1512, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).InterfaceType", 2 - %1514 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1513, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).InterfaceType", 3 + %1507 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @31, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1506, 1 + %1508 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1507, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).IfaceIndir", 2 + %1509 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1508, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).IfaceIndir", 3 + %1510 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.InterfaceType", align 8 + %1511 = load ptr, ptr @"_llgo_func$gPJieW0gawapuP7u0nJWjqAizA6ianfpIMmF5SojVDM", align 8 + %1512 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @32, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1511, 1 + %1513 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1512, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).InterfaceType", 2 + %1514 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1513, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).InterfaceType", 3 %1515 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1516 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1515, 1 - %1517 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1516, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).IsClosure", 2 - %1518 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1517, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).IsClosure", 3 + %1516 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @41, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1515, 1 + %1517 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1516, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).IsClosure", 2 + %1518 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1517, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).IsClosure", 3 %1519 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1520 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1519, 1 - %1521 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1520, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).IsDirectIface", 2 - %1522 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1521, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).IsDirectIface", 3 - %1523 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.Type", align 8 - %1524 = load ptr, ptr @"_llgo_func$4-mqItKfDlL0CgVKnUxoresYgh6zW1WSlZYZSsVzLRo", align 8 - %1525 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @43, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %1524, 1 - %1526 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1525, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Key", 2 - %1527 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1526, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Key", 3 - %1528 = load ptr, ptr @"_llgo_func$ntUE0UmVAWPS2O7GpCCGszSn-XnjHJntZZ2jYtwbFXI", align 8 - %1529 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1528, 1 - %1530 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1529, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Kind", 2 - %1531 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1530, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Kind", 3 - %1532 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.MapType", align 8 - %1533 = load ptr, ptr @"_llgo_func$d-NlqnjcQnaMjsBQY7qh2SWQmHb0XIigoceXdiJ8YT4", align 8 - %1534 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1533, 1 - %1535 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1534, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).MapType", 2 - %1536 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1535, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).MapType", 3 + %1520 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @42, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %1519, 1 + %1521 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1520, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).IsDirectIface", 2 + %1522 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1521, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).IsDirectIface", 3 + %1523 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.Type", align 8 + %1524 = load ptr, ptr @"_llgo_func$w6XuV-1SmW103DbauPseXBpW50HpxXAEsUsGFibl0Uw", align 8 + %1525 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @43, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %1524, 1 + %1526 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1525, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Key", 2 + %1527 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1526, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Key", 3 + %1528 = load ptr, ptr @"_llgo_func$Hsg8cfKiWmyMHfTCLbUouCMFmF6kp9x3qasAGPBLLfc", align 8 + %1529 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @44, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1528, 1 + %1530 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1529, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Kind", 2 + %1531 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1530, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Kind", 3 + %1532 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.MapType", align 8 + %1533 = load ptr, ptr @"_llgo_func$v23QoXYwI62Le4EtGc42fZr4iF7nBhA8A8t9lvpy0QY", align 8 + %1534 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @46, i64 7 }, ptr undef, ptr undef, ptr undef }, ptr %1533, 1 + %1535 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1534, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).MapType", 2 + %1536 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1535, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).MapType", 3 %1537 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8 - %1538 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1537, 1 - %1539 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1538, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).NumMethod", 2 - %1540 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1539, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).NumMethod", 3 + %1538 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @57, i64 9 }, ptr undef, ptr undef, ptr undef }, ptr %1537, 1 + %1539 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1538, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).NumMethod", 2 + %1540 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1539, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).NumMethod", 3 %1541 = load ptr, ptr @"_llgo_func$YHeRw3AOvQtzv982-ZO3Yn8vh3Fx89RM3VvI8E4iKVk", align 8 - %1542 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1541, 1 - %1543 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1542, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Pointers", 2 - %1544 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1543, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Pointers", 3 + %1542 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @58, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1541, 1 + %1543 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1542, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Pointers", 2 + %1544 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1543, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Pointers", 3 %1545 = load ptr, ptr @"_llgo_func$1kITCsyu7hFLMxHLR7kDlvu4SOra_HtrtdFUQH9P13s", align 8 - %1546 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1545, 1 - %1547 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1546, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Size", 2 - %1548 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1547, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Size", 3 + %1546 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @60, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %1545, 1 + %1547 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1546, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Size", 2 + %1548 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1547, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Size", 3 %1549 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 - %1550 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %1549, 1 - %1551 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1550, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).String", 2 - %1552 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1551, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).String", 3 - %1553 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/internal/abi.StructType", align 8 - %1554 = load ptr, ptr @"_llgo_func$qiNnn6Cbm3GtDp4gDI4U_DRV3h8zlz91s9jrfOXC--U", align 8 - %1555 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1554, 1 - %1556 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1555, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).StructType", 2 - %1557 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1556, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).StructType", 3 - %1558 = load ptr, ptr @"_llgo_func$DbD4nZv_bjE4tH8hh-VfAjMXMpNfIsMlLJJJPKupp34", align 8 - %1559 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1558, 1 - %1560 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1559, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Uncommon", 2 - %1561 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %1560, ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Uncommon", 3 - %1562 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 840) - %1563 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %220, ptr %1563, align 8 - %1564 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %367, ptr %1564, align 8 - %1565 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 2 - store %"github.com/goplus/llgo/internal/abi.Method" %389, ptr %1565, align 8 - %1566 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 3 - store %"github.com/goplus/llgo/internal/abi.Method" %407, ptr %1566, align 8 - %1567 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 4 - store %"github.com/goplus/llgo/internal/abi.Method" %1492, ptr %1567, align 8 - %1568 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 5 - store %"github.com/goplus/llgo/internal/abi.Method" %1496, ptr %1568, align 8 - %1569 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 6 - store %"github.com/goplus/llgo/internal/abi.Method" %1501, ptr %1569, align 8 - %1570 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 7 - store %"github.com/goplus/llgo/internal/abi.Method" %1505, ptr %1570, align 8 - %1571 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 8 - store %"github.com/goplus/llgo/internal/abi.Method" %1509, ptr %1571, align 8 - %1572 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 9 - store %"github.com/goplus/llgo/internal/abi.Method" %1514, ptr %1572, align 8 - %1573 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 10 - store %"github.com/goplus/llgo/internal/abi.Method" %1518, ptr %1573, align 8 - %1574 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 11 - store %"github.com/goplus/llgo/internal/abi.Method" %1522, ptr %1574, align 8 - %1575 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 12 - store %"github.com/goplus/llgo/internal/abi.Method" %1527, ptr %1575, align 8 - %1576 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 13 - store %"github.com/goplus/llgo/internal/abi.Method" %1531, ptr %1576, align 8 - %1577 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 14 - store %"github.com/goplus/llgo/internal/abi.Method" %1536, ptr %1577, align 8 - %1578 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 15 - store %"github.com/goplus/llgo/internal/abi.Method" %1540, ptr %1578, align 8 - %1579 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 16 - store %"github.com/goplus/llgo/internal/abi.Method" %1544, ptr %1579, align 8 - %1580 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 17 - store %"github.com/goplus/llgo/internal/abi.Method" %1548, ptr %1580, align 8 - %1581 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 18 - store %"github.com/goplus/llgo/internal/abi.Method" %1552, ptr %1581, align 8 - %1582 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 19 - store %"github.com/goplus/llgo/internal/abi.Method" %1557, ptr %1582, align 8 - %1583 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %1562, i64 20 - store %"github.com/goplus/llgo/internal/abi.Method" %1561, ptr %1583, align 8 - %1584 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1562, 0 - %1585 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1584, i64 21, 1 - %1586 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1585, i64 21, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %190, ptr %216, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %1586) + %1550 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @45, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %1549, 1 + %1551 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1550, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).String", 2 + %1552 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1551, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).String", 3 + %1553 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/runtime/abi.StructType", align 8 + %1554 = load ptr, ptr @"_llgo_func$JNZyRh9Ldf2v-LKH-spUrxoORHTTH5NO358kWdhabp0", align 8 + %1555 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @61, i64 10 }, ptr undef, ptr undef, ptr undef }, ptr %1554, 1 + %1556 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1555, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).StructType", 2 + %1557 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1556, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).StructType", 3 + %1558 = load ptr, ptr @"_llgo_func$iG49bujiXjI2lVflYdE0hPXlCAABL-XKRANSNJEKOio", align 8 + %1559 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @69, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %1558, 1 + %1560 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1559, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Uncommon", 2 + %1561 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %1560, ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Uncommon", 3 + %1562 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 840) + %1563 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %220, ptr %1563, align 8 + %1564 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %367, ptr %1564, align 8 + %1565 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 2 + store %"github.com/goplus/llgo/runtime/abi.Method" %389, ptr %1565, align 8 + %1566 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 3 + store %"github.com/goplus/llgo/runtime/abi.Method" %407, ptr %1566, align 8 + %1567 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 4 + store %"github.com/goplus/llgo/runtime/abi.Method" %1492, ptr %1567, align 8 + %1568 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 5 + store %"github.com/goplus/llgo/runtime/abi.Method" %1496, ptr %1568, align 8 + %1569 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 6 + store %"github.com/goplus/llgo/runtime/abi.Method" %1501, ptr %1569, align 8 + %1570 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 7 + store %"github.com/goplus/llgo/runtime/abi.Method" %1505, ptr %1570, align 8 + %1571 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 8 + store %"github.com/goplus/llgo/runtime/abi.Method" %1509, ptr %1571, align 8 + %1572 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 9 + store %"github.com/goplus/llgo/runtime/abi.Method" %1514, ptr %1572, align 8 + %1573 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 10 + store %"github.com/goplus/llgo/runtime/abi.Method" %1518, ptr %1573, align 8 + %1574 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 11 + store %"github.com/goplus/llgo/runtime/abi.Method" %1522, ptr %1574, align 8 + %1575 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 12 + store %"github.com/goplus/llgo/runtime/abi.Method" %1527, ptr %1575, align 8 + %1576 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 13 + store %"github.com/goplus/llgo/runtime/abi.Method" %1531, ptr %1576, align 8 + %1577 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 14 + store %"github.com/goplus/llgo/runtime/abi.Method" %1536, ptr %1577, align 8 + %1578 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 15 + store %"github.com/goplus/llgo/runtime/abi.Method" %1540, ptr %1578, align 8 + %1579 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 16 + store %"github.com/goplus/llgo/runtime/abi.Method" %1544, ptr %1579, align 8 + %1580 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 17 + store %"github.com/goplus/llgo/runtime/abi.Method" %1548, ptr %1580, align 8 + %1581 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 18 + store %"github.com/goplus/llgo/runtime/abi.Method" %1552, ptr %1581, align 8 + %1582 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 19 + store %"github.com/goplus/llgo/runtime/abi.Method" %1557, ptr %1582, align 8 + %1583 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %1562, i64 20 + store %"github.com/goplus/llgo/runtime/abi.Method" %1561, ptr %1583, align 8 + %1584 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1562, 0 + %1585 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1584, i64 21, 1 + %1586 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1585, i64 21, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %190, ptr %216, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1586) br label %_llgo_42 _llgo_149: ; preds = %_llgo_32 - %1587 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %168) + %1587 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %168) store ptr %1587, ptr @"[]_llgo_main.T", align 8 br label %_llgo_150 _llgo_150: ; preds = %_llgo_149, %_llgo_32 %1588 = load ptr, ptr @"[]_llgo_main.T", align 8 - %1589 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 1 }, i64 25, i64 48, i64 0, i64 0) - %1590 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 35 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) - %1591 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 1 }, i64 25, i64 48, i64 0, i64 0) - %1592 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %1589) - %1593 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @78, i64 1 }, ptr %1592, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1594 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %1590) - %1595 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @79, i64 1 }, ptr %1594, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1596 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) - %1597 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @80, i64 1 }, ptr %1596, i64 16, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1598 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %1591) - %1599 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @81, i64 1 }, ptr %1598, i64 24, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %1600 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %1601 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1600, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %1593, ptr %1601, align 8 - %1602 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1600, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %1595, ptr %1602, align 8 - %1603 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1600, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %1597, ptr %1603, align 8 - %1604 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %1600, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %1599, ptr %1604, align 8 - %1605 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %1600, 0 - %1606 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1605, i64 4, 1 - %1607 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %1606, i64 4, 2 - %1608 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 48, %"github.com/goplus/llgo/internal/runtime.Slice" %1607) - store ptr %1608, ptr @"main.struct$FYfyNCnlvkYOztpQWjt-y8D_WY3tpxyt5Qo62CJffTE", align 8 - %1609 = load ptr, ptr @"main.struct$FYfyNCnlvkYOztpQWjt-y8D_WY3tpxyt5Qo62CJffTE", align 8 + %1589 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 1 }, i64 25, i64 48, i64 0, i64 0) + %1590 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 34 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 25, i64 80, i64 0, i64 23) + %1591 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 1 }, i64 25, i64 48, i64 0, i64 0) + %1592 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %1589) + %1593 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @78, i64 1 }, ptr %1592, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1594 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %1590) + %1595 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @79, i64 1 }, ptr %1594, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1596 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) + %1597 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @80, i64 1 }, ptr %1596, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1598 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %1591) + %1599 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @81, i64 1 }, ptr %1598, i64 24, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %1600 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %1601 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1600, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1593, ptr %1601, align 8 + %1602 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1600, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1595, ptr %1602, align 8 + %1603 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1600, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1597, ptr %1603, align 8 + %1604 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %1600, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %1599, ptr %1604, align 8 + %1605 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %1600, 0 + %1606 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1605, i64 4, 1 + %1607 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1606, i64 4, 2 + %1608 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 48, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %1607) + store ptr %1608, ptr @"main.struct$0I14CsQEZ9iadCku0_1cAZfCJoBbFdmFH4XChi4XRoo", align 8 + %1609 = load ptr, ptr @"main.struct$0I14CsQEZ9iadCku0_1cAZfCJoBbFdmFH4XChi4XRoo", align 8 br i1 %2, label %_llgo_151, label %_llgo_152 _llgo_151: ; preds = %_llgo_150 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, ptr %1609, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %1609, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_152 _llgo_152: ; preds = %_llgo_151, %_llgo_150 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare i64 @"github.com/goplus/llgo/internal/abi.(*Type).Align"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*Type).Align"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*ArrayType).Align"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Align"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).ArrayType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).ArrayType"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*ArrayType).ChanDir"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*ArrayType).ChanDir"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Common"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Common"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*FuncType).Align"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*FuncType).Align"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).ArrayType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).ArrayType"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*FuncType).ChanDir"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*FuncType).ChanDir"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Common"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Common"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Elem"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Elem"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/abi.(*FuncType).ExportedMethods"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/abi.(*FuncType).ExportedMethods"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*FuncType).FieldAlign"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*FuncType).FieldAlign"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).FuncType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).FuncType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*FuncType).HasName"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*FuncType).HasName"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*FuncType).IfaceIndir"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*FuncType).IfaceIndir"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*Imethod).Exported"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*Imethod).Exported"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*Imethod).Name"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*Imethod).Name"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*Imethod).PkgPath"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*Imethod).PkgPath"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Align"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Align"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).ArrayType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).ArrayType"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).ChanDir"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).ChanDir"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Common"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Common"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Elem"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Elem"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/abi.(*InterfaceType).ExportedMethods"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).ExportedMethods"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).FieldAlign"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).FieldAlign"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).FuncType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).FuncType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).HasName"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).HasName"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).IfaceIndir"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).IfaceIndir"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).InterfaceType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).InterfaceType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).IsClosure"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).IsClosure"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).IsDirectIface"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).IsDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Key"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Key"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*Kind).String"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*Kind).String"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.Kind.String"(i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.Kind.String"(i64) -declare i64 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Kind"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Kind"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Len"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Len"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*MapType).Align"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*MapType).Align"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*MapType).ArrayType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).ArrayType"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*MapType).ChanDir"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*MapType).ChanDir"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Common"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Common"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/abi.(*MapType).ExportedMethods"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/abi.(*MapType).ExportedMethods"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*MapType).FieldAlign"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*MapType).FieldAlign"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*MapType).FuncType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).FuncType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*MapType).HasName"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*MapType).HasName"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*MapType).HashMightPanic"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*MapType).HashMightPanic"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*MapType).IfaceIndir"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*MapType).IfaceIndir"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*MapType).IndirectElem"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*MapType).IndirectElem"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*MapType).IndirectKey"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*MapType).IndirectKey"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*MapType).InterfaceType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).InterfaceType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*MapType).IsClosure"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*MapType).IsClosure"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*MapType).IsDirectIface"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*MapType).IsDirectIface"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*MapType).Kind"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*MapType).Kind"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*MapType).Len"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*MapType).Len"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*MapType).MapType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).MapType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*MapType).NeedKeyUpdate"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*MapType).NeedKeyUpdate"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*MapType).NumMethod"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*MapType).NumMethod"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*MapType).Pointers"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*MapType).Pointers"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*MapType).ReflexiveKey"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*MapType).ReflexiveKey"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*MapType).Size"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*MapType).Size"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*MapType).String"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*MapType).String"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*StructField).Embedded"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*StructField).Embedded"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*StructField).Exported"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*StructField).Exported"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*StructType).Align"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*StructType).Align"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*StructType).ArrayType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).ArrayType"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*StructType).ChanDir"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*StructType).ChanDir"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Common"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Common"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Elem"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Elem"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/abi.(*StructType).ExportedMethods"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/abi.(*StructType).ExportedMethods"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*StructType).FieldAlign"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*StructType).FieldAlign"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*StructType).FuncType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).FuncType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*StructType).HasName"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*StructType).HasName"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*StructType).IfaceIndir"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*StructType).IfaceIndir"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*StructType).InterfaceType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).InterfaceType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*StructType).IsClosure"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*StructType).IsClosure"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*StructType).IsDirectIface"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*StructType).IsDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Key"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Key"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*StructType).Kind"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*StructType).Kind"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*StructType).Len"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*StructType).Len"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*StructType).MapType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).MapType"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*StructType).NumMethod"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*StructType).NumMethod"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*StructType).Pointers"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*StructType).Pointers"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*StructType).Size"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*StructType).Size"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*StructType).String"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*StructType).String"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*StructType).StructType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).StructType"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/abi.(*UncommonType).ExportedMethods"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/abi.(*UncommonType).ExportedMethods"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/abi.(*UncommonType).Methods"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/abi.(*UncommonType).Methods"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*StructType).Uncommon"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*StructType).Uncommon"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*MapType).StructType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).StructType"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*MapType).Uncommon"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*MapType).Uncommon"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).MapType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).MapType"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).NumMethod"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).NumMethod"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Pointers"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Pointers"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Size"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Size"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*InterfaceType).String"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).String"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).StructType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).StructType"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*InterfaceType).Uncommon"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*InterfaceType).Uncommon"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).InterfaceType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).InterfaceType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*FuncType).IsClosure"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*FuncType).IsClosure"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*FuncType).IsDirectIface"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*FuncType).IsDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Key"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Key"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*FuncType).Kind"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*FuncType).Kind"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*FuncType).Len"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*FuncType).Len"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).MapType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).MapType"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*FuncType).NumMethod"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*FuncType).NumMethod"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*FuncType).Pointers"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*FuncType).Pointers"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*FuncType).Size"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*FuncType).Size"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*FuncType).String"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*FuncType).String"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).StructType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).StructType"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*FuncType).Uncommon"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*FuncType).Uncommon"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*FuncType).Variadic"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*FuncType).Variadic"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*Method).Exported"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*Method).Exported"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*Method).Name"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*Method).Name"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*Method).PkgPath"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*Method).PkgPath"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/abi.(*ArrayType).ExportedMethods"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/abi.(*ArrayType).ExportedMethods"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*ArrayType).FieldAlign"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*ArrayType).FieldAlign"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).FuncType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).FuncType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*ArrayType).HasName"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*ArrayType).HasName"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*ArrayType).IfaceIndir"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*ArrayType).IfaceIndir"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).InterfaceType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).InterfaceType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*ArrayType).IsClosure"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*ArrayType).IsClosure"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*ArrayType).IsDirectIface"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*ArrayType).IsDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Key"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Key"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*ArrayType).Kind"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Kind"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).MapType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).MapType"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*ArrayType).NumMethod"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*ArrayType).NumMethod"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*ArrayType).Pointers"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Pointers"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*ArrayType).Size"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Size"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*ArrayType).String"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*ArrayType).String"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).StructType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).StructType"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*ArrayType).Uncommon"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*ArrayType).Uncommon"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*Type).ArrayType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*Type).ArrayType"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*Type).ChanDir"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*Type).ChanDir"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*Type).Common"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Common"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*Type).Elem"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Elem"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/abi.(*Type).ExportedMethods"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/abi.(*Type).ExportedMethods"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*Type).FieldAlign"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*Type).FieldAlign"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*Type).FuncType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*Type).FuncType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*Type).HasName"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*Type).HasName"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*Type).IfaceIndir"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*Type).IfaceIndir"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*Type).InterfaceType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*Type).InterfaceType"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*Type).IsClosure"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*Type).IsClosure"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*Type).IsDirectIface"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*Type).IsDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*Type).Key"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Key"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*Type).Kind"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*Type).Kind"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*Type).Len"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*Type).Len"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*Type).MapType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*Type).MapType"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*Type).NumMethod"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*Type).NumMethod"(ptr) -declare i1 @"github.com/goplus/llgo/internal/abi.(*Type).Pointers"(ptr) +declare i1 @"github.com/goplus/llgo/runtime/abi.(*Type).Pointers"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*Type).Size"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*Type).Size"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*Type).String"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*Type).String"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*Type).StructType"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*Type).StructType"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*Type).Uncommon"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Uncommon"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testrt/alloca/out.ll b/compiler/cl/_testrt/alloca/out.ll index 0029dbad..b467901a 100644 --- a/compiler/cl/_testrt/alloca/out.ll +++ b/compiler/cl/_testrt/alloca/out.ll @@ -24,7 +24,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = alloca i8, i64 4, align 1 %3 = call ptr @memcpy(ptr %2, ptr @0, i64 4) @@ -32,7 +32,7 @@ _llgo_0: ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare ptr @memcpy(ptr, ptr, i64) diff --git a/compiler/cl/_testrt/allocstr/out.ll b/compiler/cl/_testrt/allocstr/out.ll index 2f826480..a25fa814 100644 --- a/compiler/cl/_testrt/allocstr/out.ll +++ b/compiler/cl/_testrt/allocstr/out.ll @@ -1,16 +1,16 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @0 = private unnamed_addr constant [12 x i8] c"Hello world\0A", align 1 @__llgo_argc = global i32 0, align 4 @__llgo_argv = global ptr null, align 8 -define %"github.com/goplus/llgo/internal/runtime.String" @main.hello() { +define %"github.com/goplus/llgo/runtime/internal/runtime.String" @main.hello() { _llgo_0: - ret %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 12 } + ret %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 12 } } define void @main.init() { @@ -30,19 +30,19 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call %"github.com/goplus/llgo/internal/runtime.String" @main.hello() - %3 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %2, 1 + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @main.hello() + %3 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %2, 1 %4 = add i64 %3, 1 %5 = alloca i8, i64 %4, align 1 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.CStrCopy"(ptr %5, %"github.com/goplus/llgo/internal/runtime.String" %2) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.CStrCopy"(ptr %5, %"github.com/goplus/llgo/runtime/internal/runtime.String" %2) %7 = call i32 (ptr, ...) @printf(ptr %6) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.CStrCopy"(ptr, %"github.com/goplus/llgo/internal/runtime.String") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.CStrCopy"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.String") declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testrt/any/out.ll b/compiler/cl/_testrt/any/out.ll index a5ce7675..4fde564d 100644 --- a/compiler/cl/_testrt/any/out.ll +++ b/compiler/cl/_testrt/any/out.ll @@ -1,8 +1,8 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @_llgo_int8 = linkonce global ptr null, align 8 @@ -15,48 +15,48 @@ source_filename = "main" @1 = private unnamed_addr constant [7 x i8] c"%s %d\0A\00", align 1 @2 = private unnamed_addr constant [6 x i8] c"Hello\00", align 1 -define ptr @main.hi(%"github.com/goplus/llgo/internal/runtime.eface" %0) { +define ptr @main.hi(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %2 = load ptr, ptr @_llgo_int8, align 8 %3 = load ptr, ptr @"*_llgo_int8", align 8 %4 = icmp eq ptr %1, %3 br i1 %4, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 ret ptr %5 _llgo_2: ; preds = %_llgo_0 %6 = load ptr, ptr @_llgo_string, align 8 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 21 }, ptr %7, align 8 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %6, 0 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %8, ptr %7, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %9) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 21 }, ptr %7, align 8 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %6, 0 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %8, ptr %7, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %9) unreachable } -define i64 @main.incVal(%"github.com/goplus/llgo/internal/runtime.eface" %0) { +define i64 @main.incVal(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %2 = load ptr, ptr @_llgo_int, align 8 %3 = icmp eq ptr %1, %2 br i1 %3, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %5 = ptrtoint ptr %4 to i64 %6 = add i64 %5, 1 ret i64 %6 _llgo_2: ; preds = %_llgo_0 %7 = load ptr, ptr @_llgo_string, align 8 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 21 }, ptr %8, align 8 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %7, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, ptr %8, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %10) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 21 }, ptr %8, align 8 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %7, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, ptr %8, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %10) unreachable } @@ -78,16 +78,16 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load ptr, ptr @"*_llgo_int8", align 8 - %3 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %2, 0 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %3, ptr @2, 1 - %5 = call ptr @main.hi(%"github.com/goplus/llgo/internal/runtime.eface" %4) + %3 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %2, 0 + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %3, ptr @2, 1 + %5 = call ptr @main.hi(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %4) %6 = load ptr, ptr @_llgo_int, align 8 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %6, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %7, ptr inttoptr (i64 100 to ptr), 1 - %9 = call i64 @main.incVal(%"github.com/goplus/llgo/internal/runtime.eface" %8) + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %6, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %7, ptr inttoptr (i64 100 to ptr), 1 + %9 = call i64 @main.incVal(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %8) %10 = call i32 (ptr, ...) @printf(ptr @1, ptr %5, i64 %9) ret i32 0 } @@ -99,7 +99,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 35) store ptr %2, ptr @_llgo_int8, align 8 br label %_llgo_2 @@ -109,9 +109,9 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35) - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %5) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %6) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 35) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %5) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %6) store ptr %6, ptr @"*_llgo_int8", align 8 br label %_llgo_4 @@ -121,7 +121,7 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %8, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %9, ptr @_llgo_string, align 8 br label %_llgo_6 @@ -131,7 +131,7 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 br i1 %11, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %12, ptr @_llgo_int, align 8 br label %_llgo_8 @@ -139,16 +139,16 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testrt/builtin/out.ll b/compiler/cl/_testrt/builtin/out.ll index d73792ef..3a19e73f 100644 --- a/compiler/cl/_testrt/builtin/out.ll +++ b/compiler/cl/_testrt/builtin/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } @main.a = global i64 0, align 8 @main.b = global i64 0, align 8 @@ -22,7 +22,7 @@ source_filename = "main" define double @main.Float64frombits(i64 %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) store i64 %0, ptr %1, align 4 %2 = load double, ptr %1, align 8 ret double %2 @@ -83,9 +83,9 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) %3 = getelementptr inbounds i64, ptr %2, i64 0 store i64 1, ptr %3, align 4 %4 = getelementptr inbounds i64, ptr %2, i64 1 @@ -94,10 +94,10 @@ _llgo_0: store i64 3, ptr %5, align 4 %6 = getelementptr inbounds i64, ptr %2, i64 3 store i64 4, ptr %6, align 4 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %2, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %7, i64 4, 1 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, i64 4, 2 - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %2, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, i64 4, 1 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, i64 4, 2 + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) %11 = getelementptr inbounds i64, ptr %10, i64 0 %12 = getelementptr inbounds i64, ptr %10, i64 1 %13 = getelementptr inbounds i64, ptr %10, i64 2 @@ -106,33 +106,33 @@ _llgo_0: store i64 2, ptr %12, align 4 store i64 3, ptr %13, align 4 store i64 4, ptr %14, align 4 - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 10) - %16 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %15, i64 1, i64 10, i64 0, i64 4, i64 10) - %17 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 1 - %18 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %17) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %18) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %19 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %16, 1 - %20 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %16, 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %16) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %19) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %20) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 10) + %16 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %15, i64 1, i64 10, i64 0, i64 4, i64 10) + %17 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 1 + %18 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %17) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %18) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %19 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %16, 1 + %20 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %16, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %16) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %19) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %20) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) %22 = getelementptr inbounds i64, ptr %21, i64 0 store i64 1, ptr %22, align 4 %23 = getelementptr inbounds i64, ptr %21, i64 1 @@ -141,89 +141,89 @@ _llgo_0: store i64 3, ptr %24, align 4 %25 = getelementptr inbounds i64, ptr %21, i64 3 store i64 4, ptr %25, align 4 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %21, 0 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %26, i64 4, 1 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %27, i64 4, 2 - %29 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %28, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %29) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %30 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 2 - %31 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 1 - %32 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 0 - %33 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %32, i64 8, i64 %30, i64 1, i64 %31, i64 %30) - %34 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %33, 1 - %35 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 2 - %36 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 1 - %37 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 0 - %38 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %37, i64 8, i64 %35, i64 1, i64 %36, i64 %35) - %39 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %38, 2 - %40 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 2 - %41 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 0 - %42 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %41, i64 8, i64 %40, i64 1, i64 2, i64 %40) - %43 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %42, 1 - %44 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 2 - %45 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 0 - %46 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %45, i64 8, i64 %44, i64 1, i64 2, i64 %44) - %47 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %46, 2 - %48 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 2 - %49 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 0 - %50 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %49, i64 8, i64 %48, i64 1, i64 2, i64 2) - %51 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %50, 1 - %52 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 2 - %53 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 0 - %54 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %53, i64 8, i64 %52, i64 1, i64 2, i64 2) - %55 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %34) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %39) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %43) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %47) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %51) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %55) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %56 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 4, i64 4) - %57 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %56, 1 - %58 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 4, i64 4) - %59 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %58, 2 - %60 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 2, i64 4) - %61 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, 1 - %62 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 2, i64 4) - %63 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %62, 2 - %64 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 2, i64 2) - %65 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %64, 1 - %66 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 2, i64 2) - %67 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %66, 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %57) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %59) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %61) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %63) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %65) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %67) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %68 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringSlice"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, i64 1, i64 5) - %69 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringSlice"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, i64 1, i64 2) - %70 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringSlice"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, i64 5, i64 5) - %71 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %70, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %68) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %69) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %71) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %72 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %21, 0 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26, i64 4, 1 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %27, i64 4, 2 + %29 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %28, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %29) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %30 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 2 + %31 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 1 + %32 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 0 + %33 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %32, i64 8, i64 %30, i64 1, i64 %31, i64 %30) + %34 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %33, 1 + %35 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 2 + %36 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 1 + %37 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 0 + %38 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %37, i64 8, i64 %35, i64 1, i64 %36, i64 %35) + %39 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %38, 2 + %40 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 2 + %41 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 0 + %42 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %41, i64 8, i64 %40, i64 1, i64 2, i64 %40) + %43 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %42, 1 + %44 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 2 + %45 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 0 + %46 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %45, i64 8, i64 %44, i64 1, i64 2, i64 %44) + %47 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %46, 2 + %48 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 2 + %49 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 0 + %50 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %49, i64 8, i64 %48, i64 1, i64 2, i64 2) + %51 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %50, 1 + %52 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 2 + %53 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 0 + %54 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %53, i64 8, i64 %52, i64 1, i64 2, i64 2) + %55 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %34) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %39) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %43) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %47) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %51) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %55) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %56 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 4, i64 4) + %57 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, 1 + %58 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 4, i64 4) + %59 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %58, 2 + %60 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 2, i64 4) + %61 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, 1 + %62 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 2, i64 4) + %63 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, 2 + %64 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 2, i64 2) + %65 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %64, 1 + %66 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %10, i64 8, i64 4, i64 1, i64 2, i64 2) + %67 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %66, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %57) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %59) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %61) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %63) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %65) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %67) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %68 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, i64 1, i64 5) + %69 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, i64 1, i64 2) + %70 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, i64 5, i64 5) + %71 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %70, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %68) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %69) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %71) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %72 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) %73 = getelementptr inbounds i64, ptr %72, i64 0 store i64 5, ptr %73, align 4 %74 = getelementptr inbounds i64, ptr %72, i64 1 @@ -232,64 +232,64 @@ _llgo_0: store i64 7, ptr %75, align 4 %76 = getelementptr inbounds i64, ptr %72, i64 3 store i64 8, ptr %76, align 4 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %72, 0 - %78 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %77, i64 4, 1 - %79 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %78, i64 4, 2 - %80 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %79, 0 - %81 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %79, 1 - %82 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/internal/runtime.Slice" %9, ptr %80, i64 %81, i64 8) - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %82) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %83 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 3) + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %72, 0 + %78 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %77, i64 4, 1 + %79 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %78, i64 4, 2 + %80 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %79, 0 + %81 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %79, 1 + %82 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, ptr %80, i64 %81, i64 8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %82) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %83 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 3) %84 = getelementptr inbounds i8, ptr %83, i64 0 store i8 97, ptr %84, align 1 %85 = getelementptr inbounds i8, ptr %83, i64 1 store i8 98, ptr %85, align 1 %86 = getelementptr inbounds i8, ptr %83, i64 2 store i8 99, ptr %86, align 1 - %87 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %83, 0 - %88 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %87, i64 3, 1 - %89 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %88, i64 3, 2 - %90 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/internal/runtime.Slice" %89, ptr @1, i64 3, i64 1) - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %90) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %91 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %87 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %83, 0 + %88 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %87, i64 3, 1 + %89 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %88, i64 3, 2 + %90 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %89, ptr @1, i64 3, i64 1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %90) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %91 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) %92 = load ptr, ptr @_llgo_int, align 8 - %93 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %92, 0 - %94 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %93, ptr inttoptr (i64 100 to ptr), 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %94, ptr %91, align 8 - %95 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %91, align 8 + %93 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %92, 0 + %94 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %93, ptr inttoptr (i64 100 to ptr), 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %94, ptr %91, align 8 + %95 = load %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %91, align 8 %96 = ptrtoint ptr %91 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 true) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 0) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 100) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 -100) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 255) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 -100) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double 0.000000e+00) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double 1.005000e+02) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintEface"(%"github.com/goplus/llgo/internal/runtime.eface" %95) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %91) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %96) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %97 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 3) - %98 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %99 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %97, 0 - %100 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %99, i64 3, 1 - %101 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %100, i64 3, 2 - %102 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %90, 0 - %103 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %90, 1 - %104 = call i64 @"github.com/goplus/llgo/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/internal/runtime.Slice" %101, ptr %102, i64 %103, i64 1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 true) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 100) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 -100) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 255) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 -100) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double 0.000000e+00) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double 1.005000e+02) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintEface"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %95) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %91) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %96) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %97 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 3) + %98 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %99 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %97, 0 + %100 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %99, i64 3, 1 + %101 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %100, i64 3, 2 + %102 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %90, 0 + %103 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %90, 1 + %104 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %101, ptr %102, i64 %103, i64 1) store i64 %104, ptr %98, align 4 %105 = load i64, ptr %98, align 4 %106 = getelementptr inbounds i8, ptr %97, i64 0 @@ -298,19 +298,19 @@ _llgo_0: %109 = load i8, ptr %108, align 1 %110 = getelementptr inbounds i8, ptr %97, i64 2 %111 = load i8, ptr %110, align 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %105) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %105) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %112 = zext i8 %107 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %112) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %112) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %113 = zext i8 %109 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %113) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %113) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %114 = zext i8 %111 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %114) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %115 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %97, i64 1, i64 3, i64 1, i64 3, i64 3) - %116 = call i64 @"github.com/goplus/llgo/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/internal/runtime.Slice" %115, ptr @2, i64 4, i64 1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %114) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %115 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %97, i64 1, i64 3, i64 1, i64 3, i64 3) + %116 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %115, ptr @2, i64 4, i64 1) store i64 %116, ptr %98, align 4 %117 = load i64, ptr %98, align 4 %118 = getelementptr inbounds i8, ptr %97, i64 0 @@ -319,46 +319,46 @@ _llgo_0: %121 = load i8, ptr %120, align 1 %122 = getelementptr inbounds i8, ptr %97, i64 2 %123 = load i8, ptr %122, align 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %117) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %117) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %124 = zext i8 %119 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %124) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %124) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %125 = zext i8 %121 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %125) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %125) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %126 = zext i8 %123 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %126) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %127 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %126) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %127 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %128 = getelementptr inbounds { ptr }, ptr %127, i32 0, i32 0 store ptr %98, ptr %128, align 8 %129 = insertvalue { ptr, ptr } { ptr @"main.main$2", ptr undef }, ptr %127, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr @main.demo) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr @main.demo) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr @"main.main$1") - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr @main.demo) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr @main.demo) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr @"main.main$1") + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %130 = extractvalue { ptr, ptr } %129, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %130) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %131 = call ptr @"github.com/goplus/llgo/internal/runtime.NewStringIter"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %130) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %131 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewStringIter"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 7 }) br label %_llgo_1 _llgo_1: ; preds = %_llgo_2, %_llgo_0 - %132 = call { i1, i64, i32 } @"github.com/goplus/llgo/internal/runtime.StringIterNext"(ptr %131) + %132 = call { i1, i64, i32 } @"github.com/goplus/llgo/runtime/internal/runtime.StringIterNext"(ptr %131) %133 = extractvalue { i1, i64, i32 } %132, 0 br i1 %133, label %_llgo_2, label %_llgo_3 _llgo_2: ; preds = %_llgo_1 %134 = extractvalue { i1, i64, i32 } %132, 1 %135 = extractvalue { i1, i64, i32 } %132, 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %134) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %134) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %136 = sext i32 %135 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %136) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %136) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_3: ; preds = %_llgo_1 @@ -368,78 +368,78 @@ _llgo_3: ; preds = %_llgo_1 %140 = call double @main.NaN() %141 = call i1 @main.IsNaN(double %140) %142 = call i1 @main.IsNaN(double 1.000000e+00) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %137) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %138) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %139) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %141) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %142) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %143 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 7 }) - %144 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToRunes"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %143) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %144) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %145 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/internal/runtime.Slice" %143) - %146 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRunes"(%"github.com/goplus/llgo/internal/runtime.Slice" %144) - %147 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %143, 0 - %148 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %143, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %137) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %138) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %139) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %141) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %142) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %143 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 7 }) + %144 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToRunes"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %143) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %144) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %145 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %143) + %146 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRunes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %144) + %147 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %143, 0 + %148 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %143, 1 %149 = icmp sge i64 3, %148 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %149) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %149) %150 = getelementptr inbounds i8, ptr %147, i64 3 %151 = load i8, ptr %150, align 1 %152 = sext i8 %151 to i32 - %153 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRune"(i32 %152) - %154 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %144, 0 - %155 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %144, 1 + %153 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRune"(i32 %152) + %154 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %144, 0 + %155 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %144, 1 %156 = icmp sge i64 0, %155 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %156) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %156) %157 = getelementptr inbounds i32, ptr %154, i64 0 %158 = load i32, ptr %157, align 4 - %159 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRune"(i32 %158) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %145) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %146) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %153) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %159) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %160 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 3 }) - %161 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 3 }) - %162 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 3 }) + %159 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRune"(i32 %158) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %145) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %146) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %153) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %159) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %160 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }) + %161 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 }) + %162 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 }) %163 = xor i1 %162, true - %164 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 3 }) - %165 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 3 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 3 }) + %164 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringLess"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 }) + %165 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringLess"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }) %166 = xor i1 %165, true - %167 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 3 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 3 }) - %168 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 3 }) + %167 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringLess"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }) + %168 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringLess"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 }) %169 = xor i1 %168, true - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %160) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %161) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %163) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %164) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %166) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %167) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %169) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %160) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %161) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %163) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %164) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %166) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %167) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %169) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } define void @"main.main$1"() { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 2 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 2 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } @@ -448,28 +448,28 @@ _llgo_0: %1 = load { ptr }, ptr %0, align 8 %2 = extractvalue { ptr } %1, 0 %3 = load i64, ptr %2, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr, i64, i64, i64, i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr, i64, i64, i64, i64, i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringSlice"(%"github.com/goplus/llgo/internal/runtime.String", i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/internal/runtime.Slice", ptr, i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr, i64, i64) define void @"main.init$after"() { _llgo_0: @@ -478,7 +478,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %2, ptr @_llgo_int, align 8 br label %_llgo_2 @@ -486,38 +486,38 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) -declare void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double) -declare void @"github.com/goplus/llgo/internal/runtime.PrintEface"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintEface"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr) -declare i64 @"github.com/goplus/llgo/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/internal/runtime.Slice", ptr, i64, i64) +declare i64 @"github.com/goplus/llgo/runtime/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.NewStringIter"(%"github.com/goplus/llgo/internal/runtime.String") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewStringIter"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare { i1, i64, i32 } @"github.com/goplus/llgo/internal/runtime.StringIterNext"(ptr) +declare { i1, i64, i32 } @"github.com/goplus/llgo/runtime/internal/runtime.StringIterNext"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String") +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToRunes"(%"github.com/goplus/llgo/internal/runtime.String") +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToRunes"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/internal/runtime.Slice") +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRunes"(%"github.com/goplus/llgo/internal/runtime.Slice") +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRunes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRune"(i32) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRune"(i32) -declare i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringLess"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") diff --git a/compiler/cl/_testrt/callback/out.ll b/compiler/cl/_testrt/callback/out.ll index 1ced55d7..0838679f 100644 --- a/compiler/cl/_testrt/callback/out.ll +++ b/compiler/cl/_testrt/callback/out.ll @@ -32,7 +32,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @main.callback(ptr @0, { ptr, ptr } { ptr @__llgo_stub.main.print, ptr null }) call void @main.callback(ptr @1, { ptr, ptr } { ptr @__llgo_stub.main.print, ptr null }) @@ -45,7 +45,7 @@ _llgo_0: ret void } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define linkonce void @__llgo_stub.main.print(ptr %0, ptr %1) { _llgo_0: diff --git a/compiler/cl/_testrt/cast/out.ll b/compiler/cl/_testrt/cast/out.ll index b6575ed9..e8ae001f 100644 --- a/compiler/cl/_testrt/cast/out.ll +++ b/compiler/cl/_testrt/cast/out.ll @@ -1,8 +1,8 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } @"main.init$guard" = global i1 false, align 1 @0 = private unnamed_addr constant [5 x i8] c"error", align 1 @@ -18,11 +18,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -37,11 +37,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -56,11 +56,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -75,11 +75,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -94,11 +94,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -113,11 +113,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -132,11 +132,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -151,11 +151,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -170,11 +170,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -189,11 +189,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -208,11 +208,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -227,11 +227,11 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_0 @@ -241,11 +241,11 @@ _llgo_2: ; preds = %_llgo_0 _llgo_3: ; preds = %_llgo_2 %10 = load ptr, ptr @_llgo_string, align 8 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %11, align 8 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %10, 0 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, ptr %11, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %13) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %11, align 8 + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %10, 0 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %12, ptr %11, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %13) unreachable _llgo_4: ; preds = %_llgo_2 @@ -270,7 +270,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @main.cvt64to8(i64 0, i8 0) call void @main.cvt64to8(i64 127, i8 127) @@ -334,7 +334,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %2, ptr @_llgo_string, align 8 br label %_llgo_2 @@ -342,10 +342,10 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testrt/clear/out.ll b/compiler/cl/_testrt/clear/out.ll index 9af4cc31..9ae1a26b 100644 --- a/compiler/cl/_testrt/clear/out.ll +++ b/compiler/cl/_testrt/clear/out.ll @@ -1,11 +1,11 @@ -; ModuleID = 'github.com/goplus/llgo/cl/_testrt/clear' -source_filename = "github.com/goplus/llgo/cl/_testrt/clear" +; ModuleID = 'github.com/goplus/llgo/compiler/cl/_testrt/clear' +source_filename = "github.com/goplus/llgo/compiler/cl/_testrt/clear" -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } -@"github.com/goplus/llgo/cl/_testrt/clear.init$guard" = global i1 false, align 1 +@"github.com/goplus/llgo/compiler/cl/_testrt/clear.init$guard" = global i1 false, align 1 @_llgo_int = linkonce global ptr null, align 8 @"[]_llgo_int" = linkonce global ptr null, align 8 @"map[_llgo_int]_llgo_int" = linkonce global ptr null, align 8 @@ -13,11 +13,11 @@ source_filename = "github.com/goplus/llgo/cl/_testrt/clear" @1 = private unnamed_addr constant [4 x i8] c"keys", align 1 @2 = private unnamed_addr constant [5 x i8] c"elems", align 1 @3 = private unnamed_addr constant [8 x i8] c"overflow", align 1 -@4 = private unnamed_addr constant [39 x i8] c"github.com/goplus/llgo/cl/_testrt/clear", align 1 +@4 = private unnamed_addr constant [48 x i8] c"github.com/goplus/llgo/compiler/cl/_testrt/clear", align 1 -define void @"github.com/goplus/llgo/cl/_testrt/clear.Clear"() { +define void @"github.com/goplus/llgo/compiler/cl/_testrt/clear.Clear"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) %1 = getelementptr inbounds i64, ptr %0, i64 0 store i64 1, ptr %1, align 4 %2 = getelementptr inbounds i64, ptr %0, i64 1 @@ -26,67 +26,67 @@ _llgo_0: store i64 3, ptr %3, align 4 %4 = getelementptr inbounds i64, ptr %0, i64 3 store i64 4, ptr %4, align 4 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %0, 0 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %5, i64 4, 1 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %6, i64 4, 2 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %0, 0 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %5, i64 4, 1 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6, i64 4, 2 %8 = load ptr, ptr @_llgo_int, align 8 %9 = load ptr, ptr @"[]_llgo_int", align 8 - call void @"github.com/goplus/llgo/internal/runtime.SliceClear"(ptr %9, %"github.com/goplus/llgo/internal/runtime.Slice" %7) - call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %7) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SliceClear"(ptr %9, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %10 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %10, i64 4) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %10, i64 4) %12 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8 - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 1, ptr %13, align 4 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %12, ptr %11, ptr %13) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %12, ptr %11, ptr %13) store i64 1, ptr %14, align 4 %15 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8 - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 2, ptr %16, align 4 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %15, ptr %11, ptr %16) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %15, ptr %11, ptr %16) store i64 2, ptr %17, align 4 %18 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8 - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 3, ptr %19, align 4 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %18, ptr %11, ptr %19) + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %18, ptr %11, ptr %19) store i64 3, ptr %20, align 4 %21 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8 - %22 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %22 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 4, ptr %22, align 4 - %23 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %21, ptr %11, ptr %22) + %23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %21, ptr %11, ptr %22) store i64 4, ptr %23, align 4 %24 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8 - call void @"github.com/goplus/llgo/internal/runtime.MapClear"(ptr %24, ptr %11) - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %11) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.MapClear"(ptr %24, ptr %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } -define void @"github.com/goplus/llgo/cl/_testrt/clear.init"() { +define void @"github.com/goplus/llgo/compiler/cl/_testrt/clear.init"() { _llgo_0: - %0 = load i1, ptr @"github.com/goplus/llgo/cl/_testrt/clear.init$guard", align 1 + %0 = load i1, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/clear.init$guard", align 1 br i1 %0, label %_llgo_2, label %_llgo_1 _llgo_1: ; preds = %_llgo_0 - store i1 true, ptr @"github.com/goplus/llgo/cl/_testrt/clear.init$guard", align 1 - call void @"github.com/goplus/llgo/cl/_testrt/clear.init$after"() + store i1 true, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/clear.init$guard", align 1 + call void @"github.com/goplus/llgo/compiler/cl/_testrt/clear.init$after"() br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -define void @"github.com/goplus/llgo/cl/_testrt/clear.init$after"() { +define void @"github.com/goplus/llgo/compiler/cl/_testrt/clear.init$after"() { _llgo_0: %0 = load ptr, ptr @_llgo_int, align 8 %1 = icmp eq ptr %0, null br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %2, ptr @_llgo_int, align 8 br label %_llgo_2 @@ -96,8 +96,8 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %5) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %5) store ptr %6, ptr @"[]_llgo_int", align 8 br label %_llgo_4 @@ -107,34 +107,34 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %8, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %11) - %13 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }, ptr %12, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %14) - %16 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, ptr %15, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %17) - %19 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 5 }, ptr %18, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) - %21 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 8 }, ptr %20, i64 136, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %22 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %23 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %22, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %13, ptr %23, align 8 - %24 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %22, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %16, ptr %24, align 8 - %25 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %22, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %19, ptr %25, align 8 - %26 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %22, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %21, ptr %26, align 8 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %22, 0 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %27, i64 4, 1 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %28, i64 4, 2 - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 39 }, i64 144, %"github.com/goplus/llgo/internal/runtime.Slice" %29) - %31 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %9, ptr %10, ptr %30, i64 4) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %31) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %11) + %13 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }, ptr %12, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %14) + %16 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, ptr %15, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %17) + %19 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 5 }, ptr %18, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) + %21 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 8 }, ptr %20, i64 136, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %22 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %23 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %22, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %13, ptr %23, align 8 + %24 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %22, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %16, ptr %24, align 8 + %25 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %22, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %19, ptr %25, align 8 + %26 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %22, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %21, ptr %26, align 8 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %22, 0 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %27, i64 4, 1 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %28, i64 4, 2 + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 48 }, i64 144, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29) + %31 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %9, ptr %10, ptr %30, i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %31) store ptr %31, ptr @"map[_llgo_int]_llgo_int", align 8 br label %_llgo_6 @@ -142,32 +142,32 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.SliceClear"(ptr, %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SliceClear"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr, ptr, ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr, ptr, ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr, ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr, ptr, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.MapClear"(ptr, ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.MapClear"(ptr, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr) diff --git a/compiler/cl/_testrt/closure/out.ll b/compiler/cl/_testrt/closure/out.ll index 47e24276..ca7a5630 100644 --- a/compiler/cl/_testrt/closure/out.ll +++ b/compiler/cl/_testrt/closure/out.ll @@ -24,12 +24,12 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @"main.main$1"(i64 100, i64 200) - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) store { ptr, ptr } { ptr @"__llgo_stub.main.main$2", ptr null }, ptr %2, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %4 = getelementptr inbounds { ptr }, ptr %3, i32 0, i32 0 store ptr %2, ptr %4, align 8 %5 = insertvalue { ptr, ptr } { ptr @"main.main$3", ptr undef }, ptr %3, 1 @@ -62,9 +62,9 @@ _llgo_0: ret void } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) define linkonce void @"__llgo_stub.main.main$2"(ptr %0, i64 %1, i64 %2) { _llgo_0: @@ -72,6 +72,6 @@ _llgo_0: ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testrt/closureconv/out.ll b/compiler/cl/_testrt/closureconv/out.ll index 86fc07ff..90b316cb 100644 --- a/compiler/cl/_testrt/closureconv/out.ll +++ b/compiler/cl/_testrt/closureconv/out.ll @@ -25,10 +25,10 @@ _llgo_0: define %main.Func @main.demo1(i64 %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %2 = getelementptr inbounds %main.Call, ptr %1, i32 0, i32 1 store i64 %0, ptr %2, align 4 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %4 = getelementptr inbounds { ptr }, ptr %3, i32 0, i32 0 store ptr %1, ptr %4, align 8 %5 = insertvalue { ptr, ptr } { ptr @"main.add$bound", ptr undef }, ptr %3, 1 @@ -44,8 +44,8 @@ _llgo_0: define %main.Func @main.demo2() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %2 = getelementptr inbounds { ptr }, ptr %1, i32 0, i32 0 store ptr %0, ptr %2, align 8 %3 = insertvalue { ptr, ptr } { ptr @"main.add$bound", ptr undef }, ptr %1, 1 @@ -73,9 +73,9 @@ _llgo_0: define %main.Func @main.demo5(i64 %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) store i64 %0, ptr %1, align 4 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %3 = getelementptr inbounds { ptr }, ptr %2, i32 0, i32 0 store ptr %1, ptr %3, align 8 %4 = insertvalue { ptr, ptr } { ptr @"main.demo5$1", ptr undef }, ptr %2, 1 @@ -112,38 +112,38 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call %main.Func @main.demo1(i64 1) %3 = extractvalue %main.Func %2, 1 %4 = extractvalue %main.Func %2, 0 %5 = call i64 %4(ptr %3, i64 99, i64 200) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %5) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %5) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %6 = call %main.Func @main.demo2() %7 = extractvalue %main.Func %6, 1 %8 = extractvalue %main.Func %6, 0 %9 = call i64 %8(ptr %7, i64 100, i64 200) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %10 = call %main.Func @main.demo3() %11 = extractvalue %main.Func %10, 1 %12 = extractvalue %main.Func %10, 0 %13 = call i64 %12(ptr %11, i64 100, i64 200) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %13) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %13) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %14 = call %main.Func @main.demo4() %15 = extractvalue %main.Func %14, 1 %16 = extractvalue %main.Func %14, 0 %17 = call i64 %16(ptr %15, i64 100, i64 200) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %17) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %17) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %18 = call %main.Func @main.demo5(i64 1) %19 = extractvalue %main.Func %18, 1 %20 = extractvalue %main.Func %18, 0 %21 = call i64 %20(ptr %19, i64 99, i64 200) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %21) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %21) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %22 = call %main.Func @main.demo5(i64 1) %23 = alloca { ptr, ptr }, align 8 store %main.Func %22, ptr %23, align 8 @@ -151,18 +151,18 @@ _llgo_0: %25 = extractvalue { ptr, ptr } %24, 1 %26 = extractvalue { ptr, ptr } %24, 0 %27 = call i64 %26(ptr %25, i64 99, i64 200) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %27) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %27) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %28 = call %main.Func @main.demo5(i64 1) %29 = extractvalue %main.Func %28, 1 %30 = extractvalue %main.Func %28, 0 %31 = call i64 %30(ptr %29, i64 99, i64 200) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %31) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %31) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) define i64 @"main.add$bound"(ptr %0, i64 %1, i64 %2) { _llgo_0: @@ -172,7 +172,7 @@ _llgo_0: ret i64 %5 } -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) define linkonce i64 @__llgo_stub.main.add(ptr %0, i64 %1, i64 %2) { _llgo_0: @@ -186,8 +186,8 @@ _llgo_0: ret i64 %3 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) diff --git a/compiler/cl/_testrt/closureiface/out.ll b/compiler/cl/_testrt/closureiface/out.ll index f114e760..bfcfb478 100644 --- a/compiler/cl/_testrt/closureiface/out.ll +++ b/compiler/cl/_testrt/closureiface/out.ll @@ -1,10 +1,10 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -37,11 +37,11 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) store i64 200, ptr %2, align 4 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %4 = getelementptr inbounds { ptr }, ptr %3, i32 0, i32 0 store ptr %2, ptr %4, align 8 %5 = insertvalue { ptr, ptr } { ptr @"main.main$1", ptr undef }, ptr %3, 1 @@ -49,34 +49,34 @@ _llgo_0: %7 = load ptr, ptr @"_llgo_func$ekGNsrYBSzltfAjxbl6T8H6Yq8j16wzqS3nDj2xxGMU", align 8 %8 = load ptr, ptr @_llgo_Pointer, align 8 %9 = load ptr, ptr @"main.struct$QIHBTaw1IFobr8yvWpq-2AJFm3xBNhdW_aNBicqUBGk", align 8 - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store { ptr, ptr } %5, ptr %10, align 8 - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %9, 0 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %11, ptr %10, 1 - %13 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, 0 + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %9, 0 + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %11, ptr %10, 1 + %13 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %12, 0 %14 = load ptr, ptr @"main.struct$QIHBTaw1IFobr8yvWpq-2AJFm3xBNhdW_aNBicqUBGk", align 8 %15 = icmp eq ptr %13, %14 br i1 %15, label %_llgo_3, label %_llgo_4 _llgo_1: ; preds = %_llgo_5 %16 = load ptr, ptr @_llgo_string, align 8 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 5 }, ptr %17, align 8 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %16, 0 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %18, ptr %17, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %19) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 5 }, ptr %17, align 8 + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %16, 0 + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %18, ptr %17, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %19) unreachable _llgo_2: ; preds = %_llgo_5 %20 = extractvalue { ptr, ptr } %28, 1 %21 = extractvalue { ptr, ptr } %28, 0 %22 = call i64 %21(ptr %20, i64 100) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %22) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %22) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 _llgo_3: ; preds = %_llgo_0 - %23 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, 1 + %23 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %12, 1 %24 = load { ptr, ptr }, ptr %23, align 8 %25 = insertvalue { { ptr, ptr }, i1 } undef, { ptr, ptr } %24, 0 %26 = insertvalue { { ptr, ptr }, i1 } %25, i1 true, 1 @@ -101,11 +101,11 @@ _llgo_0: ret i64 %5 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) define void @"main.init$after"() { _llgo_0: @@ -114,7 +114,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %2, ptr @_llgo_int, align 8 br label %_llgo_2 @@ -126,20 +126,20 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %6, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %8 = getelementptr ptr, ptr %7, i64 0 store ptr %3, ptr %8, align 8 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %7, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, i64 1, 1 - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %10, i64 1, 2 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %7, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, i64 1, 1 + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10, i64 1, 2 + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %13 = getelementptr ptr, ptr %12, i64 0 store ptr %4, ptr %13, align 8 - %14 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %12, 0 - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %14, i64 1, 1 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %15, i64 1, 2 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %11, %"github.com/goplus/llgo/internal/runtime.Slice" %16, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %17) + %14 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %12, 0 + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %14, i64 1, 1 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %15, i64 1, 2 + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %11, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %16, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %17) store ptr %17, ptr @"_llgo_func$ekGNsrYBSzltfAjxbl6T8H6Yq8j16wzqS3nDj2xxGMU", align 8 br label %_llgo_4 @@ -149,46 +149,46 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %19, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %20) + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %20) store ptr %20, ptr @_llgo_Pointer, align 8 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 %21 = load ptr, ptr @_llgo_int, align 8 %22 = load ptr, ptr @_llgo_int, align 8 - %23 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %24 = getelementptr ptr, ptr %23, i64 0 store ptr %21, ptr %24, align 8 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %23, 0 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %25, i64 1, 1 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %26, i64 1, 2 - %28 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %23, 0 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, i64 1, 1 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26, i64 1, 2 + %28 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %29 = getelementptr ptr, ptr %28, i64 0 store ptr %22, ptr %29, align 8 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %28, 0 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %30, i64 1, 1 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %31, i64 1, 2 - %33 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %27, %"github.com/goplus/llgo/internal/runtime.Slice" %32, i1 false) - %34 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 2 }, ptr %33, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %36 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }, ptr %35, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %37 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %38 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %37, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %34, ptr %38, align 8 - %39 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %37, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %36, ptr %39, align 8 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %37, 0 - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %40, i64 2, 1 - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %41, i64 2, 2 - %43 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %42) + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %28, 0 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30, i64 1, 1 + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %31, i64 1, 2 + %33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %27, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %32, i1 false) + %34 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 2 }, ptr %33, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %36 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %35, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %37 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %38 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %37, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %34, ptr %38, align 8 + %39 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %37, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %36, ptr %39, align 8 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %37, 0 + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %40, i64 2, 1 + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %41, i64 2, 2 + %43 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %42) store ptr %43, ptr @"main.struct$QIHBTaw1IFobr8yvWpq-2AJFm3xBNhdW_aNBicqUBGk", align 8 %44 = load ptr, ptr @_llgo_string, align 8 %45 = icmp eq ptr %44, null br i1 %45, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %46 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %46 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %46, ptr @_llgo_string, align 8 br label %_llgo_8 @@ -196,18 +196,18 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") diff --git a/compiler/cl/_testrt/complex/out.ll b/compiler/cl/_testrt/complex/out.ll index 91c4d5b3..f2a5d2f8 100644 --- a/compiler/cl/_testrt/complex/out.ll +++ b/compiler/cl/_testrt/complex/out.ll @@ -22,45 +22,45 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double 1.000000e+00) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double 2.000000e+00) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintComplex"({ double, double } { double -1.000000e+00, double -2.000000e+00 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintComplex"({ double, double } { double 4.000000e+00, double 6.000000e+00 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintComplex"({ double, double } { double -2.000000e+00, double -2.000000e+00 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintComplex"({ double, double } { double -5.000000e+00, double 1.000000e+01 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintComplex"({ double, double } { double 4.400000e-01, double -8.000000e-02 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintComplex"({ double, double } { double 0x7FF0000000000000, double 0x7FF0000000000000 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintComplex"({ double, double } { double 0x7FF8000000000000, double 0x7FF8000000000000 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 true) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 false) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 false) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 true) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 true) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double 1.000000e+00) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double 2.000000e+00) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintComplex"({ double, double } { double -1.000000e+00, double -2.000000e+00 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintComplex"({ double, double } { double 4.000000e+00, double 6.000000e+00 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintComplex"({ double, double } { double -2.000000e+00, double -2.000000e+00 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintComplex"({ double, double } { double -5.000000e+00, double 1.000000e+01 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintComplex"({ double, double } { double 4.400000e-01, double -8.000000e-02 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintComplex"({ double, double } { double 0x7FF0000000000000, double 0x7FF0000000000000 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintComplex"({ double, double } { double 0x7FF8000000000000, double 0x7FF8000000000000 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 true) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 true) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 true) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintComplex"({ double, double }) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintComplex"({ double, double }) -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) diff --git a/compiler/cl/_testrt/concat/out.ll b/compiler/cl/_testrt/concat/out.ll index e1a6434d..9885d753 100644 --- a/compiler/cl/_testrt/concat/out.ll +++ b/compiler/cl/_testrt/concat/out.ll @@ -1,8 +1,8 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @0 = private unnamed_addr constant [3 x i8] c"...", align 1 @@ -12,39 +12,39 @@ source_filename = "main" @2 = private unnamed_addr constant [1 x i8] c" ", align 1 @3 = private unnamed_addr constant [5 x i8] c"World", align 1 -define %"github.com/goplus/llgo/internal/runtime.String" @main.concat(%"github.com/goplus/llgo/internal/runtime.Slice" %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.String" @main.concat(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 br label %_llgo_1 _llgo_1: ; preds = %_llgo_2, %_llgo_0 - %2 = phi %"github.com/goplus/llgo/internal/runtime.String" [ zeroinitializer, %_llgo_0 ], [ %13, %_llgo_2 ] + %2 = phi %"github.com/goplus/llgo/runtime/internal/runtime.String" [ zeroinitializer, %_llgo_0 ], [ %13, %_llgo_2 ] %3 = phi i64 [ -1, %_llgo_0 ], [ %4, %_llgo_2 ] %4 = add i64 %3, 1 %5 = icmp slt i64 %4, %1 br i1 %5, label %_llgo_2, label %_llgo_3 _llgo_2: ; preds = %_llgo_1 - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 0 - %7 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 0 + %7 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 %8 = icmp slt i64 %4, 0 %9 = icmp sge i64 %4, %7 %10 = or i1 %9, %8 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %10) - %11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %6, i64 %4 - %12 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %11, align 8 - %13 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringCat"(%"github.com/goplus/llgo/internal/runtime.String" %2, %"github.com/goplus/llgo/internal/runtime.String" %12) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %10) + %11 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %6, i64 %4 + %12 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %11, align 8 + %13 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringCat"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %2, %"github.com/goplus/llgo/runtime/internal/runtime.String" %12) br label %_llgo_1 _llgo_3: ; preds = %_llgo_1 - ret %"github.com/goplus/llgo/internal/runtime.String" %2 + ret %"github.com/goplus/llgo/runtime/internal/runtime.String" %2 } -define %"github.com/goplus/llgo/internal/runtime.String" @main.info(%"github.com/goplus/llgo/internal/runtime.String" %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.String" @main.info(%"github.com/goplus/llgo/runtime/internal/runtime.String" %0) { _llgo_0: - %1 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringCat"(%"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.String" %0) - %2 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringCat"(%"github.com/goplus/llgo/internal/runtime.String" %1, %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 3 }) - ret %"github.com/goplus/llgo/internal/runtime.String" %2 + %1 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringCat"(%"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.String" %0) + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringCat"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %1, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 3 }) + ret %"github.com/goplus/llgo/runtime/internal/runtime.String" %2 } define void @main.init() { @@ -64,32 +64,32 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 48) - %3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i64 0 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }, ptr %3, align 8 - %4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i64 1 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 1 }, ptr %4, align 8 - %5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i64 2 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 5 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %2, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %6, i64 3, 1 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %7, i64 3, 2 - %9 = call %"github.com/goplus/llgo/internal/runtime.String" @main.concat(%"github.com/goplus/llgo/internal/runtime.Slice" %8) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 48) + %3 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %2, i64 0 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %3, align 8 + %4 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %2, i64 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 1 }, ptr %4, align 8 + %5 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %2, i64 2 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 5 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %2, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6, i64 3, 1 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, i64 3, 2 + %9 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @main.concat(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringCat"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringCat"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) diff --git a/compiler/cl/_testrt/constuptr/out.ll b/compiler/cl/_testrt/constuptr/out.ll index 663ef1ec..615063b5 100644 --- a/compiler/cl/_testrt/constuptr/out.ll +++ b/compiler/cl/_testrt/constuptr/out.ll @@ -22,15 +22,15 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr inttoptr (i64 100 to ptr)) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr inttoptr (i64 100 to ptr)) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) diff --git a/compiler/cl/_testrt/cstr/out.ll b/compiler/cl/_testrt/cstr/out.ll index 7c35b232..ffb971e3 100644 --- a/compiler/cl/_testrt/cstr/out.ll +++ b/compiler/cl/_testrt/cstr/out.ll @@ -23,12 +23,12 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void (ptr, ...) @printf(ptr @0) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare void @printf(ptr, ...) diff --git a/compiler/cl/_testrt/cvar/out.ll b/compiler/cl/_testrt/cvar/out.ll index f603dd10..e6a607c9 100644 --- a/compiler/cl/_testrt/cvar/out.ll +++ b/compiler/cl/_testrt/cvar/out.ll @@ -24,11 +24,11 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load { [16 x i8], [2 x ptr] }, ptr @_bar_x, align 8 %3 = load { [16 x i8] }, ptr @_bar_y, align 1 ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testrt/eface/out.ll b/compiler/cl/_testrt/eface/out.ll index a08020ec..a3787a2d 100644 --- a/compiler/cl/_testrt/eface/out.ll +++ b/compiler/cl/_testrt/eface/out.ll @@ -1,14 +1,14 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } %main.eface = type { ptr, ptr } -%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr } -%"github.com/goplus/llgo/internal/abi.UncommonType" = type { %"github.com/goplus/llgo/internal/runtime.String", i16, i16, i32 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } +%"github.com/goplus/llgo/runtime/abi.UncommonType" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", i16, i16, i32 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } @"main.init$guard" = global i1 false, align 1 @0 = private unnamed_addr constant [6 x i8] c"invoke", align 1 @@ -51,80 +51,80 @@ source_filename = "main" define void @"main.(*T).Invoke"(ptr %0) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 6 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 6 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } -define void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %0) { +define void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.eface" %0, ptr %1, align 8 + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, ptr %1, align 8 %2 = getelementptr inbounds %main.eface, ptr %1, i32 0, i32 0 %3 = load ptr, ptr %2, align 8 - call void @main.dumpTyp(ptr %3, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer) + call void @main.dumpTyp(ptr %3, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer) ret void } -define void @main.dumpTyp(ptr %0, %"github.com/goplus/llgo/internal/runtime.String" %1) { +define void @main.dumpTyp(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.String" %1) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %1) - %2 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*Type).String"(ptr %0) - %3 = call i64 @"github.com/goplus/llgo/internal/abi.(*Type).Kind"(ptr %0) - %4 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %0, i32 0, i32 0 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %1) + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*Type).String"(ptr %0) + %3 = call i64 @"github.com/goplus/llgo/runtime/abi.(*Type).Kind"(ptr %0) + %4 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %0, i32 0, i32 0 %5 = load i64, ptr %4, align 4 - %6 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %0, i32 0, i32 1 + %6 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %0, i32 0, i32 1 %7 = load i64, ptr %6, align 4 - %8 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %0, i32 0, i32 2 + %8 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %0, i32 0, i32 2 %9 = load i32, ptr %8, align 4 - %10 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %0, i32 0, i32 3 + %10 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %0, i32 0, i32 3 %11 = load i8, ptr %10, align 1 - %12 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %0, i32 0, i32 4 + %12 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %0, i32 0, i32 4 %13 = load i8, ptr %12, align 1 - %14 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %0, i32 0, i32 10 + %14 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %0, i32 0, i32 10 %15 = load ptr, ptr %14, align 8 - %16 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Uncommon"(ptr %0) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %5) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %7) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + %16 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Uncommon"(ptr %0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %5) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %7) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %17 = zext i32 %9 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %17) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %17) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %18 = zext i8 %11 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %18) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %18) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %19 = zext i8 %13 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %19) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %15) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %16) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %20 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Elem"(ptr %0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %19) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %15) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %16) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %20 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Elem"(ptr %0) %21 = icmp ne ptr %20, null br i1 %21, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %22 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Elem"(ptr %0) - %23 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringCat"(%"github.com/goplus/llgo/internal/runtime.String" %1, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 7 }) - call void @main.dumpTyp(ptr %22, %"github.com/goplus/llgo/internal/runtime.String" %23) + %22 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Elem"(ptr %0) + %23 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringCat"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %1, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 7 }) + call void @main.dumpTyp(ptr %22, %"github.com/goplus/llgo/runtime/internal/runtime.String" %23) br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 - %24 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Uncommon"(ptr %0) + %24 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Uncommon"(ptr %0) %25 = icmp ne ptr %24, null br i1 %25, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %26 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Uncommon"(ptr %0) - %27 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringCat"(%"github.com/goplus/llgo/internal/runtime.String" %1, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 9 }) - call void @main.dumpUncommon(ptr %26, %"github.com/goplus/llgo/internal/runtime.String" %27) - %28 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %0, i32 0, i32 10 + %26 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Uncommon"(ptr %0) + %27 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringCat"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %1, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 9 }) + call void @main.dumpUncommon(ptr %26, %"github.com/goplus/llgo/runtime/internal/runtime.String" %27) + %28 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %0, i32 0, i32 10 %29 = load ptr, ptr %28, align 8 %30 = icmp ne ptr %29, null br i1 %30, label %_llgo_5, label %_llgo_4 @@ -133,31 +133,31 @@ _llgo_4: ; preds = %_llgo_5, %_llgo_3, ret void _llgo_5: ; preds = %_llgo_3 - %31 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %0, i32 0, i32 10 + %31 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %0, i32 0, i32 10 %32 = load ptr, ptr %31, align 8 - %33 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Uncommon"(ptr %32) - %34 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringCat"(%"github.com/goplus/llgo/internal/runtime.String" %1, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 9 }) - call void @main.dumpUncommon(ptr %33, %"github.com/goplus/llgo/internal/runtime.String" %34) + %33 = call ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Uncommon"(ptr %32) + %34 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringCat"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %1, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 9 }) + call void @main.dumpUncommon(ptr %33, %"github.com/goplus/llgo/runtime/internal/runtime.String" %34) br label %_llgo_4 } -define void @main.dumpUncommon(ptr %0, %"github.com/goplus/llgo/internal/runtime.String" %1) { +define void @main.dumpUncommon(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.String" %1) { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %1) - %2 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.UncommonType", ptr %0, i32 0, i32 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8 - %4 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.UncommonType", ptr %0, i32 0, i32 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %1) + %2 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.UncommonType", ptr %0, i32 0, i32 0 + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %2, align 8 + %4 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.UncommonType", ptr %0, i32 0, i32 1 %5 = load i16, ptr %4, align 2 - %6 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.UncommonType", ptr %0, i32 0, i32 2 + %6 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.UncommonType", ptr %0, i32 0, i32 2 %7 = load i16, ptr %6, align 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %8 = zext i16 %5 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %8) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %9 = zext i16 %7 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } @@ -168,7 +168,7 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 - call void @"github.com/goplus/llgo/internal/abi.init"() + call void @"github.com/goplus/llgo/runtime/abi.init"() call void @"main.init$after"() br label %_llgo_2 @@ -180,110 +180,110 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load ptr, ptr @_llgo_bool, align 8 - %3 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %2, 0 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %3, ptr inttoptr (i64 -1 to ptr), 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %4) + %3 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %2, 0 + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %3, ptr inttoptr (i64 -1 to ptr), 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %4) %5 = load ptr, ptr @_llgo_int, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %5, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %5, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) %8 = load ptr, ptr @_llgo_int8, align 8 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %8, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %10) + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %8, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %10) %11 = load ptr, ptr @_llgo_int16, align 8 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %11, 0 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %13) + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %11, 0 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %12, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %13) %14 = load ptr, ptr @_llgo_int32, align 8 - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %14, 0 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %15, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %16) + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %14, 0 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %15, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %16) %17 = load ptr, ptr @_llgo_int64, align 8 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %17, 0 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %18, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %19) + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %17, 0 + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %18, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %19) %20 = load ptr, ptr @_llgo_uint, align 8 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %20, 0 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %21, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %22) + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %20, 0 + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %21, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %22) %23 = load ptr, ptr @_llgo_uint8, align 8 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %23, 0 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %24, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %25) + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %23, 0 + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %24, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %25) %26 = load ptr, ptr @_llgo_uint16, align 8 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %26, 0 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %27, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %28) + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %26, 0 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %27, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %28) %29 = load ptr, ptr @_llgo_uint32, align 8 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %29, 0 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %30, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %31) + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %29, 0 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %30, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %31) %32 = load ptr, ptr @_llgo_uint64, align 8 - %33 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %32, 0 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %33, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %34) + %33 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %32, 0 + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %33, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %34) %35 = load ptr, ptr @_llgo_uintptr, align 8 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %35, 0 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %36, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %37) + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %35, 0 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %36, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %37) %38 = load ptr, ptr @_llgo_float32, align 8 - %39 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %38, 0 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %39, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %40) + %39 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %38, 0 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %39, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %40) %41 = load ptr, ptr @_llgo_float64, align 8 - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %41, 0 - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %42, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %43) + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %41, 0 + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %42, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %43) %44 = load ptr, ptr @"[10]_llgo_int", align 8 - %45 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) + %45 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) store [10 x i64] zeroinitializer, ptr %45, align 4 - %46 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %44, 0 - %47 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %46, ptr %45, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %47) + %46 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %44, 0 + %47 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %46, ptr %45, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %47) %48 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 %49 = load ptr, ptr @_llgo_Pointer, align 8 %50 = load ptr, ptr @"main.struct$b7Su1hWaFih-M0M9hMk6nO_RD1K_GQu5WjIXQp6Q2e8", align 8 - %51 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %51 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store { ptr, ptr } { ptr @"__llgo_stub.main.main$1", ptr null }, ptr %51, align 8 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %50, 0 - %53 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %52, ptr %51, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %53) + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %50, 0 + %53 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %52, ptr %51, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %53) %54 = load ptr, ptr @"*_llgo_int", align 8 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %54, 0 - %56 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %55, ptr null, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %56) - %57 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 0) - %58 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %57, 0 - %59 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %58, i64 0, 1 - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %59, i64 0, 2 + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %54, 0 + %56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %55, ptr null, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %56) + %57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 0) + %58 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %57, 0 + %59 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %58, i64 0, 1 + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %59, i64 0, 2 %61 = load ptr, ptr @"[]_llgo_int", align 8 - %62 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - store %"github.com/goplus/llgo/internal/runtime.Slice" %60, ptr %62, align 8 - %63 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %61, 0 - %64 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %63, ptr %62, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %64) + %62 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + store %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, ptr %62, align 8 + %63 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %61, 0 + %64 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %63, ptr %62, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %64) %65 = load ptr, ptr @_llgo_string, align 8 - %66 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 5 }, ptr %66, align 8 - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %65, 0 - %68 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %67, ptr %66, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %68) + %66 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 5 }, ptr %66, align 8 + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %65, 0 + %68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %67, ptr %66, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %68) %69 = load ptr, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8 - %70 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) + %70 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) store { i8, i64, i64 } zeroinitializer, ptr %70, align 4 - %71 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %69, 0 - %72 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %71, ptr %70, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %72) + %71 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %69, 0 + %72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %71, ptr %70, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %72) %73 = load ptr, ptr @_llgo_main.T, align 8 - %74 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, ptr %74, align 8 - %75 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %73, 0 - %76 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %75, ptr %74, 1 - call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %76) + %74 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, ptr %74, align 8 + %75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %73, 0 + %76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %75, ptr %74, 1 + call void @main.dump(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %76) ret i32 0 } @@ -292,29 +292,29 @@ _llgo_0: ret void } -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/abi.(*Type).String"(ptr) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/abi.(*Type).String"(ptr) -declare i64 @"github.com/goplus/llgo/internal/abi.(*Type).Kind"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/abi.(*Type).Kind"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*Type).Uncommon"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Uncommon"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr) -declare ptr @"github.com/goplus/llgo/internal/abi.(*Type).Elem"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/abi.(*Type).Elem"(ptr) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringCat"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringCat"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/abi.init"() +declare void @"github.com/goplus/llgo/runtime/abi.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: @@ -323,7 +323,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 33) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 33) store ptr %2, ptr @_llgo_bool, align 8 br label %_llgo_2 @@ -333,7 +333,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %5, ptr @_llgo_int, align 8 br label %_llgo_4 @@ -343,7 +343,7 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %7, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 35) store ptr %8, ptr @_llgo_int8, align 8 br label %_llgo_6 @@ -353,7 +353,7 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 br i1 %10, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 36) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 36) store ptr %11, ptr @_llgo_int16, align 8 br label %_llgo_8 @@ -363,7 +363,7 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 br i1 %13, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 37) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 37) store ptr %14, ptr @_llgo_int32, align 8 br label %_llgo_10 @@ -373,7 +373,7 @@ _llgo_10: ; preds = %_llgo_9, %_llgo_8 br i1 %16, label %_llgo_11, label %_llgo_12 _llgo_11: ; preds = %_llgo_10 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 38) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 38) store ptr %17, ptr @_llgo_int64, align 8 br label %_llgo_12 @@ -383,7 +383,7 @@ _llgo_12: ; preds = %_llgo_11, %_llgo_10 br i1 %19, label %_llgo_13, label %_llgo_14 _llgo_13: ; preds = %_llgo_12 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 39) + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 39) store ptr %20, ptr @_llgo_uint, align 8 br label %_llgo_14 @@ -393,7 +393,7 @@ _llgo_14: ; preds = %_llgo_13, %_llgo_12 br i1 %22, label %_llgo_15, label %_llgo_16 _llgo_15: ; preds = %_llgo_14 - %23 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) + %23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) store ptr %23, ptr @_llgo_uint8, align 8 br label %_llgo_16 @@ -403,7 +403,7 @@ _llgo_16: ; preds = %_llgo_15, %_llgo_14 br i1 %25, label %_llgo_17, label %_llgo_18 _llgo_17: ; preds = %_llgo_16 - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 41) + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 41) store ptr %26, ptr @_llgo_uint16, align 8 br label %_llgo_18 @@ -413,7 +413,7 @@ _llgo_18: ; preds = %_llgo_17, %_llgo_16 br i1 %28, label %_llgo_19, label %_llgo_20 _llgo_19: ; preds = %_llgo_18 - %29 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 42) + %29 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 42) store ptr %29, ptr @_llgo_uint32, align 8 br label %_llgo_20 @@ -423,7 +423,7 @@ _llgo_20: ; preds = %_llgo_19, %_llgo_18 br i1 %31, label %_llgo_21, label %_llgo_22 _llgo_21: ; preds = %_llgo_20 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 43) + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 43) store ptr %32, ptr @_llgo_uint64, align 8 br label %_llgo_22 @@ -433,7 +433,7 @@ _llgo_22: ; preds = %_llgo_21, %_llgo_20 br i1 %34, label %_llgo_23, label %_llgo_24 _llgo_23: ; preds = %_llgo_22 - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) store ptr %35, ptr @_llgo_uintptr, align 8 br label %_llgo_24 @@ -443,7 +443,7 @@ _llgo_24: ; preds = %_llgo_23, %_llgo_22 br i1 %37, label %_llgo_25, label %_llgo_26 _llgo_25: ; preds = %_llgo_24 - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45) + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 45) store ptr %38, ptr @_llgo_float32, align 8 br label %_llgo_26 @@ -453,7 +453,7 @@ _llgo_26: ; preds = %_llgo_25, %_llgo_24 br i1 %40, label %_llgo_27, label %_llgo_28 _llgo_27: ; preds = %_llgo_26 - %41 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 46) + %41 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 46) store ptr %41, ptr @_llgo_float64, align 8 br label %_llgo_28 @@ -463,8 +463,8 @@ _llgo_28: ; preds = %_llgo_27, %_llgo_26 br i1 %43, label %_llgo_29, label %_llgo_30 _llgo_29: ; preds = %_llgo_28 - %44 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %45 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 10, ptr %44) + %44 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %45 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 10, ptr %44) store ptr %45, ptr @"[10]_llgo_int", align 8 br label %_llgo_30 @@ -474,16 +474,16 @@ _llgo_30: ; preds = %_llgo_29, %_llgo_28 br i1 %47, label %_llgo_31, label %_llgo_32 _llgo_31: ; preds = %_llgo_30 - %48 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %48, 0 - %50 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %49, i64 0, 1 - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %50, i64 0, 2 - %52 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %53 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %52, 0 - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %53, i64 0, 1 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, i64 0, 2 - %56 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %51, %"github.com/goplus/llgo/internal/runtime.Slice" %55, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %56) + %48 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %48, 0 + %50 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %49, i64 0, 1 + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %50, i64 0, 2 + %52 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %53 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %52, 0 + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %53, i64 0, 1 + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, i64 0, 2 + %56 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %51, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %55, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %56) store ptr %56, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 br label %_llgo_32 @@ -493,42 +493,42 @@ _llgo_32: ; preds = %_llgo_31, %_llgo_30 br i1 %58, label %_llgo_33, label %_llgo_34 _llgo_33: ; preds = %_llgo_32 - %59 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %59) + %59 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %59) store ptr %59, ptr @_llgo_Pointer, align 8 br label %_llgo_34 _llgo_34: ; preds = %_llgo_33, %_llgo_32 - %60 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %60, 0 - %62 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %61, i64 0, 1 - %63 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %62, i64 0, 2 - %64 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %65 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %64, 0 - %66 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %65, i64 0, 1 - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %66, i64 0, 2 - %68 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %63, %"github.com/goplus/llgo/internal/runtime.Slice" %67, i1 false) - %69 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 2 }, ptr %68, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %70 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %71 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 5 }, ptr %70, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %72 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %73 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %72, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %69, ptr %73, align 8 - %74 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %72, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %71, ptr %74, align 8 - %75 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %72, 0 - %76 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %75, i64 2, 1 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %76, i64 2, 2 - %78 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %77) + %60 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %60, 0 + %62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, i64 0, 1 + %63 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, i64 0, 2 + %64 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %65 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %64, 0 + %66 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %65, i64 0, 1 + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %66, i64 0, 2 + %68 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %63, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %67, i1 false) + %69 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 2 }, ptr %68, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %70 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %71 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 5 }, ptr %70, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %72 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %73 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %72, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %69, ptr %73, align 8 + %74 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %72, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %71, ptr %74, align 8 + %75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %72, 0 + %76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %75, i64 2, 1 + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %76, i64 2, 2 + %78 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %77) store ptr %78, ptr @"main.struct$b7Su1hWaFih-M0M9hMk6nO_RD1K_GQu5WjIXQp6Q2e8", align 8 %79 = load ptr, ptr @"*_llgo_int", align 8 %80 = icmp eq ptr %79, null br i1 %80, label %_llgo_35, label %_llgo_36 _llgo_35: ; preds = %_llgo_34 - %81 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %82 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %81) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %82) + %81 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %82 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %81) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %82) store ptr %82, ptr @"*_llgo_int", align 8 br label %_llgo_36 @@ -538,8 +538,8 @@ _llgo_36: ; preds = %_llgo_35, %_llgo_34 br i1 %84, label %_llgo_37, label %_llgo_38 _llgo_37: ; preds = %_llgo_36 - %85 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %86 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %85) + %85 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %86 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %85) store ptr %86, ptr @"[]_llgo_int", align 8 br label %_llgo_38 @@ -549,30 +549,30 @@ _llgo_38: ; preds = %_llgo_37, %_llgo_36 br i1 %88, label %_llgo_39, label %_llgo_40 _llgo_39: ; preds = %_llgo_38 - %89 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %89 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %89, ptr @_llgo_string, align 8 br label %_llgo_40 _llgo_40: ; preds = %_llgo_39, %_llgo_38 - %90 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35) - %91 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 1 }, ptr %90, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %92 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %93 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 1 }, ptr %92, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %94 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %95 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 1 }, ptr %94, i64 16, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %96 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 168) - %97 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %96, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %91, ptr %97, align 8 - %98 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %96, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %93, ptr %98, align 8 - %99 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %96, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %95, ptr %99, align 8 - %100 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %96, 0 - %101 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %100, i64 3, 1 - %102 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %101, i64 3, 2 - %103 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 4 }, i64 24, %"github.com/goplus/llgo/internal/runtime.Slice" %102) + %90 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 35) + %91 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 1 }, ptr %90, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %92 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %93 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 1 }, ptr %92, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %94 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %95 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 1 }, ptr %94, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %96 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 168) + %97 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %96, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %91, ptr %97, align 8 + %98 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %96, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %93, ptr %98, align 8 + %99 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %96, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %95, ptr %99, align 8 + %100 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %96, 0 + %101 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %100, i64 3, 1 + %102 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %101, i64 3, 2 + %103 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 4 }, i64 24, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %102) store ptr %103, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8 - %104 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 1 }, i64 24, i64 16, i64 0, i64 1) + %104 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 1 }, i64 24, i64 16, i64 0, i64 1) %105 = load ptr, ptr @_llgo_main.T, align 8 %106 = icmp eq ptr %105, null br i1 %106, label %_llgo_41, label %_llgo_42 @@ -587,27 +587,27 @@ _llgo_42: ; preds = %_llgo_41, %_llgo_40 _llgo_43: ; preds = %_llgo_42 %108 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %109 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %108, 1 - %110 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %109, ptr @"main.(*T).Invoke", 2 - %111 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %110, ptr @"main.(*T).Invoke", 3 - %112 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %113 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %112, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %111, ptr %113, align 8 - %114 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %112, 0 - %115 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %114, i64 1, 1 - %116 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %115, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %104, ptr %107, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %116) + %109 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %108, 1 + %110 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %109, ptr @"main.(*T).Invoke", 2 + %111 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %110, ptr @"main.(*T).Invoke", 3 + %112 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %113 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %112, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %111, ptr %113, align 8 + %114 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %112, 0 + %115 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %114, i64 1, 1 + %116 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %115, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %104, ptr %107, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %116) br label %_llgo_44 _llgo_44: ; preds = %_llgo_43, %_llgo_42 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) define linkonce void @"__llgo_stub.main.main$1"(ptr %0) { _llgo_0: @@ -615,18 +615,18 @@ _llgo_0: ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") diff --git a/compiler/cl/_testrt/float2any/out.ll b/compiler/cl/_testrt/float2any/out.ll index 74e1049f..2d097e44 100644 --- a/compiler/cl/_testrt/float2any/out.ll +++ b/compiler/cl/_testrt/float2any/out.ll @@ -1,8 +1,8 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @_llgo_float32 = linkonce global ptr null, align 8 @@ -14,27 +14,27 @@ source_filename = "main" @__llgo_argc = global i32 0, align 4 @__llgo_argv = global ptr null, align 8 -define void @main.check32(%"github.com/goplus/llgo/internal/runtime.eface" %0) { +define void @main.check32(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %2 = load ptr, ptr @_llgo_float32, align 8 %3 = icmp eq ptr %1, %2 br i1 %3, label %_llgo_3, label %_llgo_4 _llgo_1: ; preds = %_llgo_3 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 9 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 9 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_3 ret void _llgo_3: ; preds = %_llgo_0 - %8 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %8 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %9 = ptrtoint ptr %8 to i64 %10 = trunc i64 %9 to i32 %11 = bitcast i32 %10 to float @@ -43,35 +43,35 @@ _llgo_3: ; preds = %_llgo_0 _llgo_4: ; preds = %_llgo_0 %13 = load ptr, ptr @_llgo_string, align 8 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 21 }, ptr %14, align 8 - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %13, 0 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %15, ptr %14, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %16) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 21 }, ptr %14, align 8 + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %13, 0 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %15, ptr %14, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %16) unreachable } -define void @main.check64(%"github.com/goplus/llgo/internal/runtime.eface" %0) { +define void @main.check64(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 0 %2 = load ptr, ptr @_llgo_float64, align 8 %3 = icmp eq ptr %1, %2 br i1 %3, label %_llgo_3, label %_llgo_4 _llgo_1: ; preds = %_llgo_3 %4 = load ptr, ptr @_llgo_string, align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 9 }, ptr %5, align 8 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 9 }, ptr %5, align 8 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) unreachable _llgo_2: ; preds = %_llgo_3 ret void _llgo_3: ; preds = %_llgo_0 - %8 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1 + %8 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, 1 %9 = ptrtoint ptr %8 to i64 %10 = bitcast i64 %9 to double %11 = fcmp une double %10, 0x400921FB53C8D4F1 @@ -79,11 +79,11 @@ _llgo_3: ; preds = %_llgo_0 _llgo_4: ; preds = %_llgo_0 %12 = load ptr, ptr @_llgo_string, align 8 - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 21 }, ptr %13, align 8 - %14 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %12, 0 - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %14, ptr %13, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %15) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 21 }, ptr %13, align 8 + %14 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %12, 0 + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %14, ptr %13, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %15) unreachable } @@ -115,22 +115,22 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call float @main.f32() %3 = load ptr, ptr @_llgo_float32, align 8 %4 = bitcast float %2 to i32 %5 = inttoptr i32 %4 to ptr - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %3, 0 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, ptr %5, 1 - call void @main.check32(%"github.com/goplus/llgo/internal/runtime.eface" %7) + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %3, 0 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1 + call void @main.check32(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %7) %8 = call double @main.f64() %9 = load ptr, ptr @_llgo_float64, align 8 %10 = bitcast double %8 to i64 %11 = inttoptr i64 %10 to ptr - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %9, 0 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, ptr %11, 1 - call void @main.check64(%"github.com/goplus/llgo/internal/runtime.eface" %13) + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %9, 0 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %12, ptr %11, 1 + call void @main.check64(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %13) ret i32 0 } @@ -141,7 +141,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 45) store ptr %2, ptr @_llgo_float32, align 8 br label %_llgo_2 @@ -151,7 +151,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %5, ptr @_llgo_string, align 8 br label %_llgo_4 @@ -161,7 +161,7 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %7, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 46) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 46) store ptr %8, ptr @_llgo_float64, align 8 br label %_llgo_6 @@ -169,10 +169,10 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testrt/fprintf/out.ll b/compiler/cl/_testrt/fprintf/out.ll index 65c65aed..efdb389d 100644 --- a/compiler/cl/_testrt/fprintf/out.ll +++ b/compiler/cl/_testrt/fprintf/out.ll @@ -24,13 +24,13 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load ptr, ptr @__stderrp, align 8 call void (ptr, ptr, ...) @fprintf(ptr %2, ptr @0, i64 100) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare void @fprintf(ptr, ptr, ...) diff --git a/compiler/cl/_testrt/freevars/out.ll b/compiler/cl/_testrt/freevars/out.ll index 605ae33d..3cd8f6b1 100644 --- a/compiler/cl/_testrt/freevars/out.ll +++ b/compiler/cl/_testrt/freevars/out.ll @@ -1,8 +1,8 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -25,7 +25,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @"main.main$1"({ ptr, ptr } { ptr @"__llgo_stub.main.main$2", ptr null }) ret i32 0 @@ -33,29 +33,29 @@ _llgo_0: define void @"main.main$1"({ ptr, ptr } %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) store { ptr, ptr } %0, ptr %1, align 8 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %3 = getelementptr inbounds { ptr }, ptr %2, i32 0, i32 0 store ptr %1, ptr %3, align 8 %4 = insertvalue { ptr, ptr } { ptr @"main.main$1$1", ptr undef }, ptr %2, 1 %5 = extractvalue { ptr, ptr } %4, 1 %6 = extractvalue { ptr, ptr } %4, 0 - call void %6(ptr %5, %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) + call void %6(ptr %5, %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) ret void } -define void @"main.main$1$1"(ptr %0, %"github.com/goplus/llgo/internal/runtime.iface" %1) { +define void @"main.main$1$1"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1) { _llgo_0: %2 = load { ptr }, ptr %0, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" %1) - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %1, 1 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %3, 0 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, ptr %4, 1 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %7, 0 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %8, ptr null, 1 - %10 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %6, %"github.com/goplus/llgo/internal/runtime.eface" %9) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %1) + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1, 1 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %3, 0 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %4, 1 + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %7, 0 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %8, ptr null, 1 + %10 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9) %11 = xor i1 %10, true br i1 %11, label %_llgo_1, label %_llgo_2 @@ -64,7 +64,7 @@ _llgo_1: ; preds = %_llgo_0 %13 = load { ptr, ptr }, ptr %12, align 8 %14 = extractvalue { ptr, ptr } %13, 1 %15 = extractvalue { ptr, ptr } %13, 0 - call void %15(ptr %14, %"github.com/goplus/llgo/internal/runtime.iface" %1) + call void %15(ptr %14, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1) ret void _llgo_2: ; preds = %_llgo_0 @@ -72,27 +72,27 @@ _llgo_2: ; preds = %_llgo_0 %17 = load { ptr, ptr }, ptr %16, align 8 %18 = extractvalue { ptr, ptr } %17, 1 %19 = extractvalue { ptr, ptr } %17, 0 - call void %19(ptr %18, %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) + call void %19(ptr %18, %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) ret void } -define void @"main.main$2"(%"github.com/goplus/llgo/internal/runtime.iface" %0) { +define void @"main.main$2"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %0) { _llgo_0: ret void } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -define linkonce void @"__llgo_stub.main.main$2"(ptr %0, %"github.com/goplus/llgo/internal/runtime.iface" %1) { +define linkonce void @"__llgo_stub.main.main$2"(ptr %0, %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1) { _llgo_0: - tail call void @"main.main$2"(%"github.com/goplus/llgo/internal/runtime.iface" %1) + tail call void @"main.main$2"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %1) ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface", %"github.com/goplus/llgo/internal/runtime.eface") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface", %"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare ptr @"github.com/goplus/llgo/internal/runtime.IfaceType"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfaceType"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") diff --git a/compiler/cl/_testrt/funcaddr/out.ll b/compiler/cl/_testrt/funcaddr/out.ll index 374a8436..7642d15f 100644 --- a/compiler/cl/_testrt/funcaddr/out.ll +++ b/compiler/cl/_testrt/funcaddr/out.ll @@ -28,26 +28,26 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) store ptr @main.add, ptr %2, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) store ptr @"main.main$1", ptr %3, align 8 %4 = load ptr, ptr %2, align 8 %5 = icmp eq ptr @main.add, %4 - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %5) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %5) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %6 = load ptr, ptr %2, align 8 %7 = load ptr, ptr %2, align 8 %8 = icmp eq ptr %6, %7 - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %8) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %9 = load ptr, ptr %3, align 8 %10 = load ptr, ptr %3, align 8 %11 = icmp eq ptr %9, %10 - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %11) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } @@ -57,10 +57,10 @@ _llgo_0: ret i64 %2 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) diff --git a/compiler/cl/_testrt/funcdecl/out.ll b/compiler/cl/_testrt/funcdecl/out.ll index de1d33d6..10f921aa 100644 --- a/compiler/cl/_testrt/funcdecl/out.ll +++ b/compiler/cl/_testrt/funcdecl/out.ll @@ -1,11 +1,11 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } %main.rtype = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } @"main.init$guard" = global i1 false, align 1 @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac" = linkonce global ptr null, align 8 @@ -26,76 +26,76 @@ _llgo_0: %1 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 %2 = load ptr, ptr @_llgo_Pointer, align 8 %3 = load ptr, ptr @"main.struct$b7Su1hWaFih-M0M9hMk6nO_RD1K_GQu5WjIXQp6Q2e8", align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store { ptr, ptr } { ptr @__llgo_stub.main.demo, ptr null }, ptr %4, align 8 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %3, 0 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, ptr %4, 1 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %3, 0 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %4, 1 %7 = load ptr, ptr @"main.struct$b7Su1hWaFih-M0M9hMk6nO_RD1K_GQu5WjIXQp6Q2e8", align 8 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store { ptr, ptr } %0, ptr %8, align 8 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %7, 0 - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, ptr %8, 1 - %11 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, 0 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %7, 0 + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, ptr %8, 1 + %11 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, 0 %12 = load ptr, ptr @"main.struct$b7Su1hWaFih-M0M9hMk6nO_RD1K_GQu5WjIXQp6Q2e8", align 8 %13 = icmp eq ptr %11, %12 br i1 %13, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %14 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %6, 1 + %14 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, 1 %15 = load { ptr, ptr }, ptr %14, align 8 - %16 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %10, 0 + %16 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %10, 0 %17 = load ptr, ptr @"main.struct$b7Su1hWaFih-M0M9hMk6nO_RD1K_GQu5WjIXQp6Q2e8", align 8 %18 = icmp eq ptr %16, %17 br i1 %18, label %_llgo_3, label %_llgo_4 _llgo_2: ; preds = %_llgo_0 %19 = load ptr, ptr @_llgo_string, align 8 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 21 }, ptr %20, align 8 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %19, 0 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %21, ptr %20, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %22) + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 21 }, ptr %20, align 8 + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %19, 0 + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %21, ptr %20, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %22) unreachable _llgo_3: ; preds = %_llgo_1 - %23 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %10, 1 + %23 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %10, 1 %24 = load { ptr, ptr }, ptr %23, align 8 - call void @"github.com/goplus/llgo/internal/runtime.PrintEface"(%"github.com/goplus/llgo/internal/runtime.eface" %6) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintEface"(%"github.com/goplus/llgo/internal/runtime.eface" %10) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintEface"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %6) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintEface"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %25 = extractvalue { ptr, ptr } %0, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %25) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %25) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %26 = extractvalue { ptr, ptr } %15, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %26) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %26) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) %27 = extractvalue { ptr, ptr } %24, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %27) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr @main.demo) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %28 = call ptr @main.closurePtr(%"github.com/goplus/llgo/internal/runtime.eface" %6) - %29 = call ptr @main.closurePtr(%"github.com/goplus/llgo/internal/runtime.eface" %10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %27) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr @main.demo) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %28 = call ptr @main.closurePtr(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %6) + %29 = call ptr @main.closurePtr(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %10) %30 = icmp eq ptr %28, %29 - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %30) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %30) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void _llgo_4: ; preds = %_llgo_1 %31 = load ptr, ptr @_llgo_string, align 8 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 21 }, ptr %32, align 8 - %33 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %31, 0 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %33, ptr %32, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %34) + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 21 }, ptr %32, align 8 + %33 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %31, 0 + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %33, ptr %32, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %34) unreachable } -define ptr @main.closurePtr(%"github.com/goplus/llgo/internal/runtime.eface" %0) { +define ptr @main.closurePtr(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.eface" %0, ptr %1, align 8 + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %0, ptr %1, align 8 %2 = getelementptr inbounds %main.rtype, ptr %1, i32 0, i32 1 %3 = load ptr, ptr %2, align 8 %4 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 0 @@ -105,8 +105,8 @@ _llgo_0: define void @main.demo() { _llgo_0: - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } @@ -128,10 +128,10 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) call void @main.check({ ptr, ptr } { ptr @__llgo_stub.main.demo, ptr null }) ret i32 0 } @@ -149,16 +149,16 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %3 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %2, 0 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %3, i64 0, 1 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %4, i64 0, 2 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %6, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %7, i64 0, 1 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, i64 0, 2 - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %5, %"github.com/goplus/llgo/internal/runtime.Slice" %9, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %10) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %3 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %2, 0 + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, i64 0, 1 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %4, i64 0, 2 + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %6, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, i64 0, 1 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, i64 0, 2 + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %5, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %10) store ptr %10, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 br label %_llgo_2 @@ -168,40 +168,40 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %12, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %13) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %13) store ptr %13, ptr @_llgo_Pointer, align 8 br label %_llgo_4 _llgo_4: ; preds = %_llgo_3, %_llgo_2 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %14, 0 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %15, i64 0, 1 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %16, i64 0, 2 - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %18, 0 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %19, i64 0, 1 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %20, i64 0, 2 - %22 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %17, %"github.com/goplus/llgo/internal/runtime.Slice" %21, i1 false) - %23 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 2 }, ptr %22, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %24 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %25 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 5 }, ptr %24, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %27 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %26, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %23, ptr %27, align 8 - %28 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %26, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %25, ptr %28, align 8 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %26, 0 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %29, i64 2, 1 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %30, i64 2, 2 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %31) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %14, 0 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %15, i64 0, 1 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %16, i64 0, 2 + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %18, 0 + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19, i64 0, 1 + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %20, i64 0, 2 + %22 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %17, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %21, i1 false) + %23 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 2 }, ptr %22, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %24 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %25 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %24, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %27 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %26, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %23, ptr %27, align 8 + %28 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %26, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %25, ptr %28, align 8 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %26, 0 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, i64 2, 1 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30, i64 2, 2 + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %31) store ptr %32, ptr @"main.struct$b7Su1hWaFih-M0M9hMk6nO_RD1K_GQu5WjIXQp6Q2e8", align 8 %33 = load ptr, ptr @_llgo_string, align 8 %34 = icmp eq ptr %33, null br i1 %34, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %35, ptr @_llgo_string, align 8 br label %_llgo_6 @@ -209,30 +209,30 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintEface"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintEface"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testrt/gblarray/out.ll b/compiler/cl/_testrt/gblarray/out.ll index 28726774..262bfb20 100644 --- a/compiler/cl/_testrt/gblarray/out.ll +++ b/compiler/cl/_testrt/gblarray/out.ll @@ -1,8 +1,8 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @main.basicTypes = global [25 x ptr] zeroinitializer, align 8 @"main.init$guard" = global i1 false, align 1 @@ -14,7 +14,7 @@ source_filename = "main" define ptr @main.Basic(i64 %0) { _llgo_0: %1 = icmp sge i64 %0, 25 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %1) %2 = getelementptr inbounds ptr, ptr @main.basicTypes, i64 %0 %3 = load ptr, ptr %2, align 8 ret ptr %3 @@ -22,15 +22,15 @@ _llgo_0: define ptr @main.basicType(i64 %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 72) - %2 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %1, i32 0, i32 0 + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 72) + %2 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %1, i32 0, i32 0 %3 = icmp sge i64 %0, 25 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %3) %4 = getelementptr inbounds i64, ptr @main.sizeBasicTypes, i64 %0 %5 = load i64, ptr %4, align 4 - %6 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %1, i32 0, i32 2 + %6 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %1, i32 0, i32 2 %7 = trunc i64 %0 to i32 - %8 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %1, i32 0, i32 6 + %8 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %1, i32 0, i32 6 %9 = trunc i64 %0 to i8 store i64 %5, ptr %2, align 4 store i32 %7, ptr %6, align 4 @@ -45,7 +45,7 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 - call void @"github.com/goplus/llgo/internal/abi.init"() + call void @"github.com/goplus/llgo/runtime/abi.init"() store i64 16, ptr getelementptr inbounds (i64, ptr @main.sizeBasicTypes, i64 24), align 4 %1 = call ptr @main.basicType(i64 24) store ptr %1, ptr getelementptr inbounds (ptr, ptr @main.basicTypes, i64 24), align 8 @@ -59,24 +59,24 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call ptr @main.Basic(i64 24) - %3 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %2, i32 0, i32 6 + %3 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %2, i32 0, i32 6 %4 = load i8, ptr %3, align 1 %5 = sext i8 %4 to i64 - %6 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %2, i32 0, i32 0 + %6 = getelementptr inbounds %"github.com/goplus/llgo/runtime/abi.Type", ptr %2, i32 0, i32 0 %7 = load i64, ptr %6, align 4 %8 = call i32 (ptr, ...) @printf(ptr @0, i64 %5, i64 %7) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/abi.init"() +declare void @"github.com/goplus/llgo/runtime/abi.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testrt/gotypes/out.ll b/compiler/cl/_testrt/gotypes/out.ll index 571235f3..328e87fa 100644 --- a/compiler/cl/_testrt/gotypes/out.ll +++ b/compiler/cl/_testrt/gotypes/out.ll @@ -1,13 +1,13 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @__llgo_argv = global ptr null, align 8 -define void @main.foo(%"github.com/goplus/llgo/internal/runtime.iface" %0) { +define void @main.foo(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %0) { _llgo_0: ret void } @@ -29,10 +29,10 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - call void @main.foo(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer) + call void @main.foo(%"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() diff --git a/compiler/cl/_testrt/hello/out.ll b/compiler/cl/_testrt/hello/out.ll index b4bf2fe1..6a38932f 100644 --- a/compiler/cl/_testrt/hello/out.ll +++ b/compiler/cl/_testrt/hello/out.ll @@ -33,14 +33,14 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call i32 @strlen(ptr @main.format) call void (ptr, ...) @printf(ptr @main.format, i32 %2) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i32 @strlen(ptr) diff --git a/compiler/cl/_testrt/index/out.ll b/compiler/cl/_testrt/index/out.ll index 23a0c442..c94cc585 100644 --- a/compiler/cl/_testrt/index/out.ll +++ b/compiler/cl/_testrt/index/out.ll @@ -2,8 +2,8 @@ source_filename = "main" %main.point = type { i64, i64 } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -27,7 +27,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = alloca %main.point, align 8 call void @llvm.memset(ptr %2, i8 0, i64 16, i1 false) @@ -56,10 +56,10 @@ _llgo_0: %17 = load i64, ptr %16, align 4 %18 = getelementptr inbounds %main.point, ptr %2, i32 0, i32 1 %19 = load i64, ptr %18, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %17) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %19) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %17) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %19) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %20 = alloca [2 x i64], align 8 call void @llvm.memset(ptr %20, i8 0, i64 16, i1 false) %21 = alloca [2 x [2 x i64]], align 8 @@ -82,10 +82,10 @@ _llgo_0: %32 = load i64, ptr %31, align 4 %33 = getelementptr inbounds i64, ptr %20, i64 1 %34 = load i64, ptr %33, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %32) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %34) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %34) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %35 = alloca [5 x i64], align 8 call void @llvm.memset(ptr %35, i8 0, i64 40, i1 false) %36 = getelementptr inbounds i64, ptr %35, i64 0 @@ -101,28 +101,28 @@ _llgo_0: %41 = load [5 x i64], ptr %35, align 4 %42 = getelementptr inbounds i64, ptr %35, i64 2 %43 = load i64, ptr %42, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %43) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %43) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %44 = load i8, ptr getelementptr inbounds (i8, ptr @0, i64 2), align 1 %45 = sext i8 %44 to i32 - %46 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRune"(i32 %45) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %46) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %46 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRune"(i32 %45) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %46) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %47 = load i8, ptr getelementptr inbounds (i8, ptr @0, i64 1), align 1 %48 = sext i8 %47 to i32 - %49 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRune"(i32 %48) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %49) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %50 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %49 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRune"(i32 %48) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %49) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %50 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) %51 = getelementptr inbounds i64, ptr %50, i64 0 %52 = getelementptr inbounds i64, ptr %50, i64 1 store i64 1, ptr %51, align 4 store i64 2, ptr %52, align 4 %53 = getelementptr inbounds i64, ptr %50, i64 1 %54 = load i64, ptr %53, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %54) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %55 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %54) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %55 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) %56 = getelementptr inbounds i64, ptr %55, i64 0 store i64 1, ptr %56, align 4 %57 = getelementptr inbounds i64, ptr %55, i64 1 @@ -131,37 +131,37 @@ _llgo_0: store i64 3, ptr %58, align 4 %59 = getelementptr inbounds i64, ptr %55, i64 3 store i64 4, ptr %59, align 4 - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %55, 0 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, i64 4, 1 - %62 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %61, i64 4, 2 - %63 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %62, 0 - %64 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %62, 1 + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %55, 0 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, i64 4, 1 + %62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, i64 4, 2 + %63 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, 0 + %64 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, 1 %65 = icmp sge i64 1, %64 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %65) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %65) %66 = getelementptr inbounds i64, ptr %63, i64 1 %67 = load i64, ptr %66, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %67) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 0) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %67) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRune"(i32) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRune"(i32) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testrt/intgen/out.ll b/compiler/cl/_testrt/intgen/out.ll index fc8c254b..eeae5b04 100644 --- a/compiler/cl/_testrt/intgen/out.ll +++ b/compiler/cl/_testrt/intgen/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } %main.generator = type { i32 } @"main.init$guard" = global i1 false, align 1 @@ -11,10 +11,10 @@ source_filename = "main" @1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 @2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 -define %"github.com/goplus/llgo/internal/runtime.Slice" @main.genInts(i64 %0, { ptr, ptr } %1) { +define %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @main.genInts(i64 %0, { ptr, ptr } %1) { _llgo_0: - %2 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.MakeSlice"(i64 %0, i64 %0, i64 4) - %3 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %2, 1 + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.MakeSlice"(i64 %0, i64 %0, i64 4) + %3 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %2, 1 br label %_llgo_1 _llgo_1: ; preds = %_llgo_2, %_llgo_0 @@ -27,18 +27,18 @@ _llgo_2: ; preds = %_llgo_1 %7 = extractvalue { ptr, ptr } %1, 1 %8 = extractvalue { ptr, ptr } %1, 0 %9 = call i32 %8(ptr %7) - %10 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %2, 0 - %11 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %2, 1 + %10 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %2, 0 + %11 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %2, 1 %12 = icmp slt i64 %5, 0 %13 = icmp sge i64 %5, %11 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i32, ptr %10, i64 %5 store i32 %9, ptr %15, align 4 br label %_llgo_1 _llgo_3: ; preds = %_llgo_1 - ret %"github.com/goplus/llgo/internal/runtime.Slice" %2 + ret %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %2 } define i32 @"main.(*generator).next"(ptr %0) { @@ -70,10 +70,10 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call %"github.com/goplus/llgo/internal/runtime.Slice" @main.genInts(i64 5, { ptr, ptr } { ptr @__llgo_stub.rand, ptr null }) - %3 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %2, 1 + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @main.genInts(i64 5, { ptr, ptr } { ptr @__llgo_stub.rand, ptr null }) + %3 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %2, 1 br label %_llgo_1 _llgo_1: ; preds = %_llgo_2, %_llgo_0 @@ -83,26 +83,26 @@ _llgo_1: ; preds = %_llgo_2, %_llgo_0 br i1 %6, label %_llgo_2, label %_llgo_3 _llgo_2: ; preds = %_llgo_1 - %7 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %2, 0 - %8 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %2, 1 + %7 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %2, 0 + %8 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %2, 1 %9 = icmp slt i64 %5, 0 %10 = icmp sge i64 %5, %8 %11 = or i1 %10, %9 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %11) %12 = getelementptr inbounds i32, ptr %7, i64 %5 %13 = load i32, ptr %12, align 4 %14 = call i32 (ptr, ...) @printf(ptr @0, i32 %13) br label %_llgo_1 _llgo_3: ; preds = %_llgo_1 - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 4) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 4) store i32 1, ptr %15, align 4 - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %17 = getelementptr inbounds { ptr }, ptr %16, i32 0, i32 0 store ptr %15, ptr %17, align 8 %18 = insertvalue { ptr, ptr } { ptr @"main.main$1", ptr undef }, ptr %16, 1 - %19 = call %"github.com/goplus/llgo/internal/runtime.Slice" @main.genInts(i64 5, { ptr, ptr } %18) - %20 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %19, 1 + %19 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @main.genInts(i64 5, { ptr, ptr } %18) + %20 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19, 1 br label %_llgo_4 _llgo_4: ; preds = %_llgo_5, %_llgo_3 @@ -112,27 +112,27 @@ _llgo_4: ; preds = %_llgo_5, %_llgo_3 br i1 %23, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %24 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %19, 0 - %25 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %19, 1 + %24 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19, 0 + %25 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19, 1 %26 = icmp slt i64 %22, 0 %27 = icmp sge i64 %22, %25 %28 = or i1 %27, %26 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %28) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %28) %29 = getelementptr inbounds i32, ptr %24, i64 %22 %30 = load i32, ptr %29, align 4 %31 = call i32 (ptr, ...) @printf(ptr @1, i32 %30) br label %_llgo_4 _llgo_6: ; preds = %_llgo_4 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 4) + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 4) %33 = getelementptr inbounds %main.generator, ptr %32, i32 0, i32 0 store i32 1, ptr %33, align 4 - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %35 = getelementptr inbounds { ptr }, ptr %34, i32 0, i32 0 store ptr %32, ptr %35, align 8 %36 = insertvalue { ptr, ptr } { ptr @"main.next$bound", ptr undef }, ptr %34, 1 - %37 = call %"github.com/goplus/llgo/internal/runtime.Slice" @main.genInts(i64 5, { ptr, ptr } %36) - %38 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %37, 1 + %37 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @main.genInts(i64 5, { ptr, ptr } %36) + %38 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %37, 1 br label %_llgo_7 _llgo_7: ; preds = %_llgo_8, %_llgo_6 @@ -142,12 +142,12 @@ _llgo_7: ; preds = %_llgo_8, %_llgo_6 br i1 %41, label %_llgo_8, label %_llgo_9 _llgo_8: ; preds = %_llgo_7 - %42 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %37, 0 - %43 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %37, 1 + %42 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %37, 0 + %43 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %37, 1 %44 = icmp slt i64 %40, 0 %45 = icmp sge i64 %40, %43 %46 = or i1 %45, %44 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %46) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %46) %47 = getelementptr inbounds i32, ptr %42, i64 %40 %48 = load i32, ptr %47, align 4 %49 = call i32 (ptr, ...) @printf(ptr @2, i32 %48) @@ -170,11 +170,11 @@ _llgo_0: ret i32 %7 } -declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.MakeSlice"(i64, i64, i64) +declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.MakeSlice"(i64, i64, i64) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i32 @rand() @@ -186,9 +186,9 @@ _llgo_0: declare i32 @printf(ptr, ...) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) define i32 @"main.next$bound"(ptr %0) { _llgo_0: diff --git a/compiler/cl/_testrt/len/out.ll b/compiler/cl/_testrt/len/out.ll index 18e7470b..20e5f484 100644 --- a/compiler/cl/_testrt/len/out.ll +++ b/compiler/cl/_testrt/len/out.ll @@ -1,10 +1,10 @@ ; ModuleID = 'main' source_filename = "main" -%main.data = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice" } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } +%main.data = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -37,116 +37,116 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 56) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 56) %3 = getelementptr inbounds %main.data, ptr %2, i32 0, i32 0 - %4 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %3, align 8 - %5 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %4, 1 + %4 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %3, align 8 + %5 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %4, 1 %6 = getelementptr inbounds %main.data, ptr %2, i32 0, i32 1 %7 = load ptr, ptr %6, align 8 - %8 = call i64 @"github.com/goplus/llgo/internal/runtime.ChanLen"(ptr %7) + %8 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.ChanLen"(ptr %7) %9 = getelementptr inbounds %main.data, ptr %2, i32 0, i32 2 %10 = load ptr, ptr %9, align 8 - %11 = call i64 @"github.com/goplus/llgo/internal/runtime.MapLen"(ptr %10) + %11 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.MapLen"(ptr %10) %12 = getelementptr inbounds %main.data, ptr %2, i32 0, i32 3 - %13 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %12, align 8 - %14 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %13, 1 + %13 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %12, align 8 + %14 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %13, 1 %15 = getelementptr inbounds %main.data, ptr %2, i32 0, i32 1 %16 = load ptr, ptr %15, align 8 - %17 = call i64 @"github.com/goplus/llgo/internal/runtime.ChanCap"(ptr %16) + %17 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.ChanCap"(ptr %16) %18 = getelementptr inbounds %main.data, ptr %2, i32 0, i32 3 - %19 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %18, align 8 - %20 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %19, 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %5) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %8) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %11) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %14) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %17) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %20) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 56) + %19 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %18, align 8 + %20 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %5) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %11) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %17) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %20) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 56) %22 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 0 %23 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 1 - %24 = call ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64 8, i64 2) + %24 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64 8, i64 2) %25 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 2 %26 = load ptr, ptr @_llgo_int, align 8 %27 = load ptr, ptr @_llgo_string, align 8 %28 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %29 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %28, i64 1) + %29 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %28, i64 1) %30 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %31 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %31 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 1, ptr %31, align 4 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %30, ptr %29, ptr %31) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr %32, align 8 + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %30, ptr %29, ptr %31) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr %32, align 8 %33 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 3 - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %35 = getelementptr inbounds i64, ptr %34, i64 0 store i64 1, ptr %35, align 4 %36 = getelementptr inbounds i64, ptr %34, i64 1 store i64 2, ptr %36, align 4 %37 = getelementptr inbounds i64, ptr %34, i64 2 store i64 3, ptr %37, align 4 - %38 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %34, 0 - %39 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %38, i64 3, 1 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %39, i64 3, 2 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr %22, align 8 + %38 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %34, 0 + %39 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %38, i64 3, 1 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %39, i64 3, 2 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr %22, align 8 store ptr %24, ptr %23, align 8 store ptr %29, ptr %25, align 8 - store %"github.com/goplus/llgo/internal/runtime.Slice" %40, ptr %33, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %40, ptr %33, align 8 %41 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 0 - %42 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %41, align 8 - %43 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %42, 1 + %42 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %41, align 8 + %43 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %42, 1 %44 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 1 %45 = load ptr, ptr %44, align 8 - %46 = call i64 @"github.com/goplus/llgo/internal/runtime.ChanLen"(ptr %45) + %46 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.ChanLen"(ptr %45) %47 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 2 %48 = load ptr, ptr %47, align 8 - %49 = call i64 @"github.com/goplus/llgo/internal/runtime.MapLen"(ptr %48) + %49 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.MapLen"(ptr %48) %50 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 3 - %51 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, align 8 - %52 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %51, 1 + %51 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %50, align 8 + %52 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %51, 1 %53 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 1 %54 = load ptr, ptr %53, align 8 - %55 = call i64 @"github.com/goplus/llgo/internal/runtime.ChanCap"(ptr %54) + %55 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.ChanCap"(ptr %54) %56 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 3 - %57 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %56, align 8 - %58 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %57, 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %43) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %46) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %49) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %52) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %55) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %58) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %57 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %56, align 8 + %58 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %57, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %43) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %46) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %49) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %52) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %55) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %58) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare i64 @"github.com/goplus/llgo/internal/runtime.ChanLen"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/internal/runtime.ChanLen"(ptr) -declare i64 @"github.com/goplus/llgo/internal/runtime.MapLen"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/internal/runtime.MapLen"(ptr) -declare i64 @"github.com/goplus/llgo/internal/runtime.ChanCap"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/internal/runtime.ChanCap"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64, i64) define void @"main.init$after"() { _llgo_0: @@ -155,7 +155,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %2, ptr @_llgo_int, align 8 br label %_llgo_2 @@ -165,7 +165,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %5, ptr @_llgo_string, align 8 br label %_llgo_4 @@ -175,34 +175,34 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %7, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %10) - %12 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }, ptr %11, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %13) - %15 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, ptr %14, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %16) - %18 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 5 }, ptr %17, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %20 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 8 }, ptr %19, i64 200, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %22 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %12, ptr %22, align 8 - %23 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %15, ptr %23, align 8 - %24 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %18, ptr %24, align 8 - %25 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %20, ptr %25, align 8 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %21, 0 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %26, i64 4, 1 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %27, i64 4, 2 - %29 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, i64 208, %"github.com/goplus/llgo/internal/runtime.Slice" %28) - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %8, ptr %9, ptr %29, i64 4) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %30) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %10) + %12 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }, ptr %11, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %13) + %15 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, ptr %14, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %16) + %18 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 5 }, ptr %17, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %20 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 8 }, ptr %19, i64 200, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %22 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %21, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %12, ptr %22, align 8 + %23 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %21, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %15, ptr %23, align 8 + %24 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %21, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %18, ptr %24, align 8 + %25 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %21, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %20, ptr %25, align 8 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %21, 0 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26, i64 4, 1 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %27, i64 4, 2 + %29 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, i64 208, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %28) + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %8, ptr %9, ptr %29, i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %30) store ptr %30, ptr @"map[_llgo_int]_llgo_string", align 8 br label %_llgo_6 @@ -210,20 +210,20 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr, ptr, ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr, ptr, ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr, ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr, ptr, ptr) diff --git a/compiler/cl/_testrt/linkname/out.ll b/compiler/cl/_testrt/linkname/out.ll index 620d6110..86f3a482 100644 --- a/compiler/cl/_testrt/linkname/out.ll +++ b/compiler/cl/_testrt/linkname/out.ll @@ -1,8 +1,8 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%main.m = type { %"github.com/goplus/llgo/internal/runtime.String" } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%main.m = type { %"github.com/goplus/llgo/runtime/internal/runtime.String" } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -17,7 +17,7 @@ source_filename = "main" @7 = private unnamed_addr constant [2 x i8] c"4\00", align 1 @8 = private unnamed_addr constant [5 x i8] c"hello", align 1 -declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/cl/internal/linktarget.m.info"(%main.m) +declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/compiler/cl/internal/linktarget.m.info"(%main.m) define void @main.init() { _llgo_0: @@ -26,7 +26,7 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 - call void @"github.com/goplus/llgo/cl/internal/linktarget.init"() + call void @"github.com/goplus/llgo/compiler/cl/internal/linktarget.init"() br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 @@ -37,29 +37,29 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - call void @"github.com/goplus/llgo/cl/internal/linktarget.F"(ptr @0, ptr @1, ptr @2, ptr @3) - call void @"github.com/goplus/llgo/cl/internal/linktarget.F"(ptr @4, ptr @5, ptr @6, ptr @7) - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) - call void @"github.com/goplus/llgo/cl/internal/linktarget.(*m).setInfo"(ptr %2, %"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 5 }) + call void @"github.com/goplus/llgo/compiler/cl/internal/linktarget.F"(ptr @0, ptr @1, ptr @2, ptr @3) + call void @"github.com/goplus/llgo/compiler/cl/internal/linktarget.F"(ptr @4, ptr @5, ptr @6, ptr @7) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) + call void @"github.com/goplus/llgo/compiler/cl/internal/linktarget.(*m).setInfo"(ptr %2, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 5 }) %3 = load %main.m, ptr %2, align 8 - %4 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/cl/internal/linktarget.m.info"(%main.m %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %4 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/compiler/cl/internal/linktarget.m.info"(%main.m %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/cl/internal/linktarget.F"(ptr, ptr, ptr, ptr) +declare void @"github.com/goplus/llgo/compiler/cl/internal/linktarget.F"(ptr, ptr, ptr, ptr) -declare void @"github.com/goplus/llgo/cl/internal/linktarget.(*m).setInfo"(ptr, %"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/compiler/cl/internal/linktarget.(*m).setInfo"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/cl/internal/linktarget.init"() +declare void @"github.com/goplus/llgo/compiler/cl/internal/linktarget.init"() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) diff --git a/compiler/cl/_testrt/makemap/out.ll b/compiler/cl/_testrt/makemap/out.ll index fac1e3c0..10328f4b 100644 --- a/compiler/cl/_testrt/makemap/out.ll +++ b/compiler/cl/_testrt/makemap/out.ll @@ -1,11 +1,11 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } %main.N = type { i8, i8 } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -70,7 +70,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @main.make1() call void @main.make2() @@ -87,89 +87,89 @@ _llgo_0: %0 = load ptr, ptr @_llgo_int, align 8 %1 = load ptr, ptr @_llgo_string, align 8 %2 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %2, i64 0) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %2, i64 0) %4 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 1, ptr %5, align 4 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %4, ptr %3, ptr %5) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr %6, align 8 + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %4, ptr %3, ptr %5) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr %6, align 8 %7 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 2, ptr %8, align 4 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %7, ptr %3, ptr %8) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 5 }, ptr %9, align 8 + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %7, ptr %3, ptr %8) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 5 }, ptr %9, align 8 %10 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 3, ptr %11, align 4 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %10, ptr %3, ptr %11) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 4 }, ptr %12, align 8 + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %10, ptr %3, ptr %11) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 4 }, ptr %12, align 8 %13 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 1, ptr %14, align 4 - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAccess1"(ptr %13, ptr %3, ptr %14) - %16 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %15, align 8 + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess1"(ptr %13, ptr %3, ptr %14) + %16 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %15, align 8 %17 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 2, ptr %18, align 4 - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAccess1"(ptr %17, ptr %3, ptr %18) - %20 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %19, align 8 - %21 = call i64 @"github.com/goplus/llgo/internal/runtime.MapLen"(ptr %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %16) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %20) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %21) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess1"(ptr %17, ptr %3, ptr %18) + %20 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %19, align 8 + %21 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.MapLen"(ptr %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %16) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %20) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %21) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %22 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %23 = call ptr @"github.com/goplus/llgo/internal/runtime.NewMapIter"(ptr %22, ptr %3) + %23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewMapIter"(ptr %22, ptr %3) br label %_llgo_1 _llgo_1: ; preds = %_llgo_2, %_llgo_0 - %24 = call { i1, ptr, ptr } @"github.com/goplus/llgo/internal/runtime.MapIterNext"(ptr %23) + %24 = call { i1, ptr, ptr } @"github.com/goplus/llgo/runtime/internal/runtime.MapIterNext"(ptr %23) %25 = extractvalue { i1, ptr, ptr } %24, 0 br i1 %25, label %_llgo_11, label %_llgo_12 _llgo_2: ; preds = %_llgo_13 - %26 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %88, 1 - %27 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %88, 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %26) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 1 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %27) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %26 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %88, 1 + %27 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %88, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %26) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 1 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %27) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_3: ; preds = %_llgo_13 - %28 = call i64 @"github.com/goplus/llgo/internal/runtime.MapLen"(ptr %3) + %28 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.MapLen"(ptr %3) %29 = load ptr, ptr @"map[_llgo_string]_llgo_int", align 8 - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %29, i64 %28) + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %29, i64 %28) %31 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.NewMapIter"(ptr %31, ptr %3) + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewMapIter"(ptr %31, ptr %3) br label %_llgo_4 _llgo_4: ; preds = %_llgo_5, %_llgo_3 - %33 = call { i1, ptr, ptr } @"github.com/goplus/llgo/internal/runtime.MapIterNext"(ptr %32) + %33 = call { i1, ptr, ptr } @"github.com/goplus/llgo/runtime/internal/runtime.MapIterNext"(ptr %32) %34 = extractvalue { i1, ptr, ptr } %33, 0 br i1 %34, label %_llgo_14, label %_llgo_15 _llgo_5: ; preds = %_llgo_16 - %35 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %96, 1 - %36 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %96, 2 + %35 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %96, 1 + %36 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %96, 2 %37 = load ptr, ptr @"map[_llgo_string]_llgo_int", align 8 - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" %36, ptr %38, align 8 - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %37, ptr %30, ptr %38) + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" %36, ptr %38, align 8 + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %37, ptr %30, ptr %38) store i64 %35, ptr %39, align 4 br label %_llgo_4 _llgo_6: ; preds = %_llgo_16 %40 = load ptr, ptr @"map[_llgo_string]_llgo_int", align 8 - %41 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 4 }, ptr %41, align 8 - %42 = call { ptr, i1 } @"github.com/goplus/llgo/internal/runtime.MapAccess2"(ptr %40, ptr %30, ptr %41) + %41 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 4 }, ptr %41, align 8 + %42 = call { ptr, i1 } @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess2"(ptr %40, ptr %30, ptr %41) %43 = extractvalue { ptr, i1 } %42, 0 %44 = load i64, ptr %43, align 4 %45 = extractvalue { ptr, i1 } %42, 1 @@ -177,16 +177,16 @@ _llgo_6: ; preds = %_llgo_16 %47 = insertvalue { i64, i1 } %46, i1 %45, 1 %48 = extractvalue { i64, i1 } %47, 0 %49 = extractvalue { i64, i1 } %47, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 4 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %48) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %49) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 4 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %48) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %49) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %50 = load ptr, ptr @"map[_llgo_string]_llgo_int", align 8 - %51 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 2 }, ptr %51, align 8 - %52 = call { ptr, i1 } @"github.com/goplus/llgo/internal/runtime.MapAccess2"(ptr %50, ptr %30, ptr %51) + %51 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 2 }, ptr %51, align 8 + %52 = call { ptr, i1 } @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess2"(ptr %50, ptr %30, ptr %51) %53 = extractvalue { ptr, i1 } %52, 0 %54 = load i64, ptr %53, align 4 %55 = extractvalue { ptr, i1 } %52, 1 @@ -194,20 +194,20 @@ _llgo_6: ; preds = %_llgo_16 %57 = insertvalue { i64, i1 } %56, i1 %55, 1 %58 = extractvalue { i64, i1 } %57, 0 %59 = extractvalue { i64, i1 } %57, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 2 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %58) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %59) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 2 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %58) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %59) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %60 = load ptr, ptr @"map[_llgo_string]_llgo_int", align 8 - %61 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 4 }, ptr %61, align 8 - call void @"github.com/goplus/llgo/internal/runtime.MapDelete"(ptr %60, ptr %30, ptr %61) + %61 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 4 }, ptr %61, align 8 + call void @"github.com/goplus/llgo/runtime/internal/runtime.MapDelete"(ptr %60, ptr %30, ptr %61) %62 = load ptr, ptr @"map[_llgo_string]_llgo_int", align 8 - %63 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 4 }, ptr %63, align 8 - %64 = call { ptr, i1 } @"github.com/goplus/llgo/internal/runtime.MapAccess2"(ptr %62, ptr %30, ptr %63) + %63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 4 }, ptr %63, align 8 + %64 = call { ptr, i1 } @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess2"(ptr %62, ptr %30, ptr %63) %65 = extractvalue { ptr, i1 } %64, 0 %66 = load i64, ptr %65, align 4 %67 = extractvalue { ptr, i1 } %64, 1 @@ -219,25 +219,25 @@ _llgo_6: ; preds = %_llgo_16 _llgo_7: ; preds = %_llgo_6 %72 = load ptr, ptr @_llgo_string, align 8 - %73 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 7 }, ptr %73, align 8 - %74 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %72, 0 - %75 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %74, ptr %73, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %75) + %73 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 7 }, ptr %73, align 8 + %74 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %72, 0 + %75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %74, ptr %73, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %75) unreachable _llgo_8: ; preds = %_llgo_6 - %76 = call i64 @"github.com/goplus/llgo/internal/runtime.MapLen"(ptr %30) + %76 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.MapLen"(ptr %30) %77 = icmp ne i64 %76, 2 br i1 %77, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 %78 = load ptr, ptr @_llgo_string, align 8 - %79 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 7 }, ptr %79, align 8 - %80 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %78, 0 - %81 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %80, ptr %79, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %81) + %79 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 7 }, ptr %79, align 8 + %80 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %78, 0 + %81 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %80, ptr %79, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %81) unreachable _llgo_10: ; preds = %_llgo_8 @@ -247,64 +247,64 @@ _llgo_11: ; preds = %_llgo_1 %82 = extractvalue { i1, ptr, ptr } %24, 1 %83 = extractvalue { i1, ptr, ptr } %24, 2 %84 = load i64, ptr %82, align 4 - %85 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %83, align 8 - %86 = insertvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } { i1 true, i64 undef, %"github.com/goplus/llgo/internal/runtime.String" undef }, i64 %84, 1 - %87 = insertvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %86, %"github.com/goplus/llgo/internal/runtime.String" %85, 2 + %85 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %83, align 8 + %86 = insertvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } { i1 true, i64 undef, %"github.com/goplus/llgo/runtime/internal/runtime.String" undef }, i64 %84, 1 + %87 = insertvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %86, %"github.com/goplus/llgo/runtime/internal/runtime.String" %85, 2 br label %_llgo_13 _llgo_12: ; preds = %_llgo_1 br label %_llgo_13 _llgo_13: ; preds = %_llgo_12, %_llgo_11 - %88 = phi { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } [ %87, %_llgo_11 ], [ zeroinitializer, %_llgo_12 ] - %89 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %88, 0 + %88 = phi { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } [ %87, %_llgo_11 ], [ zeroinitializer, %_llgo_12 ] + %89 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %88, 0 br i1 %89, label %_llgo_2, label %_llgo_3 _llgo_14: ; preds = %_llgo_4 %90 = extractvalue { i1, ptr, ptr } %33, 1 %91 = extractvalue { i1, ptr, ptr } %33, 2 %92 = load i64, ptr %90, align 4 - %93 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %91, align 8 - %94 = insertvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } { i1 true, i64 undef, %"github.com/goplus/llgo/internal/runtime.String" undef }, i64 %92, 1 - %95 = insertvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %94, %"github.com/goplus/llgo/internal/runtime.String" %93, 2 + %93 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %91, align 8 + %94 = insertvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } { i1 true, i64 undef, %"github.com/goplus/llgo/runtime/internal/runtime.String" undef }, i64 %92, 1 + %95 = insertvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %94, %"github.com/goplus/llgo/runtime/internal/runtime.String" %93, 2 br label %_llgo_16 _llgo_15: ; preds = %_llgo_4 br label %_llgo_16 _llgo_16: ; preds = %_llgo_15, %_llgo_14 - %96 = phi { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } [ %95, %_llgo_14 ], [ zeroinitializer, %_llgo_15 ] - %97 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %96, 0 + %96 = phi { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } [ %95, %_llgo_14 ], [ zeroinitializer, %_llgo_15 ] + %97 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %96, 0 br i1 %97, label %_llgo_5, label %_llgo_6 } define void @main.make2() { _llgo_0: %0 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %0, i64 0) - %2 = call i64 @"github.com/goplus/llgo/internal/runtime.MapLen"(ptr %1) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %0, i64 0) + %2 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.MapLen"(ptr %1) %3 = icmp eq ptr %1, null %4 = icmp ne ptr %1, null - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %1) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %5 = call i64 @"github.com/goplus/llgo/internal/runtime.MapLen"(ptr null) - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr null) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %5) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 true) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 false) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %5 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.MapLen"(ptr null) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr null) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %5) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 true) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %6 = load ptr, ptr @_llgo_any, align 8 %7 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %7, i64 0) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %7, i64 0) %9 = alloca [1 x i64], align 8 call void @llvm.memset(ptr %9, i8 0, i64 8, i1 false) %10 = getelementptr inbounds i64, ptr %9, i64 0 @@ -313,12 +313,12 @@ _llgo_0: %12 = load ptr, ptr @_llgo_main.N1, align 8 %13 = extractvalue [1 x i64] %11, 0 %14 = inttoptr i64 %13 to ptr - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %12, 0 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %15, ptr %14, 1 + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %12, 0 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %15, ptr %14, 1 %17 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.eface" %16, ptr %18, align 8 - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %17, ptr %8, ptr %18) + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %16, ptr %18, align 8 + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %17, ptr %8, ptr %18) store i64 100, ptr %19, align 4 %20 = alloca [1 x i64], align 8 call void @llvm.memset(ptr %20, i8 0, i64 8, i1 false) @@ -328,12 +328,12 @@ _llgo_0: %23 = load ptr, ptr @_llgo_main.N1, align 8 %24 = extractvalue [1 x i64] %22, 0 %25 = inttoptr i64 %24 to ptr - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %23, 0 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %26, ptr %25, 1 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %23, 0 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %26, ptr %25, 1 %28 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %29 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.eface" %27, ptr %29, align 8 - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %28, ptr %8, ptr %29) + %29 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %27, ptr %29, align 8 + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %28, ptr %8, ptr %29) store i64 200, ptr %30, align 4 %31 = alloca [1 x i64], align 8 call void @llvm.memset(ptr %31, i8 0, i64 8, i1 false) @@ -343,12 +343,12 @@ _llgo_0: %34 = load ptr, ptr @_llgo_main.N1, align 8 %35 = extractvalue [1 x i64] %33, 0 %36 = inttoptr i64 %35 to ptr - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %34, 0 - %38 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %37, ptr %36, 1 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %34, 0 + %38 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %37, ptr %36, 1 %39 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %40 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.eface" %38, ptr %40, align 8 - %41 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %39, ptr %8, ptr %40) + %40 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %38, ptr %40, align 8 + %41 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %39, ptr %8, ptr %40) store i64 300, ptr %41, align 4 %42 = alloca [1 x i64], align 8 call void @llvm.memset(ptr %42, i8 0, i64 8, i1 false) @@ -358,26 +358,26 @@ _llgo_0: %45 = load ptr, ptr @_llgo_main.N1, align 8 %46 = extractvalue [1 x i64] %44, 0 %47 = inttoptr i64 %46 to ptr - %48 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %45, 0 - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %48, ptr %47, 1 + %48 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %45, 0 + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %48, ptr %47, 1 %50 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %51 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.eface" %49, ptr %51, align 8 - %52 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %50, ptr %8, ptr %51) + %51 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %49, ptr %51, align 8 + %52 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %50, ptr %8, ptr %51) store i64 -200, ptr %52, align 4 %53 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %54 = call ptr @"github.com/goplus/llgo/internal/runtime.NewMapIter"(ptr %53, ptr %8) + %54 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewMapIter"(ptr %53, ptr %8) br label %_llgo_1 _llgo_1: ; preds = %_llgo_7, %_llgo_0 - %55 = call { i1, ptr, ptr } @"github.com/goplus/llgo/internal/runtime.MapIterNext"(ptr %54) + %55 = call { i1, ptr, ptr } @"github.com/goplus/llgo/runtime/internal/runtime.MapIterNext"(ptr %54) %56 = extractvalue { i1, ptr, ptr } %55, 0 br i1 %56, label %_llgo_4, label %_llgo_5 _llgo_2: ; preds = %_llgo_6 - %57 = extractvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %68, 1 - %58 = extractvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %68, 2 - %59 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %57, 0 + %57 = extractvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %68, 1 + %58 = extractvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %68, 2 + %59 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %57, 0 %60 = load ptr, ptr @_llgo_main.N1, align 8 %61 = icmp eq ptr %59, %60 br i1 %61, label %_llgo_7, label %_llgo_8 @@ -388,36 +388,36 @@ _llgo_3: ; preds = %_llgo_6 _llgo_4: ; preds = %_llgo_1 %62 = extractvalue { i1, ptr, ptr } %55, 1 %63 = extractvalue { i1, ptr, ptr } %55, 2 - %64 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %62, align 8 + %64 = load %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %62, align 8 %65 = load i64, ptr %63, align 4 - %66 = insertvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } { i1 true, %"github.com/goplus/llgo/internal/runtime.eface" undef, i64 undef }, %"github.com/goplus/llgo/internal/runtime.eface" %64, 1 - %67 = insertvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %66, i64 %65, 2 + %66 = insertvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } { i1 true, %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, i64 undef }, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %64, 1 + %67 = insertvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %66, i64 %65, 2 br label %_llgo_6 _llgo_5: ; preds = %_llgo_1 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 - %68 = phi { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } [ %67, %_llgo_4 ], [ zeroinitializer, %_llgo_5 ] - %69 = extractvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %68, 0 + %68 = phi { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } [ %67, %_llgo_4 ], [ zeroinitializer, %_llgo_5 ] + %69 = extractvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %68, 0 br i1 %69, label %_llgo_2, label %_llgo_3 _llgo_7: ; preds = %_llgo_2 - %70 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %57, 1 + %70 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %57, 1 %71 = ptrtoint ptr %70 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %71) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %58) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %71) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %58) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_8: ; preds = %_llgo_2 %72 = load ptr, ptr @_llgo_string, align 8 - %73 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 21 }, ptr %73, align 8 - %74 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %72, 0 - %75 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %74, ptr %73, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %75) + %73 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 21 }, ptr %73, align 8 + %74 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %72, 0 + %75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %74, ptr %73, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %75) unreachable } @@ -432,10 +432,10 @@ _llgo_0: store i8 2, ptr %3, align 1 %4 = load [1 x %main.N], ptr %0, align 1 %5 = load ptr, ptr @_llgo_main.K, align 8 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 2) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 2) store [1 x %main.N] %4, ptr %6, align 1 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %5, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %7, ptr %6, 1 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %5, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %7, ptr %6, 1 %9 = alloca [1 x %main.N], align 8 call void @llvm.memset(ptr %9, i8 0, i64 2, i1 false) %10 = getelementptr inbounds %main.N, ptr %9, i64 0 @@ -445,15 +445,15 @@ _llgo_0: store i8 2, ptr %12, align 1 %13 = load [1 x %main.N], ptr %9, align 1 %14 = load ptr, ptr @_llgo_main.K, align 8 - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 2) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 2) store [1 x %main.N] %13, ptr %15, align 1 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %14, 0 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %16, ptr %15, 1 - %18 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %8, %"github.com/goplus/llgo/internal/runtime.eface" %17) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %18) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %14, 0 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %16, ptr %15, 1 + %18 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %8, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %17) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %18) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %19 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %19, i64 0) + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %19, i64 0) %21 = alloca [1 x %main.N], align 8 call void @llvm.memset(ptr %21, i8 0, i64 2, i1 false) %22 = getelementptr inbounds %main.N, ptr %21, i64 0 @@ -463,14 +463,14 @@ _llgo_0: store i8 2, ptr %24, align 1 %25 = load [1 x %main.N], ptr %21, align 1 %26 = load ptr, ptr @_llgo_main.K, align 8 - %27 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 2) + %27 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 2) store [1 x %main.N] %25, ptr %27, align 1 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %26, 0 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %28, ptr %27, 1 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %26, 0 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %28, ptr %27, 1 %30 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %31 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.eface" %29, ptr %31, align 8 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %30, ptr %20, ptr %31) + %31 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %29, ptr %31, align 8 + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %30, ptr %20, ptr %31) store i64 100, ptr %32, align 4 %33 = alloca [1 x %main.N], align 8 call void @llvm.memset(ptr %33, i8 0, i64 2, i1 false) @@ -481,28 +481,28 @@ _llgo_0: store i8 4, ptr %36, align 1 %37 = load [1 x %main.N], ptr %33, align 1 %38 = load ptr, ptr @_llgo_main.K, align 8 - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 2) + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 2) store [1 x %main.N] %37, ptr %39, align 1 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %38, 0 - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %40, ptr %39, 1 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %38, 0 + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %40, ptr %39, 1 %42 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %43 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.eface" %41, ptr %43, align 8 - %44 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %42, ptr %20, ptr %43) + %43 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %41, ptr %43, align 8 + %44 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %42, ptr %20, ptr %43) store i64 200, ptr %44, align 4 %45 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %46 = call ptr @"github.com/goplus/llgo/internal/runtime.NewMapIter"(ptr %45, ptr %20) + %46 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewMapIter"(ptr %45, ptr %20) br label %_llgo_1 _llgo_1: ; preds = %_llgo_7, %_llgo_0 - %47 = call { i1, ptr, ptr } @"github.com/goplus/llgo/internal/runtime.MapIterNext"(ptr %46) + %47 = call { i1, ptr, ptr } @"github.com/goplus/llgo/runtime/internal/runtime.MapIterNext"(ptr %46) %48 = extractvalue { i1, ptr, ptr } %47, 0 br i1 %48, label %_llgo_4, label %_llgo_5 _llgo_2: ; preds = %_llgo_6 - %49 = extractvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %60, 1 - %50 = extractvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %60, 2 - %51 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %49, 0 + %49 = extractvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %60, 1 + %50 = extractvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %60, 2 + %51 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %49, 0 %52 = load ptr, ptr @_llgo_main.K, align 8 %53 = icmp eq ptr %51, %52 br i1 %53, label %_llgo_7, label %_llgo_8 @@ -513,22 +513,22 @@ _llgo_3: ; preds = %_llgo_6 _llgo_4: ; preds = %_llgo_1 %54 = extractvalue { i1, ptr, ptr } %47, 1 %55 = extractvalue { i1, ptr, ptr } %47, 2 - %56 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %54, align 8 + %56 = load %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %54, align 8 %57 = load i64, ptr %55, align 4 - %58 = insertvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } { i1 true, %"github.com/goplus/llgo/internal/runtime.eface" undef, i64 undef }, %"github.com/goplus/llgo/internal/runtime.eface" %56, 1 - %59 = insertvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %58, i64 %57, 2 + %58 = insertvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } { i1 true, %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, i64 undef }, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %56, 1 + %59 = insertvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %58, i64 %57, 2 br label %_llgo_6 _llgo_5: ; preds = %_llgo_1 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 - %60 = phi { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } [ %59, %_llgo_4 ], [ zeroinitializer, %_llgo_5 ] - %61 = extractvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %60, 0 + %60 = phi { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } [ %59, %_llgo_4 ], [ zeroinitializer, %_llgo_5 ] + %61 = extractvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %60, 0 br i1 %61, label %_llgo_2, label %_llgo_3 _llgo_7: ; preds = %_llgo_2 - %62 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %49, 1 + %62 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %49, 1 %63 = load [1 x %main.N], ptr %62, align 1 %64 = alloca [1 x %main.N], align 8 call void @llvm.memset(ptr %64, i8 0, i64 2, i1 false) @@ -537,19 +537,19 @@ _llgo_7: ; preds = %_llgo_2 %66 = load %main.N, ptr %65, align 1 %67 = extractvalue %main.N %66, 0 %68 = sext i8 %67 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %68) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %50) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %68) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %50) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_8: ; preds = %_llgo_2 %69 = load ptr, ptr @_llgo_string, align 8 - %70 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 21 }, ptr %70, align 8 - %71 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %69, 0 - %72 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %71, ptr %70, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %72) + %70 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 21 }, ptr %70, align 8 + %71 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %69, 0 + %72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %71, ptr %70, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %72) unreachable } @@ -558,7 +558,7 @@ _llgo_0: %0 = alloca [1 x ptr], align 8 call void @llvm.memset(ptr %0, i8 0, i64 8, i1 false) %1 = getelementptr inbounds ptr, ptr %0, i64 0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 2) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 2) %3 = getelementptr inbounds %main.N, ptr %2, i32 0, i32 0 %4 = getelementptr inbounds %main.N, ptr %2, i32 0, i32 1 store i8 1, ptr %3, align 1 @@ -567,12 +567,12 @@ _llgo_0: %5 = load [1 x ptr], ptr %0, align 8 %6 = load ptr, ptr @_llgo_main.K2, align 8 %7 = extractvalue [1 x ptr] %5, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %6, 0 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %8, ptr %7, 1 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %6, 0 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %8, ptr %7, 1 %10 = alloca [1 x ptr], align 8 call void @llvm.memset(ptr %10, i8 0, i64 8, i1 false) %11 = getelementptr inbounds ptr, ptr %10, i64 0 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 2) + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 2) %13 = getelementptr inbounds %main.N, ptr %12, i32 0, i32 0 %14 = getelementptr inbounds %main.N, ptr %12, i32 0, i32 1 store i8 1, ptr %13, align 1 @@ -581,17 +581,17 @@ _llgo_0: %15 = load [1 x ptr], ptr %10, align 8 %16 = load ptr, ptr @_llgo_main.K2, align 8 %17 = extractvalue [1 x ptr] %15, 0 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %16, 0 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %18, ptr %17, 1 - %20 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %9, %"github.com/goplus/llgo/internal/runtime.eface" %19) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %20) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %16, 0 + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %18, ptr %17, 1 + %20 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %19) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %20) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %21 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %22 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %21, i64 0) + %22 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %21, i64 0) %23 = alloca [1 x ptr], align 8 call void @llvm.memset(ptr %23, i8 0, i64 8, i1 false) %24 = getelementptr inbounds ptr, ptr %23, i64 0 - %25 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 2) + %25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 2) %26 = getelementptr inbounds %main.N, ptr %25, i32 0, i32 0 %27 = getelementptr inbounds %main.N, ptr %25, i32 0, i32 1 store i8 1, ptr %26, align 1 @@ -600,17 +600,17 @@ _llgo_0: %28 = load [1 x ptr], ptr %23, align 8 %29 = load ptr, ptr @_llgo_main.K2, align 8 %30 = extractvalue [1 x ptr] %28, 0 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %29, 0 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %31, ptr %30, 1 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %29, 0 + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %31, ptr %30, 1 %33 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.eface" %32, ptr %34, align 8 - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %33, ptr %22, ptr %34) + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %32, ptr %34, align 8 + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %33, ptr %22, ptr %34) store i64 100, ptr %35, align 4 %36 = alloca [1 x ptr], align 8 call void @llvm.memset(ptr %36, i8 0, i64 8, i1 false) %37 = getelementptr inbounds ptr, ptr %36, i64 0 - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 2) + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 2) %39 = getelementptr inbounds %main.N, ptr %38, i32 0, i32 0 %40 = getelementptr inbounds %main.N, ptr %38, i32 0, i32 1 store i8 3, ptr %39, align 1 @@ -619,26 +619,26 @@ _llgo_0: %41 = load [1 x ptr], ptr %36, align 8 %42 = load ptr, ptr @_llgo_main.K2, align 8 %43 = extractvalue [1 x ptr] %41, 0 - %44 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %42, 0 - %45 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %44, ptr %43, 1 + %44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %42, 0 + %45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %44, ptr %43, 1 %46 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %47 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.eface" %45, ptr %47, align 8 - %48 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %46, ptr %22, ptr %47) + %47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %45, ptr %47, align 8 + %48 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %46, ptr %22, ptr %47) store i64 200, ptr %48, align 4 %49 = load ptr, ptr @"map[_llgo_any]_llgo_int", align 8 - %50 = call ptr @"github.com/goplus/llgo/internal/runtime.NewMapIter"(ptr %49, ptr %22) + %50 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewMapIter"(ptr %49, ptr %22) br label %_llgo_1 _llgo_1: ; preds = %_llgo_7, %_llgo_0 - %51 = call { i1, ptr, ptr } @"github.com/goplus/llgo/internal/runtime.MapIterNext"(ptr %50) + %51 = call { i1, ptr, ptr } @"github.com/goplus/llgo/runtime/internal/runtime.MapIterNext"(ptr %50) %52 = extractvalue { i1, ptr, ptr } %51, 0 br i1 %52, label %_llgo_4, label %_llgo_5 _llgo_2: ; preds = %_llgo_6 - %53 = extractvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %64, 1 - %54 = extractvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %64, 2 - %55 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %53, 0 + %53 = extractvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %64, 1 + %54 = extractvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %64, 2 + %55 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %53, 0 %56 = load ptr, ptr @_llgo_main.K2, align 8 %57 = icmp eq ptr %55, %56 br i1 %57, label %_llgo_7, label %_llgo_8 @@ -649,82 +649,82 @@ _llgo_3: ; preds = %_llgo_6 _llgo_4: ; preds = %_llgo_1 %58 = extractvalue { i1, ptr, ptr } %51, 1 %59 = extractvalue { i1, ptr, ptr } %51, 2 - %60 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %58, align 8 + %60 = load %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %58, align 8 %61 = load i64, ptr %59, align 4 - %62 = insertvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } { i1 true, %"github.com/goplus/llgo/internal/runtime.eface" undef, i64 undef }, %"github.com/goplus/llgo/internal/runtime.eface" %60, 1 - %63 = insertvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %62, i64 %61, 2 + %62 = insertvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } { i1 true, %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, i64 undef }, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %60, 1 + %63 = insertvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %62, i64 %61, 2 br label %_llgo_6 _llgo_5: ; preds = %_llgo_1 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 - %64 = phi { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } [ %63, %_llgo_4 ], [ zeroinitializer, %_llgo_5 ] - %65 = extractvalue { i1, %"github.com/goplus/llgo/internal/runtime.eface", i64 } %64, 0 + %64 = phi { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } [ %63, %_llgo_4 ], [ zeroinitializer, %_llgo_5 ] + %65 = extractvalue { i1, %"github.com/goplus/llgo/runtime/internal/runtime.eface", i64 } %64, 0 br i1 %65, label %_llgo_2, label %_llgo_3 _llgo_7: ; preds = %_llgo_2 - %66 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %53, 1 + %66 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %53, 1 %67 = getelementptr inbounds %main.N, ptr %66, i32 0, i32 0 %68 = load i8, ptr %67, align 1 %69 = sext i8 %68 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %69) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %54) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %69) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %54) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_8: ; preds = %_llgo_2 %70 = load ptr, ptr @_llgo_string, align 8 - %71 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 21 }, ptr %71, align 8 - %72 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %70, 0 - %73 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %72, ptr %71, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %73) + %71 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 21 }, ptr %71, align 8 + %72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %70, 0 + %73 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %72, ptr %71, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %73) unreachable } define void @main.make5() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64 8, i64 0) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64 8, i64 0) %1 = load ptr, ptr @"chan _llgo_int", align 8 - %2 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %1, 0 - %3 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %2, ptr %0, 1 + %2 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %1, 0 + %3 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %2, ptr %0, 1 %4 = load ptr, ptr @"chan _llgo_int", align 8 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0 - %6 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, ptr %0, 1 - %7 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %3, %"github.com/goplus/llgo/internal/runtime.eface" %6) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %7) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0 + %6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %0, 1 + %7 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %3, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %7) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %8 = load ptr, ptr @"chan _llgo_int", align 8 %9 = load ptr, ptr @"map[chan _llgo_int]_llgo_int", align 8 - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %9, i64 0) + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %9, i64 0) %11 = load ptr, ptr @"map[chan _llgo_int]_llgo_int", align 8 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store ptr %0, ptr %12, align 8 - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %11, ptr %10, ptr %12) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %11, ptr %10, ptr %12) store i64 100, ptr %13, align 4 %14 = load ptr, ptr @"map[chan _llgo_int]_llgo_int", align 8 - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store ptr %0, ptr %15, align 8 - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %14, ptr %10, ptr %15) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %14, ptr %10, ptr %15) store i64 200, ptr %16, align 4 %17 = load ptr, ptr @"map[chan _llgo_int]_llgo_int", align 8 - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.NewMapIter"(ptr %17, ptr %10) + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewMapIter"(ptr %17, ptr %10) br label %_llgo_1 _llgo_1: ; preds = %_llgo_2, %_llgo_0 - %19 = call { i1, ptr, ptr } @"github.com/goplus/llgo/internal/runtime.MapIterNext"(ptr %18) + %19 = call { i1, ptr, ptr } @"github.com/goplus/llgo/runtime/internal/runtime.MapIterNext"(ptr %18) %20 = extractvalue { i1, ptr, ptr } %19, 0 br i1 %20, label %_llgo_4, label %_llgo_5 _llgo_2: ; preds = %_llgo_6 %21 = extractvalue { i1, ptr, i64 } %29, 1 %22 = extractvalue { i1, ptr, i64 } %29, 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %21) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %22) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %21) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %22) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_3: ; preds = %_llgo_6 @@ -751,28 +751,28 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 define void @main.make6() { _llgo_0: %0 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8 - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %0, i64 0) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %0, i64 0) %2 = load ptr, ptr @_llgo_main.M, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 1, ptr %3, align 4 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %2, ptr %1, ptr %3) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr %4, align 8 + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %2, ptr %1, ptr %3) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr %4, align 8 %5 = load ptr, ptr @_llgo_main.M, align 8 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.NewMapIter"(ptr %5, ptr %1) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewMapIter"(ptr %5, ptr %1) br label %_llgo_1 _llgo_1: ; preds = %_llgo_2, %_llgo_0 - %7 = call { i1, ptr, ptr } @"github.com/goplus/llgo/internal/runtime.MapIterNext"(ptr %6) + %7 = call { i1, ptr, ptr } @"github.com/goplus/llgo/runtime/internal/runtime.MapIterNext"(ptr %6) %8 = extractvalue { i1, ptr, ptr } %7, 0 br i1 %8, label %_llgo_4, label %_llgo_5 _llgo_2: ; preds = %_llgo_6 - %9 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %17, 1 - %10 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %17, 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %9) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %10) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %9 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %17, 1 + %10 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %17, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %9) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_3: ; preds = %_llgo_6 @@ -782,17 +782,17 @@ _llgo_4: ; preds = %_llgo_1 %11 = extractvalue { i1, ptr, ptr } %7, 1 %12 = extractvalue { i1, ptr, ptr } %7, 2 %13 = load i64, ptr %11, align 4 - %14 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %12, align 8 - %15 = insertvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } { i1 true, i64 undef, %"github.com/goplus/llgo/internal/runtime.String" undef }, i64 %13, 1 - %16 = insertvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %15, %"github.com/goplus/llgo/internal/runtime.String" %14, 2 + %14 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %12, align 8 + %15 = insertvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } { i1 true, i64 undef, %"github.com/goplus/llgo/runtime/internal/runtime.String" undef }, i64 %13, 1 + %16 = insertvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %15, %"github.com/goplus/llgo/runtime/internal/runtime.String" %14, 2 br label %_llgo_6 _llgo_5: ; preds = %_llgo_1 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 - %17 = phi { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } [ %16, %_llgo_4 ], [ zeroinitializer, %_llgo_5 ] - %18 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %17, 0 + %17 = phi { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } [ %16, %_llgo_4 ], [ zeroinitializer, %_llgo_5 ] + %18 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %17, 0 br i1 %18, label %_llgo_2, label %_llgo_3 } @@ -800,64 +800,64 @@ define void @main.make7() { _llgo_0: %0 = load ptr, ptr @_llgo_main.N, align 8 %1 = load ptr, ptr @"map[_llgo_main.N]_llgo_string", align 8 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %1, i64 2) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %1, i64 2) %3 = load ptr, ptr @"map[_llgo_main.N]_llgo_string", align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 1, ptr %4, align 4 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %3, ptr %2, ptr %4) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr %5, align 8 + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %3, ptr %2, ptr %4) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr %5, align 8 %6 = load ptr, ptr @"map[_llgo_main.N]_llgo_string", align 8 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 2, ptr %7, align 4 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %6, ptr %2, ptr %7) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 5 }, ptr %8, align 8 + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %6, ptr %2, ptr %7) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 5 }, ptr %8, align 8 %9 = load ptr, ptr @"map[_llgo_main.N]_llgo_string", align 8 - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.NewMapIter"(ptr %9, ptr %2) + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewMapIter"(ptr %9, ptr %2) br label %_llgo_1 _llgo_1: ; preds = %_llgo_2, %_llgo_0 - %11 = call { i1, ptr, ptr } @"github.com/goplus/llgo/internal/runtime.MapIterNext"(ptr %10) + %11 = call { i1, ptr, ptr } @"github.com/goplus/llgo/runtime/internal/runtime.MapIterNext"(ptr %10) %12 = extractvalue { i1, ptr, ptr } %11, 0 br i1 %12, label %_llgo_4, label %_llgo_5 _llgo_2: ; preds = %_llgo_6 - %13 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %25, 1 - %14 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %25, 2 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %13) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %14) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %13 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %25, 1 + %14 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %25, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %13) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_1 _llgo_3: ; preds = %_llgo_6 %15 = load ptr, ptr @"map[_llgo_main.N]_llgo_string", align 8 - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 1, ptr %16, align 4 - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAccess1"(ptr %15, ptr %2, ptr %16) - %18 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %17, align 8 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %18) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess1"(ptr %15, ptr %2, ptr %16) + %18 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %17, align 8 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %18) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void _llgo_4: ; preds = %_llgo_1 %19 = extractvalue { i1, ptr, ptr } %11, 1 %20 = extractvalue { i1, ptr, ptr } %11, 2 %21 = load i64, ptr %19, align 4 - %22 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %20, align 8 - %23 = insertvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } { i1 true, i64 undef, %"github.com/goplus/llgo/internal/runtime.String" undef }, i64 %21, 1 - %24 = insertvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %23, %"github.com/goplus/llgo/internal/runtime.String" %22, 2 + %22 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %20, align 8 + %23 = insertvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } { i1 true, i64 undef, %"github.com/goplus/llgo/runtime/internal/runtime.String" undef }, i64 %21, 1 + %24 = insertvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %23, %"github.com/goplus/llgo/runtime/internal/runtime.String" %22, 2 br label %_llgo_6 _llgo_5: ; preds = %_llgo_1 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 - %25 = phi { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } [ %24, %_llgo_4 ], [ zeroinitializer, %_llgo_5 ] - %26 = extractvalue { i1, i64, %"github.com/goplus/llgo/internal/runtime.String" } %25, 0 + %25 = phi { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } [ %24, %_llgo_4 ], [ zeroinitializer, %_llgo_5 ] + %26 = extractvalue { i1, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String" } %25, 0 br i1 %26, label %_llgo_2, label %_llgo_3 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: @@ -866,7 +866,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %2, ptr @_llgo_int, align 8 br label %_llgo_2 @@ -876,7 +876,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %5, ptr @_llgo_string, align 8 br label %_llgo_4 @@ -886,34 +886,34 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %7, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %10) - %12 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }, ptr %11, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %13) - %15 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, ptr %14, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %16) - %18 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 5 }, ptr %17, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %20 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 8 }, ptr %19, i64 200, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %22 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %12, ptr %22, align 8 - %23 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %15, ptr %23, align 8 - %24 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %18, ptr %24, align 8 - %25 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %20, ptr %25, align 8 - %26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %21, 0 - %27 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %26, i64 4, 1 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %27, i64 4, 2 - %29 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, i64 208, %"github.com/goplus/llgo/internal/runtime.Slice" %28) - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %8, ptr %9, ptr %29, i64 4) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %30) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %10) + %12 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }, ptr %11, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %13) + %15 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, ptr %14, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %16) + %18 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 5 }, ptr %17, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %20 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 8 }, ptr %19, i64 200, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %22 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %21, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %12, ptr %22, align 8 + %23 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %21, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %15, ptr %23, align 8 + %24 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %21, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %18, ptr %24, align 8 + %25 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %21, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %20, ptr %25, align 8 + %26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %21, 0 + %27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26, i64 4, 1 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %27, i64 4, 2 + %29 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, i64 208, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %28) + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %8, ptr %9, ptr %29, i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %30) store ptr %30, ptr @"map[_llgo_int]_llgo_string", align 8 br label %_llgo_6 @@ -923,34 +923,34 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 br i1 %32, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %33 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %36 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %35) - %37 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }, ptr %36, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %38 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %38) - %40 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, ptr %39, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %41 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %42 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %41) - %43 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 5 }, ptr %42, i64 136, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %44 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %45 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 8 }, ptr %44, i64 200, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %46 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %47 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %46, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %37, ptr %47, align 8 - %48 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %46, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %40, ptr %48, align 8 - %49 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %46, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %43, ptr %49, align 8 - %50 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %46, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %45, ptr %50, align 8 - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %46, 0 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %51, i64 4, 1 - %53 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %52, i64 4, 2 - %54 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, i64 208, %"github.com/goplus/llgo/internal/runtime.Slice" %53) - %55 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %33, ptr %34, ptr %54, i64 12) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %55) + %33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %36 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %35) + %37 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }, ptr %36, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %38 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %38) + %40 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, ptr %39, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %41 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %42 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %41) + %43 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 5 }, ptr %42, i64 136, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %44 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %45 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 8 }, ptr %44, i64 200, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %46 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %47 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %46, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %37, ptr %47, align 8 + %48 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %46, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %40, ptr %48, align 8 + %49 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %46, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %43, ptr %49, align 8 + %50 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %46, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %45, ptr %50, align 8 + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %46, 0 + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %51, i64 4, 1 + %53 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %52, i64 4, 2 + %54 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, i64 208, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %53) + %55 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %33, ptr %34, ptr %54, i64 12) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %55) store ptr %55, ptr @"map[_llgo_string]_llgo_int", align 8 br label %_llgo_8 @@ -960,11 +960,11 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 br i1 %57, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - %58 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %59 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %58, 0 - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %59, i64 0, 1 - %61 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, i64 0, 2 - %62 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %61) + %58 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %59 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %58, 0 + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %59, i64 0, 1 + %61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, i64 0, 2 + %62 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61) store ptr %62, ptr @_llgo_any, align 8 br label %_llgo_10 @@ -974,47 +974,47 @@ _llgo_10: ; preds = %_llgo_9, %_llgo_8 br i1 %64, label %_llgo_11, label %_llgo_12 _llgo_11: ; preds = %_llgo_10 - %65 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %66 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %65, 0 - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %66, i64 0, 1 - %68 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %67, i64 0, 2 - %69 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %68) - %70 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %71 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %72 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %71) - %73 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }, ptr %72, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %74 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %75 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %74, 0 - %76 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %75, i64 0, 1 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %76, i64 0, 2 - %78 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %77) - %79 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %78) - %80 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, ptr %79, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %81 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %82 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %81) - %83 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 5 }, ptr %82, i64 136, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %84 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %85 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 8 }, ptr %84, i64 200, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %86 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %87 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %86, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %73, ptr %87, align 8 - %88 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %86, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %80, ptr %88, align 8 - %89 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %86, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %83, ptr %89, align 8 - %90 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %86, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %85, ptr %90, align 8 - %91 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %86, 0 - %92 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %91, i64 4, 1 - %93 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %92, i64 4, 2 - %94 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, i64 208, %"github.com/goplus/llgo/internal/runtime.Slice" %93) - %95 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %69, ptr %70, ptr %94, i64 24) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %95) + %65 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %66 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %65, 0 + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %66, i64 0, 1 + %68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %67, i64 0, 2 + %69 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %68) + %70 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %71 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %72 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %71) + %73 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }, ptr %72, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %74 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %74, 0 + %76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %75, i64 0, 1 + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %76, i64 0, 2 + %78 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %77) + %79 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %78) + %80 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, ptr %79, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %81 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %82 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %81) + %83 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 5 }, ptr %82, i64 136, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %84 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %85 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 8 }, ptr %84, i64 200, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %86 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %87 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %86, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %73, ptr %87, align 8 + %88 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %86, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %80, ptr %88, align 8 + %89 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %86, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %83, ptr %89, align 8 + %90 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %86, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %85, ptr %90, align 8 + %91 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %86, 0 + %92 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %91, i64 4, 1 + %93 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %92, i64 4, 2 + %94 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, i64 208, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %93) + %95 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %69, ptr %70, ptr %94, i64 24) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %95) store ptr %95, ptr @"map[_llgo_any]_llgo_int", align 8 br label %_llgo_12 _llgo_12: ; preds = %_llgo_11, %_llgo_10 - %96 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @12, i64 2 }, i64 17, i64 8, i64 0, i64 0) + %96 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @12, i64 2 }, i64 17, i64 8, i64 0, i64 0) %97 = load ptr, ptr @_llgo_main.N1, align 8 %98 = icmp eq ptr %97, null br i1 %98, label %_llgo_13, label %_llgo_14 @@ -1029,8 +1029,8 @@ _llgo_14: ; preds = %_llgo_13, %_llgo_12 br i1 %100, label %_llgo_15, label %_llgo_16 _llgo_15: ; preds = %_llgo_14 - %101 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %102 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 1, ptr %101) + %101 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %102 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 1, ptr %101) store ptr %102, ptr @"[1]_llgo_int", align 8 br label %_llgo_16 @@ -1039,11 +1039,11 @@ _llgo_16: ; preds = %_llgo_15, %_llgo_14 br i1 %98, label %_llgo_17, label %_llgo_18 _llgo_17: ; preds = %_llgo_16 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %96, ptr %103, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %96, ptr %103, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_18 _llgo_18: ; preds = %_llgo_17, %_llgo_16 - %104 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @14, i64 1 }, i64 17, i64 2, i64 0, i64 0) + %104 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @14, i64 1 }, i64 17, i64 2, i64 0, i64 0) %105 = load ptr, ptr @_llgo_main.K, align 8 %106 = icmp eq ptr %105, null br i1 %106, label %_llgo_19, label %_llgo_20 @@ -1053,7 +1053,7 @@ _llgo_19: ; preds = %_llgo_18 br label %_llgo_20 _llgo_20: ; preds = %_llgo_19, %_llgo_18 - %107 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 1 }, i64 25, i64 2, i64 0, i64 0) + %107 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 1 }, i64 25, i64 2, i64 0, i64 0) %108 = load ptr, ptr @_llgo_main.N, align 8 %109 = icmp eq ptr %108, null br i1 %109, label %_llgo_21, label %_llgo_22 @@ -1068,42 +1068,42 @@ _llgo_22: ; preds = %_llgo_21, %_llgo_20 br i1 %111, label %_llgo_23, label %_llgo_24 _llgo_23: ; preds = %_llgo_22 - %112 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35) + %112 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 35) store ptr %112, ptr @_llgo_int8, align 8 br label %_llgo_24 _llgo_24: ; preds = %_llgo_23, %_llgo_22 %113 = load ptr, ptr @_llgo_int8, align 8 - %114 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35) - %115 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @16, i64 2 }, ptr %114, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %116 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35) - %117 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @17, i64 2 }, ptr %116, i64 1, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %118 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %119 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %118, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %115, ptr %119, align 8 - %120 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %118, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %117, ptr %120, align 8 - %121 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %118, 0 - %122 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %121, i64 2, 1 - %123 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %122, i64 2, 2 - %124 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, i64 2, %"github.com/goplus/llgo/internal/runtime.Slice" %123) + %114 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 35) + %115 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @16, i64 2 }, ptr %114, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %116 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 35) + %117 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @17, i64 2 }, ptr %116, i64 1, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %118 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %119 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %118, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %115, ptr %119, align 8 + %120 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %118, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %117, ptr %120, align 8 + %121 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %118, 0 + %122 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %121, i64 2, 1 + %123 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %122, i64 2, 2 + %124 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, i64 2, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %123) store ptr %124, ptr @"main.struct$e65EDK9vxC36Nz3YTgO1ulssLlNH03Bva_WWaCjH-4A", align 8 %125 = load ptr, ptr @"main.struct$e65EDK9vxC36Nz3YTgO1ulssLlNH03Bva_WWaCjH-4A", align 8 br i1 %109, label %_llgo_25, label %_llgo_26 _llgo_25: ; preds = %_llgo_24 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %107, ptr %125, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %107, ptr %125, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_26 _llgo_26: ; preds = %_llgo_25, %_llgo_24 %126 = load ptr, ptr @_llgo_main.N, align 8 - %127 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 1 }, i64 25, i64 2, i64 0, i64 0) + %127 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 1 }, i64 25, i64 2, i64 0, i64 0) %128 = load ptr, ptr @"[1]_llgo_main.N", align 8 %129 = icmp eq ptr %128, null br i1 %129, label %_llgo_27, label %_llgo_28 _llgo_27: ; preds = %_llgo_26 - %130 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 1, ptr %127) + %130 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 1, ptr %127) store ptr %130, ptr @"[1]_llgo_main.N", align 8 br label %_llgo_28 @@ -1112,43 +1112,43 @@ _llgo_28: ; preds = %_llgo_27, %_llgo_26 br i1 %106, label %_llgo_29, label %_llgo_30 _llgo_29: ; preds = %_llgo_28 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %104, ptr %131, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %104, ptr %131, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_30 _llgo_30: ; preds = %_llgo_29, %_llgo_28 - %132 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @18, i64 2 }, i64 17, i64 8, i64 0, i64 0) + %132 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @18, i64 2 }, i64 17, i64 8, i64 0, i64 0) %133 = load ptr, ptr @_llgo_main.K2, align 8 %134 = icmp eq ptr %133, null br i1 %134, label %_llgo_31, label %_llgo_32 _llgo_31: ; preds = %_llgo_30 - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %132) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %132) store ptr %132, ptr @_llgo_main.K2, align 8 br label %_llgo_32 _llgo_32: ; preds = %_llgo_31, %_llgo_30 - %135 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 1 }, i64 25, i64 2, i64 0, i64 0) + %135 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 1 }, i64 25, i64 2, i64 0, i64 0) %136 = load ptr, ptr @"*_llgo_main.N", align 8 %137 = icmp eq ptr %136, null br i1 %137, label %_llgo_33, label %_llgo_34 _llgo_33: ; preds = %_llgo_32 - %138 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %135) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %138) + %138 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %135) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %138) store ptr %138, ptr @"*_llgo_main.N", align 8 br label %_llgo_34 _llgo_34: ; preds = %_llgo_33, %_llgo_32 %139 = load ptr, ptr @"*_llgo_main.N", align 8 - %140 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 1 }, i64 25, i64 2, i64 0, i64 0) + %140 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 1 }, i64 25, i64 2, i64 0, i64 0) %141 = load ptr, ptr @"[1]*_llgo_main.N", align 8 %142 = icmp eq ptr %141, null br i1 %142, label %_llgo_35, label %_llgo_36 _llgo_35: ; preds = %_llgo_34 - %143 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %140) - %144 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 1, ptr %143) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %144) + %143 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %140) + %144 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 1, ptr %143) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %144) store ptr %144, ptr @"[1]*_llgo_main.N", align 8 br label %_llgo_36 @@ -1157,7 +1157,7 @@ _llgo_36: ; preds = %_llgo_35, %_llgo_34 br i1 %134, label %_llgo_37, label %_llgo_38 _llgo_37: ; preds = %_llgo_36 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %132, ptr %145, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %132, ptr %145, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_38 _llgo_38: ; preds = %_llgo_37, %_llgo_36 @@ -1166,9 +1166,9 @@ _llgo_38: ; preds = %_llgo_37, %_llgo_36 br i1 %147, label %_llgo_39, label %_llgo_40 _llgo_39: ; preds = %_llgo_38 - %148 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %149 = call ptr @"github.com/goplus/llgo/internal/runtime.ChanOf"(i64 3, %"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 4 }, ptr %148) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %149) + %148 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %149 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ChanOf"(i64 3, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 4 }, ptr %148) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %149) store ptr %149, ptr @"chan _llgo_int", align 8 br label %_llgo_40 @@ -1178,47 +1178,47 @@ _llgo_40: ; preds = %_llgo_39, %_llgo_38 br i1 %151, label %_llgo_41, label %_llgo_42 _llgo_41: ; preds = %_llgo_40 - %152 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %153 = call ptr @"github.com/goplus/llgo/internal/runtime.ChanOf"(i64 3, %"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 4 }, ptr %152) - %154 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %155 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %156 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %155) - %157 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }, ptr %156, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %158 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %159 = call ptr @"github.com/goplus/llgo/internal/runtime.ChanOf"(i64 3, %"github.com/goplus/llgo/internal/runtime.String" { ptr @19, i64 4 }, ptr %158) - %160 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %159) - %161 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, ptr %160, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %162 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %163 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %162) - %164 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 5 }, ptr %163, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %165 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %166 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 8 }, ptr %165, i64 136, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %167 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %168 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %167, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %157, ptr %168, align 8 - %169 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %167, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %161, ptr %169, align 8 - %170 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %167, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %164, ptr %170, align 8 - %171 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %167, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %166, ptr %171, align 8 - %172 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %167, 0 - %173 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %172, i64 4, 1 - %174 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %173, i64 4, 2 - %175 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, i64 144, %"github.com/goplus/llgo/internal/runtime.Slice" %174) - %176 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %153, ptr %154, ptr %175, i64 4) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %176) + %152 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %153 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ChanOf"(i64 3, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 4 }, ptr %152) + %154 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %155 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %156 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %155) + %157 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }, ptr %156, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %158 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %159 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ChanOf"(i64 3, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @19, i64 4 }, ptr %158) + %160 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %159) + %161 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, ptr %160, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %162 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %163 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %162) + %164 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 5 }, ptr %163, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %165 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %166 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 8 }, ptr %165, i64 136, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %167 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %168 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %167, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %157, ptr %168, align 8 + %169 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %167, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %161, ptr %169, align 8 + %170 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %167, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %164, ptr %170, align 8 + %171 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %167, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %166, ptr %171, align 8 + %172 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %167, 0 + %173 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %172, i64 4, 1 + %174 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %173, i64 4, 2 + %175 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, i64 144, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %174) + %176 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %153, ptr %154, ptr %175, i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %176) store ptr %176, ptr @"map[chan _llgo_int]_llgo_int", align 8 br label %_llgo_42 _llgo_42: ; preds = %_llgo_41, %_llgo_40 - %177 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @20, i64 1 }, i64 21, i64 8, i64 0, i64 0) + %177 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @20, i64 1 }, i64 21, i64 8, i64 0, i64 0) %178 = load ptr, ptr @_llgo_main.M, align 8 %179 = icmp eq ptr %178, null br i1 %179, label %_llgo_43, label %_llgo_44 _llgo_43: ; preds = %_llgo_42 - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %177) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %177) store ptr %177, ptr @_llgo_main.M, align 8 br label %_llgo_44 @@ -1227,43 +1227,43 @@ _llgo_44: ; preds = %_llgo_43, %_llgo_42 br i1 %179, label %_llgo_45, label %_llgo_46 _llgo_45: ; preds = %_llgo_44 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %177, ptr %180, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %177, ptr %180, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_46 _llgo_46: ; preds = %_llgo_45, %_llgo_44 - %181 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 1 }, i64 2, i64 8, i64 0, i64 0) - %182 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 1 }, i64 2, i64 8, i64 0, i64 0) + %181 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 1 }, i64 2, i64 8, i64 0, i64 0) + %182 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 1 }, i64 2, i64 8, i64 0, i64 0) %183 = load ptr, ptr @"map[_llgo_main.N]_llgo_string", align 8 %184 = icmp eq ptr %183, null br i1 %184, label %_llgo_47, label %_llgo_48 _llgo_47: ; preds = %_llgo_46 - %185 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %186 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %187 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %186) - %188 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }, ptr %187, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %189 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %182) - %190 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, ptr %189, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %191 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %192 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %191) - %193 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 5 }, ptr %192, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %194 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %195 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 8 }, ptr %194, i64 200, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %196 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %197 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %196, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %188, ptr %197, align 8 - %198 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %196, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %190, ptr %198, align 8 - %199 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %196, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %193, ptr %199, align 8 - %200 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %196, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %195, ptr %200, align 8 - %201 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %196, 0 - %202 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %201, i64 4, 1 - %203 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %202, i64 4, 2 - %204 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, i64 208, %"github.com/goplus/llgo/internal/runtime.Slice" %203) - %205 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %181, ptr %185, ptr %204, i64 4) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %205) + %185 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %186 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %187 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %186) + %188 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }, ptr %187, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %189 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %182) + %190 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, ptr %189, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %191 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %192 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %191) + %193 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 5 }, ptr %192, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %194 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %195 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 8 }, ptr %194, i64 200, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %196 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %197 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %196, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %188, ptr %197, align 8 + %198 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %196, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %190, ptr %198, align 8 + %199 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %196, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %193, ptr %199, align 8 + %200 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %196, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %195, ptr %200, align 8 + %201 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %196, 0 + %202 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %201, i64 4, 1 + %203 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %202, i64 4, 2 + %204 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, i64 208, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %203) + %205 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %181, ptr %185, ptr %204, i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %205) store ptr %205, ptr @"map[_llgo_main.N]_llgo_string", align 8 br label %_llgo_48 @@ -1271,65 +1271,65 @@ _llgo_48: ; preds = %_llgo_47, %_llgo_46 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr, ptr, ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr, ptr, ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr, ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr, ptr, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapAccess1"(ptr, ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess1"(ptr, ptr, ptr) -declare i64 @"github.com/goplus/llgo/internal/runtime.MapLen"(ptr) +declare i64 @"github.com/goplus/llgo/runtime/internal/runtime.MapLen"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.NewMapIter"(ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewMapIter"(ptr, ptr) -declare { i1, ptr, ptr } @"github.com/goplus/llgo/internal/runtime.MapIterNext"(ptr) +declare { i1, ptr, ptr } @"github.com/goplus/llgo/runtime/internal/runtime.MapIterNext"(ptr) -declare { ptr, i1 } @"github.com/goplus/llgo/internal/runtime.MapAccess2"(ptr, ptr, ptr) +declare { ptr, i1 } @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess2"(ptr, ptr, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) -declare void @"github.com/goplus/llgo/internal/runtime.MapDelete"(ptr, ptr, ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.MapDelete"(ptr, ptr, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface", %"github.com/goplus/llgo/internal/runtime.eface") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface", %"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.ChanOf"(i64, %"github.com/goplus/llgo/internal/runtime.String", ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.ChanOf"(i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr) attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testrt/map/out.ll b/compiler/cl/_testrt/map/out.ll index 8d7cf76f..6127be8a 100644 --- a/compiler/cl/_testrt/map/out.ll +++ b/compiler/cl/_testrt/map/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -35,31 +35,31 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load ptr, ptr @_llgo_int, align 8 %3 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %3, i64 2) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %3, i64 2) %5 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 23, ptr %6, align 4 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %5, ptr %4, ptr %6) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %5, ptr %4, ptr %6) store i64 100, ptr %7, align 4 %8 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 7, ptr %9, align 4 - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %8, ptr %4, ptr %9) + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %8, ptr %4, ptr %9) store i64 29, ptr %10, align 4 %11 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) store i64 23, ptr %12, align 4 - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAccess1"(ptr %11, ptr %4, ptr %12) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess1"(ptr %11, ptr %4, ptr %12) %14 = load i64, ptr %13, align 4 %15 = call i32 (ptr, ...) @printf(ptr @5, i64 %14) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: @@ -68,7 +68,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %2, ptr @_llgo_int, align 8 br label %_llgo_2 @@ -78,34 +78,34 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %8 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %7) - %9 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }, ptr %8, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %10 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %10) - %12 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, ptr %11, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %13) - %15 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 5 }, ptr %14, i64 72, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) - %17 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 8 }, ptr %16, i64 136, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %19 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %18, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %9, ptr %19, align 8 - %20 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %18, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %12, ptr %20, align 8 - %21 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %18, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %15, ptr %21, align 8 - %22 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %18, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %17, ptr %22, align 8 - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %18, 0 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %23, i64 4, 1 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %24, i64 4, 2 - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 }, i64 144, %"github.com/goplus/llgo/internal/runtime.Slice" %25) - %27 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %5, ptr %6, ptr %26, i64 4) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %27) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %7) + %9 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }, ptr %8, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %10) + %12 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, ptr %11, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %13) + %15 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 5 }, ptr %14, i64 72, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) + %17 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 8 }, ptr %16, i64 136, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %19 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %18, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %9, ptr %19, align 8 + %20 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %18, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %12, ptr %20, align 8 + %21 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %18, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %15, ptr %21, align 8 + %22 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %18, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %17, ptr %22, align 8 + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %18, 0 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %23, i64 4, 1 + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, i64 4, 2 + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 4 }, i64 144, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25) + %27 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %5, ptr %6, ptr %26, i64 4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %27) store ptr %27, ptr @"map[_llgo_int]_llgo_int", align 8 br label %_llgo_4 @@ -113,24 +113,24 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr, ptr, ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr, ptr, ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr, ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr, ptr, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapAccess1"(ptr, ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess1"(ptr, ptr, ptr) declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testrt/mask/out.ll b/compiler/cl/_testrt/mask/out.ll index 0404fd58..96f65e87 100644 --- a/compiler/cl/_testrt/mask/out.ll +++ b/compiler/cl/_testrt/mask/out.ll @@ -22,46 +22,46 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call i32 @main.mask(i8 1) %3 = sext i32 %2 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %4 = call i64 @main.mask_shl(i64 127, i64 5) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %5 = call i8 @main.mask_shl8(i8 127, i64 5) %6 = sext i8 %5 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %6) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %6) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %7 = call i8 @main.mask_shl8u(i8 127, i64 5) %8 = zext i8 %7 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %8) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %9 = call i8 @main.mask_shl8(i8 127, i64 16) %10 = sext i8 %9 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %10) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %11 = call i8 @main.mask_shl8u(i8 127, i64 16) %12 = zext i8 %11 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %12) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %12) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %13 = call i64 @main.mask_shr(i64 127, i64 5) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %13) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %13) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %14 = call i8 @main.mask_shr8(i8 127, i64 5) %15 = sext i8 %14 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %15) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %15) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %16 = call i8 @main.mask_shr8u(i8 127, i64 5) %17 = zext i8 %16 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %17) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %17) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %18 = call i8 @main.mask_shr8(i8 127, i64 16) %19 = sext i8 %18 to i64 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %19) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %19) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } @@ -77,7 +77,7 @@ _llgo_0: define i64 @main.mask_shl(i64 %0, i64 %1) { _llgo_0: %2 = icmp slt i64 %1, 0 - call void @"github.com/goplus/llgo/internal/runtime.AssertNegativeShift"(i1 %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertNegativeShift"(i1 %2) %3 = icmp uge i64 %1, 64 %4 = shl i64 %0, %1 %5 = select i1 %3, i64 0, i64 %4 @@ -87,7 +87,7 @@ _llgo_0: define i8 @main.mask_shl8(i8 %0, i64 %1) { _llgo_0: %2 = icmp slt i64 %1, 0 - call void @"github.com/goplus/llgo/internal/runtime.AssertNegativeShift"(i1 %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertNegativeShift"(i1 %2) %3 = trunc i64 %1 to i8 %4 = icmp uge i8 %3, 8 %5 = shl i8 %0, %3 @@ -98,7 +98,7 @@ _llgo_0: define i8 @main.mask_shl8u(i8 %0, i64 %1) { _llgo_0: %2 = icmp slt i64 %1, 0 - call void @"github.com/goplus/llgo/internal/runtime.AssertNegativeShift"(i1 %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertNegativeShift"(i1 %2) %3 = trunc i64 %1 to i8 %4 = icmp uge i8 %3, 8 %5 = shl i8 %0, %3 @@ -109,7 +109,7 @@ _llgo_0: define i64 @main.mask_shr(i64 %0, i64 %1) { _llgo_0: %2 = icmp slt i64 %1, 0 - call void @"github.com/goplus/llgo/internal/runtime.AssertNegativeShift"(i1 %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertNegativeShift"(i1 %2) %3 = icmp uge i64 %1, 64 %4 = select i1 %3, i64 63, i64 %1 %5 = ashr i64 %0, %4 @@ -119,7 +119,7 @@ _llgo_0: define i8 @main.mask_shr8(i8 %0, i64 %1) { _llgo_0: %2 = icmp slt i64 %1, 0 - call void @"github.com/goplus/llgo/internal/runtime.AssertNegativeShift"(i1 %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertNegativeShift"(i1 %2) %3 = trunc i64 %1 to i8 %4 = icmp uge i8 %3, 8 %5 = select i1 %4, i8 7, i8 %3 @@ -130,7 +130,7 @@ _llgo_0: define i8 @main.mask_shr8u(i8 %0, i64 %1) { _llgo_0: %2 = icmp slt i64 %1, 0 - call void @"github.com/goplus/llgo/internal/runtime.AssertNegativeShift"(i1 %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertNegativeShift"(i1 %2) %3 = trunc i64 %1 to i8 %4 = icmp uge i8 %3, 8 %5 = lshr i8 %0, %3 @@ -138,12 +138,12 @@ _llgo_0: ret i8 %6 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.AssertNegativeShift"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertNegativeShift"(i1) diff --git a/compiler/cl/_testrt/named/out.ll b/compiler/cl/_testrt/named/out.ll index c92404bb..8dbacda6 100644 --- a/compiler/cl/_testrt/named/out.ll +++ b/compiler/cl/_testrt/named/out.ll @@ -27,16 +27,16 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 64) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 64) store ptr %3, ptr %2, align 8 %4 = load ptr, ptr %2, align 8 %5 = getelementptr inbounds %main.mspan, ptr %4, i32 0, i32 4 store i64 100, ptr %5, align 4 %6 = load ptr, ptr %2, align 8 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 64) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 64) %8 = getelementptr inbounds %main.mspan, ptr %6, i32 0, i32 0 store ptr %7, ptr %8, align 8 %9 = load ptr, ptr %2, align 8 @@ -45,13 +45,13 @@ _llgo_0: %12 = getelementptr inbounds %main.mspan, ptr %11, i32 0, i32 4 store i64 200, ptr %12, align 4 %13 = load ptr, ptr %2, align 8 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) %15 = getelementptr inbounds %main.mspan, ptr %13, i32 0, i32 2 store ptr %14, ptr %15, align 8 %16 = load ptr, ptr %2, align 8 %17 = getelementptr inbounds %main.mspan, ptr %16, i32 0, i32 2 %18 = load ptr, ptr %17, align 8 - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 64) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 64) %20 = getelementptr inbounds %main.mSpanList, ptr %18, i32 0, i32 1 store ptr %19, ptr %20, align 8 %21 = load ptr, ptr %2, align 8 @@ -71,7 +71,7 @@ _llgo_0: %33 = getelementptr inbounds %main.minfo, ptr %31, i32 0, i32 0 store ptr %32, ptr %33, align 8 %34 = load ptr, ptr %2, align 8 - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %36 = getelementptr inbounds { ptr }, ptr %35, i32 0, i32 0 store ptr %2, ptr %36, align 8 %37 = insertvalue { ptr, ptr } { ptr @"main.main$1", ptr undef }, ptr %35, 1 @@ -129,10 +129,10 @@ _llgo_0: ret i64 %7 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testrt/panic/out.ll b/compiler/cl/_testrt/panic/out.ll index 30432a7f..196bc682 100644 --- a/compiler/cl/_testrt/panic/out.ll +++ b/compiler/cl/_testrt/panic/out.ll @@ -1,8 +1,8 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -28,18 +28,18 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load ptr, ptr @_llgo_string, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 13 }, ptr %3, align 8 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %2, 0 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %4, ptr %3, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %5) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 13 }, ptr %3, align 8 + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %2, 0 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %4, ptr %3, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %5) unreachable } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: @@ -48,7 +48,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %2, ptr @_llgo_string, align 8 br label %_llgo_2 @@ -56,8 +56,8 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") diff --git a/compiler/cl/_testrt/qsort/out.ll b/compiler/cl/_testrt/qsort/out.ll index 7806fe1e..8f4b7ff4 100644 --- a/compiler/cl/_testrt/qsort/out.ll +++ b/compiler/cl/_testrt/qsort/out.ll @@ -23,9 +23,9 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %3 = getelementptr inbounds i64, ptr %2, i64 0 %4 = getelementptr inbounds i64, ptr %2, i64 1 %5 = getelementptr inbounds i64, ptr %2, i64 2 @@ -51,7 +51,7 @@ _llgo_2: ; preds = %_llgo_1 %13 = icmp slt i64 %11, 0 %14 = icmp sge i64 %11, 5 %15 = or i1 %14, %13 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %15) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %15) %16 = getelementptr inbounds i64, ptr %2, i64 %11 %17 = load i64, ptr %16, align 4 %18 = call i32 (ptr, ...) @printf(ptr @0, i64 %17) @@ -70,12 +70,12 @@ _llgo_0: ret i32 %5 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) declare void @qsort(ptr, i64, i64, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testrt/qsortfn/out.ll b/compiler/cl/_testrt/qsortfn/out.ll index 8f862d90..80bc08eb 100644 --- a/compiler/cl/_testrt/qsortfn/out.ll +++ b/compiler/cl/_testrt/qsortfn/out.ll @@ -42,7 +42,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @main.sort1a() call void @main.sort1b() @@ -60,7 +60,7 @@ _llgo_0: define void @main.sort1a() { _llgo_0: %0 = call i32 (ptr, ...) @printf(ptr @0) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %2 = getelementptr inbounds i64, ptr %1, i64 0 %3 = getelementptr inbounds i64, ptr %1, i64 1 %4 = getelementptr inbounds i64, ptr %1, i64 2 @@ -86,7 +86,7 @@ _llgo_2: ; preds = %_llgo_1 %12 = icmp slt i64 %10, 0 %13 = icmp sge i64 %10, 5 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i64, ptr %1, i64 %10 %16 = load i64, ptr %15, align 4 %17 = call i32 (ptr, ...) @printf(ptr @1, i64 %16) @@ -108,7 +108,7 @@ _llgo_0: define void @main.sort1b() { _llgo_0: %0 = call i32 (ptr, ...) @printf(ptr @2) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %2 = getelementptr inbounds i64, ptr %1, i64 0 %3 = getelementptr inbounds i64, ptr %1, i64 1 %4 = getelementptr inbounds i64, ptr %1, i64 2 @@ -134,7 +134,7 @@ _llgo_2: ; preds = %_llgo_1 %12 = icmp slt i64 %10, 0 %13 = icmp sge i64 %10, 5 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i64, ptr %1, i64 %10 %16 = load i64, ptr %15, align 4 %17 = call i32 (ptr, ...) @printf(ptr @3, i64 %16) @@ -156,7 +156,7 @@ _llgo_0: define void @main.sort2a() { _llgo_0: %0 = call i32 (ptr, ...) @printf(ptr @4) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %2 = getelementptr inbounds i64, ptr %1, i64 0 %3 = getelementptr inbounds i64, ptr %1, i64 1 %4 = getelementptr inbounds i64, ptr %1, i64 2 @@ -182,7 +182,7 @@ _llgo_2: ; preds = %_llgo_1 %12 = icmp slt i64 %10, 0 %13 = icmp sge i64 %10, 5 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i64, ptr %1, i64 %10 %16 = load i64, ptr %15, align 4 %17 = call i32 (ptr, ...) @printf(ptr @5, i64 %16) @@ -204,7 +204,7 @@ _llgo_0: define void @main.sort2b() { _llgo_0: %0 = call i32 (ptr, ...) @printf(ptr @6) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %2 = getelementptr inbounds i64, ptr %1, i64 0 %3 = getelementptr inbounds i64, ptr %1, i64 1 %4 = getelementptr inbounds i64, ptr %1, i64 2 @@ -230,7 +230,7 @@ _llgo_2: ; preds = %_llgo_1 %12 = icmp slt i64 %10, 0 %13 = icmp sge i64 %10, 5 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i64, ptr %1, i64 %10 %16 = load i64, ptr %15, align 4 %17 = call i32 (ptr, ...) @printf(ptr @7, i64 %16) @@ -252,7 +252,7 @@ _llgo_0: define void @main.sort3a() { _llgo_0: %0 = call i32 (ptr, ...) @printf(ptr @8) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %2 = getelementptr inbounds i64, ptr %1, i64 0 %3 = getelementptr inbounds i64, ptr %1, i64 1 %4 = getelementptr inbounds i64, ptr %1, i64 2 @@ -278,7 +278,7 @@ _llgo_2: ; preds = %_llgo_1 %12 = icmp slt i64 %10, 0 %13 = icmp sge i64 %10, 5 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i64, ptr %1, i64 %10 %16 = load i64, ptr %15, align 4 %17 = call i32 (ptr, ...) @printf(ptr @9, i64 %16) @@ -300,7 +300,7 @@ _llgo_0: define void @main.sort3b() { _llgo_0: %0 = call i32 (ptr, ...) @printf(ptr @10) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %2 = getelementptr inbounds i64, ptr %1, i64 0 %3 = getelementptr inbounds i64, ptr %1, i64 1 %4 = getelementptr inbounds i64, ptr %1, i64 2 @@ -326,7 +326,7 @@ _llgo_2: ; preds = %_llgo_1 %12 = icmp slt i64 %10, 0 %13 = icmp sge i64 %10, 5 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i64, ptr %1, i64 %10 %16 = load i64, ptr %15, align 4 %17 = call i32 (ptr, ...) @printf(ptr @11, i64 %16) @@ -348,7 +348,7 @@ _llgo_0: define void @main.sort4a() { _llgo_0: %0 = call i32 (ptr, ...) @printf(ptr @12) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %2 = getelementptr inbounds i64, ptr %1, i64 0 %3 = getelementptr inbounds i64, ptr %1, i64 1 %4 = getelementptr inbounds i64, ptr %1, i64 2 @@ -374,7 +374,7 @@ _llgo_2: ; preds = %_llgo_1 %12 = icmp slt i64 %10, 0 %13 = icmp sge i64 %10, 5 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i64, ptr %1, i64 %10 %16 = load i64, ptr %15, align 4 %17 = call i32 (ptr, ...) @printf(ptr @13, i64 %16) @@ -396,7 +396,7 @@ _llgo_0: define void @main.sort4b() { _llgo_0: %0 = call i32 (ptr, ...) @printf(ptr @14) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %2 = getelementptr inbounds i64, ptr %1, i64 0 %3 = getelementptr inbounds i64, ptr %1, i64 1 %4 = getelementptr inbounds i64, ptr %1, i64 2 @@ -422,7 +422,7 @@ _llgo_2: ; preds = %_llgo_1 %12 = icmp slt i64 %10, 0 %13 = icmp sge i64 %10, 5 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i64, ptr %1, i64 %10 %16 = load i64, ptr %15, align 4 %17 = call i32 (ptr, ...) @printf(ptr @15, i64 %16) @@ -444,7 +444,7 @@ _llgo_0: define void @main.sort5a() { _llgo_0: %0 = call i32 (ptr, ...) @printf(ptr @16) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %2 = getelementptr inbounds i64, ptr %1, i64 0 %3 = getelementptr inbounds i64, ptr %1, i64 1 %4 = getelementptr inbounds i64, ptr %1, i64 2 @@ -470,7 +470,7 @@ _llgo_2: ; preds = %_llgo_1 %12 = icmp slt i64 %10, 0 %13 = icmp sge i64 %10, 5 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i64, ptr %1, i64 %10 %16 = load i64, ptr %15, align 4 %17 = call i32 (ptr, ...) @printf(ptr @17, i64 %16) @@ -492,7 +492,7 @@ _llgo_0: define void @main.sort5b() { _llgo_0: %0 = call i32 (ptr, ...) @printf(ptr @18) - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 40) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 40) %2 = getelementptr inbounds i64, ptr %1, i64 0 %3 = getelementptr inbounds i64, ptr %1, i64 1 %4 = getelementptr inbounds i64, ptr %1, i64 2 @@ -518,7 +518,7 @@ _llgo_2: ; preds = %_llgo_1 %12 = icmp slt i64 %10, 0 %13 = icmp sge i64 %10, 5 %14 = or i1 %13, %12 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %14) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %14) %15 = getelementptr inbounds i64, ptr %1, i64 %10 %16 = load i64, ptr %15, align 4 %17 = call i32 (ptr, ...) @printf(ptr @19, i64 %16) @@ -537,12 +537,12 @@ _llgo_0: ret i32 %5 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i32 @printf(ptr, ...) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) declare void @qsort(ptr, i64, i64, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) diff --git a/compiler/cl/_testrt/result/out.ll b/compiler/cl/_testrt/result/out.ll index 268460b0..a8a5e1cf 100644 --- a/compiler/cl/_testrt/result/out.ll +++ b/compiler/cl/_testrt/result/out.ll @@ -47,7 +47,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call { ptr, ptr } @"main.main$1"() %3 = extractvalue { ptr, ptr } %2, 1 @@ -93,7 +93,7 @@ _llgo_0: ret i64 %3 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testrt/slice2array/out.ll b/compiler/cl/_testrt/slice2array/out.ll index c0b01ea5..404e9ce5 100644 --- a/compiler/cl/_testrt/slice2array/out.ll +++ b/compiler/cl/_testrt/slice2array/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -24,9 +24,9 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 4) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 4) %3 = getelementptr inbounds i8, ptr %2, i64 0 %4 = getelementptr inbounds i8, ptr %2, i64 1 %5 = getelementptr inbounds i8, ptr %2, i64 2 @@ -35,20 +35,20 @@ _llgo_0: store i8 2, ptr %4, align 1 store i8 3, ptr %5, align 1 store i8 4, ptr %6, align 1 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %2, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %7, i64 4, 1 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, i64 4, 2 - %10 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 1 + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %2, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, i64 4, 1 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, i64 4, 2 + %10 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 1 %11 = icmp slt i64 %10, 4 br i1 %11, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %12 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 1 - call void @"github.com/goplus/llgo/internal/runtime.PanicSliceConvert"(i64 %12, i64 4) + %12 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PanicSliceConvert"(i64 %12, i64 4) br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 - %13 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, 0 + %13 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9, 0 %14 = load [4 x i8], ptr %2, align 1 %15 = load [4 x i8], ptr %13, align 1 %16 = extractvalue [4 x i8] %14, 0 @@ -67,22 +67,22 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 %29 = extractvalue [4 x i8] %15, 3 %30 = icmp eq i8 %28, %29 %31 = and i1 %27, %30 - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %31) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %2, 0 - %33 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %32, i64 4, 1 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %33, i64 4, 2 - %35 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %34, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %31) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %2, 0 + %33 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %32, i64 4, 1 + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %33, i64 4, 2 + %35 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %34, 1 %36 = icmp slt i64 %35, 2 br i1 %36, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %37 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %34, 1 - call void @"github.com/goplus/llgo/internal/runtime.PanicSliceConvert"(i64 %37, i64 2) + %37 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %34, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PanicSliceConvert"(i64 %37, i64 2) br label %_llgo_4 _llgo_4: ; preds = %_llgo_3, %_llgo_2 - %38 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %34, 0 + %38 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %34, 0 %39 = load [2 x i8], ptr %38, align 1 %40 = alloca [2 x i8], align 1 call void @llvm.memset(ptr %40, i8 0, i64 2, i1 false) @@ -99,20 +99,20 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 %49 = extractvalue [2 x i8] %43, 1 %50 = icmp eq i8 %48, %49 %51 = and i1 %47, %50 - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %51) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %51) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PanicSliceConvert"(i64, i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PanicSliceConvert"(i64, i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 diff --git a/compiler/cl/_testrt/slicelen/out.ll b/compiler/cl/_testrt/slicelen/out.ll index 5edb825f..76d8edf6 100644 --- a/compiler/cl/_testrt/slicelen/out.ll +++ b/compiler/cl/_testrt/slicelen/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -25,25 +25,25 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 0) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br i1 false, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") diff --git a/compiler/cl/_testrt/strlen/out.ll b/compiler/cl/_testrt/strlen/out.ll index a6da0e61..fd0f7543 100644 --- a/compiler/cl/_testrt/strlen/out.ll +++ b/compiler/cl/_testrt/strlen/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } -@"github.com/goplus/llgo/internal/runtime.cgoAlwaysFalse" = external global i1, align 1 +@"github.com/goplus/llgo/runtime/internal/runtime.cgoAlwaysFalse" = external global i1, align 1 @main.format = global [10 x i8] zeroinitializer, align 1 @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -14,9 +14,9 @@ _llgo_0: ret ptr %0 } -declare void @runtime.cgoUse(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @runtime.cgoUse(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @main._cgoCheckResult(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @main._cgoCheckResult(%"github.com/goplus/llgo/runtime/internal/runtime.eface") define void @main.init() { _llgo_0: @@ -46,7 +46,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call i32 @strlen(ptr @main.format) call void (ptr, ...) @printf(ptr @main.format, i32 %2) @@ -55,7 +55,7 @@ _llgo_0: declare void @syscall.init() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i32 @strlen(ptr) diff --git a/compiler/cl/_testrt/struct/out.ll b/compiler/cl/_testrt/struct/out.ll index f3183022..c041a601 100644 --- a/compiler/cl/_testrt/struct/out.ll +++ b/compiler/cl/_testrt/struct/out.ll @@ -2,9 +2,9 @@ source_filename = "main" %main.Foo = type { i32, i1 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } -@"github.com/goplus/llgo/internal/runtime.cgoAlwaysFalse" = external global i1, align 1 +@"github.com/goplus/llgo/runtime/internal/runtime.cgoAlwaysFalse" = external global i1, align 1 @main.format = global [10 x i8] zeroinitializer, align 1 @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -41,9 +41,9 @@ _llgo_0: ret ptr %0 } -declare void @runtime.cgoUse(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @runtime.cgoUse(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @main._cgoCheckResult(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @main._cgoCheckResult(%"github.com/goplus/llgo/runtime/internal/runtime.eface") define void @main.init() { _llgo_0: @@ -73,7 +73,7 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = alloca %main.Foo, align 8 call void @llvm.memset(ptr %2, i8 0, i64 8, i1 false) @@ -93,6 +93,6 @@ declare void @printf(ptr, ...) declare void @syscall.init() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testrt/structsize/out.ll b/compiler/cl/_testrt/structsize/out.ll index 643a449e..644f3dfc 100644 --- a/compiler/cl/_testrt/structsize/out.ll +++ b/compiler/cl/_testrt/structsize/out.ll @@ -23,12 +23,12 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = call i32 (ptr, ...) @printf(ptr @0, i64 14) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testrt/sum/out.ll b/compiler/cl/_testrt/sum/out.ll index dfd38293..376c34cf 100644 --- a/compiler/cl/_testrt/sum/out.ll +++ b/compiler/cl/_testrt/sum/out.ll @@ -1,7 +1,7 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -25,9 +25,9 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) %3 = getelementptr inbounds i64, ptr %2, i64 0 store i64 1, ptr %3, align 4 %4 = getelementptr inbounds i64, ptr %2, i64 1 @@ -36,17 +36,17 @@ _llgo_0: store i64 3, ptr %5, align 4 %6 = getelementptr inbounds i64, ptr %2, i64 3 store i64 4, ptr %6, align 4 - %7 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %2, 0 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %7, i64 4, 1 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, i64 4, 2 - %10 = call i64 @main.sum(%"github.com/goplus/llgo/internal/runtime.Slice" %9) + %7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %2, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, i64 4, 1 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, i64 4, 2 + %10 = call i64 @main.sum(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9) %11 = call i32 (ptr, ...) @printf(ptr @0, i64 %10) ret i32 0 } -define i64 @main.sum(%"github.com/goplus/llgo/internal/runtime.Slice" %0) { +define i64 @main.sum(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0) { _llgo_0: - %1 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %1 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 br label %_llgo_1 _llgo_1: ; preds = %_llgo_2, %_llgo_0 @@ -57,12 +57,12 @@ _llgo_1: ; preds = %_llgo_2, %_llgo_0 br i1 %5, label %_llgo_2, label %_llgo_3 _llgo_2: ; preds = %_llgo_1 - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 0 - %7 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1 + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 0 + %7 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %0, 1 %8 = icmp slt i64 %4, 0 %9 = icmp sge i64 %4, %7 %10 = or i1 %9, %8 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %10) %11 = getelementptr inbounds i64, ptr %6, i64 %4 %12 = load i64, ptr %11, align 4 %13 = add i64 %2, %12 @@ -72,10 +72,10 @@ _llgo_3: ; preds = %_llgo_1 ret i64 %2 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) declare i32 @printf(ptr, ...) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1) diff --git a/compiler/cl/_testrt/tpabi/out.ll b/compiler/cl/_testrt/tpabi/out.ll index bc5237ae..5c6ae712 100644 --- a/compiler/cl/_testrt/tpabi/out.ll +++ b/compiler/cl/_testrt/tpabi/out.ll @@ -1,14 +1,14 @@ ; ModuleID = 'main' source_filename = "main" -%"main.T[string,int]" = type { %"github.com/goplus/llgo/internal/runtime.String", i64 } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } -%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr } +%"main.T[string,int]" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/abi.Imethod" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -48,44 +48,44 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = alloca %"main.T[string,int]", align 8 call void @llvm.memset(ptr %2, i8 0, i64 24, i1 false) %3 = getelementptr inbounds %"main.T[string,int]", ptr %2, i32 0, i32 0 %4 = getelementptr inbounds %"main.T[string,int]", ptr %2, i32 0, i32 1 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 1 }, ptr %3, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 1 }, ptr %3, align 8 store i64 1, ptr %4, align 4 %5 = load %"main.T[string,int]", ptr %2, align 8 %6 = load ptr, ptr @"_llgo_main.T[string,int]", align 8 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) store %"main.T[string,int]" %5, ptr %7, align 8 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %6, 0 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %8, ptr %7, 1 - %10 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, 0 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %6, 0 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %8, ptr %7, 1 + %10 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, 0 %11 = load ptr, ptr @"_llgo_main.T[string,int]", align 8 %12 = icmp eq ptr %10, %11 br i1 %12, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %13 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, 1 + %13 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, 1 %14 = load %"main.T[string,int]", ptr %13, align 8 %15 = extractvalue %"main.T[string,int]" %14, 0 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %15) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %15) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24) %17 = getelementptr inbounds %"main.T[string,int]", ptr %16, i32 0, i32 0 %18 = getelementptr inbounds %"main.T[string,int]", ptr %16, i32 0, i32 1 - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 5 }, ptr %17, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 5 }, ptr %17, align 8 store i64 100, ptr %18, align 4 %19 = load ptr, ptr @"*_llgo_main.T[string,int]", align 8 %20 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 %21 = load ptr, ptr @"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs", align 8 - %22 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %21, ptr %19) - %23 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %22, 0 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %23, ptr %16, 1 - %25 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %24) - %26 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %24, 0 + %22 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %21, ptr %19) + %23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %22, 0 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %23, ptr %16, 1 + %25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %24) + %26 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %24, 0 %27 = getelementptr ptr, ptr %26, i64 3 %28 = load ptr, ptr %27, align 8 %29 = insertvalue { ptr, ptr } undef, ptr %28, 0 @@ -93,7 +93,7 @@ _llgo_1: ; preds = %_llgo_0 %31 = extractvalue { ptr, ptr } %30, 1 %32 = extractvalue { ptr, ptr } %30, 0 call void %32(ptr %31) - %33 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32) + %33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32) %34 = getelementptr inbounds i64, ptr %33, i64 0 %35 = getelementptr inbounds i64, ptr %33, i64 1 %36 = getelementptr inbounds i64, ptr %33, i64 2 @@ -103,20 +103,20 @@ _llgo_1: ; preds = %_llgo_0 store i64 3, ptr %36, align 4 store i64 4, ptr %37, align 4 %38 = getelementptr [4 x i64], ptr %33, i64 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %38) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %38) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %39 = getelementptr [4 x i64], ptr %33, i64 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %39) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %39) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 _llgo_2: ; preds = %_llgo_0 %40 = load ptr, ptr @_llgo_string, align 8 - %41 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 21 }, ptr %41, align 8 - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %40, 0 - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %42, ptr %41, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %43) + %41 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 21 }, ptr %41, align 8 + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %40, 0 + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %42, ptr %41, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %43) unreachable } @@ -126,26 +126,26 @@ _llgo_0: call void @llvm.memset(ptr %1, i8 0, i64 24, i1 false) store %"main.T[string,int]" %0, ptr %1, align 8 %2 = getelementptr inbounds %"main.T[string,int]", ptr %1, i32 0, i32 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8 + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %2, align 8 %4 = getelementptr inbounds %"main.T[string,int]", ptr %1, i32 0, i32 1 %5 = load i64, ptr %4, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %3) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %5) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %3) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %5) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } define linkonce void @"main.(*T[string,int]).Demo"(ptr %0) { _llgo_0: %1 = getelementptr inbounds %"main.T[string,int]", ptr %0, i32 0, i32 0 - %2 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %1, align 8 + %2 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %1, align 8 %3 = getelementptr inbounds %"main.T[string,int]", ptr %0, i32 0, i32 1 %4 = load i64, ptr %3, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %2) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %4) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %2) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %4) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } @@ -156,14 +156,14 @@ _llgo_0: ret void } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 1 }, i64 25, i64 24, i64 1, i64 2) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 1 }, i64 25, i64 24, i64 1, i64 2) %1 = load ptr, ptr @"_llgo_main.T[string,int]", align 8 %2 = icmp eq ptr %1, null br i1 %2, label %_llgo_1, label %_llgo_2 @@ -178,7 +178,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %5, ptr @_llgo_string, align 8 br label %_llgo_4 @@ -189,25 +189,25 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %8, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %9, ptr @_llgo_int, align 8 br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 %10 = load ptr, ptr @_llgo_int, align 8 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %12 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 1 }, ptr %11, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %13 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %14 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 1 }, ptr %13, i64 16, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %16 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %15, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %12, ptr %16, align 8 - %17 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %15, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %14, ptr %17, align 8 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %15, 0 - %19 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %18, i64 2, 1 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %19, i64 2, 2 - %21 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, i64 24, %"github.com/goplus/llgo/internal/runtime.Slice" %20) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %12 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 1 }, ptr %11, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %14 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 1 }, ptr %13, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %16 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %15, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %12, ptr %16, align 8 + %17 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %15, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %14, ptr %17, align 8 + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %15, 0 + %19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %18, i64 2, 1 + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19, i64 2, 2 + %21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, i64 24, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %20) store ptr %21, ptr @"main.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk", align 8 %22 = load ptr, ptr @"main.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk", align 8 br i1 %2, label %_llgo_7, label %_llgo_8 @@ -218,57 +218,57 @@ _llgo_7: ; preds = %_llgo_6 br i1 %24, label %_llgo_9, label %_llgo_10 _llgo_8: ; preds = %_llgo_10, %_llgo_6 - %25 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 1 }, i64 25, i64 24, i64 1, i64 2) + %25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 1 }, i64 25, i64 24, i64 1, i64 2) %26 = load ptr, ptr @"*_llgo_main.T[string,int]", align 8 %27 = icmp eq ptr %26, null br i1 %27, label %_llgo_11, label %_llgo_12 _llgo_9: ; preds = %_llgo_7 - %28 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %28, 0 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %29, i64 0, 1 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %30, i64 0, 2 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %33 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %32, 0 - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %33, i64 0, 1 - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %34, i64 0, 2 - %36 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %31, %"github.com/goplus/llgo/internal/runtime.Slice" %35, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %36) + %28 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %28, 0 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, i64 0, 1 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30, i64 0, 2 + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %33 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %32, 0 + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %33, i64 0, 1 + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %34, i64 0, 2 + %36 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %31, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %35, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %36) store ptr %36, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 br label %_llgo_10 _llgo_10: ; preds = %_llgo_9, %_llgo_7 %37 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %38 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %37, 1 - %39 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %38, ptr @"main.(*T[string,int]).Demo", 2 - %40 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %39, ptr @"main.(*T[string,int]).Demo", 3 + %38 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %37, 1 + %39 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %38, ptr @"main.(*T[string,int]).Demo", 2 + %40 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %39, ptr @"main.(*T[string,int]).Demo", 3 %41 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8 - %42 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %41, 1 - %43 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %42, ptr @"main.(*T[string,int]).Info", 2 - %44 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %43, ptr @"main.(*T[string,int]).Info", 3 - %45 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %41, 1 - %46 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %45, ptr @"main.(*T[string,int]).Info", 2 - %47 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %46, ptr @"main.T[string,int].Info", 3 - %48 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %49 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %48, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %47, ptr %49, align 8 - %50 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %48, 0 - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %50, i64 1, 1 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %51, i64 1, 2 - %53 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80) - %54 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %53, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %40, ptr %54, align 8 - %55 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %53, i64 1 - store %"github.com/goplus/llgo/internal/abi.Method" %44, ptr %55, align 8 - %56 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %53, 0 - %57 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %56, i64 2, 1 - %58 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %57, i64 2, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, ptr %22, %"github.com/goplus/llgo/internal/runtime.Slice" %52, %"github.com/goplus/llgo/internal/runtime.Slice" %58) + %42 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %41, 1 + %43 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %42, ptr @"main.(*T[string,int]).Info", 2 + %44 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %43, ptr @"main.(*T[string,int]).Info", 3 + %45 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %41, 1 + %46 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %45, ptr @"main.(*T[string,int]).Info", 2 + %47 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %46, ptr @"main.T[string,int].Info", 3 + %48 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %49 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %48, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %47, ptr %49, align 8 + %50 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %48, 0 + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %50, i64 1, 1 + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %51, i64 1, 2 + %53 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 80) + %54 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %53, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %40, ptr %54, align 8 + %55 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %53, i64 1 + store %"github.com/goplus/llgo/runtime/abi.Method" %44, ptr %55, align 8 + %56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %53, 0 + %57 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, i64 2, 1 + %58 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %57, i64 2, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %22, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %52, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %58) br label %_llgo_8 _llgo_11: ; preds = %_llgo_8 - %59 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %25) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %59) + %59 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %25) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %59) store ptr %59, ptr @"*_llgo_main.T[string,int]", align 8 br label %_llgo_12 @@ -279,14 +279,14 @@ _llgo_12: ; preds = %_llgo_11, %_llgo_8 br i1 %62, label %_llgo_13, label %_llgo_14 _llgo_13: ; preds = %_llgo_12 - %63 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 4 }, ptr undef }, ptr %60, 1 - %64 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %65 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %64, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %63, ptr %65, align 8 - %66 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %64, 0 - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %66, i64 1, 1 - %68 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %67, i64 1, 2 - %69 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %68) + %63 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 4 }, ptr undef }, ptr %60, 1 + %64 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %65 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %64, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %63, ptr %65, align 8 + %66 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %64, 0 + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %66, i64 1, 1 + %68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %67, i64 1, 2 + %69 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %68) store ptr %69, ptr @"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs", align 8 br label %_llgo_14 @@ -294,40 +294,40 @@ _llgo_14: ; preds = %_llgo_13, %_llgo_12 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testrt/tpfunc/out.ll b/compiler/cl/_testrt/tpfunc/out.ll index 99044681..d80843a9 100644 --- a/compiler/cl/_testrt/tpfunc/out.ll +++ b/compiler/cl/_testrt/tpfunc/out.ll @@ -22,42 +22,42 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 16) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 8) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 8) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 16) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 8) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } define void @"main.main$1"(ptr %0) { _llgo_0: %1 = load i64, ptr %0, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %1) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } define void @"main.main$2"(ptr %0) { _llgo_0: %1 = load i64, ptr %0, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %1) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } define void @"main.main$3"(ptr %0) { _llgo_0: %1 = load i64, ptr %0, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %1) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define linkonce void @"__llgo_stub.main.main$1"(ptr %0, ptr %1) { _llgo_0: @@ -65,8 +65,8 @@ _llgo_0: ret void } -declare void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) diff --git a/compiler/cl/_testrt/tpmap/out.ll b/compiler/cl/_testrt/tpmap/out.ll index 58ccc9c8..64fe2516 100644 --- a/compiler/cl/_testrt/tpmap/out.ll +++ b/compiler/cl/_testrt/tpmap/out.ll @@ -3,11 +3,11 @@ source_filename = "main" %main.cacheKey = type { i64, %main.T2, %"main.T3[any]", ptr, i64 } %main.T2 = type { i64 } -%"main.T3[any]" = type { %"github.com/goplus/llgo/internal/runtime.eface" } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"main.T3[any]" = type { %"github.com/goplus/llgo/runtime/internal/runtime.eface" } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -60,12 +60,12 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load ptr, ptr @_llgo_main.cacheKey, align 8 %3 = load ptr, ptr @_llgo_string, align 8 %4 = load ptr, ptr @"map[_llgo_main.cacheKey]_llgo_string", align 8 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %4, i64 0) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %4, i64 0) %6 = alloca %main.cacheKey, align 8 call void @llvm.memset(ptr %6, i8 0, i64 48, i1 false) %7 = getelementptr inbounds %main.cacheKey, ptr %6, i32 0, i32 0 @@ -78,17 +78,17 @@ _llgo_0: store i64 0, ptr %7, align 4 store i64 0, ptr %9, align 4 %14 = load ptr, ptr @_llgo_int, align 8 - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %14, 0 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %15, ptr null, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %16, ptr %11, align 8 + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %14, 0 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %15, ptr null, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %16, ptr %11, align 8 store ptr null, ptr %12, align 8 store i64 0, ptr %13, align 4 %17 = load %main.cacheKey, ptr %6, align 8 %18 = load ptr, ptr @"map[_llgo_main.cacheKey]_llgo_string", align 8 - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) store %main.cacheKey %17, ptr %19, align 8 - %20 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %18, ptr %5, ptr %19) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @15, i64 5 }, ptr %20, align 8 + %20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr %18, ptr %5, ptr %19) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @15, i64 5 }, ptr %20, align 8 %21 = alloca %main.cacheKey, align 8 call void @llvm.memset(ptr %21, i8 0, i64 48, i1 false) %22 = getelementptr inbounds %main.cacheKey, ptr %21, i32 0, i32 0 @@ -101,37 +101,37 @@ _llgo_0: store i64 0, ptr %22, align 4 store i64 0, ptr %24, align 4 %29 = load ptr, ptr @_llgo_int, align 8 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %29, 0 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %30, ptr null, 1 - store %"github.com/goplus/llgo/internal/runtime.eface" %31, ptr %26, align 8 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %29, 0 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %30, ptr null, 1 + store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %31, ptr %26, align 8 store ptr null, ptr %27, align 8 store i64 0, ptr %28, align 4 %32 = load %main.cacheKey, ptr %21, align 8 %33 = load ptr, ptr @"map[_llgo_main.cacheKey]_llgo_string", align 8 - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48) + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48) store %main.cacheKey %32, ptr %34, align 8 - %35 = call { ptr, i1 } @"github.com/goplus/llgo/internal/runtime.MapAccess2"(ptr %33, ptr %5, ptr %34) + %35 = call { ptr, i1 } @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess2"(ptr %33, ptr %5, ptr %34) %36 = extractvalue { ptr, i1 } %35, 0 - %37 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %36, align 8 + %37 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %36, align 8 %38 = extractvalue { ptr, i1 } %35, 1 - %39 = insertvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } undef, %"github.com/goplus/llgo/internal/runtime.String" %37, 0 - %40 = insertvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } %39, i1 %38, 1 - %41 = extractvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } %40, 0 - %42 = extractvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } %40, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %41) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %42) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %39 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.String" %37, 0 + %40 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } %39, i1 %38, 1 + %41 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } %40, 0 + %42 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } %40, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %41) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %42) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 8 }, i64 25, i64 48, i64 0, i64 0) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 8 }, i64 25, i64 48, i64 0, i64 0) store ptr %0, ptr @_llgo_main.cacheKey, align 8 - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 2 }, i64 2, i64 8, i64 0, i64 0) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }, i64 2, i64 8, i64 0, i64 0) %2 = load ptr, ptr @_llgo_main.T1, align 8 %3 = icmp eq ptr %2, null br i1 %3, label %_llgo_1, label %_llgo_2 @@ -146,7 +146,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %5, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %6 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %6, ptr @_llgo_int, align 8 br label %_llgo_4 @@ -155,12 +155,12 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %3, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %1, ptr %7, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %1, ptr %7, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 %8 = load ptr, ptr @_llgo_main.T1, align 8 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 2 }, i64 25, i64 8, i64 0, i64 0) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 2 }, i64 25, i64 8, i64 0, i64 0) %10 = load ptr, ptr @_llgo_main.T2, align 8 %11 = icmp eq ptr %10, null br i1 %11, label %_llgo_7, label %_llgo_8 @@ -170,26 +170,26 @@ _llgo_7: ; preds = %_llgo_6 br label %_llgo_8 _llgo_8: ; preds = %_llgo_7, %_llgo_6 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %13 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 1 }, ptr %12, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %15 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %14, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %13, ptr %15, align 8 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %14, 0 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %16, i64 1, 1 - %18 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %17, i64 1, 2 - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %18) + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %13 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 1 }, ptr %12, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %15 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %14, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %13, ptr %15, align 8 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %14, 0 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %16, i64 1, 1 + %18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %17, i64 1, 2 + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %18) store ptr %19, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8 %20 = load ptr, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8 br i1 %11, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %9, ptr %20, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %9, ptr %20, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_10 _llgo_10: ; preds = %_llgo_9, %_llgo_8 %21 = load ptr, ptr @_llgo_main.T2, align 8 - %22 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 2 }, i64 25, i64 16, i64 0, i64 0) + %22 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }, i64 25, i64 16, i64 0, i64 0) %23 = load ptr, ptr @"_llgo_main.T3[any]", align 8 %24 = icmp eq ptr %23, null br i1 %24, label %_llgo_11, label %_llgo_12 @@ -204,35 +204,35 @@ _llgo_12: ; preds = %_llgo_11, %_llgo_10 br i1 %26, label %_llgo_13, label %_llgo_14 _llgo_13: ; preds = %_llgo_12 - %27 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %27, 0 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %28, i64 0, 1 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %29, i64 0, 2 - %31 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %30) + %27 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %27, 0 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %28, i64 0, 1 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, i64 0, 2 + %31 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30) store ptr %31, ptr @_llgo_any, align 8 br label %_llgo_14 _llgo_14: ; preds = %_llgo_13, %_llgo_12 %32 = load ptr, ptr @_llgo_any, align 8 - %33 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %34 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %33, 0 - %35 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %34, i64 0, 1 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %35, i64 0, 2 - %37 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %36) - %38 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 1 }, ptr %37, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %40 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %39, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %38, ptr %40, align 8 - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %39, 0 - %42 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %41, i64 1, 1 - %43 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %42, i64 1, 2 - %44 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %43) + %33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %33, 0 + %35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %34, i64 0, 1 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %35, i64 0, 2 + %37 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %36) + %38 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 1 }, ptr %37, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %40 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %39, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %38, ptr %40, align 8 + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %39, 0 + %42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %41, i64 1, 1 + %43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %42, i64 1, 2 + %44 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %43) store ptr %44, ptr @"main.struct$op7q0963ur0ih9ul6OteH-C75UVydPxwKOVpX1hUjzo", align 8 %45 = load ptr, ptr @"main.struct$op7q0963ur0ih9ul6OteH-C75UVydPxwKOVpX1hUjzo", align 8 br i1 %24, label %_llgo_15, label %_llgo_16 _llgo_15: ; preds = %_llgo_14 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %22, ptr %45, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %22, ptr %45, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_16 _llgo_16: ; preds = %_llgo_15, %_llgo_14 @@ -242,9 +242,9 @@ _llgo_16: ; preds = %_llgo_15, %_llgo_14 br i1 %48, label %_llgo_17, label %_llgo_18 _llgo_17: ; preds = %_llgo_16 - %49 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %50 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %49) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %50) + %49 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %50 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %49) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %50) store ptr %50, ptr @"*_llgo_int", align 8 br label %_llgo_18 @@ -255,118 +255,118 @@ _llgo_18: ; preds = %_llgo_17, %_llgo_16 br i1 %53, label %_llgo_19, label %_llgo_20 _llgo_19: ; preds = %_llgo_18 - %54 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) + %54 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) store ptr %54, ptr @_llgo_uintptr, align 8 br label %_llgo_20 _llgo_20: ; preds = %_llgo_19, %_llgo_18 %55 = load ptr, ptr @_llgo_uintptr, align 8 - %56 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 2 }, i64 2, i64 8, i64 0, i64 0) - %57 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 2 }, i64 25, i64 8, i64 0, i64 0) - %58 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 2 }, i64 25, i64 16, i64 0, i64 0) - %59 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 2 }, ptr %56, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %60 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 2 }, ptr %57, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %61 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 2 }, ptr %58, i64 16, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %62 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %63 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %62) - %64 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 2 }, ptr %63, i64 32, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %65 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 44) - %66 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 2 }, ptr %65, i64 40, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %67 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 280) - %68 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %67, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %59, ptr %68, align 8 - %69 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %67, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %60, ptr %69, align 8 - %70 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %67, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %61, ptr %70, align 8 - %71 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %67, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %64, ptr %71, align 8 - %72 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %67, i64 4 - store %"github.com/goplus/llgo/internal/abi.StructField" %66, ptr %72, align 8 - %73 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %67, 0 - %74 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %73, i64 5, 1 - %75 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %74, i64 5, 2 - %76 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 48, %"github.com/goplus/llgo/internal/runtime.Slice" %75) + %56 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }, i64 2, i64 8, i64 0, i64 0) + %57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 2 }, i64 25, i64 8, i64 0, i64 0) + %58 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }, i64 25, i64 16, i64 0, i64 0) + %59 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 2 }, ptr %56, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %60 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 2 }, ptr %57, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %61 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 2 }, ptr %58, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %62 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %62) + %64 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 2 }, ptr %63, i64 32, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %65 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 44) + %66 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 2 }, ptr %65, i64 40, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %67 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 280) + %68 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %67, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %59, ptr %68, align 8 + %69 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %67, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %60, ptr %69, align 8 + %70 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %67, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %61, ptr %70, align 8 + %71 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %67, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %64, ptr %71, align 8 + %72 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %67, i64 4 + store %"github.com/goplus/llgo/runtime/abi.StructField" %66, ptr %72, align 8 + %73 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %67, 0 + %74 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %73, i64 5, 1 + %75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %74, i64 5, 2 + %76 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 48, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %75) store ptr %76, ptr @"main.struct$ZLgMjv1XBA1L4yXCpdouRvQF2okeuHQ-YWVTE34gq4I", align 8 %77 = load ptr, ptr @"main.struct$ZLgMjv1XBA1L4yXCpdouRvQF2okeuHQ-YWVTE34gq4I", align 8 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, ptr %77, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %77, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) %78 = load ptr, ptr @_llgo_string, align 8 %79 = icmp eq ptr %78, null br i1 %79, label %_llgo_21, label %_llgo_22 _llgo_21: ; preds = %_llgo_20 - %80 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %80 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %80, ptr @_llgo_string, align 8 br label %_llgo_22 _llgo_22: ; preds = %_llgo_21, %_llgo_20 - %81 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 8 }, i64 25, i64 48, i64 0, i64 0) - %82 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 8 }, i64 25, i64 48, i64 0, i64 0) - %83 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %84 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40) - %85 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %84) - %86 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 7 }, ptr %85, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %87 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %82) - %88 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @12, i64 4 }, ptr %87, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %89 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) - %90 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %89) - %91 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 5 }, ptr %90, i64 392, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %92 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %93 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @14, i64 8 }, ptr %92, i64 520, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %94 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224) - %95 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %94, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %86, ptr %95, align 8 - %96 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %94, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %88, ptr %96, align 8 - %97 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %94, i64 2 - store %"github.com/goplus/llgo/internal/abi.StructField" %91, ptr %97, align 8 - %98 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %94, i64 3 - store %"github.com/goplus/llgo/internal/abi.StructField" %93, ptr %98, align 8 - %99 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %94, 0 - %100 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %99, i64 4, 1 - %101 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %100, i64 4, 2 - %102 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 }, i64 528, %"github.com/goplus/llgo/internal/runtime.Slice" %101) - %103 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %81, ptr %83, ptr %102, i64 24) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %103) + %81 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 8 }, i64 25, i64 48, i64 0, i64 0) + %82 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 8 }, i64 25, i64 48, i64 0, i64 0) + %83 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %84 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40) + %85 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %84) + %86 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 7 }, ptr %85, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %87 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %82) + %88 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @12, i64 4 }, ptr %87, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %89 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) + %90 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 8, ptr %89) + %91 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @13, i64 5 }, ptr %90, i64 392, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %92 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %93 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @14, i64 8 }, ptr %92, i64 520, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %94 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224) + %95 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %94, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %86, ptr %95, align 8 + %96 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %94, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %88, ptr %96, align 8 + %97 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %94, i64 2 + store %"github.com/goplus/llgo/runtime/abi.StructField" %91, ptr %97, align 8 + %98 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %94, i64 3 + store %"github.com/goplus/llgo/runtime/abi.StructField" %93, ptr %98, align 8 + %99 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %94, 0 + %100 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %99, i64 4, 1 + %101 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %100, i64 4, 2 + %102 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 4 }, i64 528, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %101) + %103 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %81, ptr %83, ptr %102, i64 24) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %103) store ptr %103, ptr @"map[_llgo_main.cacheKey]_llgo_string", align 8 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr, ptr, ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr, ptr, ptr, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64, ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr, i64) ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr, ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapAssign"(ptr, ptr, ptr) -declare { ptr, i1 } @"github.com/goplus/llgo/internal/runtime.MapAccess2"(ptr, ptr, ptr) +declare { ptr, i1 } @"github.com/goplus/llgo/runtime/internal/runtime.MapAccess2"(ptr, ptr, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testrt/tpmethod/out.ll b/compiler/cl/_testrt/tpmethod/out.ll index e72b9394..b0a05958 100644 --- a/compiler/cl/_testrt/tpmethod/out.ll +++ b/compiler/cl/_testrt/tpmethod/out.ll @@ -1,14 +1,14 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"main.Tuple[error]" = type { %"github.com/goplus/llgo/internal/runtime.iface" } +%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"main.Tuple[error]" = type { %"github.com/goplus/llgo/runtime/internal/runtime.iface" } %"main.future[main.Tuple[error]]" = type { { ptr, ptr } } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } -%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr } -%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 } -%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/abi.Imethod" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr } +%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } +%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -41,10 +41,10 @@ source_filename = "main" @"*_llgo_main.future[main.Tuple[error]]" = linkonce global ptr null, align 8 @"_llgo_iface$pTofAxYfPZHsCMD5T70nrOx1gjHf9m2QCLNvEOl1py0" = linkonce global ptr null, align 8 -define %"github.com/goplus/llgo/internal/runtime.iface" @main.ReadFile(%"github.com/goplus/llgo/internal/runtime.String" %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.ReadFile(%"github.com/goplus/llgo/runtime/internal/runtime.String" %0) { _llgo_0: - %1 = call %"github.com/goplus/llgo/internal/runtime.iface" @"main.Async[main.Tuple[error]]"({ ptr, ptr } { ptr @"__llgo_stub.main.ReadFile$1", ptr null }) - ret %"github.com/goplus/llgo/internal/runtime.iface" %1 + %1 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.Async[main.Tuple[error]]"({ ptr, ptr } { ptr @"__llgo_stub.main.ReadFile$1", ptr null }) + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %1 } define void @"main.ReadFile$1"({ ptr, ptr } %0) { @@ -52,7 +52,7 @@ _llgo_0: %1 = alloca %"main.Tuple[error]", align 8 call void @llvm.memset(ptr %1, i8 0, i64 16, i1 false) %2 = getelementptr inbounds %"main.Tuple[error]", ptr %1, i32 0, i32 0 - store %"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer, ptr %2, align 8 + store %"github.com/goplus/llgo/runtime/internal/runtime.iface" zeroinitializer, ptr %2, align 8 %3 = load %"main.Tuple[error]", ptr %1, align 8 %4 = extractvalue { ptr, ptr } %0, 1 %5 = extractvalue { ptr, ptr } %0, 0 @@ -78,11 +78,11 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.ReadFile(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 7 }) - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %2) - %4 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %2, 0 + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @main.ReadFile(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 7 }) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %2) + %4 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %2, 0 %5 = getelementptr ptr, ptr %4, i64 3 %6 = load ptr, ptr %5, align 8 %7 = insertvalue { ptr, ptr } undef, ptr %6, 0 @@ -95,27 +95,27 @@ _llgo_0: define void @"main.main$1"(%"main.Tuple[error]" %0) { _llgo_0: - %1 = call %"github.com/goplus/llgo/internal/runtime.iface" @"main.Tuple[error].Get"(%"main.Tuple[error]" %0) - call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %1) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %1 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.Tuple[error].Get"(%"main.Tuple[error]" %0) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %1) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret void } -define linkonce %"github.com/goplus/llgo/internal/runtime.iface" @"main.Tuple[error].Get"(%"main.Tuple[error]" %0) { +define linkonce %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.Tuple[error].Get"(%"main.Tuple[error]" %0) { _llgo_0: %1 = alloca %"main.Tuple[error]", align 8 call void @llvm.memset(ptr %1, i8 0, i64 16, i1 false) store %"main.Tuple[error]" %0, ptr %1, align 8 %2 = getelementptr inbounds %"main.Tuple[error]", ptr %1, i32 0, i32 0 - %3 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %2, align 8 - ret %"github.com/goplus/llgo/internal/runtime.iface" %3 + %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.iface", ptr %2, align 8 + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %3 } -define %"github.com/goplus/llgo/internal/runtime.iface" @"main.(*Tuple[error]).Get"(ptr %0) { +define %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.(*Tuple[error]).Get"(ptr %0) { _llgo_0: %1 = load %"main.Tuple[error]", ptr %0, align 8 - %2 = call %"github.com/goplus/llgo/internal/runtime.iface" @"main.Tuple[error].Get"(%"main.Tuple[error]" %1) - ret %"github.com/goplus/llgo/internal/runtime.iface" %2 + %2 = call %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.Tuple[error].Get"(%"main.Tuple[error]" %1) + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %2 } define linkonce void @"main.(*future[main.Tuple[error]]).Then"(ptr %0, { ptr, ptr } %1) { @@ -128,9 +128,9 @@ _llgo_0: ret void } -define linkonce %"github.com/goplus/llgo/internal/runtime.iface" @"main.Async[main.Tuple[error]]"({ ptr, ptr } %0) { +define linkonce %"github.com/goplus/llgo/runtime/internal/runtime.iface" @"main.Async[main.Tuple[error]]"({ ptr, ptr } %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) %2 = getelementptr inbounds %"main.future[main.Tuple[error]]", ptr %1, i32 0, i32 0 store { ptr, ptr } %0, ptr %2, align 8 %3 = load ptr, ptr @"_llgo_main.future[main.Tuple[error]]", align 8 @@ -139,10 +139,10 @@ _llgo_0: %6 = load ptr, ptr @"main.struct$vwhCZhgsid50r1SsT8OmKpRI0Cpljg78h5JlpD1CTR4", align 8 %7 = load ptr, ptr @"_llgo_func$_so3zZGPIhTQghxFcf7CCCVzSOk2lxOt7xgGKcTzc0s", align 8 %8 = load ptr, ptr @"_llgo_iface$pTofAxYfPZHsCMD5T70nrOx1gjHf9m2QCLNvEOl1py0", align 8 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %8, ptr %4) - %10 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %9, 0 - %11 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %10, ptr %1, 1 - ret %"github.com/goplus/llgo/internal/runtime.iface" %11 + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %8, ptr %4) + %10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %9, 0 + %11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %10, ptr %1, 1 + ret %"github.com/goplus/llgo/runtime/internal/runtime.iface" %11 } define linkonce void @"__llgo_stub.main.ReadFile$1"(ptr %0, { ptr, ptr } %1) { @@ -154,9 +154,9 @@ _llgo_0: ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") define linkonce void @"__llgo_stub.main.main$1"(ptr %0, %"main.Tuple[error]" %1) { _llgo_0: @@ -164,17 +164,17 @@ _llgo_0: ret void } -declare void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintIface"(%"github.com/goplus/llgo/runtime/internal/runtime.iface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 6 }, i64 25, i64 24, i64 0, i64 1) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 6 }, i64 25, i64 24, i64 0, i64 1) store ptr %0, ptr @"_llgo_main.future[main.Tuple[error]]", align 8 - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 5 }, i64 25, i64 16, i64 1, i64 1) + %1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 5 }, i64 25, i64 16, i64 1, i64 1) %2 = load ptr, ptr @"_llgo_main.Tuple[error]", align 8 %3 = icmp eq ptr %2, null br i1 %3, label %_llgo_1, label %_llgo_2 @@ -184,7 +184,7 @@ _llgo_1: ; preds = %_llgo_0 br label %_llgo_2 _llgo_2: ; preds = %_llgo_1, %_llgo_0 - %4 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 5 }) + %4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 5 }) %5 = load ptr, ptr @_llgo_error, align 8 %6 = icmp eq ptr %5, null br i1 %6, label %_llgo_3, label %_llgo_4 @@ -199,7 +199,7 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %8, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - %9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %9, ptr @_llgo_string, align 8 br label %_llgo_6 @@ -211,18 +211,18 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4 br i1 %13, label %_llgo_7, label %_llgo_8 _llgo_7: ; preds = %_llgo_6 - %14 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %15 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %14, 0 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %15, i64 0, 1 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %16, i64 0, 2 - %18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %14, 0 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %15, i64 0, 1 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %16, i64 0, 2 + %18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %19 = getelementptr ptr, ptr %18, i64 0 store ptr %11, ptr %19, align 8 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %18, 0 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %20, i64 1, 1 - %22 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %21, i64 1, 2 - %23 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %17, %"github.com/goplus/llgo/internal/runtime.Slice" %22, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %23) + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %18, 0 + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %20, i64 1, 1 + %22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %21, i64 1, 2 + %23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %17, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %22, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %23) store ptr %23, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8 br label %_llgo_8 @@ -231,27 +231,27 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 br i1 %6, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - %25 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 5 }, ptr undef }, ptr %24, 1 - %26 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %27 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %26, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %25, ptr %27, align 8 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %26, 0 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %28, i64 1, 1 - %30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %29, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr %4, %"github.com/goplus/llgo/internal/runtime.Slice" %30) + %25 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 5 }, ptr undef }, ptr %24, 1 + %26 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %27 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %26, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %25, ptr %27, align 8 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %26, 0 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %28, i64 1, 1 + %30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr %4, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30) br label %_llgo_10 _llgo_10: ; preds = %_llgo_9, %_llgo_8 %31 = load ptr, ptr @_llgo_error, align 8 - %32 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 5 }) - %33 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 1 }, ptr %32, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %34 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %35 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %34, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %33, ptr %35, align 8 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %34, 0 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %36, i64 1, 1 - %38 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %37, i64 1, 2 - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %38) + %32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 5 }) + %33 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 1 }, ptr %32, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %35 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %34, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %33, ptr %35, align 8 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %34, 0 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %36, i64 1, 1 + %38 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %37, i64 1, 2 + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %38) store ptr %39, ptr @"main.struct$ddtj0teo4LtYcagzh1w6BsSZ7226uefXlqreeHsfVRo", align 8 %40 = load ptr, ptr @"main.struct$ddtj0teo4LtYcagzh1w6BsSZ7226uefXlqreeHsfVRo", align 8 br i1 %3, label %_llgo_11, label %_llgo_12 @@ -270,57 +270,57 @@ _llgo_12: ; preds = %_llgo_14, %_llgo_10 br i1 %47, label %_llgo_15, label %_llgo_16 _llgo_13: ; preds = %_llgo_11 - %48 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %49 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %48, 0 - %50 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %49, i64 0, 1 - %51 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %50, i64 0, 2 - %52 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %48 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %48, 0 + %50 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %49, i64 0, 1 + %51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %50, i64 0, 2 + %52 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %53 = getelementptr ptr, ptr %52, i64 0 store ptr %41, ptr %53, align 8 - %54 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %52, 0 - %55 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, i64 1, 1 - %56 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %55, i64 1, 2 - %57 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %51, %"github.com/goplus/llgo/internal/runtime.Slice" %56, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %57) + %54 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %52, 0 + %55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, i64 1, 1 + %56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %55, i64 1, 2 + %57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %51, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %57) store ptr %57, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8 br label %_llgo_14 _llgo_14: ; preds = %_llgo_13, %_llgo_11 %58 = load ptr, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8 - %59 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1 - %60 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %59, ptr @"main.(*Tuple[error]).Get", 2 - %61 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %60, ptr @"main.(*Tuple[error]).Get", 3 - %62 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1 - %63 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %62, ptr @"main.(*Tuple[error]).Get", 2 - %64 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %63, ptr @"main.Tuple[error].Get", 3 - %65 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %66 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %65, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %64, ptr %66, align 8 - %67 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %65, 0 - %68 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %67, i64 1, 1 - %69 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %68, i64 1, 2 - %70 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %71 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %70, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %61, ptr %71, align 8 - %72 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %70, 0 - %73 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %72, i64 1, 1 - %74 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %73, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %1, ptr %40, %"github.com/goplus/llgo/internal/runtime.Slice" %69, %"github.com/goplus/llgo/internal/runtime.Slice" %74) + %59 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1 + %60 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %59, ptr @"main.(*Tuple[error]).Get", 2 + %61 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %60, ptr @"main.(*Tuple[error]).Get", 3 + %62 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1 + %63 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %62, ptr @"main.(*Tuple[error]).Get", 2 + %64 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %63, ptr @"main.Tuple[error].Get", 3 + %65 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %66 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %65, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %64, ptr %66, align 8 + %67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %65, 0 + %68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %67, i64 1, 1 + %69 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %68, i64 1, 2 + %70 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %71 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %70, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %61, ptr %71, align 8 + %72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %70, 0 + %73 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %72, i64 1, 1 + %74 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %73, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %1, ptr %40, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %69, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %74) br label %_llgo_12 _llgo_15: ; preds = %_llgo_12 - %75 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %75 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %76 = getelementptr ptr, ptr %75, i64 0 store ptr %45, ptr %76, align 8 - %77 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %75, 0 - %78 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %77, i64 1, 1 - %79 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %78, i64 1, 2 - %80 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %81 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %80, 0 - %82 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %81, i64 0, 1 - %83 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %82, i64 0, 2 - %84 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %79, %"github.com/goplus/llgo/internal/runtime.Slice" %83, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %84) + %77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %75, 0 + %78 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %77, i64 1, 1 + %79 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %78, i64 1, 2 + %80 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %81 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %80, 0 + %82 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %81, i64 0, 1 + %83 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %82, i64 0, 2 + %84 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %79, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %83, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %84) store ptr %84, ptr @"_llgo_func$1BeCdGdxwWG-Dtl1HbNuSy2_sb8rBMTmu7zhcPPofmU", align 8 br label %_llgo_16 @@ -331,37 +331,37 @@ _llgo_16: ; preds = %_llgo_15, %_llgo_12 br i1 %87, label %_llgo_17, label %_llgo_18 _llgo_17: ; preds = %_llgo_16 - %88 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %88) + %88 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %88) store ptr %88, ptr @_llgo_Pointer, align 8 br label %_llgo_18 _llgo_18: ; preds = %_llgo_17, %_llgo_16 %89 = load ptr, ptr @_llgo_Pointer, align 8 %90 = load ptr, ptr @"_llgo_main.Tuple[error]", align 8 - %91 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %91 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %92 = getelementptr ptr, ptr %91, i64 0 store ptr %90, ptr %92, align 8 - %93 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %91, 0 - %94 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %93, i64 1, 1 - %95 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %94, i64 1, 2 - %96 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %97 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %96, 0 - %98 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %97, i64 0, 1 - %99 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %98, i64 0, 2 - %100 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %95, %"github.com/goplus/llgo/internal/runtime.Slice" %99, i1 false) - %101 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 2 }, ptr %100, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %102 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %103 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 5 }, ptr %102, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %104 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %105 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %104, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %101, ptr %105, align 8 - %106 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %104, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %103, ptr %106, align 8 - %107 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %104, 0 - %108 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %107, i64 2, 1 - %109 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %108, i64 2, 2 - %110 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %109) + %93 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %91, 0 + %94 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %93, i64 1, 1 + %95 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %94, i64 1, 2 + %96 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %97 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %96, 0 + %98 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %97, i64 0, 1 + %99 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %98, i64 0, 2 + %100 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %95, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %99, i1 false) + %101 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 2 }, ptr %100, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %102 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %103 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 5 }, ptr %102, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %104 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %105 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %104, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %101, ptr %105, align 8 + %106 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %104, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %103, ptr %106, align 8 + %107 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %104, 0 + %108 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %107, i64 2, 1 + %109 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %108, i64 2, 2 + %110 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %109) store ptr %110, ptr @"main.struct$vwhCZhgsid50r1SsT8OmKpRI0Cpljg78h5JlpD1CTR4", align 8 %111 = load ptr, ptr @"main.struct$vwhCZhgsid50r1SsT8OmKpRI0Cpljg78h5JlpD1CTR4", align 8 %112 = load ptr, ptr @"main.struct$vwhCZhgsid50r1SsT8OmKpRI0Cpljg78h5JlpD1CTR4", align 8 @@ -370,99 +370,99 @@ _llgo_18: ; preds = %_llgo_17, %_llgo_16 br i1 %114, label %_llgo_19, label %_llgo_20 _llgo_19: ; preds = %_llgo_18 - %115 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %115 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %116 = getelementptr ptr, ptr %115, i64 0 store ptr %112, ptr %116, align 8 - %117 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %115, 0 - %118 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %117, i64 1, 1 - %119 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %118, i64 1, 2 - %120 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %121 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %120, 0 - %122 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %121, i64 0, 1 - %123 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %122, i64 0, 2 - %124 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %119, %"github.com/goplus/llgo/internal/runtime.Slice" %123, i1 false) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %124) + %117 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %115, 0 + %118 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %117, i64 1, 1 + %119 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %118, i64 1, 2 + %120 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %121 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %120, 0 + %122 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %121, i64 0, 1 + %123 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %122, i64 0, 2 + %124 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %119, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %123, i1 false) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %124) store ptr %124, ptr @"_llgo_func$_so3zZGPIhTQghxFcf7CCCVzSOk2lxOt7xgGKcTzc0s", align 8 br label %_llgo_20 _llgo_20: ; preds = %_llgo_19, %_llgo_18 %125 = load ptr, ptr @"_llgo_func$_so3zZGPIhTQghxFcf7CCCVzSOk2lxOt7xgGKcTzc0s", align 8 %126 = load ptr, ptr @"main.struct$vwhCZhgsid50r1SsT8OmKpRI0Cpljg78h5JlpD1CTR4", align 8 - %127 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %127 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %128 = getelementptr ptr, ptr %127, i64 0 store ptr %126, ptr %128, align 8 - %129 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %127, 0 - %130 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %129, i64 1, 1 - %131 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %130, i64 1, 2 - %132 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %133 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %132, 0 - %134 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %133, i64 0, 1 - %135 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %134, i64 0, 2 - %136 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %131, %"github.com/goplus/llgo/internal/runtime.Slice" %135, i1 false) - %137 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 2 }, ptr %136, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %138 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %139 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 5 }, ptr %138, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %140 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %141 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %140, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %137, ptr %141, align 8 - %142 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %140, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %139, ptr %142, align 8 - %143 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %140, 0 - %144 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %143, i64 2, 1 - %145 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %144, i64 2, 2 - %146 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %145) + %129 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %127, 0 + %130 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %129, i64 1, 1 + %131 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %130, i64 1, 2 + %132 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %133 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %132, 0 + %134 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %133, i64 0, 1 + %135 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %134, i64 0, 2 + %136 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %131, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %135, i1 false) + %137 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 2 }, ptr %136, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %138 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %139 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 5 }, ptr %138, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %140 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %141 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %140, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %137, ptr %141, align 8 + %142 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %140, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %139, ptr %142, align 8 + %143 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %140, 0 + %144 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %143, i64 2, 1 + %145 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %144, i64 2, 2 + %146 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %145) store ptr %146, ptr @"main.struct$awGH2Wh33bS1v_s7SNAwKW27E20HcwiiPPzh9UA7QDs", align 8 %147 = load ptr, ptr @"main.struct$awGH2Wh33bS1v_s7SNAwKW27E20HcwiiPPzh9UA7QDs", align 8 %148 = load ptr, ptr @"main.struct$vwhCZhgsid50r1SsT8OmKpRI0Cpljg78h5JlpD1CTR4", align 8 - %149 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8) + %149 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8) %150 = getelementptr ptr, ptr %149, i64 0 store ptr %148, ptr %150, align 8 - %151 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %149, 0 - %152 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %151, i64 1, 1 - %153 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %152, i64 1, 2 - %154 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0) - %155 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %154, 0 - %156 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %155, i64 0, 1 - %157 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %156, i64 0, 2 - %158 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %153, %"github.com/goplus/llgo/internal/runtime.Slice" %157, i1 false) - %159 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 2 }, ptr %158, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %160 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58) - %161 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 5 }, ptr %160, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %162 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112) - %163 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %162, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %159, ptr %163, align 8 - %164 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %162, i64 1 - store %"github.com/goplus/llgo/internal/abi.StructField" %161, ptr %164, align 8 - %165 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %162, 0 - %166 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %165, i64 2, 1 - %167 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %166, i64 2, 2 - %168 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %167) - %169 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 2 }, ptr %168, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false) - %170 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56) - %171 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %170, i64 0 - store %"github.com/goplus/llgo/internal/abi.StructField" %169, ptr %171, align 8 - %172 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %170, 0 - %173 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %172, i64 1, 1 - %174 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %173, i64 1, 2 - %175 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %174) + %151 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %149, 0 + %152 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %151, i64 1, 1 + %153 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %152, i64 1, 2 + %154 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0) + %155 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %154, 0 + %156 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %155, i64 0, 1 + %157 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %156, i64 0, 2 + %158 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %153, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %157, i1 false) + %159 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 2 }, ptr %158, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %160 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58) + %161 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 5 }, ptr %160, i64 8, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %162 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 112) + %163 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %162, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %159, ptr %163, align 8 + %164 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %162, i64 1 + store %"github.com/goplus/llgo/runtime/abi.StructField" %161, ptr %164, align 8 + %165 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %162, 0 + %166 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %165, i64 2, 1 + %167 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %166, i64 2, 2 + %168 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %167) + %169 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 2 }, ptr %168, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false) + %170 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 56) + %171 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %170, i64 0 + store %"github.com/goplus/llgo/runtime/abi.StructField" %169, ptr %171, align 8 + %172 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %170, 0 + %173 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %172, i64 1, 1 + %174 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %173, i64 1, 2 + %175 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %174) store ptr %175, ptr @"main.struct$N1awC7qGapVTS_NFj1Q0jk6nCjATrIK-60oOEyDjabo", align 8 %176 = load ptr, ptr @"main.struct$N1awC7qGapVTS_NFj1Q0jk6nCjATrIK-60oOEyDjabo", align 8 %177 = load ptr, ptr @"_llgo_func$1BeCdGdxwWG-Dtl1HbNuSy2_sb8rBMTmu7zhcPPofmU", align 8 %178 = load ptr, ptr @"main.struct$vwhCZhgsid50r1SsT8OmKpRI0Cpljg78h5JlpD1CTR4", align 8 %179 = load ptr, ptr @"_llgo_func$_so3zZGPIhTQghxFcf7CCCVzSOk2lxOt7xgGKcTzc0s", align 8 - %180 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %179, 1 - %181 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %180, ptr @"main.(*future[main.Tuple[error]]).Then", 2 - %182 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %181, ptr @"main.(*future[main.Tuple[error]]).Then", 3 - %183 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40) - %184 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %183, i64 0 - store %"github.com/goplus/llgo/internal/abi.Method" %182, ptr %184, align 8 - %185 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %183, 0 - %186 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %185, i64 1, 1 - %187 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %186, i64 1, 2 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, ptr %176, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %187) - %188 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 6 }, i64 25, i64 24, i64 0, i64 1) - %189 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %188) - call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %189) + %180 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %179, 1 + %181 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %180, ptr @"main.(*future[main.Tuple[error]]).Then", 2 + %182 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %181, ptr @"main.(*future[main.Tuple[error]]).Then", 3 + %183 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40) + %184 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %183, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Method" %182, ptr %184, align 8 + %185 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %183, 0 + %186 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %185, i64 1, 1 + %187 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %186, i64 1, 2 + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %176, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %187) + %188 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 6 }, i64 25, i64 24, i64 0, i64 1) + %189 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %188) + call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %189) store ptr %189, ptr @"*_llgo_main.future[main.Tuple[error]]", align 8 %190 = load ptr, ptr @"_llgo_func$_so3zZGPIhTQghxFcf7CCCVzSOk2lxOt7xgGKcTzc0s", align 8 %191 = load ptr, ptr @"_llgo_iface$pTofAxYfPZHsCMD5T70nrOx1gjHf9m2QCLNvEOl1py0", align 8 @@ -470,14 +470,14 @@ _llgo_20: ; preds = %_llgo_19, %_llgo_18 br i1 %192, label %_llgo_21, label %_llgo_22 _llgo_21: ; preds = %_llgo_20 - %193 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 4 }, ptr undef }, ptr %190, 1 - %194 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24) - %195 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %194, i64 0 - store %"github.com/goplus/llgo/internal/abi.Imethod" %193, ptr %195, align 8 - %196 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %194, 0 - %197 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %196, i64 1, 1 - %198 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %197, i64 1, 2 - %199 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.Slice" %198) + %193 = insertvalue %"github.com/goplus/llgo/runtime/abi.Imethod" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @11, i64 4 }, ptr undef }, ptr %190, 1 + %194 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24) + %195 = getelementptr %"github.com/goplus/llgo/runtime/abi.Imethod", ptr %194, i64 0 + store %"github.com/goplus/llgo/runtime/abi.Imethod" %193, ptr %195, align 8 + %196 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %194, 0 + %197 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %196, i64 1, 1 + %198 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %197, i64 1, 2 + %199 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %198) store ptr %199, ptr @"_llgo_iface$pTofAxYfPZHsCMD5T70nrOx1gjHf9m2QCLNvEOl1py0", align 8 br label %_llgo_22 @@ -485,30 +485,30 @@ _llgo_22: ; preds = %_llgo_21, %_llgo_20 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamedInterface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice", i1) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamedInterface"(ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1) +declare %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr) -declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice") +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr, ptr) attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testrt/typalias/out.ll b/compiler/cl/_testrt/typalias/out.ll index 45b2f258..976e8bac 100644 --- a/compiler/cl/_testrt/typalias/out.ll +++ b/compiler/cl/_testrt/typalias/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } -@"github.com/goplus/llgo/internal/runtime.cgoAlwaysFalse" = external global i1, align 1 +@"github.com/goplus/llgo/runtime/internal/runtime.cgoAlwaysFalse" = external global i1, align 1 @main.format = global [10 x i8] zeroinitializer, align 1 @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -30,9 +30,9 @@ _llgo_0: ret ptr %0 } -declare void @runtime.cgoUse(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @runtime.cgoUse(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @main._cgoCheckResult(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @main._cgoCheckResult(%"github.com/goplus/llgo/runtime/internal/runtime.eface") define void @main.init() { _llgo_0: @@ -62,9 +62,9 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8) %3 = getelementptr inbounds { i32, i1 }, ptr %2, i32 0, i32 0 %4 = getelementptr inbounds { i32, i1 }, ptr %2, i32 0, i32 1 store i32 100, ptr %3, align 4 @@ -77,6 +77,6 @@ declare void @printf(ptr, ...) declare void @syscall.init() -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) diff --git a/compiler/cl/_testrt/typed/out.ll b/compiler/cl/_testrt/typed/out.ll index d8e714c8..e2d62e03 100644 --- a/compiler/cl/_testrt/typed/out.ll +++ b/compiler/cl/_testrt/typed/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -37,55 +37,55 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() %2 = load ptr, ptr @_llgo_main.T, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %3, align 8 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %2, 0 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %4, ptr %3, 1 - %6 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, 0 + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %3, align 8 + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %2, 0 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %4, ptr %3, 1 + %6 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, 0 %7 = load ptr, ptr @_llgo_main.T, align 8 %8 = icmp eq ptr %6, %7 br i1 %8, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %9 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, 1 - %10 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %9, align 8 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %10) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) - %11 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, 0 + %9 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, 1 + %10 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %9, align 8 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) + %11 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, 0 %12 = load ptr, ptr @_llgo_string, align 8 %13 = icmp eq ptr %11, %12 br i1 %13, label %_llgo_3, label %_llgo_4 _llgo_2: ; preds = %_llgo_0 %14 = load ptr, ptr @_llgo_string, align 8 - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 21 }, ptr %15, align 8 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %14, 0 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %16, ptr %15, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %17) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 21 }, ptr %15, align 8 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %14, 0 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %16, ptr %15, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %17) unreachable _llgo_3: ; preds = %_llgo_1 - %18 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %5, 1 - %19 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %18, align 8 - %20 = insertvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } undef, %"github.com/goplus/llgo/internal/runtime.String" %19, 0 - %21 = insertvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } %20, i1 true, 1 + %18 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, 1 + %19 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %18, align 8 + %20 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } undef, %"github.com/goplus/llgo/runtime/internal/runtime.String" %19, 0 + %21 = insertvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } %20, i1 true, 1 br label %_llgo_5 _llgo_4: ; preds = %_llgo_1 br label %_llgo_5 _llgo_5: ; preds = %_llgo_4, %_llgo_3 - %22 = phi { %"github.com/goplus/llgo/internal/runtime.String", i1 } [ %21, %_llgo_3 ], [ zeroinitializer, %_llgo_4 ] - %23 = extractvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } %22, 0 - %24 = extractvalue { %"github.com/goplus/llgo/internal/runtime.String", i1 } %22, 1 - call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %23) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %24) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + %22 = phi { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } [ %21, %_llgo_3 ], [ zeroinitializer, %_llgo_4 ] + %23 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } %22, 0 + %24 = extractvalue { %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 } %22, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %23) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %24) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) %25 = alloca [2 x i64], align 8 call void @llvm.memset(ptr %25, i8 0, i64 16, i1 false) %26 = getelementptr inbounds i64, ptr %25, i64 0 @@ -94,19 +94,19 @@ _llgo_5: ; preds = %_llgo_4, %_llgo_3 store i64 2, ptr %27, align 4 %28 = load [2 x i64], ptr %25, align 4 %29 = load ptr, ptr @_llgo_main.A, align 8 - %30 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) + %30 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) store [2 x i64] %28, ptr %30, align 4 - %31 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %29, 0 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %31, ptr %30, 1 + %31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %29, 0 + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %31, ptr %30, 1 %33 = alloca [2 x i64], align 8 call void @llvm.memset(ptr %33, i8 0, i64 16, i1 false) - %34 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %32, 0 + %34 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %32, 0 %35 = load ptr, ptr @_llgo_main.A, align 8 %36 = icmp eq ptr %34, %35 br i1 %36, label %_llgo_6, label %_llgo_7 _llgo_6: ; preds = %_llgo_5 - %37 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %32, 1 + %37 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %32, 1 %38 = load [2 x i64], ptr %37, align 4 %39 = insertvalue { [2 x i64], i1 } undef, [2 x i64] %38, 0 %40 = insertvalue { [2 x i64], i1 } %39, i1 true, 1 @@ -124,20 +124,20 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 %45 = load i64, ptr %44, align 4 %46 = getelementptr inbounds i64, ptr %33, i64 1 %47 = load i64, ptr %46, align 4 - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %45) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %47) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32) - call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %43) - call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %45) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %47) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %43) + call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: - %0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 1 }, i64 24, i64 16, i64 0, i64 0) + %0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 1 }, i64 24, i64 16, i64 0, i64 0) %1 = load ptr, ptr @_llgo_main.T, align 8 %2 = icmp eq ptr %1, null br i1 %2, label %_llgo_1, label %_llgo_2 @@ -152,7 +152,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 br i1 %4, label %_llgo_3, label %_llgo_4 _llgo_3: ; preds = %_llgo_2 - %5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %5, ptr @_llgo_string, align 8 br label %_llgo_4 @@ -161,11 +161,11 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2 br i1 %2, label %_llgo_5, label %_llgo_6 _llgo_5: ; preds = %_llgo_4 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, ptr %6, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %6, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_6 _llgo_6: ; preds = %_llgo_5, %_llgo_4 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 1 }, i64 17, i64 16, i64 0, i64 0) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 1 }, i64 17, i64 16, i64 0, i64 0) %8 = load ptr, ptr @_llgo_main.A, align 8 %9 = icmp eq ptr %8, null br i1 %9, label %_llgo_7, label %_llgo_8 @@ -180,7 +180,7 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6 br i1 %11, label %_llgo_9, label %_llgo_10 _llgo_9: ; preds = %_llgo_8 - %12 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) + %12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) store ptr %12, ptr @_llgo_int, align 8 br label %_llgo_10 @@ -191,8 +191,8 @@ _llgo_10: ; preds = %_llgo_9, %_llgo_8 br i1 %15, label %_llgo_11, label %_llgo_12 _llgo_11: ; preds = %_llgo_10 - %16 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34) - %17 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 2, ptr %16) + %16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34) + %17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64 2, ptr %16) store ptr %17, ptr @"[2]_llgo_int", align 8 br label %_llgo_12 @@ -201,34 +201,34 @@ _llgo_12: ; preds = %_llgo_11, %_llgo_10 br i1 %9, label %_llgo_13, label %_llgo_14 _llgo_13: ; preds = %_llgo_12 - call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %7, ptr %18, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) + call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %7, ptr %18, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer) br label %_llgo_14 _llgo_14: ; preds = %_llgo_13, %_llgo_12 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String") -declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8) -declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1) ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0 -declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.ArrayOf"(i64, ptr) -declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64) attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) } diff --git a/compiler/cl/_testrt/unreachable/out.ll b/compiler/cl/_testrt/unreachable/out.ll index 3f984679..28f8ad08 100644 --- a/compiler/cl/_testrt/unreachable/out.ll +++ b/compiler/cl/_testrt/unreachable/out.ll @@ -29,13 +29,13 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() call void @main.foo() %2 = call i32 (ptr, ...) @printf(ptr @0) ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() declare i32 @printf(ptr, ...) diff --git a/compiler/cl/_testrt/unsafe/out.ll b/compiler/cl/_testrt/unsafe/out.ll index dc2d02bb..b0d07dba 100644 --- a/compiler/cl/_testrt/unsafe/out.ll +++ b/compiler/cl/_testrt/unsafe/out.ll @@ -1,9 +1,9 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 } -%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr } -%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 } +%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr } +%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 } @"main.init$guard" = global i1 false, align 1 @__llgo_argc = global i32 0, align 4 @@ -31,17 +31,17 @@ define i32 @main(i32 %0, ptr %1) { _llgo_0: store i32 %0, ptr @__llgo_argc, align 4 store ptr %1, ptr @__llgo_argv, align 8 - call void @"github.com/goplus/llgo/internal/runtime.init"() + call void @"github.com/goplus/llgo/runtime/internal/runtime.init"() call void @main.init() br i1 false, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 %2 = load ptr, ptr @_llgo_string, align 8 - %3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %3, align 8 - %4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %2, 0 - %5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %4, ptr %3, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %5) + %3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %3, align 8 + %4 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %2, 0 + %5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %4, ptr %3, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %5) unreachable _llgo_2: ; preds = %_llgo_0 @@ -49,11 +49,11 @@ _llgo_2: ; preds = %_llgo_0 _llgo_3: ; preds = %_llgo_2 %6 = load ptr, ptr @_llgo_string, align 8 - %7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %7, align 8 - %8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %6, 0 - %9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %8, ptr %7, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %9) + %7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %7, align 8 + %8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %6, 0 + %9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %8, ptr %7, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %9) unreachable _llgo_4: ; preds = %_llgo_2 @@ -61,11 +61,11 @@ _llgo_4: ; preds = %_llgo_2 _llgo_5: ; preds = %_llgo_4 %10 = load ptr, ptr @_llgo_string, align 8 - %11 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %11, align 8 - %12 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %10, 0 - %13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, ptr %11, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %13) + %11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %11, align 8 + %12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %10, 0 + %13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %12, ptr %11, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %13) unreachable _llgo_6: ; preds = %_llgo_4 @@ -73,11 +73,11 @@ _llgo_6: ; preds = %_llgo_4 _llgo_7: ; preds = %_llgo_6 %14 = load ptr, ptr @_llgo_string, align 8 - %15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %15, align 8 - %16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %14, 0 - %17 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %16, ptr %15, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %17) + %15 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %15, align 8 + %16 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %14, 0 + %17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %16, ptr %15, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %17) unreachable _llgo_8: ; preds = %_llgo_6 @@ -85,11 +85,11 @@ _llgo_8: ; preds = %_llgo_6 _llgo_9: ; preds = %_llgo_8 %18 = load ptr, ptr @_llgo_string, align 8 - %19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %19, align 8 - %20 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %18, 0 - %21 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %20, ptr %19, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %21) + %19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %19, align 8 + %20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %18, 0 + %21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %20, ptr %19, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %21) unreachable _llgo_10: ; preds = %_llgo_8 @@ -97,11 +97,11 @@ _llgo_10: ; preds = %_llgo_8 _llgo_11: ; preds = %_llgo_10 %22 = load ptr, ptr @_llgo_string, align 8 - %23 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %23, align 8 - %24 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %22, 0 - %25 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %24, ptr %23, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %25) + %23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %23, align 8 + %24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %22, 0 + %25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %24, ptr %23, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %25) unreachable _llgo_12: ; preds = %_llgo_10 @@ -109,11 +109,11 @@ _llgo_12: ; preds = %_llgo_10 _llgo_13: ; preds = %_llgo_12 %26 = load ptr, ptr @_llgo_string, align 8 - %27 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %27, align 8 - %28 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %26, 0 - %29 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %28, ptr %27, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %29) + %27 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %27, align 8 + %28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %26, 0 + %29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %28, ptr %27, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %29) unreachable _llgo_14: ; preds = %_llgo_12 @@ -121,11 +121,11 @@ _llgo_14: ; preds = %_llgo_12 _llgo_15: ; preds = %_llgo_14 %30 = load ptr, ptr @_llgo_string, align 8 - %31 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %31, align 8 - %32 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %30, 0 - %33 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %32, ptr %31, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %33) + %31 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %31, align 8 + %32 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %30, 0 + %33 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %32, ptr %31, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %33) unreachable _llgo_16: ; preds = %_llgo_14 @@ -133,11 +133,11 @@ _llgo_16: ; preds = %_llgo_14 _llgo_17: ; preds = %_llgo_16 %34 = load ptr, ptr @_llgo_string, align 8 - %35 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %35, align 8 - %36 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %34, 0 - %37 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %36, ptr %35, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %37) + %35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %35, align 8 + %36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %34, 0 + %37 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %36, ptr %35, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %37) unreachable _llgo_18: ; preds = %_llgo_16 @@ -145,25 +145,25 @@ _llgo_18: ; preds = %_llgo_16 _llgo_19: ; preds = %_llgo_18 %38 = load ptr, ptr @_llgo_string, align 8 - %39 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %39, align 8 - %40 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %38, 0 - %41 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %40, ptr %39, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %41) + %39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %39, align 8 + %40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %38, 0 + %41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %40, ptr %39, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %41) unreachable _llgo_20: ; preds = %_llgo_18 - %42 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 3 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 3 }) + %42 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 3 }) %43 = xor i1 %42, true br i1 %43, label %_llgo_21, label %_llgo_22 _llgo_21: ; preds = %_llgo_20 %44 = load ptr, ptr @_llgo_string, align 8 - %45 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %45, align 8 - %46 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %44, 0 - %47 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %46, ptr %45, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %47) + %45 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %45, align 8 + %46 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %44, 0 + %47 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %46, ptr %45, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %47) unreachable _llgo_22: ; preds = %_llgo_20 @@ -173,27 +173,27 @@ _llgo_22: ; preds = %_llgo_20 _llgo_23: ; preds = %_llgo_25, %_llgo_26, %_llgo_22 %50 = load ptr, ptr @_llgo_string, align 8 - %51 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %51, align 8 - %52 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %50, 0 - %53 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %52, ptr %51, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %53) + %51 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %51, align 8 + %52 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %50, 0 + %53 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %52, ptr %51, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %53) unreachable _llgo_24: ; preds = %_llgo_25 - %54 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16) + %54 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16) %55 = getelementptr inbounds i64, ptr %54, i64 0 %56 = getelementptr inbounds i64, ptr %54, i64 1 store i64 1, ptr %55, align 4 store i64 2, ptr %56, align 4 %57 = getelementptr inbounds i64, ptr %54, i64 0 - %58 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %57, 0 - %59 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %58, i64 2, 1 - %60 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %59, i64 2, 2 - %61 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, 0 - %62 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, 1 + %58 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %57, 0 + %59 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %58, i64 2, 1 + %60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %59, i64 2, 2 + %61 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, 0 + %62 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, 1 %63 = icmp sge i64 0, %62 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %63) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %63) %64 = getelementptr inbounds i64, ptr %61, i64 0 %65 = load i64, ptr %64, align 4 %66 = icmp ne i64 %65, 1 @@ -211,24 +211,24 @@ _llgo_26: ; preds = %_llgo_22 _llgo_27: ; preds = %_llgo_29, %_llgo_24 %71 = load ptr, ptr @_llgo_string, align 8 - %72 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %72, align 8 - %73 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %71, 0 - %74 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %73, ptr %72, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %74) + %72 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %72, align 8 + %73 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %71, 0 + %74 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %73, ptr %72, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %74) unreachable _llgo_28: ; preds = %_llgo_29 - %75 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, 0 + %75 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, 0 %76 = load i64, ptr %75, align 4 %77 = icmp ne i64 %76, 1 br i1 %77, label %_llgo_30, label %_llgo_31 _llgo_29: ; preds = %_llgo_24 - %78 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, 0 - %79 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %60, 1 + %78 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, 0 + %79 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, 1 %80 = icmp sge i64 1, %79 - call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %80) + call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %80) %81 = getelementptr inbounds i64, ptr %78, i64 1 %82 = load i64, ptr %81, align 4 %83 = icmp ne i64 %82, 2 @@ -236,11 +236,11 @@ _llgo_29: ; preds = %_llgo_24 _llgo_30: ; preds = %_llgo_28 %84 = load ptr, ptr @_llgo_string, align 8 - %85 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %85, align 8 - %86 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %84, 0 - %87 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %86, ptr %85, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %87) + %85 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %85, align 8 + %86 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %84, 0 + %87 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %86, ptr %85, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %87) unreachable _llgo_31: ; preds = %_llgo_28 @@ -248,18 +248,18 @@ _llgo_31: ; preds = %_llgo_28 _llgo_32: ; preds = %_llgo_31 %88 = load ptr, ptr @_llgo_string, align 8 - %89 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16) - store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %89, align 8 - %90 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %88, 0 - %91 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %90, ptr %89, 1 - call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %91) + %89 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16) + store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, ptr %89, align 8 + %90 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %88, 0 + %91 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %90, ptr %89, 1 + call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %91) unreachable _llgo_33: ; preds = %_llgo_31 ret i32 0 } -declare void @"github.com/goplus/llgo/internal/runtime.init"() +declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"() define void @"main.init$after"() { _llgo_0: @@ -268,7 +268,7 @@ _llgo_0: br i1 %1, label %_llgo_1, label %_llgo_2 _llgo_1: ; preds = %_llgo_0 - %2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24) + %2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24) store ptr %2, ptr @_llgo_string, align 8 br label %_llgo_2 @@ -276,14 +276,14 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0 ret void } -declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64) -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface") +declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface") -declare i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String") +declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String") -declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64) +declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64) -declare void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1) +declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1)