Merge pull request #824 from visualfc/chkabi
ssa: abi check interface method
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -18,31 +18,32 @@ source_filename = "main"
|
||||
define ptr @main.hi(%"github.com/goplus/llgo/internal/runtime.eface" %0) {
|
||||
_llgo_0:
|
||||
%1 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0
|
||||
%2 = load ptr, ptr @"*_llgo_int8", align 8
|
||||
%3 = icmp eq ptr %1, %2
|
||||
br i1 %3, label %_llgo_1, label %_llgo_2
|
||||
%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
|
||||
%4 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1
|
||||
ret ptr %4
|
||||
%5 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1
|
||||
ret ptr %5
|
||||
|
||||
_llgo_2: ; preds = %_llgo_0
|
||||
%5 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %5, i32 0, i32 0
|
||||
store ptr @0, ptr %6, align 8
|
||||
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %5, i32 0, i32 1
|
||||
store i64 21, ptr %7, align 4
|
||||
%8 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %5, align 8
|
||||
%9 = load ptr, ptr @_llgo_string, align 8
|
||||
%10 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %8, ptr %10, align 8
|
||||
%11 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %11, i32 0, i32 0
|
||||
store ptr %9, ptr %12, align 8
|
||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %11, i32 0, i32 1
|
||||
%6 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %6, i32 0, i32 0
|
||||
store ptr @0, ptr %7, align 8
|
||||
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %6, i32 0, i32 1
|
||||
store i64 21, ptr %8, align 4
|
||||
%9 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %6, align 8
|
||||
%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" %9, ptr %11, align 8
|
||||
%12 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %12, i32 0, i32 0
|
||||
store ptr %10, ptr %13, align 8
|
||||
%14 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %11, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %14)
|
||||
%14 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %12, i32 0, i32 1
|
||||
store ptr %11, ptr %14, align 8
|
||||
%15 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %12, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %15)
|
||||
unreachable
|
||||
}
|
||||
|
||||
|
||||
@@ -31,8 +31,9 @@ source_filename = "main"
|
||||
@_llgo_float32 = linkonce global ptr null, align 8
|
||||
@_llgo_float64 = linkonce global ptr null, align 8
|
||||
@"[10]_llgo_int" = linkonce global ptr null, align 8
|
||||
@"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o" = linkonce global ptr null, align 8
|
||||
@_llgo_Pointer = linkonce global ptr null, align 8
|
||||
@"_llgo_func$CqBkokmWG3Ia8PBDErMKLrnXwWQ3khfTBm7VXk_2y30" = linkonce global ptr null, align 8
|
||||
@"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o" = 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
|
||||
@@ -322,102 +323,103 @@ _llgo_0:
|
||||
store ptr null, ptr %70, align 8
|
||||
%71 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %71)
|
||||
%72 = load ptr, ptr @_llgo_int, align 8
|
||||
%73 = load ptr, ptr @"[10]_llgo_int", align 8
|
||||
%74 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
store [10 x i64] zeroinitializer, ptr %74, align 4
|
||||
%75 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %75, i32 0, i32 0
|
||||
%72 = load ptr, ptr @"[10]_llgo_int", align 8
|
||||
%73 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
store [10 x i64] zeroinitializer, ptr %73, align 4
|
||||
%74 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %74, i32 0, i32 0
|
||||
store ptr %72, ptr %75, align 8
|
||||
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %74, i32 0, i32 1
|
||||
store ptr %73, ptr %76, align 8
|
||||
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %75, i32 0, i32 1
|
||||
store ptr %74, ptr %77, 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)
|
||||
%79 = alloca { ptr, ptr }, align 8
|
||||
%80 = getelementptr inbounds { ptr, ptr }, ptr %79, i32 0, i32 0
|
||||
store ptr @"__llgo_stub.main.main$1", ptr %80, align 8
|
||||
%81 = getelementptr inbounds { ptr, ptr }, ptr %79, i32 0, i32 1
|
||||
store ptr null, ptr %81, align 8
|
||||
%82 = load { ptr, ptr }, ptr %79, align 8
|
||||
%83 = load ptr, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||
%84 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store { ptr, ptr } %82, ptr %84, 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
|
||||
store ptr %83, ptr %86, align 8
|
||||
%87 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %85, i32 0, i32 1
|
||||
%77 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %74, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %77)
|
||||
%78 = alloca { ptr, ptr }, align 8
|
||||
%79 = getelementptr inbounds { ptr, ptr }, ptr %78, i32 0, i32 0
|
||||
store ptr @"__llgo_stub.main.main$1", ptr %79, align 8
|
||||
%80 = getelementptr inbounds { ptr, ptr }, ptr %78, i32 0, i32 1
|
||||
store ptr null, ptr %80, align 8
|
||||
%81 = load { ptr, ptr }, ptr %78, align 8
|
||||
%82 = load ptr, ptr @_llgo_Pointer, align 8
|
||||
%83 = load ptr, ptr @"_llgo_func$CqBkokmWG3Ia8PBDErMKLrnXwWQ3khfTBm7VXk_2y30", align 8
|
||||
%84 = load ptr, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||
%85 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store { ptr, ptr } %81, ptr %85, align 8
|
||||
%86 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%87 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %86, i32 0, i32 0
|
||||
store ptr %84, ptr %87, 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)
|
||||
%89 = load ptr, ptr @"*_llgo_int", align 8
|
||||
%90 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %90, i32 0, i32 0
|
||||
store ptr %89, ptr %91, align 8
|
||||
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %90, i32 0, i32 1
|
||||
store ptr null, ptr %92, align 8
|
||||
%93 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %90, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %93)
|
||||
%94 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 0)
|
||||
%95 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %95, i32 0, i32 0
|
||||
store ptr %94, ptr %96, align 8
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %95, i32 0, i32 1
|
||||
store i64 0, ptr %97, align 4
|
||||
%98 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %95, i32 0, i32 2
|
||||
%88 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %86, i32 0, i32 1
|
||||
store ptr %85, ptr %88, align 8
|
||||
%89 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %86, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %89)
|
||||
%90 = load ptr, ptr @"*_llgo_int", align 8
|
||||
%91 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %91, i32 0, i32 0
|
||||
store ptr %90, ptr %92, align 8
|
||||
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %91, i32 0, i32 1
|
||||
store ptr null, ptr %93, align 8
|
||||
%94 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %91, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %94)
|
||||
%95 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 0)
|
||||
%96 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %96, i32 0, i32 0
|
||||
store ptr %95, ptr %97, align 8
|
||||
%98 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %96, i32 0, i32 1
|
||||
store i64 0, ptr %98, align 4
|
||||
%99 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %95, align 8
|
||||
%100 = load ptr, ptr @"[]_llgo_int", align 8
|
||||
%101 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
store %"github.com/goplus/llgo/internal/runtime.Slice" %99, ptr %101, align 8
|
||||
%102 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %102, i32 0, i32 0
|
||||
store ptr %100, ptr %103, align 8
|
||||
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %102, i32 0, i32 1
|
||||
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %96, i32 0, i32 2
|
||||
store i64 0, ptr %99, align 4
|
||||
%100 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %96, align 8
|
||||
%101 = load ptr, ptr @"[]_llgo_int", align 8
|
||||
%102 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
store %"github.com/goplus/llgo/internal/runtime.Slice" %100, ptr %102, align 8
|
||||
%103 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %103, i32 0, i32 0
|
||||
store ptr %101, ptr %104, align 8
|
||||
%105 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %102, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %105)
|
||||
%106 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%107 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %106, i32 0, i32 0
|
||||
store ptr @6, ptr %107, align 8
|
||||
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %106, i32 0, i32 1
|
||||
store i64 5, ptr %108, align 4
|
||||
%109 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %106, align 8
|
||||
%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" %109, ptr %111, align 8
|
||||
%112 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %112, i32 0, i32 0
|
||||
store ptr %110, ptr %113, align 8
|
||||
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %112, i32 0, i32 1
|
||||
%105 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %103, i32 0, i32 1
|
||||
store ptr %102, ptr %105, align 8
|
||||
%106 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %103, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %106)
|
||||
%107 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %107, i32 0, i32 0
|
||||
store ptr @6, ptr %108, align 8
|
||||
%109 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %107, i32 0, i32 1
|
||||
store i64 5, ptr %109, align 4
|
||||
%110 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %107, align 8
|
||||
%111 = load ptr, ptr @_llgo_string, align 8
|
||||
%112 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %110, ptr %112, align 8
|
||||
%113 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %113, i32 0, i32 0
|
||||
store ptr %111, ptr %114, align 8
|
||||
%115 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %112, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %115)
|
||||
%116 = load ptr, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
||||
%117 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
store { i8, i64, i64 } zeroinitializer, ptr %117, align 4
|
||||
%118 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%119 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %118, i32 0, i32 0
|
||||
store ptr %116, ptr %119, align 8
|
||||
%120 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %118, i32 0, i32 1
|
||||
%115 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %113, i32 0, i32 1
|
||||
store ptr %112, ptr %115, align 8
|
||||
%116 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %113, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %116)
|
||||
%117 = load ptr, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
||||
%118 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
store { i8, i64, i64 } zeroinitializer, ptr %118, align 4
|
||||
%119 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%120 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %119, i32 0, i32 0
|
||||
store ptr %117, ptr %120, align 8
|
||||
%121 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %118, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %121)
|
||||
%122 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%123 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %122, i32 0, i32 0
|
||||
store ptr null, ptr %123, align 8
|
||||
%124 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %122, i32 0, i32 1
|
||||
store i64 0, ptr %124, align 4
|
||||
%125 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %122, align 8
|
||||
%126 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%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
|
||||
%121 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %119, i32 0, i32 1
|
||||
store ptr %118, ptr %121, align 8
|
||||
%122 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %119, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %122)
|
||||
%123 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%124 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %123, i32 0, i32 0
|
||||
store ptr null, ptr %124, align 8
|
||||
%125 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %123, i32 0, i32 1
|
||||
store i64 0, ptr %125, align 4
|
||||
%126 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %123, align 8
|
||||
%127 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%128 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %126, ptr %128, align 8
|
||||
%129 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%130 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %129, i32 0, i32 0
|
||||
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)
|
||||
%131 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %129, i32 0, i32 1
|
||||
store ptr %128, ptr %131, align 8
|
||||
%132 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %129, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %132)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
@@ -613,267 +615,299 @@ _llgo_31: ; preds = %_llgo_30
|
||||
|
||||
_llgo_32: ; preds = %_llgo_31, %_llgo_30
|
||||
%49 = load ptr, ptr @_llgo_Pointer, align 8
|
||||
%50 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%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
|
||||
%50 = load ptr, ptr @"_llgo_func$CqBkokmWG3Ia8PBDErMKLrnXwWQ3khfTBm7VXk_2y30", align 8
|
||||
%51 = icmp eq ptr %50, null
|
||||
br i1 %51, label %_llgo_33, label %_llgo_34
|
||||
|
||||
_llgo_33: ; preds = %_llgo_32
|
||||
%98 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%99 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %98)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %99)
|
||||
store ptr %99, ptr @"*_llgo_int", align 8
|
||||
%52 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%53 = getelementptr ptr, ptr %52, i64 0
|
||||
store ptr %49, ptr %53, align 8
|
||||
%54 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %54, i32 0, i32 0
|
||||
store ptr %52, ptr %55, align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %54, i32 0, i32 1
|
||||
store i64 1, ptr %56, align 4
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %54, i32 0, i32 2
|
||||
store i64 1, ptr %57, align 4
|
||||
%58 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %54, align 8
|
||||
%59 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%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 %59, ptr %61, align 8
|
||||
%62 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %60, i32 0, i32 1
|
||||
store i64 0, ptr %62, align 4
|
||||
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %60, i32 0, i32 2
|
||||
store i64 0, 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.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %58, %"github.com/goplus/llgo/internal/runtime.Slice" %64, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %65)
|
||||
store ptr %65, ptr @"_llgo_func$CqBkokmWG3Ia8PBDErMKLrnXwWQ3khfTBm7VXk_2y30", align 8
|
||||
br label %_llgo_34
|
||||
|
||||
_llgo_34: ; preds = %_llgo_33, %_llgo_32
|
||||
%100 = load ptr, ptr @"[]_llgo_int", align 8
|
||||
%101 = icmp eq ptr %100, null
|
||||
br i1 %101, label %_llgo_35, label %_llgo_36
|
||||
%66 = load ptr, ptr @_llgo_Pointer, align 8
|
||||
%67 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%68 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %67, i32 0, i32 0
|
||||
store ptr @3, ptr %68, align 8
|
||||
%69 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %67, i32 0, i32 1
|
||||
store i64 1, ptr %69, align 4
|
||||
%70 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %67, align 8
|
||||
%71 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %71, i32 0, i32 0
|
||||
store ptr null, ptr %72, align 8
|
||||
%73 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %71, i32 0, i32 1
|
||||
store i64 0, ptr %73, align 4
|
||||
%74 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %71, align 8
|
||||
%75 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%76 = getelementptr ptr, ptr %75, i64 0
|
||||
store ptr %66, ptr %76, align 8
|
||||
%77 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%78 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %77, i32 0, i32 0
|
||||
store ptr %75, ptr %78, align 8
|
||||
%79 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %77, i32 0, i32 1
|
||||
store i64 1, ptr %79, align 4
|
||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %77, i32 0, i32 2
|
||||
store i64 1, ptr %80, align 4
|
||||
%81 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %77, align 8
|
||||
%82 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%83 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %83, i32 0, i32 0
|
||||
store ptr %82, ptr %84, align 8
|
||||
%85 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %83, i32 0, i32 1
|
||||
store i64 0, ptr %85, align 4
|
||||
%86 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %83, i32 0, i32 2
|
||||
store i64 0, ptr %86, align 4
|
||||
%87 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %83, align 8
|
||||
%88 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %81, %"github.com/goplus/llgo/internal/runtime.Slice" %87, i1 false)
|
||||
%89 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %70, ptr %88, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %74, i1 false)
|
||||
%90 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %90, i32 0, i32 0
|
||||
store ptr @4, ptr %91, align 8
|
||||
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %90, i32 0, i32 1
|
||||
store i64 4, ptr %92, align 4
|
||||
%93 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %90, align 8
|
||||
%94 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %94, i32 0, i32 0
|
||||
store ptr null, ptr %95, align 8
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %94, i32 0, i32 1
|
||||
store i64 0, ptr %96, align 4
|
||||
%97 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %94, align 8
|
||||
%98 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58)
|
||||
%99 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %93, ptr %98, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %97, i1 false)
|
||||
%100 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%101 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %100, i32 0, i32 0
|
||||
store ptr @5, ptr %101, align 8
|
||||
%102 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %100, i32 0, i32 1
|
||||
store i64 4, ptr %102, align 4
|
||||
%103 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %100, align 8
|
||||
%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" %89, 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" %99, ptr %106, align 8
|
||||
%107 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %107, i32 0, i32 0
|
||||
store ptr %104, ptr %108, align 8
|
||||
%109 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %107, i32 0, i32 1
|
||||
store i64 2, ptr %109, align 4
|
||||
%110 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %107, i32 0, i32 2
|
||||
store i64 2, ptr %110, align 4
|
||||
%111 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %107, align 8
|
||||
%112 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %103, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %111)
|
||||
store ptr %112, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||
%113 = load ptr, ptr @"*_llgo_int", align 8
|
||||
%114 = icmp eq ptr %113, null
|
||||
br i1 %114, label %_llgo_35, label %_llgo_36
|
||||
|
||||
_llgo_35: ; preds = %_llgo_34
|
||||
%102 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%103 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %102)
|
||||
store ptr %103, ptr @"[]_llgo_int", align 8
|
||||
%115 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%116 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %115)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %116)
|
||||
store ptr %116, ptr @"*_llgo_int", align 8
|
||||
br label %_llgo_36
|
||||
|
||||
_llgo_36: ; preds = %_llgo_35, %_llgo_34
|
||||
%104 = load ptr, ptr @_llgo_string, align 8
|
||||
%105 = icmp eq ptr %104, null
|
||||
br i1 %105, label %_llgo_37, label %_llgo_38
|
||||
%117 = load ptr, ptr @"[]_llgo_int", align 8
|
||||
%118 = icmp eq ptr %117, null
|
||||
br i1 %118, label %_llgo_37, label %_llgo_38
|
||||
|
||||
_llgo_37: ; preds = %_llgo_36
|
||||
%106 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %106, ptr @_llgo_string, align 8
|
||||
%119 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%120 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %119)
|
||||
store ptr %120, ptr @"[]_llgo_int", align 8
|
||||
br label %_llgo_38
|
||||
|
||||
_llgo_38: ; preds = %_llgo_37, %_llgo_36
|
||||
%107 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %107, i32 0, i32 0
|
||||
store ptr @7, ptr %108, align 8
|
||||
%109 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %107, i32 0, i32 1
|
||||
store i64 1, ptr %109, align 4
|
||||
%110 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %107, align 8
|
||||
%111 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%112 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %111, i32 0, i32 0
|
||||
store ptr null, ptr %112, align 8
|
||||
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %111, i32 0, i32 1
|
||||
store i64 0, ptr %113, align 4
|
||||
%114 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %111, align 8
|
||||
%115 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35)
|
||||
%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)
|
||||
%117 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%118 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %117, i32 0, i32 0
|
||||
store ptr @8, ptr %118, align 8
|
||||
%119 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %117, i32 0, i32 1
|
||||
store i64 1, ptr %119, align 4
|
||||
%120 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %117, align 8
|
||||
%121 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%122 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %121, i32 0, i32 0
|
||||
store ptr null, ptr %122, align 8
|
||||
%123 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %121, i32 0, i32 1
|
||||
store i64 0, ptr %123, align 4
|
||||
%124 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %121, align 8
|
||||
%125 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%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)
|
||||
%127 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %127, i32 0, i32 0
|
||||
store ptr @9, ptr %128, align 8
|
||||
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %127, i32 0, i32 1
|
||||
store i64 1, ptr %129, align 4
|
||||
%130 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %127, align 8
|
||||
%131 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%132 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %131, i32 0, i32 0
|
||||
store ptr null, ptr %132, align 8
|
||||
%133 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %131, i32 0, i32 1
|
||||
store i64 0, ptr %133, align 4
|
||||
%134 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %131, align 8
|
||||
%135 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%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)
|
||||
%137 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%138 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %137, i32 0, i32 0
|
||||
store ptr @5, ptr %138, align 8
|
||||
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %137, i32 0, i32 1
|
||||
store i64 4, ptr %139, align 4
|
||||
%140 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %137, align 8
|
||||
%141 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 168)
|
||||
%142 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %141, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %116, ptr %142, align 8
|
||||
%143 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %141, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %126, ptr %143, align 8
|
||||
%144 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %141, i64 2
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %136, ptr %144, align 8
|
||||
%145 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%146 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, i32 0, i32 0
|
||||
store ptr %141, ptr %146, align 8
|
||||
%147 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, i32 0, i32 1
|
||||
store i64 3, ptr %147, align 4
|
||||
%148 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, i32 0, i32 2
|
||||
store i64 3, ptr %148, align 4
|
||||
%149 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, align 8
|
||||
%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 %150, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
||||
%151 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%152 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %151, i32 0, i32 0
|
||||
store ptr @10, ptr %152, align 8
|
||||
%153 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %151, i32 0, i32 1
|
||||
store i64 6, ptr %153, align 4
|
||||
%154 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %151, align 8
|
||||
%155 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %154, i64 24, i64 16, i64 0, i64 1)
|
||||
%156 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%157 = icmp eq ptr %156, null
|
||||
br i1 %157, label %_llgo_39, label %_llgo_40
|
||||
%121 = load ptr, ptr @_llgo_string, align 8
|
||||
%122 = icmp eq ptr %121, null
|
||||
br i1 %122, label %_llgo_39, label %_llgo_40
|
||||
|
||||
_llgo_39: ; preds = %_llgo_38
|
||||
store ptr %155, ptr @_llgo_main.T, align 8
|
||||
%123 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %123, ptr @_llgo_string, align 8
|
||||
br label %_llgo_40
|
||||
|
||||
_llgo_40: ; preds = %_llgo_39, %_llgo_38
|
||||
%158 = load ptr, ptr @_llgo_string, align 8
|
||||
br i1 %157, label %_llgo_41, label %_llgo_42
|
||||
%124 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%125 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %124, i32 0, i32 0
|
||||
store ptr @7, ptr %125, align 8
|
||||
%126 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %124, i32 0, i32 1
|
||||
store i64 1, ptr %126, align 4
|
||||
%127 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %124, align 8
|
||||
%128 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %128, i32 0, i32 0
|
||||
store ptr null, ptr %129, align 8
|
||||
%130 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %128, i32 0, i32 1
|
||||
store i64 0, ptr %130, align 4
|
||||
%131 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %128, align 8
|
||||
%132 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 35)
|
||||
%133 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %127, ptr %132, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %131, i1 false)
|
||||
%134 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%135 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %134, i32 0, i32 0
|
||||
store ptr @8, ptr %135, align 8
|
||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %134, i32 0, i32 1
|
||||
store i64 1, ptr %136, align 4
|
||||
%137 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %134, 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 null, ptr %139, align 8
|
||||
%140 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %138, i32 0, i32 1
|
||||
store i64 0, ptr %140, align 4
|
||||
%141 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %138, align 8
|
||||
%142 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%143 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %137, ptr %142, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %141, i1 false)
|
||||
%144 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%145 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %144, i32 0, i32 0
|
||||
store ptr @9, ptr %145, align 8
|
||||
%146 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %144, i32 0, i32 1
|
||||
store i64 1, ptr %146, align 4
|
||||
%147 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %144, align 8
|
||||
%148 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%149 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %148, i32 0, i32 0
|
||||
store ptr null, ptr %149, align 8
|
||||
%150 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %148, i32 0, i32 1
|
||||
store i64 0, ptr %150, align 4
|
||||
%151 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %148, align 8
|
||||
%152 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%153 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %147, ptr %152, i64 16, %"github.com/goplus/llgo/internal/runtime.String" %151, i1 false)
|
||||
%154 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%155 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %154, i32 0, i32 0
|
||||
store ptr @5, ptr %155, align 8
|
||||
%156 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %154, i32 0, i32 1
|
||||
store i64 4, ptr %156, align 4
|
||||
%157 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %154, align 8
|
||||
%158 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 168)
|
||||
%159 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %158, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %133, ptr %159, align 8
|
||||
%160 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %158, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %143, ptr %160, align 8
|
||||
%161 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %158, i64 2
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %153, ptr %161, align 8
|
||||
%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 %158, ptr %163, align 8
|
||||
%164 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %162, i32 0, i32 1
|
||||
store i64 3, ptr %164, align 4
|
||||
%165 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %162, i32 0, i32 2
|
||||
store i64 3, 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.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %157, i64 24, %"github.com/goplus/llgo/internal/runtime.Slice" %166)
|
||||
store ptr %167, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
||||
%168 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%169 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %168, i32 0, i32 0
|
||||
store ptr @10, ptr %169, align 8
|
||||
%170 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %168, i32 0, i32 1
|
||||
store i64 6, ptr %170, align 4
|
||||
%171 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %168, align 8
|
||||
%172 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %171, i64 24, i64 16, i64 0, i64 1)
|
||||
%173 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%174 = icmp eq ptr %173, null
|
||||
br i1 %174, label %_llgo_41, label %_llgo_42
|
||||
|
||||
_llgo_41: ; preds = %_llgo_40
|
||||
%159 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%160 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %159, i32 0, i32 0
|
||||
store ptr @11, ptr %160, align 8
|
||||
%161 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %159, i32 0, i32 1
|
||||
store i64 6, ptr %161, align 4
|
||||
%162 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %159, align 8
|
||||
%163 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%164 = icmp eq ptr %163, null
|
||||
br i1 %164, label %_llgo_43, label %_llgo_44
|
||||
store ptr %172, ptr @_llgo_main.T, align 8
|
||||
br label %_llgo_42
|
||||
|
||||
_llgo_42: ; preds = %_llgo_44, %_llgo_40
|
||||
_llgo_42: ; preds = %_llgo_41, %_llgo_40
|
||||
%175 = load ptr, ptr @_llgo_string, align 8
|
||||
br i1 %174, label %_llgo_43, label %_llgo_44
|
||||
|
||||
_llgo_43: ; preds = %_llgo_42
|
||||
%176 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%177 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %176, i32 0, i32 0
|
||||
store ptr @11, ptr %177, align 8
|
||||
%178 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %176, i32 0, i32 1
|
||||
store i64 6, ptr %178, align 4
|
||||
%179 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %176, align 8
|
||||
%180 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%181 = icmp eq ptr %180, null
|
||||
br i1 %181, label %_llgo_45, label %_llgo_46
|
||||
|
||||
_llgo_44: ; preds = %_llgo_46, %_llgo_42
|
||||
ret void
|
||||
|
||||
_llgo_43: ; preds = %_llgo_41
|
||||
%165 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%166 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%167 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %166, i32 0, i32 0
|
||||
store ptr %165, ptr %167, align 8
|
||||
%168 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %166, i32 0, i32 1
|
||||
store i64 0, ptr %168, align 4
|
||||
%169 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %166, i32 0, i32 2
|
||||
store i64 0, ptr %169, align 4
|
||||
%170 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %166, align 8
|
||||
%171 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%172 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%173 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %172, i32 0, i32 0
|
||||
store ptr %171, ptr %173, align 8
|
||||
%174 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %172, i32 0, i32 1
|
||||
store i64 0, ptr %174, align 4
|
||||
%175 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %172, i32 0, i32 2
|
||||
store i64 0, ptr %175, align 4
|
||||
%176 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %172, align 8
|
||||
%177 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %170, %"github.com/goplus/llgo/internal/runtime.Slice" %176, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %177)
|
||||
store ptr %177, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
br label %_llgo_44
|
||||
_llgo_45: ; preds = %_llgo_43
|
||||
%182 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%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 %182, ptr %184, align 8
|
||||
%185 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %183, i32 0, i32 1
|
||||
store i64 0, ptr %185, align 4
|
||||
%186 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %183, i32 0, i32 2
|
||||
store i64 0, ptr %186, align 4
|
||||
%187 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %183, align 8
|
||||
%188 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%189 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%190 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %189, i32 0, i32 0
|
||||
store ptr %188, ptr %190, align 8
|
||||
%191 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %189, i32 0, i32 1
|
||||
store i64 0, ptr %191, align 4
|
||||
%192 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %189, i32 0, i32 2
|
||||
store i64 0, ptr %192, align 4
|
||||
%193 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %189, align 8
|
||||
%194 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %187, %"github.com/goplus/llgo/internal/runtime.Slice" %193, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %194)
|
||||
store ptr %194, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
br label %_llgo_46
|
||||
|
||||
_llgo_44: ; preds = %_llgo_43, %_llgo_41
|
||||
%178 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%179 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%180 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %179, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %162, ptr %180, align 8
|
||||
%181 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %179, i32 0, i32 1
|
||||
store ptr %178, ptr %181, align 8
|
||||
%182 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %179, i32 0, i32 2
|
||||
store ptr @"main.(*T).Invoke", ptr %182, align 8
|
||||
%183 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %179, i32 0, i32 3
|
||||
store ptr @"main.(*T).Invoke", ptr %183, align 8
|
||||
%184 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %179, align 8
|
||||
%185 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%186 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %185, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %184, ptr %186, align 8
|
||||
%187 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%188 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %187, i32 0, i32 0
|
||||
store ptr %185, ptr %188, align 8
|
||||
%189 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %187, i32 0, i32 1
|
||||
store i64 1, ptr %189, align 4
|
||||
%190 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %187, i32 0, i32 2
|
||||
store i64 1, ptr %190, align 4
|
||||
%191 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %187, 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 @5, ptr %193, align 8
|
||||
%194 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %192, i32 0, i32 1
|
||||
store i64 4, ptr %194, align 4
|
||||
%195 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %192, align 8
|
||||
%196 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%197 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %196, i32 0, i32 0
|
||||
store ptr @12, ptr %197, align 8
|
||||
%198 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %196, i32 0, i32 1
|
||||
store i64 1, ptr %198, align 4
|
||||
%199 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %196, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %155, %"github.com/goplus/llgo/internal/runtime.String" %195, %"github.com/goplus/llgo/internal/runtime.String" %199, ptr %158, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %191)
|
||||
br label %_llgo_42
|
||||
_llgo_46: ; preds = %_llgo_45, %_llgo_43
|
||||
%195 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%196 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%197 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %196, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %179, ptr %197, align 8
|
||||
%198 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %196, i32 0, i32 1
|
||||
store ptr %195, ptr %198, align 8
|
||||
%199 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %196, i32 0, i32 2
|
||||
store ptr @"main.(*T).Invoke", ptr %199, align 8
|
||||
%200 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %196, i32 0, i32 3
|
||||
store ptr @"main.(*T).Invoke", ptr %200, align 8
|
||||
%201 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %196, align 8
|
||||
%202 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%203 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %202, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %201, ptr %203, align 8
|
||||
%204 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%205 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %204, i32 0, i32 0
|
||||
store ptr %202, ptr %205, align 8
|
||||
%206 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %204, i32 0, i32 1
|
||||
store i64 1, ptr %206, align 4
|
||||
%207 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %204, i32 0, i32 2
|
||||
store i64 1, ptr %207, align 4
|
||||
%208 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %204, align 8
|
||||
%209 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%210 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %209, i32 0, i32 0
|
||||
store ptr @5, ptr %210, align 8
|
||||
%211 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %209, i32 0, i32 1
|
||||
store i64 4, ptr %211, align 4
|
||||
%212 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %209, align 8
|
||||
%213 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%214 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %213, i32 0, i32 0
|
||||
store ptr @12, ptr %214, align 8
|
||||
%215 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %213, i32 0, i32 1
|
||||
store i64 1, ptr %215, align 4
|
||||
%216 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %213, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %172, %"github.com/goplus/llgo/internal/runtime.String" %212, %"github.com/goplus/llgo/internal/runtime.String" %216, ptr %175, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %208)
|
||||
br label %_llgo_44
|
||||
}
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64)
|
||||
@@ -890,12 +924,12 @@ _llgo_0:
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(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/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.PointerTo"(ptr)
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr)
|
||||
|
||||
@@ -8,8 +8,9 @@ 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 }
|
||||
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o" = linkonce global ptr null, align 8
|
||||
@_llgo_Pointer = linkonce global ptr null, align 8
|
||||
@"_llgo_func$CqBkokmWG3Ia8PBDErMKLrnXwWQ3khfTBm7VXk_2y30" = linkonce global ptr null, align 8
|
||||
@"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o" = 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
|
||||
@@ -28,98 +29,100 @@ _llgo_0:
|
||||
%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
|
||||
%5 = load ptr, ptr @_llgo_Pointer, align 8
|
||||
%6 = load ptr, ptr @"_llgo_func$CqBkokmWG3Ia8PBDErMKLrnXwWQ3khfTBm7VXk_2y30", align 8
|
||||
%7 = load ptr, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||
%8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store { ptr, ptr } %4, ptr %8, align 8
|
||||
%9 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %9, i32 0, i32 0
|
||||
store ptr %7, ptr %10, align 8
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %9, i32 0, i32 1
|
||||
store ptr %8, ptr %11, align 8
|
||||
%12 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %9, align 8
|
||||
%13 = load ptr, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||
%14 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store { ptr, ptr } %0, ptr %14, align 8
|
||||
%15 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %15, i32 0, i32 0
|
||||
store ptr %13, ptr %16, align 8
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %15, i32 0, i32 1
|
||||
store ptr %14, ptr %17, align 8
|
||||
%18 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %15, align 8
|
||||
%19 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, 0
|
||||
%20 = load ptr, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||
%21 = icmp eq ptr %19, %20
|
||||
br i1 %21, 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
|
||||
%22 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, 1
|
||||
%23 = load { ptr, ptr }, ptr %22, align 8
|
||||
%24 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %18, 0
|
||||
%25 = load ptr, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||
%26 = icmp eq ptr %24, %25
|
||||
br i1 %26, 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)
|
||||
%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 @3, ptr %28, align 8
|
||||
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %27, i32 0, i32 1
|
||||
store i64 21, ptr %29, align 4
|
||||
%30 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %27, align 8
|
||||
%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" %30, ptr %32, align 8
|
||||
%33 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %33, i32 0, i32 0
|
||||
store ptr %31, ptr %34, align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %33, i32 0, i32 1
|
||||
store ptr %32, ptr %35, align 8
|
||||
%36 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %33, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %36)
|
||||
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)
|
||||
%37 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %18, 1
|
||||
%38 = load { ptr, ptr }, ptr %37, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintEface"(%"github.com/goplus/llgo/internal/runtime.eface" %12)
|
||||
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.PrintEface"(%"github.com/goplus/llgo/internal/runtime.eface" %18)
|
||||
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
|
||||
%39 = extractvalue { ptr, ptr } %0, 0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %39)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%40 = extractvalue { ptr, ptr } %23, 0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %40)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%41 = extractvalue { ptr, ptr } %38, 0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %41)
|
||||
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)
|
||||
%42 = call ptr @main.closurePtr(%"github.com/goplus/llgo/internal/runtime.eface" %12)
|
||||
%43 = call ptr @main.closurePtr(%"github.com/goplus/llgo/internal/runtime.eface" %18)
|
||||
%44 = icmp eq ptr %42, %43
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %44)
|
||||
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)
|
||||
%45 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%46 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %45, i32 0, i32 0
|
||||
store ptr @3, ptr %46, align 8
|
||||
%47 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %45, i32 0, i32 1
|
||||
store i64 21, ptr %47, align 4
|
||||
%48 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %45, align 8
|
||||
%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" %48, ptr %50, align 8
|
||||
%51 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %51, i32 0, i32 0
|
||||
store ptr %49, ptr %52, align 8
|
||||
%53 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %51, i32 0, i32 1
|
||||
store ptr %50, ptr %53, align 8
|
||||
%54 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %51, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %54)
|
||||
unreachable
|
||||
}
|
||||
|
||||
@@ -205,85 +208,117 @@ _llgo_1: ; preds = %_llgo_0
|
||||
|
||||
_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
|
||||
%4 = load ptr, ptr @"_llgo_func$CqBkokmWG3Ia8PBDErMKLrnXwWQ3khfTBm7VXk_2y30", align 8
|
||||
%5 = icmp eq ptr %4, null
|
||||
br i1 %5, 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
|
||||
%6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%7 = getelementptr ptr, ptr %6, i64 0
|
||||
store ptr %3, ptr %7, align 8
|
||||
%8 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %8, i32 0, i32 0
|
||||
store ptr %6, ptr %9, align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %8, i32 0, i32 1
|
||||
store i64 1, ptr %10, align 4
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %8, i32 0, i32 2
|
||||
store i64 1, ptr %11, align 4
|
||||
%12 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %8, align 8
|
||||
%13 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%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 %13, ptr %15, align 8
|
||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %14, i32 0, i32 1
|
||||
store i64 0, ptr %16, align 4
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %14, i32 0, i32 2
|
||||
store i64 0, 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.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %12, %"github.com/goplus/llgo/internal/runtime.Slice" %18, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %19)
|
||||
store ptr %19, ptr @"_llgo_func$CqBkokmWG3Ia8PBDErMKLrnXwWQ3khfTBm7VXk_2y30", align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%20 = load ptr, ptr @_llgo_Pointer, align 8
|
||||
%21 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%22 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %21, i32 0, i32 0
|
||||
store ptr @0, ptr %22, align 8
|
||||
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %21, i32 0, i32 1
|
||||
store i64 1, ptr %23, align 4
|
||||
%24 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %21, align 8
|
||||
%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 null, ptr %26, align 8
|
||||
%27 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %25, i32 0, i32 1
|
||||
store i64 0, ptr %27, align 4
|
||||
%28 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %25, align 8
|
||||
%29 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%30 = getelementptr ptr, ptr %29, i64 0
|
||||
store ptr %20, ptr %30, align 8
|
||||
%31 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %31, i32 0, i32 0
|
||||
store ptr %29, ptr %32, align 8
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %31, i32 0, i32 1
|
||||
store i64 1, ptr %33, align 4
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %31, i32 0, i32 2
|
||||
store i64 1, ptr %34, align 4
|
||||
%35 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %31, align 8
|
||||
%36 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%37 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%38 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %37, i32 0, i32 0
|
||||
store ptr %36, ptr %38, align 8
|
||||
%39 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %37, i32 0, i32 1
|
||||
store i64 0, ptr %39, align 4
|
||||
%40 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %37, i32 0, i32 2
|
||||
store i64 0, ptr %40, align 4
|
||||
%41 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %37, align 8
|
||||
%42 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %35, %"github.com/goplus/llgo/internal/runtime.Slice" %41, i1 false)
|
||||
%43 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %24, ptr %42, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %28, i1 false)
|
||||
%44 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %44, i32 0, i32 0
|
||||
store ptr @1, ptr %45, align 8
|
||||
%46 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %44, i32 0, i32 1
|
||||
store i64 4, ptr %46, align 4
|
||||
%47 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %44, align 8
|
||||
%48 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %48, i32 0, i32 0
|
||||
store ptr null, ptr %49, align 8
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %48, i32 0, i32 1
|
||||
store i64 0, ptr %50, align 4
|
||||
%51 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %48, align 8
|
||||
%52 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58)
|
||||
%53 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %47, ptr %52, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %51, i1 false)
|
||||
%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 @2, ptr %55, align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %54, i32 0, i32 1
|
||||
store i64 4, 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 112)
|
||||
%59 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %58, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %43, ptr %59, align 8
|
||||
%60 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %58, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %53, ptr %60, align 8
|
||||
%61 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%62 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %61, i32 0, i32 0
|
||||
store ptr %58, ptr %62, align 8
|
||||
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %61, i32 0, i32 1
|
||||
store i64 2, ptr %63, align 4
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %61, i32 0, i32 2
|
||||
store i64 2, ptr %64, align 4
|
||||
%65 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %61, align 8
|
||||
%66 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %57, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %65)
|
||||
store ptr %66, ptr @"main.struct$hWvPvnlB9uIZSm1cMlcssbAfCpkLhNdpCzAk4conL0o", align 8
|
||||
%67 = load ptr, ptr @_llgo_string, align 8
|
||||
%68 = icmp eq ptr %67, null
|
||||
br i1 %68, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%69 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %69, ptr @_llgo_string, align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
ret void
|
||||
}
|
||||
|
||||
@@ -291,14 +326,14 @@ 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 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 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")
|
||||
|
||||
@@ -85,68 +85,66 @@ _llgo_0:
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %30, i32 0, i32 1
|
||||
store i64 5, ptr %32, align 4
|
||||
%33 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %30, align 8
|
||||
%34 = load ptr, ptr @_llgo_int, align 8
|
||||
%35 = load ptr, ptr @_llgo_string, align 8
|
||||
%36 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8
|
||||
%37 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
store i64 1, ptr %37, align 4
|
||||
%38 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %36, ptr %29, ptr %37)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %33, ptr %38, align 8
|
||||
%39 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 3
|
||||
%40 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24)
|
||||
%41 = getelementptr inbounds i64, ptr %40, i64 0
|
||||
store i64 1, ptr %41, align 4
|
||||
%42 = getelementptr inbounds i64, ptr %40, i64 1
|
||||
store i64 2, ptr %42, align 4
|
||||
%43 = getelementptr inbounds i64, ptr %40, i64 2
|
||||
store i64 3, ptr %43, align 4
|
||||
%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 %40, ptr %45, align 8
|
||||
%46 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %44, i32 0, i32 1
|
||||
store i64 3, ptr %46, align 4
|
||||
%47 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %44, i32 0, i32 2
|
||||
store i64 3, ptr %47, align 4
|
||||
%48 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %44, align 8
|
||||
%49 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %49, i32 0, i32 0
|
||||
store ptr @5, ptr %50, align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %49, i32 0, i32 1
|
||||
store i64 5, ptr %51, align 4
|
||||
%52 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %49, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %52, ptr %22, align 8
|
||||
%34 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8
|
||||
%35 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
store i64 1, ptr %35, align 4
|
||||
%36 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %34, ptr %29, ptr %35)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %33, ptr %36, align 8
|
||||
%37 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 3
|
||||
%38 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24)
|
||||
%39 = getelementptr inbounds i64, ptr %38, i64 0
|
||||
store i64 1, ptr %39, align 4
|
||||
%40 = getelementptr inbounds i64, ptr %38, i64 1
|
||||
store i64 2, ptr %40, align 4
|
||||
%41 = getelementptr inbounds i64, ptr %38, i64 2
|
||||
store i64 3, ptr %41, align 4
|
||||
%42 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, i32 0, i32 0
|
||||
store ptr %38, ptr %43, align 8
|
||||
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, i32 0, i32 1
|
||||
store i64 3, ptr %44, align 4
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, i32 0, i32 2
|
||||
store i64 3, ptr %45, align 4
|
||||
%46 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, align 8
|
||||
%47 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%48 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %47, i32 0, i32 0
|
||||
store ptr @5, ptr %48, align 8
|
||||
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %47, i32 0, i32 1
|
||||
store i64 5, ptr %49, align 4
|
||||
%50 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %47, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %50, 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" %48, ptr %39, align 8
|
||||
%53 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 0
|
||||
%54 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %53, align 8
|
||||
%55 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %54, 1
|
||||
%56 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 1
|
||||
%57 = load ptr, ptr %56, align 8
|
||||
%58 = call i64 @"github.com/goplus/llgo/internal/runtime.ChanLen"(ptr %57)
|
||||
%59 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 2
|
||||
%60 = load ptr, ptr %59, align 8
|
||||
%61 = call i64 @"github.com/goplus/llgo/internal/runtime.MapLen"(ptr %60)
|
||||
%62 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 3
|
||||
%63 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %62, align 8
|
||||
%64 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %63, 1
|
||||
%65 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 1
|
||||
%66 = load ptr, ptr %65, align 8
|
||||
%67 = call i64 @"github.com/goplus/llgo/internal/runtime.ChanCap"(ptr %66)
|
||||
%68 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 3
|
||||
%69 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %68, align 8
|
||||
%70 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %69, 2
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %55)
|
||||
store %"github.com/goplus/llgo/internal/runtime.Slice" %46, ptr %37, align 8
|
||||
%51 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 0
|
||||
%52 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %51, align 8
|
||||
%53 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %52, 1
|
||||
%54 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 1
|
||||
%55 = load ptr, ptr %54, align 8
|
||||
%56 = call i64 @"github.com/goplus/llgo/internal/runtime.ChanLen"(ptr %55)
|
||||
%57 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 2
|
||||
%58 = load ptr, ptr %57, align 8
|
||||
%59 = call i64 @"github.com/goplus/llgo/internal/runtime.MapLen"(ptr %58)
|
||||
%60 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 3
|
||||
%61 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %60, align 8
|
||||
%62 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %61, 1
|
||||
%63 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 1
|
||||
%64 = load ptr, ptr %63, align 8
|
||||
%65 = call i64 @"github.com/goplus/llgo/internal/runtime.ChanCap"(ptr %64)
|
||||
%66 = getelementptr inbounds %main.data, ptr %21, i32 0, i32 3
|
||||
%67 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %66, align 8
|
||||
%68 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %67, 2
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %53)
|
||||
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.PrintInt"(i64 %56)
|
||||
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.PrintInt"(i64 %59)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %64)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %62)
|
||||
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.PrintInt"(i64 %65)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %70)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %68)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -38,31 +38,24 @@ _llgo_0:
|
||||
call void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
call void @main.init()
|
||||
%2 = load ptr, ptr @_llgo_int, align 8
|
||||
%3 = load ptr, ptr @_llgo_int, align 8
|
||||
%4 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8
|
||||
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %4, i64 2)
|
||||
%6 = load ptr, ptr @_llgo_int, align 8
|
||||
%7 = 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)
|
||||
%5 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8
|
||||
%6 = call ptr @"github.com/goplus/llgo/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)
|
||||
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)
|
||||
store i64 23, ptr %9, align 4
|
||||
%10 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %8, ptr %5, ptr %9)
|
||||
store i64 100, ptr %10, align 4
|
||||
%11 = load ptr, ptr @_llgo_int, align 8
|
||||
%12 = load ptr, ptr @_llgo_int, align 8
|
||||
%13 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8
|
||||
%14 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
store i64 7, ptr %14, align 4
|
||||
%15 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAssign"(ptr %13, ptr %5, ptr %14)
|
||||
store i64 29, ptr %15, align 4
|
||||
%16 = load ptr, ptr @_llgo_int, align 8
|
||||
%17 = load ptr, ptr @_llgo_int, align 8
|
||||
%18 = load ptr, ptr @"map[_llgo_int]_llgo_int", align 8
|
||||
%19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
store i64 23, ptr %19, align 4
|
||||
%20 = call ptr @"github.com/goplus/llgo/internal/runtime.MapAccess1"(ptr %18, ptr %5, ptr %19)
|
||||
%21 = load i64, ptr %20, align 4
|
||||
%22 = call i32 (ptr, ...) @printf(ptr @5, i64 %21)
|
||||
store i64 7, ptr %9, align 4
|
||||
%10 = call ptr @"github.com/goplus/llgo/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)
|
||||
store i64 23, ptr %12, align 4
|
||||
%13 = call ptr @"github.com/goplus/llgo/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
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ source_filename = "main"
|
||||
@0 = private unnamed_addr constant [1 x i8] c"a", align 1
|
||||
@"_llgo_main.T[string,int]" = linkonce global ptr null, align 8
|
||||
@1 = private unnamed_addr constant [19 x i8] c"main.T[string, int]", align 1
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
@_llgo_int = linkonce global ptr null, align 8
|
||||
@"main.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk" = linkonce global ptr null, align 8
|
||||
@2 = private unnamed_addr constant [1 x i8] c"m", align 1
|
||||
@3 = private unnamed_addr constant [1 x i8] c"n", align 1
|
||||
@@ -25,7 +27,6 @@ source_filename = "main"
|
||||
@6 = private unnamed_addr constant [4 x i8] c"Info", align 1
|
||||
@7 = private unnamed_addr constant [13 x i8] c"T[string,int]", align 1
|
||||
@8 = private unnamed_addr constant [21 x i8] c"type assertion failed", align 1
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
@9 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
||||
@"*_llgo_main.T[string,int]" = linkonce global ptr null, align 8
|
||||
@"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs" = linkonce global ptr null, align 8
|
||||
@@ -95,61 +96,62 @@ _llgo_1: ; preds = %_llgo_0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %28, ptr %23, align 8
|
||||
store i64 100, ptr %24, align 4
|
||||
%29 = load ptr, ptr @"*_llgo_main.T[string,int]", align 8
|
||||
%30 = load ptr, ptr @"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs", align 8
|
||||
%31 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %30, ptr %29)
|
||||
%32 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %32, i32 0, i32 0
|
||||
store ptr %31, ptr %33, align 8
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %32, i32 0, i32 1
|
||||
store ptr %22, ptr %34, align 8
|
||||
%35 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %32, align 8
|
||||
%36 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %35)
|
||||
%37 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %35, 0
|
||||
%38 = getelementptr ptr, ptr %37, i64 3
|
||||
%39 = load ptr, ptr %38, align 8
|
||||
%40 = alloca { ptr, ptr }, align 8
|
||||
%41 = getelementptr inbounds { ptr, ptr }, ptr %40, i32 0, i32 0
|
||||
store ptr %39, ptr %41, align 8
|
||||
%42 = getelementptr inbounds { ptr, ptr }, ptr %40, i32 0, i32 1
|
||||
store ptr %36, ptr %42, align 8
|
||||
%43 = load { ptr, ptr }, ptr %40, align 8
|
||||
%44 = extractvalue { ptr, ptr } %43, 1
|
||||
%45 = extractvalue { ptr, ptr } %43, 0
|
||||
call void %45(ptr %44)
|
||||
%46 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32)
|
||||
%47 = getelementptr inbounds i64, ptr %46, i64 0
|
||||
%48 = getelementptr inbounds i64, ptr %46, i64 1
|
||||
%49 = getelementptr inbounds i64, ptr %46, i64 2
|
||||
%50 = getelementptr inbounds i64, ptr %46, i64 3
|
||||
store i64 1, ptr %47, align 4
|
||||
store i64 2, ptr %48, align 4
|
||||
store i64 3, ptr %49, align 4
|
||||
store i64 4, ptr %50, align 4
|
||||
%51 = getelementptr [4 x i64], ptr %46, i64 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %51)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%52 = getelementptr [4 x i64], ptr %46, i64 1
|
||||
%30 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%31 = load ptr, ptr @"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs", align 8
|
||||
%32 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %31, ptr %29)
|
||||
%33 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %33, i32 0, i32 0
|
||||
store ptr %32, ptr %34, align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %33, i32 0, i32 1
|
||||
store ptr %22, ptr %35, align 8
|
||||
%36 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %33, align 8
|
||||
%37 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %36)
|
||||
%38 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %36, 0
|
||||
%39 = getelementptr ptr, ptr %38, i64 3
|
||||
%40 = load ptr, ptr %39, align 8
|
||||
%41 = alloca { ptr, ptr }, align 8
|
||||
%42 = getelementptr inbounds { ptr, ptr }, ptr %41, i32 0, i32 0
|
||||
store ptr %40, ptr %42, align 8
|
||||
%43 = getelementptr inbounds { ptr, ptr }, ptr %41, i32 0, i32 1
|
||||
store ptr %37, ptr %43, align 8
|
||||
%44 = load { ptr, ptr }, ptr %41, align 8
|
||||
%45 = extractvalue { ptr, ptr } %44, 1
|
||||
%46 = extractvalue { ptr, ptr } %44, 0
|
||||
call void %46(ptr %45)
|
||||
%47 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32)
|
||||
%48 = getelementptr inbounds i64, ptr %47, i64 0
|
||||
%49 = getelementptr inbounds i64, ptr %47, i64 1
|
||||
%50 = getelementptr inbounds i64, ptr %47, i64 2
|
||||
%51 = getelementptr inbounds i64, ptr %47, i64 3
|
||||
store i64 1, ptr %48, align 4
|
||||
store i64 2, ptr %49, align 4
|
||||
store i64 3, ptr %50, align 4
|
||||
store i64 4, ptr %51, align 4
|
||||
%52 = getelementptr [4 x i64], ptr %47, i64 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %52)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%53 = getelementptr [4 x i64], ptr %47, i64 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %53)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret i32 0
|
||||
|
||||
_llgo_2: ; preds = %_llgo_0
|
||||
%53 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %53, i32 0, i32 0
|
||||
store ptr @8, ptr %54, align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %53, i32 0, i32 1
|
||||
store i64 21, ptr %55, align 4
|
||||
%56 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %53, align 8
|
||||
%57 = load ptr, ptr @_llgo_string, align 8
|
||||
%58 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %56, ptr %58, align 8
|
||||
%59 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%60 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %59, i32 0, i32 0
|
||||
store ptr %57, ptr %60, align 8
|
||||
%61 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %59, i32 0, i32 1
|
||||
%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 @8, ptr %55, align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %54, i32 0, i32 1
|
||||
store i64 21, ptr %56, align 4
|
||||
%57 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %54, align 8
|
||||
%58 = load ptr, ptr @_llgo_string, align 8
|
||||
%59 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %57, ptr %59, align 8
|
||||
%60 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%61 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %60, i32 0, i32 0
|
||||
store ptr %58, ptr %61, align 8
|
||||
%62 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %59, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %62)
|
||||
%62 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %60, i32 0, i32 1
|
||||
store ptr %59, ptr %62, align 8
|
||||
%63 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %60, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %63)
|
||||
unreachable
|
||||
}
|
||||
|
||||
@@ -212,257 +214,269 @@ _llgo_1: ; preds = %_llgo_0
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%7 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %7, i32 0, i32 0
|
||||
store ptr @2, ptr %8, align 8
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %7, i32 0, i32 1
|
||||
store i64 1, ptr %9, align 4
|
||||
%10 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %7, align 8
|
||||
%11 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %11, i32 0, i32 0
|
||||
store ptr null, ptr %12, align 8
|
||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %11, i32 0, i32 1
|
||||
store i64 0, ptr %13, align 4
|
||||
%14 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %11, align 8
|
||||
%15 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
%16 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %10, ptr %15, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %14, i1 false)
|
||||
%17 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %17, i32 0, i32 0
|
||||
store ptr @3, ptr %18, align 8
|
||||
%19 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %17, i32 0, i32 1
|
||||
store i64 1, ptr %19, align 4
|
||||
%20 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %17, align 8
|
||||
%21 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%22 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %21, i32 0, i32 0
|
||||
store ptr null, ptr %22, align 8
|
||||
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %21, i32 0, i32 1
|
||||
store i64 0, ptr %23, align 4
|
||||
%24 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %21, align 8
|
||||
%25 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%26 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %20, ptr %25, i64 16, %"github.com/goplus/llgo/internal/runtime.String" %24, 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 @4, 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 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||
%32 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %31, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %16, ptr %32, align 8
|
||||
%33 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %31, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %26, ptr %33, align 8
|
||||
%34 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %34, i32 0, i32 0
|
||||
store ptr %31, ptr %35, align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %34, i32 0, i32 1
|
||||
store i64 2, ptr %36, align 4
|
||||
%37 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %34, i32 0, i32 2
|
||||
store i64 2, ptr %37, align 4
|
||||
%38 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %34, align 8
|
||||
%39 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %30, i64 24, %"github.com/goplus/llgo/internal/runtime.Slice" %38)
|
||||
store ptr %39, ptr @"main.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk", align 8
|
||||
%40 = load ptr, ptr @"main.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk", align 8
|
||||
br i1 %6, label %_llgo_3, label %_llgo_4
|
||||
%7 = load ptr, ptr @_llgo_string, align 8
|
||||
%8 = icmp eq ptr %7, null
|
||||
br i1 %8, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%41 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%42 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %41, i32 0, i32 0
|
||||
store ptr @5, ptr %42, align 8
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %41, i32 0, i32 1
|
||||
store i64 4, ptr %43, align 4
|
||||
%44 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %41, align 8
|
||||
%45 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%46 = icmp eq ptr %45, null
|
||||
br i1 %46, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_4: ; preds = %_llgo_6, %_llgo_2
|
||||
%47 = load ptr, ptr @_llgo_string, align 8
|
||||
%48 = icmp eq ptr %47, null
|
||||
br i1 %48, label %_llgo_7, label %_llgo_8
|
||||
|
||||
_llgo_5: ; preds = %_llgo_3
|
||||
%49 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%50 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, i32 0, i32 0
|
||||
store ptr %49, ptr %51, align 8
|
||||
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, i32 0, i32 1
|
||||
store i64 0, ptr %52, align 4
|
||||
%53 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, i32 0, i32 2
|
||||
store i64 0, ptr %53, align 4
|
||||
%54 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, align 8
|
||||
%55 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%56 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %56, i32 0, i32 0
|
||||
store ptr %55, ptr %57, align 8
|
||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %56, i32 0, i32 1
|
||||
store i64 0, ptr %58, align 4
|
||||
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %56, i32 0, i32 2
|
||||
store i64 0, ptr %59, align 4
|
||||
%60 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %56, align 8
|
||||
%61 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %54, %"github.com/goplus/llgo/internal/runtime.Slice" %60, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %61)
|
||||
store ptr %61, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_3
|
||||
%62 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%63 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %44, ptr %64, align 8
|
||||
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i32 0, i32 1
|
||||
store ptr %62, ptr %65, align 8
|
||||
%66 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i32 0, i32 2
|
||||
store ptr @"main.(*T[string,int]).Demo", ptr %66, align 8
|
||||
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i32 0, i32 3
|
||||
store ptr @"main.(*T[string,int]).Demo", ptr %67, align 8
|
||||
%68 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %63, align 8
|
||||
%69 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%70 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %69, i32 0, i32 0
|
||||
store ptr @6, ptr %70, align 8
|
||||
%71 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %69, i32 0, i32 1
|
||||
store i64 4, ptr %71, align 4
|
||||
%72 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %69, align 8
|
||||
%73 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%74 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %74, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %72, ptr %75, align 8
|
||||
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %74, i32 0, i32 1
|
||||
store ptr %73, ptr %76, align 8
|
||||
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %74, i32 0, i32 2
|
||||
store ptr @"main.(*T[string,int]).Info", ptr %77, align 8
|
||||
%78 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %74, i32 0, i32 3
|
||||
store ptr @"main.(*T[string,int]).Info", ptr %78, align 8
|
||||
%79 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %74, align 8
|
||||
%80 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %80, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %72, ptr %81, align 8
|
||||
%82 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %80, i32 0, i32 1
|
||||
store ptr %73, ptr %82, align 8
|
||||
%83 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %80, i32 0, i32 2
|
||||
store ptr @"main.(*T[string,int]).Info", ptr %83, align 8
|
||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %80, i32 0, i32 3
|
||||
store ptr @"main.T[string,int].Info", ptr %84, align 8
|
||||
%85 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %80, align 8
|
||||
%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" %85, ptr %87, align 8
|
||||
%88 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%89 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %88, i32 0, i32 0
|
||||
store ptr %86, ptr %89, align 8
|
||||
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %88, i32 0, i32 1
|
||||
store i64 1, ptr %90, align 4
|
||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %88, i32 0, i32 2
|
||||
store i64 1, ptr %91, align 4
|
||||
%92 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %88, align 8
|
||||
%93 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
%94 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %93, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %68, ptr %94, align 8
|
||||
%95 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %93, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %79, ptr %95, align 8
|
||||
%96 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %96, i32 0, i32 0
|
||||
store ptr %93, ptr %97, align 8
|
||||
%98 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %96, i32 0, i32 1
|
||||
store i64 2, ptr %98, align 4
|
||||
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %96, i32 0, i32 2
|
||||
store i64 2, ptr %99, align 4
|
||||
%100 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %96, align 8
|
||||
%101 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%102 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %101, i32 0, i32 0
|
||||
store ptr @4, ptr %102, align 8
|
||||
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %101, i32 0, i32 1
|
||||
store i64 4, ptr %103, align 4
|
||||
%104 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %101, align 8
|
||||
%105 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%106 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %105, i32 0, i32 0
|
||||
store ptr @7, ptr %106, align 8
|
||||
%107 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %105, i32 0, i32 1
|
||||
store i64 13, ptr %107, align 4
|
||||
%108 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %105, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %4, %"github.com/goplus/llgo/internal/runtime.String" %104, %"github.com/goplus/llgo/internal/runtime.String" %108, ptr %40, %"github.com/goplus/llgo/internal/runtime.Slice" %92, %"github.com/goplus/llgo/internal/runtime.Slice" %100)
|
||||
%9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %9, ptr @_llgo_string, align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_7: ; preds = %_llgo_4
|
||||
%109 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %109, ptr @_llgo_string, align 8
|
||||
br label %_llgo_8
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%10 = load ptr, ptr @_llgo_string, align 8
|
||||
%11 = load ptr, ptr @_llgo_int, align 8
|
||||
%12 = icmp eq ptr %11, null
|
||||
br i1 %12, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_8: ; preds = %_llgo_7, %_llgo_4
|
||||
%110 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%111 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %110, i32 0, i32 0
|
||||
store ptr @1, ptr %111, align 8
|
||||
%112 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %110, i32 0, i32 1
|
||||
store i64 19, ptr %112, align 4
|
||||
%113 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %110, align 8
|
||||
%114 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %113, i64 25, i64 24, i64 1, i64 2)
|
||||
%115 = load ptr, ptr @"*_llgo_main.T[string,int]", align 8
|
||||
%116 = icmp eq ptr %115, null
|
||||
br i1 %116, label %_llgo_9, label %_llgo_10
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%13 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
store ptr %13, ptr @_llgo_int, align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_9: ; preds = %_llgo_8
|
||||
%117 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %114)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %117)
|
||||
store ptr %117, ptr @"*_llgo_main.T[string,int]", align 8
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
%14 = load ptr, ptr @_llgo_int, align 8
|
||||
%15 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %15, i32 0, i32 0
|
||||
store ptr @2, ptr %16, align 8
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %15, i32 0, i32 1
|
||||
store i64 1, ptr %17, align 4
|
||||
%18 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %15, align 8
|
||||
%19 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %19, i32 0, i32 0
|
||||
store ptr null, ptr %20, align 8
|
||||
%21 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %19, i32 0, i32 1
|
||||
store i64 0, ptr %21, align 4
|
||||
%22 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %19, align 8
|
||||
%23 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
%24 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %18, ptr %23, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %22, i1 false)
|
||||
%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 1, ptr %27, align 4
|
||||
%28 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %25, align 8
|
||||
%29 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %29, i32 0, i32 0
|
||||
store ptr null, ptr %30, align 8
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %29, i32 0, i32 1
|
||||
store i64 0, ptr %31, align 4
|
||||
%32 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %29, align 8
|
||||
%33 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%34 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %28, ptr %33, i64 16, %"github.com/goplus/llgo/internal/runtime.String" %32, i1 false)
|
||||
%35 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %35, i32 0, i32 0
|
||||
store ptr @4, ptr %36, align 8
|
||||
%37 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %35, i32 0, i32 1
|
||||
store i64 4, ptr %37, align 4
|
||||
%38 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %35, align 8
|
||||
%39 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||
%40 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %39, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %24, ptr %40, align 8
|
||||
%41 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %39, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %34, ptr %41, align 8
|
||||
%42 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, i32 0, i32 0
|
||||
store ptr %39, ptr %43, align 8
|
||||
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, i32 0, i32 1
|
||||
store i64 2, ptr %44, align 4
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, i32 0, i32 2
|
||||
store i64 2, ptr %45, align 4
|
||||
%46 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, align 8
|
||||
%47 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %38, i64 24, %"github.com/goplus/llgo/internal/runtime.Slice" %46)
|
||||
store ptr %47, ptr @"main.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk", align 8
|
||||
%48 = load ptr, ptr @"main.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk", align 8
|
||||
br i1 %6, label %_llgo_7, label %_llgo_8
|
||||
|
||||
_llgo_7: ; preds = %_llgo_6
|
||||
%49 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %49, i32 0, i32 0
|
||||
store ptr @5, ptr %50, align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %49, i32 0, i32 1
|
||||
store i64 4, ptr %51, align 4
|
||||
%52 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %49, align 8
|
||||
%53 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%54 = icmp eq ptr %53, null
|
||||
br i1 %54, label %_llgo_9, label %_llgo_10
|
||||
|
||||
_llgo_8: ; preds = %_llgo_10, %_llgo_6
|
||||
%55 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %55, i32 0, i32 0
|
||||
store ptr @1, ptr %56, align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %55, i32 0, i32 1
|
||||
store i64 19, ptr %57, align 4
|
||||
%58 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %55, align 8
|
||||
%59 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %58, i64 25, i64 24, i64 1, i64 2)
|
||||
%60 = load ptr, ptr @"*_llgo_main.T[string,int]", align 8
|
||||
%61 = icmp eq ptr %60, null
|
||||
br i1 %61, label %_llgo_11, label %_llgo_12
|
||||
|
||||
_llgo_9: ; preds = %_llgo_7
|
||||
%62 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%63 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %63, i32 0, i32 0
|
||||
store ptr %62, ptr %64, align 8
|
||||
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %63, i32 0, i32 1
|
||||
store i64 0, ptr %65, align 4
|
||||
%66 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %63, i32 0, i32 2
|
||||
store i64 0, ptr %66, align 4
|
||||
%67 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %63, align 8
|
||||
%68 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%69 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%70 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %69, i32 0, i32 0
|
||||
store ptr %68, ptr %70, align 8
|
||||
%71 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %69, i32 0, i32 1
|
||||
store i64 0, ptr %71, align 4
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %69, i32 0, i32 2
|
||||
store i64 0, ptr %72, align 4
|
||||
%73 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %69, align 8
|
||||
%74 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %67, %"github.com/goplus/llgo/internal/runtime.Slice" %73, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %74)
|
||||
store ptr %74, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
br label %_llgo_10
|
||||
|
||||
_llgo_10: ; preds = %_llgo_9, %_llgo_8
|
||||
%118 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%119 = load ptr, ptr @"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs", align 8
|
||||
%120 = icmp eq ptr %119, null
|
||||
br i1 %120, label %_llgo_11, label %_llgo_12
|
||||
_llgo_10: ; preds = %_llgo_9, %_llgo_7
|
||||
%75 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%76 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %76, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %52, ptr %77, align 8
|
||||
%78 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %76, i32 0, i32 1
|
||||
store ptr %75, ptr %78, align 8
|
||||
%79 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %76, i32 0, i32 2
|
||||
store ptr @"main.(*T[string,int]).Demo", ptr %79, align 8
|
||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %76, i32 0, i32 3
|
||||
store ptr @"main.(*T[string,int]).Demo", ptr %80, align 8
|
||||
%81 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %76, align 8
|
||||
%82 = 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
|
||||
store ptr @6, ptr %83, align 8
|
||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %82, i32 0, i32 1
|
||||
store i64 4, ptr %84, align 4
|
||||
%85 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %82, align 8
|
||||
%86 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%87 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%88 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %87, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %85, ptr %88, align 8
|
||||
%89 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %87, i32 0, i32 1
|
||||
store ptr %86, ptr %89, align 8
|
||||
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %87, i32 0, i32 2
|
||||
store ptr @"main.(*T[string,int]).Info", ptr %90, align 8
|
||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %87, i32 0, i32 3
|
||||
store ptr @"main.(*T[string,int]).Info", ptr %91, align 8
|
||||
%92 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %87, align 8
|
||||
%93 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%94 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %93, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %85, ptr %94, align 8
|
||||
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %93, i32 0, i32 1
|
||||
store ptr %86, ptr %95, align 8
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %93, i32 0, i32 2
|
||||
store ptr @"main.(*T[string,int]).Info", ptr %96, align 8
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %93, i32 0, i32 3
|
||||
store ptr @"main.T[string,int].Info", ptr %97, align 8
|
||||
%98 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %93, align 8
|
||||
%99 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%100 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %99, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %98, ptr %100, align 8
|
||||
%101 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%102 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %101, i32 0, i32 0
|
||||
store ptr %99, ptr %102, align 8
|
||||
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %101, i32 0, i32 1
|
||||
store i64 1, ptr %103, align 4
|
||||
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %101, i32 0, i32 2
|
||||
store i64 1, ptr %104, align 4
|
||||
%105 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %101, align 8
|
||||
%106 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
%107 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %106, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %81, ptr %107, align 8
|
||||
%108 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %106, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %92, ptr %108, align 8
|
||||
%109 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%110 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %109, i32 0, i32 0
|
||||
store ptr %106, ptr %110, align 8
|
||||
%111 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %109, i32 0, i32 1
|
||||
store i64 2, ptr %111, align 4
|
||||
%112 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %109, i32 0, i32 2
|
||||
store i64 2, ptr %112, align 4
|
||||
%113 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %109, align 8
|
||||
%114 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%115 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %114, i32 0, i32 0
|
||||
store ptr @4, ptr %115, align 8
|
||||
%116 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %114, i32 0, i32 1
|
||||
store i64 4, ptr %116, align 4
|
||||
%117 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %114, align 8
|
||||
%118 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%119 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %118, i32 0, i32 0
|
||||
store ptr @7, ptr %119, align 8
|
||||
%120 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %118, i32 0, i32 1
|
||||
store i64 13, ptr %120, align 4
|
||||
%121 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %118, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %4, %"github.com/goplus/llgo/internal/runtime.String" %117, %"github.com/goplus/llgo/internal/runtime.String" %121, ptr %48, %"github.com/goplus/llgo/internal/runtime.Slice" %105, %"github.com/goplus/llgo/internal/runtime.Slice" %113)
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_11: ; preds = %_llgo_10
|
||||
%121 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%122 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %121, i32 0, i32 0
|
||||
store ptr @5, ptr %122, align 8
|
||||
%123 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %121, i32 0, i32 1
|
||||
store i64 4, ptr %123, align 4
|
||||
%124 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %121, align 8
|
||||
%125 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%126 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %125, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %124, ptr %126, align 8
|
||||
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %125, i32 0, i32 1
|
||||
store ptr %118, ptr %127, align 8
|
||||
%128 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %125, align 8
|
||||
%129 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
%130 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %129, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %128, ptr %130, align 8
|
||||
%131 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%132 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %131, i32 0, i32 0
|
||||
store ptr %129, ptr %132, align 8
|
||||
%133 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %131, i32 0, i32 1
|
||||
store i64 1, ptr %133, align 4
|
||||
%134 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %131, i32 0, i32 2
|
||||
store i64 1, ptr %134, align 4
|
||||
%135 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %131, align 8
|
||||
%136 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%137 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %136, i32 0, i32 0
|
||||
store ptr @4, ptr %137, align 8
|
||||
%138 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %136, i32 0, i32 1
|
||||
store i64 4, ptr %138, align 4
|
||||
%139 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %136, align 8
|
||||
%140 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%141 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %140, i32 0, i32 0
|
||||
store ptr null, ptr %141, align 8
|
||||
%142 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %140, i32 0, i32 1
|
||||
store i64 0, ptr %142, align 4
|
||||
%143 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %140, align 8
|
||||
%144 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %139, %"github.com/goplus/llgo/internal/runtime.String" %143, %"github.com/goplus/llgo/internal/runtime.Slice" %135)
|
||||
store ptr %144, ptr @"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs", align 8
|
||||
_llgo_11: ; preds = %_llgo_8
|
||||
%122 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %59)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %122)
|
||||
store ptr %122, ptr @"*_llgo_main.T[string,int]", align 8
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_10
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_8
|
||||
%123 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%124 = load ptr, ptr @"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs", align 8
|
||||
%125 = icmp eq ptr %124, null
|
||||
br i1 %125, label %_llgo_13, label %_llgo_14
|
||||
|
||||
_llgo_13: ; preds = %_llgo_12
|
||||
%126 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %126, i32 0, i32 0
|
||||
store ptr @5, ptr %127, align 8
|
||||
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %126, i32 0, i32 1
|
||||
store i64 4, ptr %128, align 4
|
||||
%129 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %126, align 8
|
||||
%130 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%131 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %130, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %129, ptr %131, align 8
|
||||
%132 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %130, i32 0, i32 1
|
||||
store ptr %123, ptr %132, align 8
|
||||
%133 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %130, align 8
|
||||
%134 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
%135 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %134, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %133, ptr %135, align 8
|
||||
%136 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%137 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %136, i32 0, i32 0
|
||||
store ptr %134, ptr %137, align 8
|
||||
%138 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %136, i32 0, i32 1
|
||||
store i64 1, ptr %138, align 4
|
||||
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %136, i32 0, i32 2
|
||||
store i64 1, ptr %139, align 4
|
||||
%140 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %136, align 8
|
||||
%141 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%142 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %141, i32 0, i32 0
|
||||
store ptr @4, ptr %142, align 8
|
||||
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %141, i32 0, i32 1
|
||||
store i64 4, ptr %143, align 4
|
||||
%144 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %141, align 8
|
||||
%145 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%146 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %145, i32 0, i32 0
|
||||
store ptr null, ptr %146, align 8
|
||||
%147 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %145, i32 0, i32 1
|
||||
store i64 0, ptr %147, align 4
|
||||
%148 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %145, align 8
|
||||
%149 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %144, %"github.com/goplus/llgo/internal/runtime.String" %148, %"github.com/goplus/llgo/internal/runtime.Slice" %140)
|
||||
store ptr %149, ptr @"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs", align 8
|
||||
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", i64, i64, i64, i64)
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/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 %"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.Basic"(i64)
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(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")
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user