Merge pull request #717 from visualfc/funcdecl
ssa: makeInterface check funcdecl => closure
This commit is contained in:
@@ -31,19 +31,23 @@ source_filename = "main"
|
|||||||
@_llgo_float32 = linkonce global ptr null, align 8
|
@_llgo_float32 = linkonce global ptr null, align 8
|
||||||
@_llgo_float64 = linkonce global ptr null, align 8
|
@_llgo_float64 = linkonce global ptr null, align 8
|
||||||
@"[10]_llgo_int" = linkonce global ptr null, align 8
|
@"[10]_llgo_int" = linkonce global ptr null, align 8
|
||||||
@"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac" = linkonce global ptr null, align 8
|
@"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o" = global ptr null, align 8
|
||||||
|
@_llgo_Pointer = linkonce global ptr null, align 8
|
||||||
|
@3 = private unnamed_addr constant [1 x i8] c"f", align 1
|
||||||
|
@4 = private unnamed_addr constant [4 x i8] c"data", align 1
|
||||||
|
@5 = private unnamed_addr constant [4 x i8] c"main", align 1
|
||||||
@"*_llgo_int" = linkonce global ptr null, align 8
|
@"*_llgo_int" = linkonce global ptr null, align 8
|
||||||
@"[]_llgo_int" = linkonce global ptr null, align 8
|
@"[]_llgo_int" = linkonce global ptr null, align 8
|
||||||
@3 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
@6 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
||||||
@_llgo_string = linkonce global ptr null, align 8
|
@_llgo_string = linkonce global ptr null, align 8
|
||||||
@"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM" = global ptr null, align 8
|
@"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM" = global ptr null, align 8
|
||||||
@4 = private unnamed_addr constant [1 x i8] c"x", align 1
|
@7 = private unnamed_addr constant [1 x i8] c"x", align 1
|
||||||
@5 = private unnamed_addr constant [1 x i8] c"y", align 1
|
@8 = private unnamed_addr constant [1 x i8] c"y", align 1
|
||||||
@6 = private unnamed_addr constant [1 x i8] c"z", align 1
|
@9 = private unnamed_addr constant [1 x i8] c"z", align 1
|
||||||
@7 = private unnamed_addr constant [4 x i8] c"main", align 1
|
|
||||||
@_llgo_main.T = linkonce global ptr null, align 8
|
@_llgo_main.T = linkonce global ptr null, align 8
|
||||||
@8 = private unnamed_addr constant [6 x i8] c"Invoke", align 1
|
@10 = private unnamed_addr constant [6 x i8] c"Invoke", align 1
|
||||||
@9 = private unnamed_addr constant [1 x i8] c"T", align 1
|
@"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac" = linkonce global ptr null, align 8
|
||||||
|
@11 = private unnamed_addr constant [1 x i8] c"T", align 1
|
||||||
|
|
||||||
define void @"main.(*T).Invoke"(ptr %0) {
|
define void @"main.(*T).Invoke"(ptr %0) {
|
||||||
_llgo_0:
|
_llgo_0:
|
||||||
@@ -328,83 +332,91 @@ _llgo_0:
|
|||||||
store ptr %74, ptr %77, align 8
|
store ptr %74, ptr %77, align 8
|
||||||
%78 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %75, align 8
|
%78 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %75, align 8
|
||||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %78)
|
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %78)
|
||||||
%79 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
%79 = alloca { ptr, ptr }, align 8
|
||||||
%80 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
%80 = getelementptr inbounds { ptr, ptr }, ptr %79, i32 0, i32 0
|
||||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %80, i32 0, i32 0
|
store ptr @"__llgo_stub.main.main$1", ptr %80, align 8
|
||||||
store ptr %79, ptr %81, align 8
|
%81 = getelementptr inbounds { ptr, ptr }, ptr %79, i32 0, i32 1
|
||||||
%82 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %80, i32 0, i32 1
|
store ptr null, ptr %81, align 8
|
||||||
store ptr @"main.main$1", ptr %82, align 8
|
%82 = load { ptr, ptr }, ptr %79, align 8
|
||||||
%83 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %80, align 8
|
%83 = load ptr, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %83)
|
%84 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||||
%84 = load ptr, ptr @"*_llgo_int", align 8
|
store { ptr, ptr } %82, ptr %84, align 8
|
||||||
%85 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
%85 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||||
%86 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %85, i32 0, i32 0
|
%86 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %85, i32 0, i32 0
|
||||||
store ptr %84, ptr %86, align 8
|
store ptr %83, ptr %86, align 8
|
||||||
%87 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %85, i32 0, i32 1
|
%87 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %85, i32 0, i32 1
|
||||||
store ptr null, ptr %87, align 8
|
store ptr %84, ptr %87, align 8
|
||||||
%88 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %85, align 8
|
%88 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %85, align 8
|
||||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %88)
|
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %88)
|
||||||
%89 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 0)
|
%89 = load ptr, ptr @"*_llgo_int", align 8
|
||||||
%90 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
%90 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %90, i32 0, i32 0
|
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %90, i32 0, i32 0
|
||||||
store ptr %89, ptr %91, align 8
|
store ptr %89, ptr %91, align 8
|
||||||
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %90, i32 0, i32 1
|
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %90, i32 0, i32 1
|
||||||
store i64 0, ptr %92, align 4
|
store ptr null, ptr %92, align 8
|
||||||
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %90, i32 0, i32 2
|
%93 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %90, align 8
|
||||||
store i64 0, ptr %93, align 4
|
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %93)
|
||||||
%94 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %90, align 8
|
%94 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 0)
|
||||||
%95 = load ptr, ptr @"[]_llgo_int", align 8
|
%95 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||||
%96 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %95, i32 0, i32 0
|
||||||
store %"github.com/goplus/llgo/internal/runtime.Slice" %94, ptr %96, align 8
|
store ptr %94, ptr %96, align 8
|
||||||
%97 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %95, i32 0, i32 1
|
||||||
%98 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %97, i32 0, i32 0
|
store i64 0, ptr %97, align 4
|
||||||
store ptr %95, ptr %98, align 8
|
%98 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %95, i32 0, i32 2
|
||||||
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %97, i32 0, i32 1
|
store i64 0, ptr %98, align 4
|
||||||
store ptr %96, ptr %99, align 8
|
%99 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %95, align 8
|
||||||
%100 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %97, align 8
|
%100 = load ptr, ptr @"[]_llgo_int", align 8
|
||||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %100)
|
%101 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||||
%101 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
store %"github.com/goplus/llgo/internal/runtime.Slice" %99, ptr %101, align 8
|
||||||
%102 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %101, i32 0, i32 0
|
%102 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||||
store ptr @3, ptr %102, align 8
|
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %102, i32 0, i32 0
|
||||||
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %101, i32 0, i32 1
|
store ptr %100, ptr %103, align 8
|
||||||
store i64 5, ptr %103, align 4
|
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %102, i32 0, i32 1
|
||||||
%104 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %101, align 8
|
store ptr %101, ptr %104, align 8
|
||||||
%105 = load ptr, ptr @_llgo_string, align 8
|
%105 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %102, align 8
|
||||||
%106 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %105)
|
||||||
store %"github.com/goplus/llgo/internal/runtime.String" %104, ptr %106, align 8
|
%106 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
%107 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
%107 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %106, i32 0, i32 0
|
||||||
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %107, i32 0, i32 0
|
store ptr @6, ptr %107, align 8
|
||||||
store ptr %105, ptr %108, align 8
|
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %106, i32 0, i32 1
|
||||||
%109 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %107, i32 0, i32 1
|
store i64 5, ptr %108, align 4
|
||||||
store ptr %106, ptr %109, align 8
|
%109 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %106, align 8
|
||||||
%110 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %107, align 8
|
%110 = load ptr, ptr @_llgo_string, align 8
|
||||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %110)
|
%111 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||||
%111 = load ptr, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
store %"github.com/goplus/llgo/internal/runtime.String" %109, ptr %111, align 8
|
||||||
%112 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
%112 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||||
store { i8, i64, i64 } zeroinitializer, ptr %112, align 4
|
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %112, i32 0, i32 0
|
||||||
%113 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
store ptr %110, ptr %113, align 8
|
||||||
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %113, i32 0, i32 0
|
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %112, i32 0, i32 1
|
||||||
store ptr %111, ptr %114, align 8
|
store ptr %111, ptr %114, align 8
|
||||||
%115 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %113, i32 0, i32 1
|
%115 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %112, align 8
|
||||||
store ptr %112, ptr %115, align 8
|
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %115)
|
||||||
%116 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %113, align 8
|
%116 = load ptr, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
||||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %116)
|
%117 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||||
%117 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
store { i8, i64, i64 } zeroinitializer, ptr %117, align 4
|
||||||
%118 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %117, i32 0, i32 0
|
%118 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||||
store ptr null, ptr %118, align 8
|
%119 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %118, i32 0, i32 0
|
||||||
%119 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %117, i32 0, i32 1
|
store ptr %116, ptr %119, align 8
|
||||||
store i64 0, ptr %119, align 4
|
%120 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %118, i32 0, i32 1
|
||||||
%120 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %117, align 8
|
store ptr %117, ptr %120, align 8
|
||||||
%121 = load ptr, ptr @_llgo_main.T, align 8
|
%121 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %118, align 8
|
||||||
%122 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %121)
|
||||||
store %"github.com/goplus/llgo/internal/runtime.String" %120, ptr %122, align 8
|
%122 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
%123 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
%123 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %122, i32 0, i32 0
|
||||||
%124 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %123, i32 0, i32 0
|
store ptr null, ptr %123, align 8
|
||||||
store ptr %121, ptr %124, align 8
|
%124 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %122, i32 0, i32 1
|
||||||
%125 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %123, i32 0, i32 1
|
store i64 0, ptr %124, align 4
|
||||||
store ptr %122, ptr %125, align 8
|
%125 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %122, align 8
|
||||||
%126 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %123, align 8
|
%126 = load ptr, ptr @_llgo_main.T, align 8
|
||||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %126)
|
%127 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||||
|
store %"github.com/goplus/llgo/internal/runtime.String" %125, ptr %127, align 8
|
||||||
|
%128 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||||
|
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %128, i32 0, i32 0
|
||||||
|
store ptr %126, ptr %129, align 8
|
||||||
|
%130 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %128, i32 0, i32 1
|
||||||
|
store ptr %127, ptr %130, align 8
|
||||||
|
%131 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %128, align 8
|
||||||
|
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %131)
|
||||||
ret i32 0
|
ret i32 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -588,192 +600,273 @@ _llgo_29: ; preds = %_llgo_28
|
|||||||
br label %_llgo_30
|
br label %_llgo_30
|
||||||
|
|
||||||
_llgo_30: ; preds = %_llgo_29, %_llgo_28
|
_llgo_30: ; preds = %_llgo_29, %_llgo_28
|
||||||
%46 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
%46 = load ptr, ptr @_llgo_Pointer, align 8
|
||||||
%47 = icmp eq ptr %46, null
|
%47 = icmp eq ptr %46, null
|
||||||
br i1 %47, label %_llgo_31, label %_llgo_32
|
br i1 %47, label %_llgo_31, label %_llgo_32
|
||||||
|
|
||||||
_llgo_31: ; preds = %_llgo_30
|
_llgo_31: ; preds = %_llgo_30
|
||||||
%48 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
%48 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58)
|
||||||
%49 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %48)
|
||||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, i32 0, i32 0
|
store ptr %48, ptr @_llgo_Pointer, align 8
|
||||||
store ptr %48, ptr %50, align 8
|
|
||||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, i32 0, i32 1
|
|
||||||
store i64 0, ptr %51, align 4
|
|
||||||
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, i32 0, i32 2
|
|
||||||
store i64 0, ptr %52, align 4
|
|
||||||
%53 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, align 8
|
|
||||||
%54 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
|
||||||
%55 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
||||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %55, i32 0, i32 0
|
|
||||||
store ptr %54, ptr %56, align 8
|
|
||||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %55, i32 0, i32 1
|
|
||||||
store i64 0, ptr %57, align 4
|
|
||||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %55, i32 0, i32 2
|
|
||||||
store i64 0, ptr %58, align 4
|
|
||||||
%59 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %55, align 8
|
|
||||||
%60 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %53, %"github.com/goplus/llgo/internal/runtime.Slice" %59, i1 false)
|
|
||||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %60)
|
|
||||||
store ptr %60, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
|
||||||
br label %_llgo_32
|
br label %_llgo_32
|
||||||
|
|
||||||
_llgo_32: ; preds = %_llgo_31, %_llgo_30
|
_llgo_32: ; preds = %_llgo_31, %_llgo_30
|
||||||
%61 = load ptr, ptr @"*_llgo_int", align 8
|
%49 = load ptr, ptr @_llgo_Pointer, align 8
|
||||||
%62 = icmp eq ptr %61, null
|
%50 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
br i1 %62, label %_llgo_33, label %_llgo_34
|
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %50, i32 0, i32 0
|
||||||
|
store ptr @3, ptr %51, align 8
|
||||||
|
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %50, i32 0, i32 1
|
||||||
|
store i64 1, ptr %52, align 4
|
||||||
|
%53 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %50, align 8
|
||||||
|
%54 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %54, i32 0, i32 0
|
||||||
|
store ptr null, ptr %55, align 8
|
||||||
|
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %54, i32 0, i32 1
|
||||||
|
store i64 0, ptr %56, align 4
|
||||||
|
%57 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %54, align 8
|
||||||
|
%58 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||||
|
%59 = getelementptr ptr, ptr %58, i64 0
|
||||||
|
store ptr %49, ptr %59, align 8
|
||||||
|
%60 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||||
|
%61 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %60, i32 0, i32 0
|
||||||
|
store ptr %58, ptr %61, align 8
|
||||||
|
%62 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %60, i32 0, i32 1
|
||||||
|
store i64 1, ptr %62, align 4
|
||||||
|
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %60, i32 0, i32 2
|
||||||
|
store i64 1, ptr %63, align 4
|
||||||
|
%64 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %60, align 8
|
||||||
|
%65 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||||
|
%66 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||||
|
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %66, i32 0, i32 0
|
||||||
|
store ptr %65, ptr %67, align 8
|
||||||
|
%68 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %66, i32 0, i32 1
|
||||||
|
store i64 0, ptr %68, align 4
|
||||||
|
%69 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %66, i32 0, i32 2
|
||||||
|
store i64 0, ptr %69, align 4
|
||||||
|
%70 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %66, align 8
|
||||||
|
%71 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %64, %"github.com/goplus/llgo/internal/runtime.Slice" %70, i1 false)
|
||||||
|
%72 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %53, ptr %71, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %57, i1 false)
|
||||||
|
%73 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%74 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %73, i32 0, i32 0
|
||||||
|
store ptr @4, ptr %74, align 8
|
||||||
|
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %73, i32 0, i32 1
|
||||||
|
store i64 4, ptr %75, align 4
|
||||||
|
%76 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %73, align 8
|
||||||
|
%77 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%78 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %77, i32 0, i32 0
|
||||||
|
store ptr null, ptr %78, align 8
|
||||||
|
%79 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %77, i32 0, i32 1
|
||||||
|
store i64 0, ptr %79, align 4
|
||||||
|
%80 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %77, align 8
|
||||||
|
%81 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58)
|
||||||
|
%82 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %76, ptr %81, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %80, i1 false)
|
||||||
|
%83 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %83, i32 0, i32 0
|
||||||
|
store ptr @5, ptr %84, align 8
|
||||||
|
%85 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %83, i32 0, i32 1
|
||||||
|
store i64 4, ptr %85, align 4
|
||||||
|
%86 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %83, align 8
|
||||||
|
%87 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||||
|
%88 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %87, i64 0
|
||||||
|
store %"github.com/goplus/llgo/internal/abi.StructField" %72, ptr %88, align 8
|
||||||
|
%89 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %87, i64 1
|
||||||
|
store %"github.com/goplus/llgo/internal/abi.StructField" %82, ptr %89, align 8
|
||||||
|
%90 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||||
|
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %90, i32 0, i32 0
|
||||||
|
store ptr %87, ptr %91, align 8
|
||||||
|
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %90, i32 0, i32 1
|
||||||
|
store i64 2, ptr %92, align 4
|
||||||
|
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %90, i32 0, i32 2
|
||||||
|
store i64 2, ptr %93, align 4
|
||||||
|
%94 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %90, align 8
|
||||||
|
%95 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %86, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %94)
|
||||||
|
store ptr %95, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||||
|
%96 = load ptr, ptr @"*_llgo_int", align 8
|
||||||
|
%97 = icmp eq ptr %96, null
|
||||||
|
br i1 %97, label %_llgo_33, label %_llgo_34
|
||||||
|
|
||||||
_llgo_33: ; preds = %_llgo_32
|
_llgo_33: ; preds = %_llgo_32
|
||||||
%63 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
%98 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||||
%64 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %63)
|
%99 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %98)
|
||||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %64)
|
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %99)
|
||||||
store ptr %64, ptr @"*_llgo_int", align 8
|
store ptr %99, ptr @"*_llgo_int", align 8
|
||||||
br label %_llgo_34
|
br label %_llgo_34
|
||||||
|
|
||||||
_llgo_34: ; preds = %_llgo_33, %_llgo_32
|
_llgo_34: ; preds = %_llgo_33, %_llgo_32
|
||||||
%65 = load ptr, ptr @"[]_llgo_int", align 8
|
%100 = load ptr, ptr @"[]_llgo_int", align 8
|
||||||
%66 = icmp eq ptr %65, null
|
%101 = icmp eq ptr %100, null
|
||||||
br i1 %66, label %_llgo_35, label %_llgo_36
|
br i1 %101, label %_llgo_35, label %_llgo_36
|
||||||
|
|
||||||
_llgo_35: ; preds = %_llgo_34
|
_llgo_35: ; preds = %_llgo_34
|
||||||
%67 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
%102 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||||
%68 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %67)
|
%103 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %102)
|
||||||
store ptr %68, ptr @"[]_llgo_int", align 8
|
store ptr %103, ptr @"[]_llgo_int", align 8
|
||||||
br label %_llgo_36
|
br label %_llgo_36
|
||||||
|
|
||||||
_llgo_36: ; preds = %_llgo_35, %_llgo_34
|
_llgo_36: ; preds = %_llgo_35, %_llgo_34
|
||||||
%69 = load ptr, ptr @_llgo_string, align 8
|
%104 = load ptr, ptr @_llgo_string, align 8
|
||||||
%70 = icmp eq ptr %69, null
|
%105 = icmp eq ptr %104, null
|
||||||
br i1 %70, label %_llgo_37, label %_llgo_38
|
br i1 %105, label %_llgo_37, label %_llgo_38
|
||||||
|
|
||||||
_llgo_37: ; preds = %_llgo_36
|
_llgo_37: ; preds = %_llgo_36
|
||||||
%71 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
%106 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||||
store ptr %71, ptr @_llgo_string, align 8
|
store ptr %106, ptr @_llgo_string, align 8
|
||||||
br label %_llgo_38
|
br label %_llgo_38
|
||||||
|
|
||||||
_llgo_38: ; preds = %_llgo_37, %_llgo_36
|
_llgo_38: ; preds = %_llgo_37, %_llgo_36
|
||||||
%72 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
%107 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
%73 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %72, i32 0, i32 0
|
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %107, i32 0, i32 0
|
||||||
store ptr @4, ptr %73, align 8
|
store ptr @7, ptr %108, align 8
|
||||||
%74 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %72, i32 0, i32 1
|
%109 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %107, i32 0, i32 1
|
||||||
store i64 1, ptr %74, align 4
|
store i64 1, ptr %109, align 4
|
||||||
%75 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %72, align 8
|
%110 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %107, align 8
|
||||||
%76 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
%111 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %76, i32 0, i32 0
|
%112 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %111, i32 0, i32 0
|
||||||
store ptr null, ptr %77, align 8
|
store ptr null, ptr %112, align 8
|
||||||
%78 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %76, i32 0, i32 1
|
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %111, i32 0, i32 1
|
||||||
store i64 0, ptr %78, align 4
|
store i64 0, ptr %113, align 4
|
||||||
%79 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %76, align 8
|
%114 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %111, align 8
|
||||||
%80 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35)
|
%115 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35)
|
||||||
%81 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %75, ptr %80, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %79, i1 false)
|
%116 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %110, ptr %115, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %114, i1 false)
|
||||||
%82 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
%117 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
%83 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %82, i32 0, i32 0
|
%118 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %117, i32 0, i32 0
|
||||||
store ptr @5, ptr %83, align 8
|
store ptr @8, ptr %118, align 8
|
||||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %82, i32 0, i32 1
|
%119 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %117, i32 0, i32 1
|
||||||
store i64 1, ptr %84, align 4
|
store i64 1, ptr %119, align 4
|
||||||
%85 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %82, align 8
|
%120 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %117, align 8
|
||||||
%86 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
%121 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
%87 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %86, i32 0, i32 0
|
%122 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %121, i32 0, i32 0
|
||||||
store ptr null, ptr %87, align 8
|
store ptr null, ptr %122, align 8
|
||||||
%88 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %86, i32 0, i32 1
|
%123 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %121, i32 0, i32 1
|
||||||
store i64 0, ptr %88, align 4
|
store i64 0, ptr %123, align 4
|
||||||
%89 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %86, align 8
|
%124 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %121, align 8
|
||||||
%90 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
%125 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||||
%91 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %85, ptr %90, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %89, i1 false)
|
%126 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %120, ptr %125, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %124, i1 false)
|
||||||
%92 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
%127 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %92, i32 0, i32 0
|
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %127, i32 0, i32 0
|
||||||
store ptr @6, ptr %93, align 8
|
store ptr @9, ptr %128, align 8
|
||||||
%94 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %92, i32 0, i32 1
|
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %127, i32 0, i32 1
|
||||||
store i64 1, ptr %94, align 4
|
store i64 1, ptr %129, align 4
|
||||||
%95 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %92, align 8
|
%130 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %127, align 8
|
||||||
%96 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
%131 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %96, i32 0, i32 0
|
%132 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %131, i32 0, i32 0
|
||||||
store ptr null, ptr %97, align 8
|
store ptr null, ptr %132, align 8
|
||||||
%98 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %96, i32 0, i32 1
|
%133 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %131, i32 0, i32 1
|
||||||
store i64 0, ptr %98, align 4
|
store i64 0, ptr %133, align 4
|
||||||
%99 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %96, align 8
|
%134 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %131, align 8
|
||||||
%100 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
%135 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||||
%101 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %95, ptr %100, i64 16, %"github.com/goplus/llgo/internal/runtime.String" %99, i1 false)
|
%136 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %130, ptr %135, i64 16, %"github.com/goplus/llgo/internal/runtime.String" %134, i1 false)
|
||||||
%102 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
%137 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %102, i32 0, i32 0
|
%138 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %137, i32 0, i32 0
|
||||||
store ptr @7, ptr %103, align 8
|
store ptr @5, ptr %138, align 8
|
||||||
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %102, i32 0, i32 1
|
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %137, i32 0, i32 1
|
||||||
store i64 4, ptr %104, align 4
|
store i64 4, ptr %139, align 4
|
||||||
%105 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %102, align 8
|
%140 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %137, align 8
|
||||||
%106 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 168)
|
%141 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 168)
|
||||||
%107 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %106, i64 0
|
%142 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %141, i64 0
|
||||||
store %"github.com/goplus/llgo/internal/abi.StructField" %81, ptr %107, align 8
|
store %"github.com/goplus/llgo/internal/abi.StructField" %116, ptr %142, align 8
|
||||||
%108 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %106, i64 1
|
%143 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %141, i64 1
|
||||||
store %"github.com/goplus/llgo/internal/abi.StructField" %91, ptr %108, align 8
|
store %"github.com/goplus/llgo/internal/abi.StructField" %126, ptr %143, align 8
|
||||||
%109 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %106, i64 2
|
%144 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %141, i64 2
|
||||||
store %"github.com/goplus/llgo/internal/abi.StructField" %101, ptr %109, align 8
|
store %"github.com/goplus/llgo/internal/abi.StructField" %136, ptr %144, align 8
|
||||||
%110 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
%145 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||||
%111 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %110, i32 0, i32 0
|
%146 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, i32 0, i32 0
|
||||||
store ptr %106, ptr %111, align 8
|
store ptr %141, ptr %146, align 8
|
||||||
%112 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %110, i32 0, i32 1
|
%147 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, i32 0, i32 1
|
||||||
store i64 3, ptr %112, align 4
|
store i64 3, ptr %147, align 4
|
||||||
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %110, i32 0, i32 2
|
%148 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, i32 0, i32 2
|
||||||
store i64 3, ptr %113, align 4
|
store i64 3, ptr %148, align 4
|
||||||
%114 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %110, align 8
|
%149 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, align 8
|
||||||
%115 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %105, i64 24, %"github.com/goplus/llgo/internal/runtime.Slice" %114)
|
%150 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %140, i64 24, %"github.com/goplus/llgo/internal/runtime.Slice" %149)
|
||||||
store ptr %115, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
store ptr %150, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
||||||
%116 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 24, i64 16, i64 0, i64 1)
|
%151 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 24, i64 16, i64 0, i64 1)
|
||||||
%117 = load ptr, ptr @_llgo_main.T, align 8
|
%152 = load ptr, ptr @_llgo_main.T, align 8
|
||||||
%118 = icmp eq ptr %117, null
|
%153 = icmp eq ptr %152, null
|
||||||
br i1 %118, label %_llgo_39, label %_llgo_40
|
br i1 %153, label %_llgo_39, label %_llgo_40
|
||||||
|
|
||||||
_llgo_39: ; preds = %_llgo_38
|
_llgo_39: ; preds = %_llgo_38
|
||||||
store ptr %116, ptr @_llgo_main.T, align 8
|
store ptr %151, ptr @_llgo_main.T, align 8
|
||||||
br label %_llgo_40
|
br label %_llgo_40
|
||||||
|
|
||||||
_llgo_40: ; preds = %_llgo_39, %_llgo_38
|
_llgo_40: ; preds = %_llgo_39, %_llgo_38
|
||||||
%119 = load ptr, ptr @_llgo_string, align 8
|
%154 = load ptr, ptr @_llgo_string, align 8
|
||||||
br i1 %118, label %_llgo_41, label %_llgo_42
|
br i1 %153, label %_llgo_41, label %_llgo_42
|
||||||
|
|
||||||
_llgo_41: ; preds = %_llgo_40
|
_llgo_41: ; preds = %_llgo_40
|
||||||
%120 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
%155 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
%121 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %120, i32 0, i32 0
|
%156 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %155, i32 0, i32 0
|
||||||
store ptr @8, ptr %121, align 8
|
store ptr @10, ptr %156, align 8
|
||||||
%122 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %120, i32 0, i32 1
|
%157 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %155, i32 0, i32 1
|
||||||
store i64 6, ptr %122, align 4
|
store i64 6, ptr %157, align 4
|
||||||
%123 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %120, align 8
|
%158 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %155, align 8
|
||||||
%124 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
%159 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||||
%125 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
%160 = icmp eq ptr %159, null
|
||||||
%126 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %125, i32 0, i32 0
|
br i1 %160, label %_llgo_43, label %_llgo_44
|
||||||
store %"github.com/goplus/llgo/internal/runtime.String" %123, ptr %126, align 8
|
|
||||||
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %125, i32 0, i32 1
|
|
||||||
store ptr %124, ptr %127, align 8
|
|
||||||
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %125, i32 0, i32 2
|
|
||||||
store ptr @"main.(*T).Invoke", ptr %128, align 8
|
|
||||||
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %125, i32 0, i32 3
|
|
||||||
store ptr @"main.(*T).Invoke", ptr %129, align 8
|
|
||||||
%130 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %125, align 8
|
|
||||||
%131 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
|
||||||
%132 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %131, i64 0
|
|
||||||
store %"github.com/goplus/llgo/internal/abi.Method" %130, ptr %132, align 8
|
|
||||||
%133 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
||||||
%134 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 0
|
|
||||||
store ptr %131, ptr %134, align 8
|
|
||||||
%135 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 1
|
|
||||||
store i64 1, ptr %135, align 4
|
|
||||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 2
|
|
||||||
store i64 1, ptr %136, align 4
|
|
||||||
%137 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, align 8
|
|
||||||
%138 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
||||||
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %138, i32 0, i32 0
|
|
||||||
store ptr @7, ptr %139, align 8
|
|
||||||
%140 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %138, i32 0, i32 1
|
|
||||||
store i64 4, ptr %140, align 4
|
|
||||||
%141 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %138, align 8
|
|
||||||
%142 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
||||||
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %142, i32 0, i32 0
|
|
||||||
store ptr @9, ptr %143, align 8
|
|
||||||
%144 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %142, i32 0, i32 1
|
|
||||||
store i64 1, ptr %144, align 4
|
|
||||||
%145 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %142, align 8
|
|
||||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %116, %"github.com/goplus/llgo/internal/runtime.String" %141, %"github.com/goplus/llgo/internal/runtime.String" %145, ptr %119, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %137)
|
|
||||||
br label %_llgo_42
|
|
||||||
|
|
||||||
_llgo_42: ; preds = %_llgo_41, %_llgo_40
|
_llgo_42: ; preds = %_llgo_44, %_llgo_40
|
||||||
ret void
|
ret void
|
||||||
|
|
||||||
|
_llgo_43: ; preds = %_llgo_41
|
||||||
|
%161 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||||
|
%162 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||||
|
%163 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %162, i32 0, i32 0
|
||||||
|
store ptr %161, ptr %163, align 8
|
||||||
|
%164 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %162, i32 0, i32 1
|
||||||
|
store i64 0, ptr %164, align 4
|
||||||
|
%165 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %162, i32 0, i32 2
|
||||||
|
store i64 0, ptr %165, align 4
|
||||||
|
%166 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %162, align 8
|
||||||
|
%167 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||||
|
%168 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||||
|
%169 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %168, i32 0, i32 0
|
||||||
|
store ptr %167, ptr %169, align 8
|
||||||
|
%170 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %168, i32 0, i32 1
|
||||||
|
store i64 0, ptr %170, align 4
|
||||||
|
%171 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %168, i32 0, i32 2
|
||||||
|
store i64 0, ptr %171, align 4
|
||||||
|
%172 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %168, align 8
|
||||||
|
%173 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %166, %"github.com/goplus/llgo/internal/runtime.Slice" %172, i1 false)
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %173)
|
||||||
|
store ptr %173, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||||
|
br label %_llgo_44
|
||||||
|
|
||||||
|
_llgo_44: ; preds = %_llgo_43, %_llgo_41
|
||||||
|
%174 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||||
|
%175 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||||
|
%176 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %175, i32 0, i32 0
|
||||||
|
store %"github.com/goplus/llgo/internal/runtime.String" %158, ptr %176, align 8
|
||||||
|
%177 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %175, i32 0, i32 1
|
||||||
|
store ptr %174, ptr %177, align 8
|
||||||
|
%178 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %175, i32 0, i32 2
|
||||||
|
store ptr @"main.(*T).Invoke", ptr %178, align 8
|
||||||
|
%179 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %175, i32 0, i32 3
|
||||||
|
store ptr @"main.(*T).Invoke", ptr %179, align 8
|
||||||
|
%180 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %175, align 8
|
||||||
|
%181 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||||
|
%182 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %181, i64 0
|
||||||
|
store %"github.com/goplus/llgo/internal/abi.Method" %180, ptr %182, align 8
|
||||||
|
%183 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||||
|
%184 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %183, i32 0, i32 0
|
||||||
|
store ptr %181, ptr %184, align 8
|
||||||
|
%185 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %183, i32 0, i32 1
|
||||||
|
store i64 1, ptr %185, align 4
|
||||||
|
%186 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %183, i32 0, i32 2
|
||||||
|
store i64 1, ptr %186, align 4
|
||||||
|
%187 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %183, align 8
|
||||||
|
%188 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%189 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %188, i32 0, i32 0
|
||||||
|
store ptr @5, ptr %189, align 8
|
||||||
|
%190 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %188, i32 0, i32 1
|
||||||
|
store i64 4, ptr %190, align 4
|
||||||
|
%191 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %188, align 8
|
||||||
|
%192 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%193 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %192, i32 0, i32 0
|
||||||
|
store ptr @11, ptr %193, align 8
|
||||||
|
%194 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %192, i32 0, i32 1
|
||||||
|
store i64 1, ptr %194, align 4
|
||||||
|
%195 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %192, align 8
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %151, %"github.com/goplus/llgo/internal/runtime.String" %191, %"github.com/goplus/llgo/internal/runtime.String" %195, ptr %154, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %187)
|
||||||
|
br label %_llgo_42
|
||||||
}
|
}
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64)
|
declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64)
|
||||||
@@ -782,18 +875,24 @@ declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr)
|
|||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64)
|
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(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)
|
define linkonce void @"__llgo_stub.main.main$1"(ptr %0) {
|
||||||
|
_llgo_0:
|
||||||
|
tail call void @"main.main$1"()
|
||||||
|
ret void
|
||||||
|
}
|
||||||
|
|
||||||
declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr)
|
declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr)
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr)
|
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(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/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/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/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 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/internal/runtime.PointerTo"(ptr)
|
||||||
|
|
||||||
|
declare ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr)
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64, i64, i64, i64)
|
declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64, i64, i64, i64)
|
||||||
|
|
||||||
declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice")
|
declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice")
|
||||||
|
|||||||
35
cl/_testrt/funcdecl/in.go
Normal file
35
cl/_testrt/funcdecl/in.go
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
println("hello")
|
||||||
|
check(demo)
|
||||||
|
}
|
||||||
|
|
||||||
|
func check(fn func()) {
|
||||||
|
var a any = demo
|
||||||
|
var b any = fn
|
||||||
|
fn1 := a.(func())
|
||||||
|
fn2 := b.(func())
|
||||||
|
println(a, b, fn, fn1, fn2, demo)
|
||||||
|
println(closurePtr(a) == closurePtr(b))
|
||||||
|
}
|
||||||
|
|
||||||
|
func closurePtr(a any) unsafe.Pointer {
|
||||||
|
return (*rtype)(unsafe.Pointer(&a)).ptr.fn
|
||||||
|
}
|
||||||
|
|
||||||
|
type rtype struct {
|
||||||
|
typ unsafe.Pointer
|
||||||
|
ptr *struct {
|
||||||
|
fn unsafe.Pointer
|
||||||
|
env unsafe.Pointer
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func demo() {
|
||||||
|
println("demo")
|
||||||
|
}
|
||||||
316
cl/_testrt/funcdecl/out.ll
Normal file
316
cl/_testrt/funcdecl/out.ll
Normal file
@@ -0,0 +1,316 @@
|
|||||||
|
; 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 }
|
||||||
|
%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 }
|
||||||
|
|
||||||
|
@"main.init$guard" = global i1 false, align 1
|
||||||
|
@"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o" = global ptr null, align 8
|
||||||
|
@_llgo_Pointer = linkonce global ptr null, align 8
|
||||||
|
@0 = private unnamed_addr constant [1 x i8] c"f", align 1
|
||||||
|
@1 = private unnamed_addr constant [4 x i8] c"data", align 1
|
||||||
|
@2 = private unnamed_addr constant [4 x i8] c"main", align 1
|
||||||
|
@3 = private unnamed_addr constant [21 x i8] c"type assertion failed", align 1
|
||||||
|
@_llgo_string = linkonce global ptr null, align 8
|
||||||
|
@4 = private unnamed_addr constant [4 x i8] c"demo", align 1
|
||||||
|
@__llgo_argc = global i32 0, align 4
|
||||||
|
@__llgo_argv = global ptr null, align 8
|
||||||
|
@5 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
||||||
|
|
||||||
|
define void @main.check({ ptr, ptr } %0) {
|
||||||
|
_llgo_0:
|
||||||
|
%1 = alloca { ptr, ptr }, align 8
|
||||||
|
%2 = getelementptr inbounds { ptr, ptr }, ptr %1, i32 0, i32 0
|
||||||
|
store ptr @__llgo_stub.main.demo, ptr %2, align 8
|
||||||
|
%3 = getelementptr inbounds { ptr, ptr }, ptr %1, i32 0, i32 1
|
||||||
|
store ptr null, ptr %3, align 8
|
||||||
|
%4 = load { ptr, ptr }, ptr %1, align 8
|
||||||
|
%5 = load ptr, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||||
|
%6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||||
|
store { ptr, ptr } %4, ptr %6, align 8
|
||||||
|
%7 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||||
|
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, i32 0, i32 0
|
||||||
|
store ptr %5, ptr %8, align 8
|
||||||
|
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, i32 0, i32 1
|
||||||
|
store ptr %6, ptr %9, align 8
|
||||||
|
%10 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, align 8
|
||||||
|
%11 = load ptr, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||||
|
%12 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||||
|
store { ptr, ptr } %0, ptr %12, align 8
|
||||||
|
%13 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||||
|
%14 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %13, i32 0, i32 0
|
||||||
|
store ptr %11, ptr %14, align 8
|
||||||
|
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %13, i32 0, i32 1
|
||||||
|
store ptr %12, ptr %15, align 8
|
||||||
|
%16 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %13, align 8
|
||||||
|
%17 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %10, 0
|
||||||
|
%18 = load ptr, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||||
|
%19 = icmp eq ptr %17, %18
|
||||||
|
br i1 %19, label %_llgo_1, label %_llgo_2
|
||||||
|
|
||||||
|
_llgo_1: ; preds = %_llgo_0
|
||||||
|
%20 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %10, 1
|
||||||
|
%21 = load { ptr, ptr }, ptr %20, align 8
|
||||||
|
%22 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %16, 0
|
||||||
|
%23 = load ptr, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||||
|
%24 = icmp eq ptr %22, %23
|
||||||
|
br i1 %24, label %_llgo_3, label %_llgo_4
|
||||||
|
|
||||||
|
_llgo_2: ; preds = %_llgo_0
|
||||||
|
%25 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%26 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %25, i32 0, i32 0
|
||||||
|
store ptr @3, ptr %26, align 8
|
||||||
|
%27 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %25, i32 0, i32 1
|
||||||
|
store i64 21, ptr %27, align 4
|
||||||
|
%28 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %25, align 8
|
||||||
|
%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" %28, ptr %30, align 8
|
||||||
|
%31 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||||
|
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %31, i32 0, i32 0
|
||||||
|
store ptr %29, ptr %32, align 8
|
||||||
|
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %31, i32 0, i32 1
|
||||||
|
store ptr %30, ptr %33, align 8
|
||||||
|
%34 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %31, align 8
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %34)
|
||||||
|
unreachable
|
||||||
|
|
||||||
|
_llgo_3: ; preds = %_llgo_1
|
||||||
|
%35 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %16, 1
|
||||||
|
%36 = load { ptr, ptr }, ptr %35, align 8
|
||||||
|
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/internal/runtime.PrintEface"(%"github.com/goplus/llgo/internal/runtime.eface" %16)
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||||
|
%37 = extractvalue { ptr, ptr } %0, 0
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %37)
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||||
|
%38 = extractvalue { ptr, ptr } %21, 0
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %38)
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||||
|
%39 = extractvalue { ptr, ptr } %36, 0
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %39)
|
||||||
|
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)
|
||||||
|
%40 = call ptr @main.closurePtr(%"github.com/goplus/llgo/internal/runtime.eface" %10)
|
||||||
|
%41 = call ptr @main.closurePtr(%"github.com/goplus/llgo/internal/runtime.eface" %16)
|
||||||
|
%42 = icmp eq ptr %40, %41
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %42)
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||||
|
ret void
|
||||||
|
|
||||||
|
_llgo_4: ; preds = %_llgo_1
|
||||||
|
%43 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %43, i32 0, i32 0
|
||||||
|
store ptr @3, ptr %44, align 8
|
||||||
|
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %43, i32 0, i32 1
|
||||||
|
store i64 21, ptr %45, align 4
|
||||||
|
%46 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %43, align 8
|
||||||
|
%47 = load ptr, ptr @_llgo_string, align 8
|
||||||
|
%48 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||||
|
store %"github.com/goplus/llgo/internal/runtime.String" %46, ptr %48, align 8
|
||||||
|
%49 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||||
|
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %49, i32 0, i32 0
|
||||||
|
store ptr %47, ptr %50, align 8
|
||||||
|
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %49, i32 0, i32 1
|
||||||
|
store ptr %48, ptr %51, align 8
|
||||||
|
%52 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %49, align 8
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %52)
|
||||||
|
unreachable
|
||||||
|
}
|
||||||
|
|
||||||
|
define ptr @main.closurePtr(%"github.com/goplus/llgo/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
|
||||||
|
%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
|
||||||
|
%5 = load ptr, ptr %4, align 8
|
||||||
|
ret ptr %5
|
||||||
|
}
|
||||||
|
|
||||||
|
define void @main.demo() {
|
||||||
|
_llgo_0:
|
||||||
|
%0 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%1 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 0
|
||||||
|
store ptr @4, ptr %1, align 8
|
||||||
|
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 1
|
||||||
|
store i64 4, ptr %2, align 4
|
||||||
|
%3 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %0, align 8
|
||||||
|
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)
|
||||||
|
ret void
|
||||||
|
}
|
||||||
|
|
||||||
|
define void @main.init() {
|
||||||
|
_llgo_0:
|
||||||
|
%0 = load i1, ptr @"main.init$guard", align 1
|
||||||
|
br i1 %0, label %_llgo_2, label %_llgo_1
|
||||||
|
|
||||||
|
_llgo_1: ; preds = %_llgo_0
|
||||||
|
store i1 true, ptr @"main.init$guard", align 1
|
||||||
|
call void @"main.init$after"()
|
||||||
|
br label %_llgo_2
|
||||||
|
|
||||||
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||||
|
ret void
|
||||||
|
}
|
||||||
|
|
||||||
|
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 @main.init()
|
||||||
|
%2 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 0
|
||||||
|
store ptr @5, ptr %3, align 8
|
||||||
|
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 1
|
||||||
|
store i64 5, ptr %4, align 4
|
||||||
|
%5 = 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" %5)
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||||
|
%6 = alloca { ptr, ptr }, align 8
|
||||||
|
%7 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
|
||||||
|
store ptr @__llgo_stub.main.demo, ptr %7, align 8
|
||||||
|
%8 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
|
||||||
|
store ptr null, ptr %8, align 8
|
||||||
|
%9 = load { ptr, ptr }, ptr %6, align 8
|
||||||
|
call void @main.check({ ptr, ptr } %9)
|
||||||
|
ret i32 0
|
||||||
|
}
|
||||||
|
|
||||||
|
define linkonce void @__llgo_stub.main.demo(ptr %0) {
|
||||||
|
_llgo_0:
|
||||||
|
tail call void @main.demo()
|
||||||
|
ret void
|
||||||
|
}
|
||||||
|
|
||||||
|
define void @"main.init$after"() {
|
||||||
|
_llgo_0:
|
||||||
|
%0 = load ptr, ptr @_llgo_Pointer, 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 58)
|
||||||
|
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %2)
|
||||||
|
store ptr %2, ptr @_llgo_Pointer, align 8
|
||||||
|
br label %_llgo_2
|
||||||
|
|
||||||
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||||
|
%3 = load ptr, ptr @_llgo_Pointer, align 8
|
||||||
|
%4 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %4, i32 0, i32 0
|
||||||
|
store ptr @0, ptr %5, align 8
|
||||||
|
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %4, i32 0, i32 1
|
||||||
|
store i64 1, ptr %6, align 4
|
||||||
|
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||||
|
%8 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %8, i32 0, i32 0
|
||||||
|
store ptr null, ptr %9, align 8
|
||||||
|
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %8, i32 0, i32 1
|
||||||
|
store i64 0, ptr %10, align 4
|
||||||
|
%11 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %8, align 8
|
||||||
|
%12 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||||
|
%13 = getelementptr ptr, ptr %12, i64 0
|
||||||
|
store ptr %3, ptr %13, align 8
|
||||||
|
%14 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||||
|
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %14, i32 0, i32 0
|
||||||
|
store ptr %12, ptr %15, align 8
|
||||||
|
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %14, i32 0, i32 1
|
||||||
|
store i64 1, ptr %16, align 4
|
||||||
|
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %14, i32 0, i32 2
|
||||||
|
store i64 1, ptr %17, align 4
|
||||||
|
%18 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %14, align 8
|
||||||
|
%19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||||
|
%20 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||||
|
%21 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %20, i32 0, i32 0
|
||||||
|
store ptr %19, ptr %21, align 8
|
||||||
|
%22 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %20, i32 0, i32 1
|
||||||
|
store i64 0, ptr %22, align 4
|
||||||
|
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %20, i32 0, i32 2
|
||||||
|
store i64 0, ptr %23, align 4
|
||||||
|
%24 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %20, align 8
|
||||||
|
%25 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %18, %"github.com/goplus/llgo/internal/runtime.Slice" %24, i1 false)
|
||||||
|
%26 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %7, ptr %25, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %11, i1 false)
|
||||||
|
%27 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%28 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %27, i32 0, i32 0
|
||||||
|
store ptr @1, ptr %28, align 8
|
||||||
|
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %27, i32 0, i32 1
|
||||||
|
store i64 4, ptr %29, align 4
|
||||||
|
%30 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %27, align 8
|
||||||
|
%31 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %31, i32 0, i32 0
|
||||||
|
store ptr null, ptr %32, align 8
|
||||||
|
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %31, i32 0, i32 1
|
||||||
|
store i64 0, ptr %33, align 4
|
||||||
|
%34 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %31, align 8
|
||||||
|
%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" %30, ptr %35, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %34, i1 false)
|
||||||
|
%37 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||||
|
%38 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %37, i32 0, i32 0
|
||||||
|
store ptr @2, ptr %38, align 8
|
||||||
|
%39 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %37, i32 0, i32 1
|
||||||
|
store i64 4, ptr %39, align 4
|
||||||
|
%40 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %37, align 8
|
||||||
|
%41 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||||
|
%42 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %41, i64 0
|
||||||
|
store %"github.com/goplus/llgo/internal/abi.StructField" %26, ptr %42, align 8
|
||||||
|
%43 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %41, i64 1
|
||||||
|
store %"github.com/goplus/llgo/internal/abi.StructField" %36, ptr %43, align 8
|
||||||
|
%44 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||||
|
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %44, i32 0, i32 0
|
||||||
|
store ptr %41, ptr %45, align 8
|
||||||
|
%46 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %44, i32 0, i32 1
|
||||||
|
store i64 2, ptr %46, align 4
|
||||||
|
%47 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %44, i32 0, i32 2
|
||||||
|
store i64 2, ptr %47, align 4
|
||||||
|
%48 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %44, align 8
|
||||||
|
%49 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %40, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %48)
|
||||||
|
store ptr %49, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||||
|
%50 = load ptr, ptr @_llgo_string, align 8
|
||||||
|
%51 = icmp eq ptr %50, null
|
||||||
|
br i1 %51, label %_llgo_3, label %_llgo_4
|
||||||
|
|
||||||
|
_llgo_3: ; preds = %_llgo_2
|
||||||
|
%52 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||||
|
store ptr %52, ptr @_llgo_string, align 8
|
||||||
|
br label %_llgo_4
|
||||||
|
|
||||||
|
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||||
|
ret void
|
||||||
|
}
|
||||||
|
|
||||||
|
declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64)
|
||||||
|
|
||||||
|
declare void @"github.com/goplus/llgo/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 %"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 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/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/internal/runtime.PrintEface"(%"github.com/goplus/llgo/internal/runtime.eface")
|
||||||
|
|
||||||
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8)
|
||||||
|
|
||||||
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr)
|
||||||
|
|
||||||
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1)
|
||||||
|
|
||||||
|
declare ptr @"github.com/goplus/llgo/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/internal/runtime.init"()
|
||||||
@@ -99,6 +99,10 @@ func (b Builder) MakeInterface(tinter Type, x Expr) (ret Expr) {
|
|||||||
if debugInstr {
|
if debugInstr {
|
||||||
log.Printf("MakeInterface %v, %v\n", rawIntf, x.impl)
|
log.Printf("MakeInterface %v, %v\n", rawIntf, x.impl)
|
||||||
}
|
}
|
||||||
|
if x.kind == vkFuncDecl {
|
||||||
|
typ := b.Prog.Type(x.raw.Type, InGo)
|
||||||
|
x = checkExpr(x, typ.raw.Type, b)
|
||||||
|
}
|
||||||
prog := b.Prog
|
prog := b.Prog
|
||||||
typ := x.Type
|
typ := x.Type
|
||||||
tabi := b.abiType(typ.raw.Type)
|
tabi := b.abiType(typ.raw.Type)
|
||||||
|
|||||||
Reference in New Issue
Block a user