Merge pull request #313 from visualfc/globals
ssa: global use elem type
This commit is contained in:
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
; ModuleID = 'apkg'
|
||||
source_filename = "apkg"
|
||||
|
||||
@"apkg.init$guard" = global ptr null
|
||||
@"apkg.init$guard" = global i1 false, align 1
|
||||
|
||||
define double @apkg.Max(double %0, double %1) {
|
||||
_llgo_0:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@main.hello = global [7 x i8] undef
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.hello = global [7 x i8] zeroinitializer, align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@main.format = global [10 x i8] undef
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.format = global [10 x i8] zeroinitializer, align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define i64 @main.T.Add(i64 %0, i64 %1) {
|
||||
_llgo_0:
|
||||
|
||||
@@ -8,40 +8,38 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@main.minhexdigits = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@main.minhexdigits = global i64 0, align 8
|
||||
@0 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@1 = private unnamed_addr constant [5 x i8] c"llgo\00", align 1
|
||||
@_llgo_float32 = linkonce global ptr null
|
||||
@_llgo_float64 = linkonce global ptr null
|
||||
@2 = private unnamed_addr constant [11 x i8] c"check bool\00", align 1
|
||||
@_llgo_string = linkonce global ptr null
|
||||
@_llgo_bool = linkonce global ptr null
|
||||
@3 = private unnamed_addr constant [9 x i8] c"check &^\00", align 1
|
||||
@_llgo_int32 = linkonce global ptr null
|
||||
@_llgo_int8 = linkonce global ptr null
|
||||
@_llgo_int16 = linkonce global ptr null
|
||||
@_llgo_int64 = linkonce global ptr null
|
||||
@_llgo_int = linkonce global ptr null
|
||||
@_llgo_uint8 = linkonce global ptr null
|
||||
@_llgo_uint16 = linkonce global ptr null
|
||||
@_llgo_uint32 = linkonce global ptr null
|
||||
@_llgo_uint64 = linkonce global ptr null
|
||||
@_llgo_uintptr = linkonce global ptr null
|
||||
@4 = private unnamed_addr constant [5 x i8] c"llgo\00", align 1
|
||||
@_llgo_uint = linkonce global ptr null
|
||||
@5 = private unnamed_addr constant [5 x i8] c"true\00", align 1
|
||||
@6 = private unnamed_addr constant [6 x i8] c"false\00", align 1
|
||||
@7 = private unnamed_addr constant [4 x i8] c"NaN\00", align 1
|
||||
@8 = private unnamed_addr constant [5 x i8] c"+Inf\00", align 1
|
||||
@9 = private unnamed_addr constant [5 x i8] c"-Inf\00", align 1
|
||||
@10 = private unnamed_addr constant [17 x i8] c"0123456789abcdef\00", align 1
|
||||
@11 = private unnamed_addr constant [2 x i8] c"-\00", align 1
|
||||
@12 = private unnamed_addr constant [2 x i8] c" \00", align 1
|
||||
@13 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
|
||||
@14 = private unnamed_addr constant [2 x i8] c" \00", align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@1 = private unnamed_addr constant [4 x i8] c"llgo", align 1
|
||||
@_llgo_float32 = linkonce global ptr null, align 8
|
||||
@_llgo_float64 = linkonce global ptr null, align 8
|
||||
@2 = private unnamed_addr constant [10 x i8] c"check bool", align 1
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
@_llgo_bool = linkonce global ptr null, align 8
|
||||
@3 = private unnamed_addr constant [8 x i8] c"check &^", align 1
|
||||
@_llgo_int32 = linkonce global ptr null, align 8
|
||||
@_llgo_int8 = linkonce global ptr null, align 8
|
||||
@_llgo_int16 = linkonce global ptr null, align 8
|
||||
@_llgo_int64 = linkonce global ptr null, align 8
|
||||
@_llgo_int = linkonce global ptr null, align 8
|
||||
@_llgo_uint8 = linkonce global ptr null, align 8
|
||||
@_llgo_uint16 = linkonce global ptr null, align 8
|
||||
@_llgo_uint32 = linkonce global ptr null, align 8
|
||||
@_llgo_uint64 = linkonce global ptr null, align 8
|
||||
@_llgo_uintptr = linkonce global ptr null, align 8
|
||||
@_llgo_uint = linkonce global ptr null, align 8
|
||||
@4 = private unnamed_addr constant [4 x i8] c"true", align 1
|
||||
@5 = private unnamed_addr constant [5 x i8] c"false", align 1
|
||||
@6 = private unnamed_addr constant [3 x i8] c"NaN", align 1
|
||||
@7 = private unnamed_addr constant [4 x i8] c"+Inf", align 1
|
||||
@8 = private unnamed_addr constant [4 x i8] c"-Inf", align 1
|
||||
@9 = private unnamed_addr constant [16 x i8] c"0123456789abcdef", align 1
|
||||
@10 = private unnamed_addr constant [1 x i8] c"-", align 1
|
||||
@11 = private unnamed_addr constant [1 x i8] c" ", align 1
|
||||
@12 = private unnamed_addr constant [1 x i8] c"\0A", align 1
|
||||
|
||||
define %"github.com/goplus/llgo/internal/runtime.Slice" @main.bytes(%"github.com/goplus/llgo/internal/runtime.String" %0) {
|
||||
_llgo_0:
|
||||
@@ -444,7 +442,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_3,
|
||||
%219 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 15
|
||||
%220 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%221 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %220, i32 0, i32 0
|
||||
store ptr @4, ptr %221, align 8
|
||||
store ptr @1, ptr %221, align 8
|
||||
%222 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %220, i32 0, i32 1
|
||||
store i64 4, ptr %222, align 4
|
||||
%223 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %220, align 8
|
||||
@@ -1056,7 +1054,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%1 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %1, i32 0, i32 0
|
||||
store ptr @5, ptr %2, align 8
|
||||
store ptr @4, ptr %2, align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %1, i32 0, i32 1
|
||||
store i64 4, ptr %3, align 4
|
||||
%4 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %1, align 8
|
||||
@@ -1069,7 +1067,7 @@ _llgo_2: ; preds = %_llgo_3, %_llgo_1
|
||||
_llgo_3: ; 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 @6, ptr %6, align 8
|
||||
store ptr @5, ptr %6, align 8
|
||||
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %5, i32 0, i32 1
|
||||
store i64 5, ptr %7, align 4
|
||||
%8 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %5, align 8
|
||||
@@ -1085,7 +1083,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%2 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 0
|
||||
store ptr @7, ptr %3, align 8
|
||||
store ptr @6, ptr %3, align 8
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 1
|
||||
store i64 3, ptr %4, align 4
|
||||
%5 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8
|
||||
@@ -1095,7 +1093,7 @@ _llgo_1: ; preds = %_llgo_0
|
||||
_llgo_2: ; preds = %_llgo_7
|
||||
%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 @8, ptr %7, align 8
|
||||
store ptr @7, ptr %7, align 8
|
||||
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %6, i32 0, i32 1
|
||||
store i64 4, ptr %8, align 4
|
||||
%9 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %6, align 8
|
||||
@@ -1110,7 +1108,7 @@ _llgo_3: ; preds = %_llgo_0
|
||||
_llgo_4: ; preds = %_llgo_10
|
||||
%12 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %12, i32 0, i32 0
|
||||
store ptr @9, ptr %13, align 8
|
||||
store ptr @8, ptr %13, align 8
|
||||
%14 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %12, i32 0, i32 1
|
||||
store i64 4, ptr %14, align 4
|
||||
%15 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %12, align 8
|
||||
@@ -1296,7 +1294,7 @@ _llgo_1: ; preds = %_llgo_3
|
||||
%2 = urem i64 %20, 16
|
||||
%3 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %3, i32 0, i32 0
|
||||
store ptr @10, ptr %4, align 8
|
||||
store ptr @9, ptr %4, align 8
|
||||
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %3, i32 0, i32 1
|
||||
store i64 16, ptr %5, align 4
|
||||
%6 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %3, align 8
|
||||
@@ -1351,7 +1349,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%2 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 0
|
||||
store ptr @11, ptr %3, align 8
|
||||
store ptr @10, ptr %3, align 8
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 1
|
||||
store i64 1, ptr %4, align 4
|
||||
%5 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8
|
||||
@@ -1392,7 +1390,7 @@ _llgo_3: ; preds = %_llgo_1
|
||||
_llgo_4: ; preds = %_llgo_2
|
||||
%10 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %10, i32 0, i32 0
|
||||
store ptr @12, ptr %11, align 8
|
||||
store ptr @11, ptr %11, align 8
|
||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %10, i32 0, i32 1
|
||||
store i64 1, ptr %12, align 4
|
||||
%13 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %10, align 8
|
||||
@@ -1408,7 +1406,7 @@ define void @main.printnl() {
|
||||
_llgo_0:
|
||||
%0 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%1 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 0
|
||||
store ptr @13, ptr %1, align 8
|
||||
store ptr @12, ptr %1, align 8
|
||||
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 1
|
||||
store i64 1, ptr %2, align 4
|
||||
%3 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %0, align 8
|
||||
@@ -1420,7 +1418,7 @@ define void @main.printsp() {
|
||||
_llgo_0:
|
||||
%0 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%1 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 0
|
||||
store ptr @14, ptr %1, align 8
|
||||
store ptr @11, ptr %1, align 8
|
||||
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 1
|
||||
store i64 1, ptr %2, align 4
|
||||
%3 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %0, align 8
|
||||
@@ -1505,146 +1503,202 @@ _llgo_1: ; preds = %_llgo_0
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%3 = load ptr, ptr @_llgo_float64, align 8
|
||||
%4 = icmp eq ptr %3, null
|
||||
br i1 %4, label %_llgo_3, label %_llgo_4
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %2, i32 0, i32 6
|
||||
%4 = load i8, ptr %3, align 1
|
||||
%5 = or i8 %4, 32
|
||||
store i8 %5, ptr %3, align 1
|
||||
%6 = load ptr, ptr @_llgo_float64, align 8
|
||||
%7 = icmp eq ptr %6, null
|
||||
br i1 %7, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 14)
|
||||
store ptr %5, ptr @_llgo_float64, align 8
|
||||
%8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 14)
|
||||
store ptr %8, ptr @_llgo_float64, align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%6 = load ptr, ptr @_llgo_string, align 8
|
||||
%7 = icmp eq ptr %6, null
|
||||
br i1 %7, label %_llgo_5, label %_llgo_6
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %8, i32 0, i32 6
|
||||
%10 = load i8, ptr %9, align 1
|
||||
%11 = or i8 %10, 32
|
||||
store i8 %11, ptr %9, align 1
|
||||
%12 = load ptr, ptr @_llgo_string, align 8
|
||||
%13 = icmp eq ptr %12, null
|
||||
br i1 %13, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %8, ptr @_llgo_string, align 8
|
||||
%14 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %14, ptr @_llgo_string, align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
%9 = load ptr, ptr @_llgo_bool, align 8
|
||||
%10 = icmp eq ptr %9, null
|
||||
br i1 %10, label %_llgo_7, label %_llgo_8
|
||||
%15 = load ptr, ptr @_llgo_bool, align 8
|
||||
%16 = icmp eq ptr %15, null
|
||||
br i1 %16, label %_llgo_7, label %_llgo_8
|
||||
|
||||
_llgo_7: ; preds = %_llgo_6
|
||||
%11 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 1)
|
||||
store ptr %11, ptr @_llgo_bool, align 8
|
||||
%17 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 1)
|
||||
store ptr %17, ptr @_llgo_bool, align 8
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%12 = load ptr, ptr @_llgo_int32, align 8
|
||||
%13 = icmp eq ptr %12, null
|
||||
br i1 %13, label %_llgo_9, label %_llgo_10
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %17, i32 0, i32 6
|
||||
%19 = load i8, ptr %18, align 1
|
||||
%20 = or i8 %19, 32
|
||||
store i8 %20, ptr %18, align 1
|
||||
%21 = load ptr, ptr @_llgo_int32, align 8
|
||||
%22 = icmp eq ptr %21, null
|
||||
br i1 %22, label %_llgo_9, label %_llgo_10
|
||||
|
||||
_llgo_9: ; preds = %_llgo_8
|
||||
%14 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 5)
|
||||
store ptr %14, ptr @_llgo_int32, align 8
|
||||
%23 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 5)
|
||||
store ptr %23, ptr @_llgo_int32, align 8
|
||||
br label %_llgo_10
|
||||
|
||||
_llgo_10: ; preds = %_llgo_9, %_llgo_8
|
||||
%15 = load ptr, ptr @_llgo_int8, align 8
|
||||
%16 = icmp eq ptr %15, null
|
||||
br i1 %16, label %_llgo_11, label %_llgo_12
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %23, i32 0, i32 6
|
||||
%25 = load i8, ptr %24, align 1
|
||||
%26 = or i8 %25, 32
|
||||
store i8 %26, ptr %24, align 1
|
||||
%27 = load ptr, ptr @_llgo_int8, align 8
|
||||
%28 = icmp eq ptr %27, null
|
||||
br i1 %28, label %_llgo_11, label %_llgo_12
|
||||
|
||||
_llgo_11: ; preds = %_llgo_10
|
||||
%17 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 3)
|
||||
store ptr %17, ptr @_llgo_int8, align 8
|
||||
%29 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 3)
|
||||
store ptr %29, ptr @_llgo_int8, align 8
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_10
|
||||
%18 = load ptr, ptr @_llgo_int16, align 8
|
||||
%19 = icmp eq ptr %18, null
|
||||
br i1 %19, label %_llgo_13, label %_llgo_14
|
||||
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %29, i32 0, i32 6
|
||||
%31 = load i8, ptr %30, align 1
|
||||
%32 = or i8 %31, 32
|
||||
store i8 %32, ptr %30, align 1
|
||||
%33 = load ptr, ptr @_llgo_int16, align 8
|
||||
%34 = icmp eq ptr %33, null
|
||||
br i1 %34, label %_llgo_13, label %_llgo_14
|
||||
|
||||
_llgo_13: ; preds = %_llgo_12
|
||||
%20 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 4)
|
||||
store ptr %20, ptr @_llgo_int16, align 8
|
||||
%35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 4)
|
||||
store ptr %35, ptr @_llgo_int16, align 8
|
||||
br label %_llgo_14
|
||||
|
||||
_llgo_14: ; preds = %_llgo_13, %_llgo_12
|
||||
%21 = load ptr, ptr @_llgo_int64, align 8
|
||||
%22 = icmp eq ptr %21, null
|
||||
br i1 %22, label %_llgo_15, label %_llgo_16
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %35, i32 0, i32 6
|
||||
%37 = load i8, ptr %36, align 1
|
||||
%38 = or i8 %37, 32
|
||||
store i8 %38, ptr %36, align 1
|
||||
%39 = load ptr, ptr @_llgo_int64, align 8
|
||||
%40 = icmp eq ptr %39, null
|
||||
br i1 %40, label %_llgo_15, label %_llgo_16
|
||||
|
||||
_llgo_15: ; preds = %_llgo_14
|
||||
%23 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 6)
|
||||
store ptr %23, ptr @_llgo_int64, align 8
|
||||
%41 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 6)
|
||||
store ptr %41, ptr @_llgo_int64, align 8
|
||||
br label %_llgo_16
|
||||
|
||||
_llgo_16: ; preds = %_llgo_15, %_llgo_14
|
||||
%24 = load ptr, ptr @_llgo_int, align 8
|
||||
%25 = icmp eq ptr %24, null
|
||||
br i1 %25, label %_llgo_17, label %_llgo_18
|
||||
%42 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %41, i32 0, i32 6
|
||||
%43 = load i8, ptr %42, align 1
|
||||
%44 = or i8 %43, 32
|
||||
store i8 %44, ptr %42, align 1
|
||||
%45 = load ptr, ptr @_llgo_int, align 8
|
||||
%46 = icmp eq ptr %45, null
|
||||
br i1 %46, label %_llgo_17, label %_llgo_18
|
||||
|
||||
_llgo_17: ; preds = %_llgo_16
|
||||
%26 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 2)
|
||||
store ptr %26, ptr @_llgo_int, align 8
|
||||
%47 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 2)
|
||||
store ptr %47, ptr @_llgo_int, align 8
|
||||
br label %_llgo_18
|
||||
|
||||
_llgo_18: ; preds = %_llgo_17, %_llgo_16
|
||||
%27 = load ptr, ptr @_llgo_uint8, align 8
|
||||
%28 = icmp eq ptr %27, null
|
||||
br i1 %28, label %_llgo_19, label %_llgo_20
|
||||
%48 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %47, i32 0, i32 6
|
||||
%49 = load i8, ptr %48, align 1
|
||||
%50 = or i8 %49, 32
|
||||
store i8 %50, ptr %48, align 1
|
||||
%51 = load ptr, ptr @_llgo_uint8, align 8
|
||||
%52 = icmp eq ptr %51, null
|
||||
br i1 %52, label %_llgo_19, label %_llgo_20
|
||||
|
||||
_llgo_19: ; preds = %_llgo_18
|
||||
%29 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 8)
|
||||
store ptr %29, ptr @_llgo_uint8, align 8
|
||||
%53 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 8)
|
||||
store ptr %53, ptr @_llgo_uint8, align 8
|
||||
br label %_llgo_20
|
||||
|
||||
_llgo_20: ; preds = %_llgo_19, %_llgo_18
|
||||
%30 = load ptr, ptr @_llgo_uint16, align 8
|
||||
%31 = icmp eq ptr %30, null
|
||||
br i1 %31, label %_llgo_21, label %_llgo_22
|
||||
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %53, i32 0, i32 6
|
||||
%55 = load i8, ptr %54, align 1
|
||||
%56 = or i8 %55, 32
|
||||
store i8 %56, ptr %54, align 1
|
||||
%57 = load ptr, ptr @_llgo_uint16, align 8
|
||||
%58 = icmp eq ptr %57, null
|
||||
br i1 %58, label %_llgo_21, label %_llgo_22
|
||||
|
||||
_llgo_21: ; preds = %_llgo_20
|
||||
%32 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 9)
|
||||
store ptr %32, ptr @_llgo_uint16, align 8
|
||||
%59 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 9)
|
||||
store ptr %59, ptr @_llgo_uint16, align 8
|
||||
br label %_llgo_22
|
||||
|
||||
_llgo_22: ; preds = %_llgo_21, %_llgo_20
|
||||
%33 = load ptr, ptr @_llgo_uint32, align 8
|
||||
%34 = icmp eq ptr %33, null
|
||||
br i1 %34, label %_llgo_23, label %_llgo_24
|
||||
%60 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %59, i32 0, i32 6
|
||||
%61 = load i8, ptr %60, align 1
|
||||
%62 = or i8 %61, 32
|
||||
store i8 %62, ptr %60, align 1
|
||||
%63 = load ptr, ptr @_llgo_uint32, align 8
|
||||
%64 = icmp eq ptr %63, null
|
||||
br i1 %64, label %_llgo_23, label %_llgo_24
|
||||
|
||||
_llgo_23: ; preds = %_llgo_22
|
||||
%35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 10)
|
||||
store ptr %35, ptr @_llgo_uint32, align 8
|
||||
%65 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 10)
|
||||
store ptr %65, ptr @_llgo_uint32, align 8
|
||||
br label %_llgo_24
|
||||
|
||||
_llgo_24: ; preds = %_llgo_23, %_llgo_22
|
||||
%36 = load ptr, ptr @_llgo_uint64, align 8
|
||||
%37 = icmp eq ptr %36, null
|
||||
br i1 %37, label %_llgo_25, label %_llgo_26
|
||||
%66 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %65, i32 0, i32 6
|
||||
%67 = load i8, ptr %66, align 1
|
||||
%68 = or i8 %67, 32
|
||||
store i8 %68, ptr %66, align 1
|
||||
%69 = load ptr, ptr @_llgo_uint64, align 8
|
||||
%70 = icmp eq ptr %69, null
|
||||
br i1 %70, label %_llgo_25, label %_llgo_26
|
||||
|
||||
_llgo_25: ; preds = %_llgo_24
|
||||
%38 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 11)
|
||||
store ptr %38, ptr @_llgo_uint64, align 8
|
||||
%71 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 11)
|
||||
store ptr %71, ptr @_llgo_uint64, align 8
|
||||
br label %_llgo_26
|
||||
|
||||
_llgo_26: ; preds = %_llgo_25, %_llgo_24
|
||||
%39 = load ptr, ptr @_llgo_uintptr, align 8
|
||||
%40 = icmp eq ptr %39, null
|
||||
br i1 %40, label %_llgo_27, label %_llgo_28
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %71, i32 0, i32 6
|
||||
%73 = load i8, ptr %72, align 1
|
||||
%74 = or i8 %73, 32
|
||||
store i8 %74, ptr %72, align 1
|
||||
%75 = load ptr, ptr @_llgo_uintptr, align 8
|
||||
%76 = icmp eq ptr %75, null
|
||||
br i1 %76, label %_llgo_27, label %_llgo_28
|
||||
|
||||
_llgo_27: ; preds = %_llgo_26
|
||||
%41 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 12)
|
||||
store ptr %41, ptr @_llgo_uintptr, align 8
|
||||
%77 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 12)
|
||||
store ptr %77, ptr @_llgo_uintptr, align 8
|
||||
br label %_llgo_28
|
||||
|
||||
_llgo_28: ; preds = %_llgo_27, %_llgo_26
|
||||
%42 = load ptr, ptr @_llgo_uint, align 8
|
||||
%43 = icmp eq ptr %42, null
|
||||
br i1 %43, label %_llgo_29, label %_llgo_30
|
||||
%78 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %77, i32 0, i32 6
|
||||
%79 = load i8, ptr %78, align 1
|
||||
%80 = or i8 %79, 32
|
||||
store i8 %80, ptr %78, align 1
|
||||
%81 = load ptr, ptr @_llgo_uint, align 8
|
||||
%82 = icmp eq ptr %81, null
|
||||
br i1 %82, label %_llgo_29, label %_llgo_30
|
||||
|
||||
_llgo_29: ; preds = %_llgo_28
|
||||
%44 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 7)
|
||||
store ptr %44, ptr @_llgo_uint, align 8
|
||||
%83 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 7)
|
||||
store ptr %83, ptr @_llgo_uint, align 8
|
||||
br label %_llgo_30
|
||||
|
||||
_llgo_30: ; preds = %_llgo_29, %_llgo_28
|
||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %83, i32 0, i32 6
|
||||
%85 = load i8, ptr %84, align 1
|
||||
%86 = or i8 %85, 32
|
||||
store i8 %86, ptr %84, align 1
|
||||
ret void
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@main.hello = global [7 x i8] undef
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.hello = global [7 x i8] zeroinitializer, align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@main.format = global [10 x i8] undef
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.format = global [10 x i8] zeroinitializer, align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@main.format = global [10 x i8] undef
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.format = global [10 x i8] zeroinitializer, align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @"main.(*T).Print"(ptr %0, i64 %1) {
|
||||
_llgo_0:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [11 x i8] c"Hello, %u\0A\00", align 1
|
||||
|
||||
define i32 @main.f(i32 %0) {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@main.a = global ptr null
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.a = global double 0.000000e+00, align 8
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -3,12 +3,11 @@ source_filename = "main"
|
||||
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
|
||||
@main.array = global [8 x i8] undef
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@0 = private unnamed_addr constant [8 x i8] c"\E4\B8\ADabcd\00", align 1
|
||||
@1 = private unnamed_addr constant [8 x i8] c"\E4\B8\ADabcd\00", align 1
|
||||
@main.array = global [8 x i8] zeroinitializer, align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [7 x i8] c"\E4\B8\ADabcd", align 1
|
||||
|
||||
define i8 @main.index(i8 %0) {
|
||||
_llgo_0:
|
||||
@@ -53,7 +52,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_3
|
||||
%2 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 0
|
||||
store ptr @1, ptr %3, align 8
|
||||
store ptr @0, ptr %3, align 8
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 1
|
||||
store i64 7, ptr %4, align 4
|
||||
%5 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8
|
||||
|
||||
@@ -6,13 +6,13 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@_llgo_int = linkonce global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@_llgo_int = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
|
||||
@1 = private unnamed_addr constant [22 x i8] c"type assertion failed\00", align 1
|
||||
@_llgo_string = linkonce global ptr null
|
||||
@1 = private unnamed_addr constant [21 x i8] c"type assertion failed", align 1
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
@@ -153,13 +153,17 @@ _llgo_1: ; preds = %_llgo_0
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%3 = load ptr, ptr @_llgo_string, align 8
|
||||
%4 = icmp eq ptr %3, null
|
||||
br i1 %4, label %_llgo_3, label %_llgo_4
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %2, i32 0, i32 6
|
||||
%4 = load i8, ptr %3, align 1
|
||||
%5 = or i8 %4, 32
|
||||
store i8 %5, ptr %3, align 1
|
||||
%6 = load ptr, ptr @_llgo_string, align 8
|
||||
%7 = icmp eq ptr %6, null
|
||||
br i1 %7, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %5, ptr @_llgo_string, align 8
|
||||
%8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %8, ptr @_llgo_string, align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@main.a = global ptr null
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.a = global i64 0, align 8
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
87
cl/_testgo/equal/in.go
Normal file
87
cl/_testgo/equal/in.go
Normal file
@@ -0,0 +1,87 @@
|
||||
package main
|
||||
|
||||
func test() {}
|
||||
|
||||
// func
|
||||
func init() {
|
||||
fn1 := test
|
||||
fn2 := func(i, j int) int { return i + j }
|
||||
var n int
|
||||
fn3 := func() { println(n) }
|
||||
var fn4 func() int
|
||||
assert(test != nil)
|
||||
assert(fn1 != nil)
|
||||
assert(fn2 != nil)
|
||||
assert(fn3 != nil)
|
||||
assert(fn4 == nil)
|
||||
}
|
||||
|
||||
// array
|
||||
func init() {
|
||||
assert([0]float64{} == [0]float64{})
|
||||
ar1 := [...]int{1, 2, 3}
|
||||
ar2 := [...]int{1, 2, 3}
|
||||
assert(ar1 == ar2)
|
||||
ar2[1] = 1
|
||||
assert(ar1 != ar2)
|
||||
}
|
||||
|
||||
type T struct {
|
||||
X int
|
||||
Y int
|
||||
Z string
|
||||
V any
|
||||
}
|
||||
|
||||
type N struct{}
|
||||
|
||||
// struct
|
||||
func init() {
|
||||
var n1, n2 N
|
||||
var t1, t2 T
|
||||
x := T{10, 20, "hello", 1}
|
||||
y := T{10, 20, "hello", 1}
|
||||
z := T{10, 20, "hello", "ok"}
|
||||
assert(n1 == n2)
|
||||
assert(t1 == t2)
|
||||
assert(x == y)
|
||||
assert(x != z)
|
||||
assert(y != z)
|
||||
}
|
||||
|
||||
// slice
|
||||
func init() {
|
||||
var a []int
|
||||
var b = []int{1, 2, 3}
|
||||
c := make([]int, 2)
|
||||
d := make([]int, 0, 2)
|
||||
assert(a == nil)
|
||||
assert(b != nil)
|
||||
assert(c != nil)
|
||||
assert(d != nil)
|
||||
b = nil
|
||||
assert(b == nil)
|
||||
}
|
||||
|
||||
// iface
|
||||
func init() {
|
||||
var a any = 100
|
||||
var b any = struct{}{}
|
||||
var c any = T{10, 20, "hello", 1}
|
||||
x := T{10, 20, "hello", 1}
|
||||
y := T{10, 20, "hello", "ok"}
|
||||
assert(a == 100)
|
||||
assert(b == struct{}{})
|
||||
assert(b != N{})
|
||||
assert(c == x)
|
||||
assert(c != y)
|
||||
}
|
||||
|
||||
func assert(cond bool) {
|
||||
if !cond {
|
||||
panic("failed")
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
}
|
||||
821
cl/_testgo/equal/out.ll
Normal file
821
cl/_testgo/equal/out.ll
Normal file
@@ -0,0 +1,821 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
||||
%main.T = type { i64, i64, %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.eface" }
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
%main.N = type {}
|
||||
%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 }
|
||||
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@0 = private unnamed_addr constant [6 x i8] c"failed", align 1
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
@1 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
||||
@_llgo_int = linkonce global ptr null, align 8
|
||||
@2 = private unnamed_addr constant [2 x i8] c"ok", align 1
|
||||
@"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw" = linkonce global ptr null, align 8
|
||||
@3 = private unnamed_addr constant [4 x i8] c"main", align 1
|
||||
@_llgo_main.T = linkonce global ptr null, align 8
|
||||
@"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk" = linkonce global ptr null, align 8
|
||||
@_llgo_any = linkonce global ptr null, align 8
|
||||
@4 = private unnamed_addr constant [1 x i8] c"X", align 1
|
||||
@5 = private unnamed_addr constant [1 x i8] c"Y", align 1
|
||||
@6 = private unnamed_addr constant [1 x i8] c"Z", align 1
|
||||
@7 = private unnamed_addr constant [1 x i8] c"V", align 1
|
||||
@8 = private unnamed_addr constant [6 x i8] c"main.T", align 1
|
||||
@_llgo_main.N = linkonce global ptr null, align 8
|
||||
@9 = private unnamed_addr constant [6 x i8] c"main.N", align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.assert(i1 %0) {
|
||||
_llgo_0:
|
||||
br i1 %0, label %_llgo_2, label %_llgo_1
|
||||
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%1 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %1, i32 0, i32 0
|
||||
store ptr @0, ptr %2, align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %1, i32 0, i32 1
|
||||
store i64 6, ptr %3, align 4
|
||||
%4 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %1, align 8
|
||||
%5 = load ptr, ptr @_llgo_string, align 8
|
||||
%6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %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
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %10)
|
||||
unreachable
|
||||
|
||||
_llgo_2: ; preds = %_llgo_0
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
%0 = load i1, ptr @"main.init$guard", align 1
|
||||
br i1 %0, label %_llgo_2, label %_llgo_1
|
||||
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
store i1 true, ptr @"main.init$guard", align 1
|
||||
call void @"main.init$after"()
|
||||
call void @"main.init#1"()
|
||||
call void @"main.init#2"()
|
||||
call void @"main.init#3"()
|
||||
call void @"main.init#4"()
|
||||
call void @"main.init#5"()
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#1"() {
|
||||
_llgo_0:
|
||||
%0 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8)
|
||||
%1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%2 = getelementptr inbounds { ptr }, ptr %1, i32 0, i32 0
|
||||
store ptr %0, ptr %2, align 8
|
||||
%3 = alloca { ptr, ptr }, align 8
|
||||
%4 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 0
|
||||
store ptr @"main.init#1$2", ptr %4, align 8
|
||||
%5 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 1
|
||||
store ptr %1, ptr %5, align 8
|
||||
%6 = load { ptr, ptr }, ptr %3, align 8
|
||||
call void @main.assert(i1 true)
|
||||
call void @main.assert(i1 true)
|
||||
call void @main.assert(i1 true)
|
||||
%7 = extractvalue { ptr, ptr } %6, 0
|
||||
%8 = icmp ne ptr %7, null
|
||||
call void @main.assert(i1 %8)
|
||||
call void @main.assert(i1 true)
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#2"() {
|
||||
_llgo_0:
|
||||
call void @main.assert(i1 true)
|
||||
%0 = alloca [3 x i64], align 8
|
||||
%1 = call ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr %0, i64 24)
|
||||
%2 = getelementptr inbounds i64, ptr %1, i64 0
|
||||
%3 = getelementptr inbounds i64, ptr %1, i64 1
|
||||
%4 = getelementptr inbounds i64, ptr %1, i64 2
|
||||
store i64 1, ptr %2, align 4
|
||||
store i64 2, ptr %3, align 4
|
||||
store i64 3, ptr %4, align 4
|
||||
%5 = alloca [3 x i64], align 8
|
||||
%6 = call ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr %5, i64 24)
|
||||
%7 = getelementptr inbounds i64, ptr %6, i64 0
|
||||
%8 = getelementptr inbounds i64, ptr %6, i64 1
|
||||
%9 = getelementptr inbounds i64, ptr %6, i64 2
|
||||
store i64 1, ptr %7, align 4
|
||||
store i64 2, ptr %8, align 4
|
||||
store i64 3, ptr %9, align 4
|
||||
%10 = load [3 x i64], ptr %1, align 4
|
||||
%11 = load [3 x i64], ptr %6, align 4
|
||||
%12 = extractvalue [3 x i64] %10, 0
|
||||
%13 = extractvalue [3 x i64] %11, 0
|
||||
%14 = icmp eq i64 %12, %13
|
||||
%15 = and i1 true, %14
|
||||
%16 = extractvalue [3 x i64] %10, 1
|
||||
%17 = extractvalue [3 x i64] %11, 1
|
||||
%18 = icmp eq i64 %16, %17
|
||||
%19 = and i1 %15, %18
|
||||
%20 = extractvalue [3 x i64] %10, 2
|
||||
%21 = extractvalue [3 x i64] %11, 2
|
||||
%22 = icmp eq i64 %20, %21
|
||||
%23 = and i1 %19, %22
|
||||
call void @main.assert(i1 %23)
|
||||
%24 = getelementptr inbounds i64, ptr %6, i64 1
|
||||
store i64 1, ptr %24, align 4
|
||||
%25 = load [3 x i64], ptr %1, align 4
|
||||
%26 = load [3 x i64], ptr %6, align 4
|
||||
%27 = extractvalue [3 x i64] %25, 0
|
||||
%28 = extractvalue [3 x i64] %26, 0
|
||||
%29 = icmp eq i64 %27, %28
|
||||
%30 = and i1 true, %29
|
||||
%31 = extractvalue [3 x i64] %25, 1
|
||||
%32 = extractvalue [3 x i64] %26, 1
|
||||
%33 = icmp eq i64 %31, %32
|
||||
%34 = and i1 %30, %33
|
||||
%35 = extractvalue [3 x i64] %25, 2
|
||||
%36 = extractvalue [3 x i64] %26, 2
|
||||
%37 = icmp eq i64 %35, %36
|
||||
%38 = and i1 %34, %37
|
||||
%39 = xor i1 %38, true
|
||||
call void @main.assert(i1 %39)
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#3"() {
|
||||
_llgo_0:
|
||||
%0 = alloca %main.T, align 8
|
||||
%1 = call ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr %0, i64 48)
|
||||
%2 = getelementptr inbounds %main.T, ptr %1, i32 0, i32 0
|
||||
%3 = getelementptr inbounds %main.T, ptr %1, i32 0, i32 1
|
||||
%4 = getelementptr inbounds %main.T, ptr %1, i32 0, i32 2
|
||||
%5 = getelementptr inbounds %main.T, ptr %1, i32 0, i32 3
|
||||
store i64 10, ptr %2, align 4
|
||||
store i64 20, ptr %3, align 4
|
||||
%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 @1, ptr %7, align 8
|
||||
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %6, i32 0, i32 1
|
||||
store i64 5, ptr %8, align 4
|
||||
%9 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %6, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %9, ptr %4, align 8
|
||||
%10 = load ptr, ptr @_llgo_int, align 8
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %10, i32 0, i32 6
|
||||
%12 = load i8, ptr %11, align 1
|
||||
%13 = or i8 %12, 32
|
||||
store i8 %13, ptr %11, align 1
|
||||
%14 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %14, i32 0, i32 0
|
||||
store ptr %10, ptr %15, align 8
|
||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %14, i32 0, i32 1
|
||||
store ptr inttoptr (i64 1 to ptr), ptr %16, align 8
|
||||
%17 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %14, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %17, ptr %5, align 8
|
||||
%18 = alloca %main.T, align 8
|
||||
%19 = call ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr %18, i64 48)
|
||||
%20 = getelementptr inbounds %main.T, ptr %19, i32 0, i32 0
|
||||
%21 = getelementptr inbounds %main.T, ptr %19, i32 0, i32 1
|
||||
%22 = getelementptr inbounds %main.T, ptr %19, i32 0, i32 2
|
||||
%23 = getelementptr inbounds %main.T, ptr %19, i32 0, i32 3
|
||||
store i64 10, ptr %20, align 4
|
||||
store i64 20, ptr %21, align 4
|
||||
%24 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %24, i32 0, i32 0
|
||||
store ptr @1, ptr %25, align 8
|
||||
%26 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %24, i32 0, i32 1
|
||||
store i64 5, ptr %26, align 4
|
||||
%27 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %24, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %27, ptr %22, align 8
|
||||
%28 = load ptr, ptr @_llgo_int, align 8
|
||||
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %28, i32 0, i32 6
|
||||
%30 = load i8, ptr %29, align 1
|
||||
%31 = or i8 %30, 32
|
||||
store i8 %31, ptr %29, align 1
|
||||
%32 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %32, i32 0, i32 0
|
||||
store ptr %28, ptr %33, align 8
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %32, i32 0, i32 1
|
||||
store ptr inttoptr (i64 1 to ptr), ptr %34, align 8
|
||||
%35 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %32, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %35, ptr %23, align 8
|
||||
%36 = alloca %main.T, align 8
|
||||
%37 = call ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr %36, i64 48)
|
||||
%38 = getelementptr inbounds %main.T, ptr %37, i32 0, i32 0
|
||||
%39 = getelementptr inbounds %main.T, ptr %37, i32 0, i32 1
|
||||
%40 = getelementptr inbounds %main.T, ptr %37, i32 0, i32 2
|
||||
%41 = getelementptr inbounds %main.T, ptr %37, i32 0, i32 3
|
||||
store i64 10, ptr %38, align 4
|
||||
store i64 20, ptr %39, align 4
|
||||
%42 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %42, i32 0, i32 0
|
||||
store ptr @1, ptr %43, align 8
|
||||
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %42, i32 0, i32 1
|
||||
store i64 5, ptr %44, align 4
|
||||
%45 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %42, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %45, ptr %40, align 8
|
||||
%46 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%47 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %46, i32 0, i32 0
|
||||
store ptr @2, ptr %47, align 8
|
||||
%48 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %46, i32 0, i32 1
|
||||
store i64 2, ptr %48, align 4
|
||||
%49 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %46, align 8
|
||||
%50 = load ptr, ptr @_llgo_string, align 8
|
||||
%51 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %49, ptr %51, align 8
|
||||
%52 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%53 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %52, i32 0, i32 0
|
||||
store ptr %50, ptr %53, align 8
|
||||
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %52, i32 0, i32 1
|
||||
store ptr %51, ptr %54, align 8
|
||||
%55 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %52, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %55, ptr %41, align 8
|
||||
call void @main.assert(i1 true)
|
||||
%56 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer)
|
||||
%57 = and i1 true, %56
|
||||
%58 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.eface" zeroinitializer)
|
||||
%59 = and i1 %57, %58
|
||||
call void @main.assert(i1 %59)
|
||||
%60 = load %main.T, ptr %1, align 8
|
||||
%61 = load %main.T, ptr %19, align 8
|
||||
%62 = extractvalue %main.T %60, 0
|
||||
%63 = extractvalue %main.T %61, 0
|
||||
%64 = icmp eq i64 %62, %63
|
||||
%65 = and i1 true, %64
|
||||
%66 = extractvalue %main.T %60, 1
|
||||
%67 = extractvalue %main.T %61, 1
|
||||
%68 = icmp eq i64 %66, %67
|
||||
%69 = and i1 %65, %68
|
||||
%70 = extractvalue %main.T %60, 2
|
||||
%71 = extractvalue %main.T %61, 2
|
||||
%72 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %70, %"github.com/goplus/llgo/internal/runtime.String" %71)
|
||||
%73 = and i1 %69, %72
|
||||
%74 = extractvalue %main.T %60, 3
|
||||
%75 = extractvalue %main.T %61, 3
|
||||
%76 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %74, %"github.com/goplus/llgo/internal/runtime.eface" %75)
|
||||
%77 = and i1 %73, %76
|
||||
call void @main.assert(i1 %77)
|
||||
%78 = load %main.T, ptr %1, align 8
|
||||
%79 = load %main.T, ptr %37, align 8
|
||||
%80 = extractvalue %main.T %78, 0
|
||||
%81 = extractvalue %main.T %79, 0
|
||||
%82 = icmp eq i64 %80, %81
|
||||
%83 = and i1 true, %82
|
||||
%84 = extractvalue %main.T %78, 1
|
||||
%85 = extractvalue %main.T %79, 1
|
||||
%86 = icmp eq i64 %84, %85
|
||||
%87 = and i1 %83, %86
|
||||
%88 = extractvalue %main.T %78, 2
|
||||
%89 = extractvalue %main.T %79, 2
|
||||
%90 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %88, %"github.com/goplus/llgo/internal/runtime.String" %89)
|
||||
%91 = and i1 %87, %90
|
||||
%92 = extractvalue %main.T %78, 3
|
||||
%93 = extractvalue %main.T %79, 3
|
||||
%94 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %92, %"github.com/goplus/llgo/internal/runtime.eface" %93)
|
||||
%95 = and i1 %91, %94
|
||||
%96 = xor i1 %95, true
|
||||
call void @main.assert(i1 %96)
|
||||
%97 = load %main.T, ptr %19, align 8
|
||||
%98 = load %main.T, ptr %37, align 8
|
||||
%99 = extractvalue %main.T %97, 0
|
||||
%100 = extractvalue %main.T %98, 0
|
||||
%101 = icmp eq i64 %99, %100
|
||||
%102 = and i1 true, %101
|
||||
%103 = extractvalue %main.T %97, 1
|
||||
%104 = extractvalue %main.T %98, 1
|
||||
%105 = icmp eq i64 %103, %104
|
||||
%106 = and i1 %102, %105
|
||||
%107 = extractvalue %main.T %97, 2
|
||||
%108 = extractvalue %main.T %98, 2
|
||||
%109 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %107, %"github.com/goplus/llgo/internal/runtime.String" %108)
|
||||
%110 = and i1 %106, %109
|
||||
%111 = extractvalue %main.T %97, 3
|
||||
%112 = extractvalue %main.T %98, 3
|
||||
%113 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %111, %"github.com/goplus/llgo/internal/runtime.eface" %112)
|
||||
%114 = and i1 %110, %113
|
||||
%115 = xor i1 %114, true
|
||||
call void @main.assert(i1 %115)
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#4"() {
|
||||
_llgo_0:
|
||||
%0 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24)
|
||||
%1 = getelementptr inbounds i64, ptr %0, i64 0
|
||||
store i64 1, ptr %1, align 4
|
||||
%2 = getelementptr inbounds i64, ptr %0, i64 1
|
||||
store i64 2, ptr %2, align 4
|
||||
%3 = getelementptr inbounds i64, ptr %0, i64 2
|
||||
store i64 3, ptr %3, align 4
|
||||
%4 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %4, i32 0, i32 0
|
||||
store ptr %0, ptr %5, align 8
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %4, i32 0, i32 1
|
||||
store i64 3, ptr %6, align 4
|
||||
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %4, i32 0, i32 2
|
||||
store i64 3, ptr %7, align 4
|
||||
%8 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %4, align 8
|
||||
%9 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16)
|
||||
%10 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %9, i64 8, i64 2, i64 0, i64 2, i64 2)
|
||||
%11 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16)
|
||||
%12 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %11, i64 8, i64 2, i64 0, i64 0, i64 2)
|
||||
call void @main.assert(i1 true)
|
||||
%13 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, 0
|
||||
%14 = icmp ne ptr %13, null
|
||||
call void @main.assert(i1 %14)
|
||||
%15 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %10, 0
|
||||
%16 = icmp ne ptr %15, null
|
||||
call void @main.assert(i1 %16)
|
||||
%17 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %12, 0
|
||||
%18 = icmp ne ptr %17, null
|
||||
call void @main.assert(i1 %18)
|
||||
call void @main.assert(i1 true)
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#5"() {
|
||||
_llgo_0:
|
||||
%0 = load ptr, ptr @_llgo_int, align 8
|
||||
%1 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %0, i32 0, i32 6
|
||||
%2 = load i8, ptr %1, align 1
|
||||
%3 = or i8 %2, 32
|
||||
store i8 %3, ptr %1, align 1
|
||||
%4 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %4, i32 0, i32 0
|
||||
store ptr %0, ptr %5, align 8
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %4, i32 0, i32 1
|
||||
store ptr inttoptr (i64 100 to ptr), ptr %6, align 8
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %4, align 8
|
||||
%8 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
%9 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
store {} zeroinitializer, ptr %9, align 1
|
||||
%10 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, i32 0, i32 0
|
||||
store ptr %8, ptr %11, align 8
|
||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, i32 0, i32 1
|
||||
store ptr %9, ptr %12, align 8
|
||||
%13 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, align 8
|
||||
%14 = alloca %main.T, align 8
|
||||
%15 = call ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr %14, i64 48)
|
||||
%16 = getelementptr inbounds %main.T, ptr %15, i32 0, i32 0
|
||||
%17 = getelementptr inbounds %main.T, ptr %15, i32 0, i32 1
|
||||
%18 = getelementptr inbounds %main.T, ptr %15, i32 0, i32 2
|
||||
%19 = getelementptr inbounds %main.T, ptr %15, i32 0, i32 3
|
||||
store i64 10, ptr %16, align 4
|
||||
store i64 20, ptr %17, align 4
|
||||
%20 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%21 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %20, i32 0, i32 0
|
||||
store ptr @1, ptr %21, align 8
|
||||
%22 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %20, i32 0, i32 1
|
||||
store i64 5, ptr %22, align 4
|
||||
%23 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %20, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %23, ptr %18, align 8
|
||||
%24 = load ptr, ptr @_llgo_int, align 8
|
||||
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %24, i32 0, i32 6
|
||||
%26 = load i8, ptr %25, align 1
|
||||
%27 = or i8 %26, 32
|
||||
store i8 %27, ptr %25, align 1
|
||||
%28 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %28, i32 0, i32 0
|
||||
store ptr %24, ptr %29, align 8
|
||||
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %28, i32 0, i32 1
|
||||
store ptr inttoptr (i64 1 to ptr), ptr %30, align 8
|
||||
%31 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %28, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %31, ptr %19, align 8
|
||||
%32 = load %main.T, ptr %15, align 8
|
||||
%33 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%34 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
store %main.T %32, ptr %34, align 8
|
||||
%35 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %35, i32 0, i32 0
|
||||
store ptr %33, ptr %36, align 8
|
||||
%37 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %35, i32 0, i32 1
|
||||
store ptr %34, ptr %37, align 8
|
||||
%38 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %35, align 8
|
||||
%39 = alloca %main.T, align 8
|
||||
%40 = call ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr %39, i64 48)
|
||||
%41 = getelementptr inbounds %main.T, ptr %40, i32 0, i32 0
|
||||
%42 = getelementptr inbounds %main.T, ptr %40, i32 0, i32 1
|
||||
%43 = getelementptr inbounds %main.T, ptr %40, i32 0, i32 2
|
||||
%44 = getelementptr inbounds %main.T, ptr %40, i32 0, i32 3
|
||||
store i64 10, ptr %41, align 4
|
||||
store i64 20, ptr %42, align 4
|
||||
%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 @1, ptr %46, align 8
|
||||
%47 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %45, i32 0, i32 1
|
||||
store i64 5, ptr %47, align 4
|
||||
%48 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %45, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %48, ptr %43, align 8
|
||||
%49 = load ptr, ptr @_llgo_int, align 8
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %49, i32 0, i32 6
|
||||
%51 = load i8, ptr %50, align 1
|
||||
%52 = or i8 %51, 32
|
||||
store i8 %52, ptr %50, align 1
|
||||
%53 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %53, i32 0, i32 0
|
||||
store ptr %49, ptr %54, align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %53, i32 0, i32 1
|
||||
store ptr inttoptr (i64 1 to ptr), ptr %55, align 8
|
||||
%56 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %53, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %56, ptr %44, align 8
|
||||
%57 = alloca %main.T, align 8
|
||||
%58 = call ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr %57, i64 48)
|
||||
%59 = getelementptr inbounds %main.T, ptr %58, i32 0, i32 0
|
||||
%60 = getelementptr inbounds %main.T, ptr %58, i32 0, i32 1
|
||||
%61 = getelementptr inbounds %main.T, ptr %58, i32 0, i32 2
|
||||
%62 = getelementptr inbounds %main.T, ptr %58, i32 0, i32 3
|
||||
store i64 10, ptr %59, align 4
|
||||
store i64 20, ptr %60, align 4
|
||||
%63 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %63, i32 0, i32 0
|
||||
store ptr @1, ptr %64, align 8
|
||||
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %63, i32 0, i32 1
|
||||
store i64 5, ptr %65, align 4
|
||||
%66 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %63, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %66, ptr %61, 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 @2, ptr %68, align 8
|
||||
%69 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %67, i32 0, i32 1
|
||||
store i64 2, ptr %69, align 4
|
||||
%70 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %67, align 8
|
||||
%71 = load ptr, ptr @_llgo_string, align 8
|
||||
%72 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %70, ptr %72, align 8
|
||||
%73 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%74 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %73, i32 0, i32 0
|
||||
store ptr %71, ptr %74, align 8
|
||||
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %73, i32 0, i32 1
|
||||
store ptr %72, ptr %75, align 8
|
||||
%76 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %73, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %76, ptr %62, align 8
|
||||
%77 = load ptr, ptr @_llgo_int, align 8
|
||||
%78 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %77, i32 0, i32 6
|
||||
%79 = load i8, ptr %78, align 1
|
||||
%80 = or i8 %79, 32
|
||||
store i8 %80, ptr %78, align 1
|
||||
%81 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%82 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %81, i32 0, i32 0
|
||||
store ptr %77, ptr %82, align 8
|
||||
%83 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %81, i32 0, i32 1
|
||||
store ptr inttoptr (i64 100 to ptr), ptr %83, align 8
|
||||
%84 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %81, align 8
|
||||
%85 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %7, %"github.com/goplus/llgo/internal/runtime.eface" %84)
|
||||
call void @main.assert(i1 %85)
|
||||
%86 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
%87 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
store {} zeroinitializer, ptr %87, align 1
|
||||
%88 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%89 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %88, i32 0, i32 0
|
||||
store ptr %86, ptr %89, align 8
|
||||
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %88, i32 0, i32 1
|
||||
store ptr %87, ptr %90, align 8
|
||||
%91 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %88, align 8
|
||||
%92 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %13, %"github.com/goplus/llgo/internal/runtime.eface" %91)
|
||||
call void @main.assert(i1 %92)
|
||||
%93 = load ptr, ptr @_llgo_main.N, align 8
|
||||
%94 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
store %main.N zeroinitializer, ptr %94, align 1
|
||||
%95 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %95, i32 0, i32 0
|
||||
store ptr %93, ptr %96, align 8
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %95, i32 0, i32 1
|
||||
store ptr %94, ptr %97, align 8
|
||||
%98 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %95, align 8
|
||||
%99 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %13, %"github.com/goplus/llgo/internal/runtime.eface" %98)
|
||||
%100 = xor i1 %99, true
|
||||
call void @main.assert(i1 %100)
|
||||
%101 = load %main.T, ptr %40, align 8
|
||||
%102 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%103 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
store %main.T %101, ptr %103, align 8
|
||||
%104 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%105 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %104, i32 0, i32 0
|
||||
store ptr %102, ptr %105, align 8
|
||||
%106 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %104, i32 0, i32 1
|
||||
store ptr %103, ptr %106, align 8
|
||||
%107 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %104, align 8
|
||||
%108 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %38, %"github.com/goplus/llgo/internal/runtime.eface" %107)
|
||||
call void @main.assert(i1 %108)
|
||||
%109 = load %main.T, ptr %58, align 8
|
||||
%110 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%111 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
store %main.T %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
|
||||
store ptr %111, ptr %114, align 8
|
||||
%115 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %112, align 8
|
||||
%116 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %38, %"github.com/goplus/llgo/internal/runtime.eface" %115)
|
||||
%117 = xor i1 %116, true
|
||||
call void @main.assert(i1 %117)
|
||||
ret void
|
||||
}
|
||||
|
||||
define i32 @main(i32 %0, ptr %1) {
|
||||
_llgo_0:
|
||||
store i32 %0, ptr @__llgo_argc, align 4
|
||||
store ptr %1, ptr @__llgo_argv, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
call void @main.init()
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define void @main.test() {
|
||||
_llgo_0:
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init$after"() {
|
||||
_llgo_0:
|
||||
%0 = load ptr, ptr @_llgo_string, align 8
|
||||
%1 = icmp eq ptr %0, null
|
||||
br i1 %1, label %_llgo_1, label %_llgo_2
|
||||
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %2, ptr @_llgo_string, align 8
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%3 = load ptr, ptr @_llgo_int, align 8
|
||||
%4 = icmp eq ptr %3, null
|
||||
br i1 %4, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 2)
|
||||
store ptr %5, ptr @_llgo_int, align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %5, i32 0, i32 6
|
||||
%7 = load i8, ptr %6, align 1
|
||||
%8 = or i8 %7, 32
|
||||
store i8 %8, ptr %6, align 1
|
||||
%9 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
%10 = icmp eq ptr %9, null
|
||||
br i1 %10, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%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 @3, ptr %12, align 8
|
||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %11, i32 0, i32 1
|
||||
store i64 4, 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.AllocU"(i64 0)
|
||||
%16 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %16, i32 0, i32 0
|
||||
store ptr %15, ptr %17, align 8
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %16, i32 0, i32 1
|
||||
store i64 0, ptr %18, align 4
|
||||
%19 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %16, i32 0, i32 2
|
||||
store i64 0, ptr %19, align 4
|
||||
%20 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %16, align 8
|
||||
%21 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %14, i64 0, %"github.com/goplus/llgo/internal/runtime.Slice" %20)
|
||||
store ptr %21, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
%22 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%23 = icmp eq ptr %22, null
|
||||
br i1 %23, label %_llgo_7, label %_llgo_8
|
||||
|
||||
_llgo_7: ; preds = %_llgo_6
|
||||
%24 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 25, i64 0, i64 0)
|
||||
store ptr %24, ptr @_llgo_main.T, align 8
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%25 = load ptr, ptr @_llgo_int, align 8
|
||||
%26 = load ptr, ptr @_llgo_int, align 8
|
||||
%27 = load ptr, ptr @_llgo_string, align 8
|
||||
%28 = load ptr, ptr @_llgo_any, align 8
|
||||
%29 = icmp eq ptr %28, null
|
||||
br i1 %29, label %_llgo_9, label %_llgo_10
|
||||
|
||||
_llgo_9: ; preds = %_llgo_8
|
||||
%30 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%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 %30, ptr %32, align 8
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %31, i32 0, i32 1
|
||||
store i64 0, ptr %33, align 4
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %31, i32 0, i32 2
|
||||
store i64 0, ptr %34, align 4
|
||||
%35 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %31, align 8
|
||||
%36 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%37 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %36, i32 0, i32 0
|
||||
store ptr @3, ptr %37, align 8
|
||||
%38 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %36, i32 0, i32 1
|
||||
store i64 4, ptr %38, align 4
|
||||
%39 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %36, align 8
|
||||
%40 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%41 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %40, i32 0, i32 0
|
||||
store ptr null, ptr %41, align 8
|
||||
%42 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %40, i32 0, i32 1
|
||||
store i64 0, ptr %42, align 4
|
||||
%43 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %40, align 8
|
||||
%44 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %39, %"github.com/goplus/llgo/internal/runtime.String" %43, %"github.com/goplus/llgo/internal/runtime.Slice" %35)
|
||||
store ptr %44, ptr @_llgo_any, align 8
|
||||
br label %_llgo_10
|
||||
|
||||
_llgo_10: ; preds = %_llgo_9, %_llgo_8
|
||||
%45 = load ptr, ptr @_llgo_any, align 8
|
||||
%46 = load ptr, ptr @"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk", align 8
|
||||
%47 = icmp eq ptr %46, null
|
||||
br i1 %47, label %_llgo_11, label %_llgo_12
|
||||
|
||||
_llgo_11: ; preds = %_llgo_10
|
||||
%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 @4, ptr %49, align 8
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %48, i32 0, i32 1
|
||||
store i64 1, ptr %50, align 4
|
||||
%51 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %48, align 8
|
||||
%52 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%53 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %52, i32 0, i32 0
|
||||
store ptr null, ptr %53, align 8
|
||||
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %52, i32 0, i32 1
|
||||
store i64 0, ptr %54, align 4
|
||||
%55 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %52, align 8
|
||||
%56 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %51, ptr %25, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %55, i1 false)
|
||||
%57 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %57, i32 0, i32 0
|
||||
store ptr @5, ptr %58, align 8
|
||||
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %57, i32 0, i32 1
|
||||
store i64 1, ptr %59, align 4
|
||||
%60 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %57, align 8
|
||||
%61 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%62 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %61, i32 0, i32 0
|
||||
store ptr null, ptr %62, align 8
|
||||
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %61, i32 0, i32 1
|
||||
store i64 0, ptr %63, align 4
|
||||
%64 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %61, align 8
|
||||
%65 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %60, ptr %26, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %64, i1 false)
|
||||
%66 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %66, i32 0, i32 0
|
||||
store ptr @6, ptr %67, align 8
|
||||
%68 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %66, i32 0, i32 1
|
||||
store i64 1, ptr %68, align 4
|
||||
%69 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %66, align 8
|
||||
%70 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%71 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %70, i32 0, i32 0
|
||||
store ptr null, ptr %71, align 8
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %70, i32 0, i32 1
|
||||
store i64 0, ptr %72, align 4
|
||||
%73 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %70, align 8
|
||||
%74 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %69, ptr %27, i64 16, %"github.com/goplus/llgo/internal/runtime.String" %73, i1 false)
|
||||
%75 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %75, i32 0, i32 0
|
||||
store ptr @7, ptr %76, align 8
|
||||
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %75, i32 0, i32 1
|
||||
store i64 1, ptr %77, align 4
|
||||
%78 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %75, align 8
|
||||
%79 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %79, i32 0, i32 0
|
||||
store ptr null, ptr %80, align 8
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %79, i32 0, i32 1
|
||||
store i64 0, ptr %81, align 4
|
||||
%82 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %79, align 8
|
||||
%83 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %78, ptr %45, i64 32, %"github.com/goplus/llgo/internal/runtime.String" %82, i1 false)
|
||||
%84 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%85 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %84, i32 0, i32 0
|
||||
store ptr @3, ptr %85, align 8
|
||||
%86 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %84, i32 0, i32 1
|
||||
store i64 4, ptr %86, align 4
|
||||
%87 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %84, align 8
|
||||
%88 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224)
|
||||
%89 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %88, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %56, ptr %89, align 8
|
||||
%90 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %88, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %65, ptr %90, align 8
|
||||
%91 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %88, i64 2
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %74, ptr %91, align 8
|
||||
%92 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %88, i64 3
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %83, ptr %92, align 8
|
||||
%93 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%94 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %93, i32 0, i32 0
|
||||
store ptr %88, ptr %94, align 8
|
||||
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %93, i32 0, i32 1
|
||||
store i64 4, ptr %95, align 4
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %93, i32 0, i32 2
|
||||
store i64 4, ptr %96, align 4
|
||||
%97 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %93, align 8
|
||||
%98 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %87, i64 48, %"github.com/goplus/llgo/internal/runtime.Slice" %97)
|
||||
store ptr %98, ptr @"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk", align 8
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_10
|
||||
%99 = load ptr, ptr @"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk", align 8
|
||||
br i1 %23, label %_llgo_13, label %_llgo_14
|
||||
|
||||
_llgo_13: ; preds = %_llgo_12
|
||||
%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 @3, 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 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%105 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %104, i32 0, i32 0
|
||||
store ptr @8, ptr %105, align 8
|
||||
%106 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %104, i32 0, i32 1
|
||||
store i64 6, ptr %106, align 4
|
||||
%107 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %104, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %24, %"github.com/goplus/llgo/internal/runtime.String" %103, %"github.com/goplus/llgo/internal/runtime.String" %107, ptr %99, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
||||
br label %_llgo_14
|
||||
|
||||
_llgo_14: ; preds = %_llgo_13, %_llgo_12
|
||||
%108 = load ptr, ptr @_llgo_main.N, align 8
|
||||
%109 = icmp eq ptr %108, null
|
||||
br i1 %109, label %_llgo_15, label %_llgo_16
|
||||
|
||||
_llgo_15: ; preds = %_llgo_14
|
||||
%110 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 25, i64 0, i64 0)
|
||||
store ptr %110, ptr @_llgo_main.N, align 8
|
||||
br label %_llgo_16
|
||||
|
||||
_llgo_16: ; preds = %_llgo_15, %_llgo_14
|
||||
%111 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
br i1 %109, label %_llgo_17, label %_llgo_18
|
||||
|
||||
_llgo_17: ; preds = %_llgo_16
|
||||
%112 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %112, i32 0, i32 0
|
||||
store ptr @3, ptr %113, align 8
|
||||
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %112, i32 0, i32 1
|
||||
store i64 4, ptr %114, align 4
|
||||
%115 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %112, align 8
|
||||
%116 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%117 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %116, i32 0, i32 0
|
||||
store ptr @9, ptr %117, align 8
|
||||
%118 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %116, i32 0, i32 1
|
||||
store i64 6, ptr %118, align 4
|
||||
%119 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %116, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %110, %"github.com/goplus/llgo/internal/runtime.String" %115, %"github.com/goplus/llgo/internal/runtime.String" %119, ptr %111, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
||||
br label %_llgo_18
|
||||
|
||||
_llgo_18: ; preds = %_llgo_17, %_llgo_16
|
||||
ret void
|
||||
}
|
||||
|
||||
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.Panic"(%"github.com/goplus/llgo/internal/runtime.eface")
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64)
|
||||
|
||||
define void @"main.init#1$2"(ptr %0) {
|
||||
_llgo_0:
|
||||
%1 = load { ptr }, ptr %0, align 8
|
||||
%2 = extractvalue { ptr } %1, 0
|
||||
%3 = load i64, ptr %2, align 4
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret void
|
||||
}
|
||||
|
||||
define i64 @"main.init#1$1"(i64 %0, i64 %1) {
|
||||
_llgo_0:
|
||||
%2 = add i64 %0, %1
|
||||
ret i64 %2
|
||||
}
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr, i64)
|
||||
|
||||
declare i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String")
|
||||
|
||||
declare i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface", %"github.com/goplus/llgo/internal/runtime.eface")
|
||||
|
||||
declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr, i64, i64, i64, i64, i64)
|
||||
|
||||
declare 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.NewNamed"(i64, i64, i64)
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice")
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice")
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64)
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8)
|
||||
@@ -9,25 +9,20 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr }
|
||||
%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@"*_llgo_main.errorString" = global ptr null
|
||||
@_llgo_main.errorString = global ptr null
|
||||
@"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ" = global ptr null
|
||||
@_llgo_string = linkonce global ptr null
|
||||
@0 = private unnamed_addr constant [2 x i8] c"s\00", align 1
|
||||
@1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@2 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@3 = private unnamed_addr constant [6 x i8] c"Error\00", align 1
|
||||
@"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to" = linkonce global ptr null
|
||||
@4 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@5 = private unnamed_addr constant [17 x i8] c"main.errorString\00", align 1
|
||||
@"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU" = linkonce global ptr null
|
||||
@6 = private unnamed_addr constant [6 x i8] c"Error\00", align 1
|
||||
@7 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@8 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@9 = private unnamed_addr constant [9 x i8] c"an error\00", align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@"*_llgo_main.errorString" = global ptr null, align 8
|
||||
@_llgo_main.errorString = global ptr null, align 8
|
||||
@"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ" = global ptr null, align 8
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [1 x i8] c"s", align 1
|
||||
@1 = private unnamed_addr constant [4 x i8] c"main", align 1
|
||||
@2 = private unnamed_addr constant [5 x i8] c"Error", align 1
|
||||
@"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to" = linkonce global ptr null, align 8
|
||||
@3 = private unnamed_addr constant [16 x i8] c"main.errorString", align 1
|
||||
@"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU" = linkonce global ptr null, align 8
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@4 = private unnamed_addr constant [8 x i8] c"an error", align 1
|
||||
|
||||
define %"github.com/goplus/llgo/internal/runtime.iface" @main.New(%"github.com/goplus/llgo/internal/runtime.String" %0) {
|
||||
_llgo_0:
|
||||
@@ -75,7 +70,7 @@ _llgo_0:
|
||||
call void @main.init()
|
||||
%2 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 0
|
||||
store ptr @9, ptr %3, align 8
|
||||
store ptr @4, ptr %3, align 8
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 1
|
||||
store i64 8, ptr %4, align 4
|
||||
%5 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8
|
||||
@@ -125,14 +120,14 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%8 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %5, align 8
|
||||
%9 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %9, i32 0, i32 0
|
||||
store ptr @1, ptr %10, align 8
|
||||
store ptr null, ptr %10, align 8
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %9, i32 0, i32 1
|
||||
store i64 0, ptr %11, align 4
|
||||
%12 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %9, align 8
|
||||
%13 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %8, ptr %4, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %12, i1 false)
|
||||
%14 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %14, i32 0, i32 0
|
||||
store ptr @2, ptr %15, align 8
|
||||
store ptr @1, ptr %15, align 8
|
||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %14, i32 0, i32 1
|
||||
store i64 4, ptr %16, align 4
|
||||
%17 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %14, align 8
|
||||
@@ -152,7 +147,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%26 = load ptr, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8
|
||||
%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
|
||||
store ptr @2, ptr %28, align 8
|
||||
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %27, i32 0, i32 1
|
||||
store i64 5, ptr %29, align 4
|
||||
%30 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %27, align 8
|
||||
@@ -211,13 +206,13 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%61 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %57, align 8
|
||||
%62 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %62, i32 0, i32 0
|
||||
store ptr @4, ptr %63, align 8
|
||||
store ptr @1, ptr %63, align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %62, i32 0, i32 1
|
||||
store i64 4, ptr %64, align 4
|
||||
%65 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %62, align 8
|
||||
%66 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %66, i32 0, i32 0
|
||||
store ptr @5, ptr %67, align 8
|
||||
store ptr @3, ptr %67, align 8
|
||||
%68 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %66, i32 0, i32 1
|
||||
store i64 16, ptr %68, align 4
|
||||
%69 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %66, align 8
|
||||
@@ -233,7 +228,7 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%75 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %75, i32 0, i32 0
|
||||
store ptr @6, ptr %76, align 8
|
||||
store ptr @2, ptr %76, align 8
|
||||
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %75, i32 0, i32 1
|
||||
store i64 5, ptr %77, align 4
|
||||
%78 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %75, align 8
|
||||
@@ -256,13 +251,13 @@ _llgo_5: ; preds = %_llgo_4
|
||||
%89 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %85, align 8
|
||||
%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 @7, ptr %91, align 8
|
||||
store ptr @1, 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 @8, ptr %95, align 8
|
||||
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
|
||||
|
||||
@@ -3,11 +3,11 @@ source_filename = "main"
|
||||
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@0 = private unnamed_addr constant [17 x i8] c"Hello, goroutine\00", align 1
|
||||
@1 = private unnamed_addr constant [2 x i8] c".\00", align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [16 x i8] c"Hello, goroutine", align 1
|
||||
@1 = private unnamed_addr constant [1 x i8] c".", align 1
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -11,58 +11,41 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr }
|
||||
%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@_llgo_main.I0 = linkonce global ptr null
|
||||
@0 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@1 = private unnamed_addr constant [8 x i8] c"main.I0\00", align 1
|
||||
@2 = private unnamed_addr constant [22 x i8] c"nil i0.(I0) succeeded\00", align 1
|
||||
@_llgo_string = linkonce global ptr null
|
||||
@_llgo_main.I1 = linkonce global ptr null
|
||||
@"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac" = linkonce global ptr null
|
||||
@3 = private unnamed_addr constant [7 x i8] c"main.f\00", align 1
|
||||
@4 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@5 = private unnamed_addr constant [8 x i8] c"main.I1\00", align 1
|
||||
@"main.iface$brpgdLtIeRlPi8QUoTgPCXzlehUkncg7v9aITo-GsF4" = global ptr null
|
||||
@6 = private unnamed_addr constant [7 x i8] c"main.f\00", align 1
|
||||
@7 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@8 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@9 = private unnamed_addr constant [22 x i8] c"nil i1.(I1) succeeded\00", align 1
|
||||
@_llgo_main.I2 = linkonce global ptr null
|
||||
@10 = private unnamed_addr constant [7 x i8] c"main.f\00", align 1
|
||||
@11 = private unnamed_addr constant [7 x i8] c"main.g\00", align 1
|
||||
@12 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@13 = private unnamed_addr constant [8 x i8] c"main.I2\00", align 1
|
||||
@"main.iface$gZBF8fFlqIMZ9M6lT2VWPyc3eu5Co6j0WoKGIEgDPAw" = global ptr null
|
||||
@14 = private unnamed_addr constant [7 x i8] c"main.f\00", align 1
|
||||
@15 = private unnamed_addr constant [7 x i8] c"main.g\00", align 1
|
||||
@16 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@17 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@18 = private unnamed_addr constant [22 x i8] c"nil i2.(I2) succeeded\00", align 1
|
||||
@_llgo_main.C1 = linkonce global ptr null
|
||||
@"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw" = linkonce global ptr null
|
||||
@19 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@20 = private unnamed_addr constant [2 x i8] c"f\00", align 1
|
||||
@21 = private unnamed_addr constant [7 x i8] c"main.f\00", align 1
|
||||
@22 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@23 = private unnamed_addr constant [8 x i8] c"main.C1\00", align 1
|
||||
@24 = private unnamed_addr constant [18 x i8] c"C1 i1.(I0) failed\00", align 1
|
||||
@25 = private unnamed_addr constant [18 x i8] c"C1 i1.(I1) failed\00", align 1
|
||||
@26 = private unnamed_addr constant [21 x i8] c"C1 i1.(I2) succeeded\00", align 1
|
||||
@_llgo_main.C2 = linkonce global ptr null
|
||||
@27 = private unnamed_addr constant [2 x i8] c"f\00", align 1
|
||||
@28 = private unnamed_addr constant [7 x i8] c"main.f\00", align 1
|
||||
@29 = private unnamed_addr constant [2 x i8] c"g\00", align 1
|
||||
@30 = private unnamed_addr constant [7 x i8] c"main.g\00", align 1
|
||||
@31 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@32 = private unnamed_addr constant [8 x i8] c"main.C2\00", align 1
|
||||
@33 = private unnamed_addr constant [18 x i8] c"C2 i1.(I0) failed\00", align 1
|
||||
@34 = private unnamed_addr constant [18 x i8] c"C2 i1.(I1) failed\00", align 1
|
||||
@35 = private unnamed_addr constant [18 x i8] c"C2 i1.(I2) failed\00", align 1
|
||||
@36 = private unnamed_addr constant [18 x i8] c"C1 I0(i1) was nil\00", align 1
|
||||
@37 = private unnamed_addr constant [18 x i8] c"C1 I1(i1) was nil\00", align 1
|
||||
@38 = private unnamed_addr constant [5 x i8] c"pass\00", align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@_llgo_main.I0 = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [4 x i8] c"main", align 1
|
||||
@1 = private unnamed_addr constant [7 x i8] c"main.I0", align 1
|
||||
@2 = private unnamed_addr constant [21 x i8] c"nil i0.(I0) succeeded", align 1
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
@_llgo_main.I1 = linkonce global ptr null, align 8
|
||||
@"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac" = linkonce global ptr null, align 8
|
||||
@3 = private unnamed_addr constant [6 x i8] c"main.f", align 1
|
||||
@4 = private unnamed_addr constant [7 x i8] c"main.I1", align 1
|
||||
@"main.iface$brpgdLtIeRlPi8QUoTgPCXzlehUkncg7v9aITo-GsF4" = global ptr null, align 8
|
||||
@5 = private unnamed_addr constant [21 x i8] c"nil i1.(I1) succeeded", align 1
|
||||
@_llgo_main.I2 = linkonce global ptr null, align 8
|
||||
@6 = private unnamed_addr constant [6 x i8] c"main.g", align 1
|
||||
@7 = private unnamed_addr constant [7 x i8] c"main.I2", align 1
|
||||
@"main.iface$gZBF8fFlqIMZ9M6lT2VWPyc3eu5Co6j0WoKGIEgDPAw" = global ptr null, align 8
|
||||
@8 = private unnamed_addr constant [21 x i8] c"nil i2.(I2) succeeded", align 1
|
||||
@_llgo_main.C1 = linkonce global ptr null, align 8
|
||||
@"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw" = linkonce global ptr null, align 8
|
||||
@9 = private unnamed_addr constant [1 x i8] c"f", align 1
|
||||
@10 = private unnamed_addr constant [7 x i8] c"main.C1", align 1
|
||||
@11 = private unnamed_addr constant [17 x i8] c"C1 i1.(I0) failed", align 1
|
||||
@12 = private unnamed_addr constant [17 x i8] c"C1 i1.(I1) failed", align 1
|
||||
@13 = private unnamed_addr constant [20 x i8] c"C1 i1.(I2) succeeded", align 1
|
||||
@_llgo_main.C2 = linkonce global ptr null, align 8
|
||||
@14 = private unnamed_addr constant [1 x i8] c"g", align 1
|
||||
@15 = private unnamed_addr constant [7 x i8] c"main.C2", align 1
|
||||
@16 = private unnamed_addr constant [17 x i8] c"C2 i1.(I0) failed", align 1
|
||||
@17 = private unnamed_addr constant [17 x i8] c"C2 i1.(I1) failed", align 1
|
||||
@18 = private unnamed_addr constant [17 x i8] c"C2 i1.(I2) failed", align 1
|
||||
@19 = private unnamed_addr constant [17 x i8] c"C1 I0(i1) was nil", align 1
|
||||
@20 = private unnamed_addr constant [17 x i8] c"C1 I1(i1) was nil", align 1
|
||||
@21 = private unnamed_addr constant [4 x i8] c"pass", align 1
|
||||
|
||||
define void @main.C1.f(%main.C1 %0) {
|
||||
_llgo_0:
|
||||
@@ -152,7 +135,7 @@ _llgo_2: ; preds = %_llgo_25
|
||||
_llgo_3: ; preds = %_llgo_28
|
||||
%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 @9, ptr %18, align 8
|
||||
store ptr @5, ptr %18, align 8
|
||||
%19 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %17, i32 0, i32 1
|
||||
store i64 21, ptr %19, align 4
|
||||
%20 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %17, align 8
|
||||
@@ -177,7 +160,7 @@ _llgo_4: ; preds = %_llgo_28
|
||||
_llgo_5: ; preds = %_llgo_31
|
||||
%30 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %30, i32 0, i32 0
|
||||
store ptr @18, ptr %31, align 8
|
||||
store ptr @8, ptr %31, align 8
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %30, i32 0, i32 1
|
||||
store i64 21, ptr %32, align 4
|
||||
%33 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %30, align 8
|
||||
@@ -236,7 +219,7 @@ _llgo_6: ; preds = %_llgo_31
|
||||
_llgo_7: ; preds = %_llgo_34
|
||||
%68 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%69 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %68, i32 0, i32 0
|
||||
store ptr @24, ptr %69, align 8
|
||||
store ptr @11, ptr %69, align 8
|
||||
%70 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %68, i32 0, i32 1
|
||||
store i64 17, ptr %70, align 4
|
||||
%71 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %68, align 8
|
||||
@@ -261,7 +244,7 @@ _llgo_8: ; preds = %_llgo_34
|
||||
_llgo_9: ; preds = %_llgo_37
|
||||
%81 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%82 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %81, i32 0, i32 0
|
||||
store ptr @25, ptr %82, align 8
|
||||
store ptr @12, ptr %82, align 8
|
||||
%83 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %81, i32 0, i32 1
|
||||
store i64 17, ptr %83, align 4
|
||||
%84 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %81, align 8
|
||||
@@ -286,7 +269,7 @@ _llgo_10: ; preds = %_llgo_37
|
||||
_llgo_11: ; preds = %_llgo_40
|
||||
%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 @26, ptr %95, align 8
|
||||
store ptr @13, ptr %95, align 8
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %94, i32 0, i32 1
|
||||
store i64 20, ptr %96, align 4
|
||||
%97 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %94, align 8
|
||||
@@ -322,7 +305,7 @@ _llgo_12: ; preds = %_llgo_40
|
||||
_llgo_13: ; preds = %_llgo_43
|
||||
%115 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%116 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %115, i32 0, i32 0
|
||||
store ptr @33, ptr %116, align 8
|
||||
store ptr @16, ptr %116, align 8
|
||||
%117 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %115, i32 0, i32 1
|
||||
store i64 17, ptr %117, align 4
|
||||
%118 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %115, align 8
|
||||
@@ -347,7 +330,7 @@ _llgo_14: ; preds = %_llgo_43
|
||||
_llgo_15: ; preds = %_llgo_46
|
||||
%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 @34, ptr %129, align 8
|
||||
store ptr @17, ptr %129, align 8
|
||||
%130 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %128, i32 0, i32 1
|
||||
store i64 17, ptr %130, align 4
|
||||
%131 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %128, align 8
|
||||
@@ -372,7 +355,7 @@ _llgo_16: ; preds = %_llgo_46
|
||||
_llgo_17: ; preds = %_llgo_49
|
||||
%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 @35, ptr %142, align 8
|
||||
store ptr @18, ptr %142, align 8
|
||||
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %141, i32 0, i32 1
|
||||
store i64 17, ptr %143, align 4
|
||||
%144 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %141, align 8
|
||||
@@ -414,7 +397,7 @@ _llgo_18: ; preds = %_llgo_49
|
||||
_llgo_19: ; preds = %_llgo_18
|
||||
%166 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%167 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %166, i32 0, i32 0
|
||||
store ptr @36, ptr %167, align 8
|
||||
store ptr @19, ptr %167, align 8
|
||||
%168 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %166, i32 0, i32 1
|
||||
store i64 17, ptr %168, align 4
|
||||
%169 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %166, align 8
|
||||
@@ -452,7 +435,7 @@ _llgo_20: ; preds = %_llgo_18
|
||||
_llgo_21: ; preds = %_llgo_20
|
||||
%188 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%189 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %188, i32 0, i32 0
|
||||
store ptr @37, ptr %189, align 8
|
||||
store ptr @20, ptr %189, align 8
|
||||
%190 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %188, i32 0, i32 1
|
||||
store i64 17, ptr %190, align 4
|
||||
%191 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %188, align 8
|
||||
@@ -471,7 +454,7 @@ _llgo_21: ; preds = %_llgo_20
|
||||
_llgo_22: ; preds = %_llgo_20
|
||||
%198 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%199 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %198, i32 0, i32 0
|
||||
store ptr @38, ptr %199, align 8
|
||||
store ptr @21, ptr %199, align 8
|
||||
%200 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %198, i32 0, i32 1
|
||||
store i64 4, ptr %200, align 4
|
||||
%201 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %198, align 8
|
||||
@@ -872,13 +855,13 @@ _llgo_7: ; preds = %_llgo_6
|
||||
%52 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %48, align 8
|
||||
%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 @4, ptr %54, align 8
|
||||
store ptr @0, ptr %54, align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %53, i32 0, i32 1
|
||||
store i64 4, ptr %55, align 4
|
||||
%56 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %53, align 8
|
||||
%57 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %57, i32 0, i32 0
|
||||
store ptr @5, ptr %58, align 8
|
||||
store ptr @4, ptr %58, align 8
|
||||
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %57, i32 0, i32 1
|
||||
store i64 7, ptr %59, align 4
|
||||
%60 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %57, align 8
|
||||
@@ -890,7 +873,7 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%62 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%63 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %63, i32 0, i32 0
|
||||
store ptr @6, ptr %64, align 8
|
||||
store ptr @3, ptr %64, align 8
|
||||
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %63, i32 0, i32 1
|
||||
store i64 6, ptr %65, align 4
|
||||
%66 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %63, align 8
|
||||
@@ -913,13 +896,13 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%77 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %73, align 8
|
||||
%78 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%79 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %78, i32 0, i32 0
|
||||
store ptr @7, ptr %79, align 8
|
||||
store ptr @0, ptr %79, align 8
|
||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %78, i32 0, i32 1
|
||||
store i64 4, ptr %80, align 4
|
||||
%81 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %78, 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 @8, ptr %83, align 8
|
||||
store ptr null, ptr %83, align 8
|
||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %82, i32 0, i32 1
|
||||
store i64 0, ptr %84, align 4
|
||||
%85 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %82, align 8
|
||||
@@ -934,7 +917,7 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
_llgo_9: ; preds = %_llgo_8
|
||||
%91 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %91, i32 0, i32 0
|
||||
store ptr @10, ptr %92, align 8
|
||||
store ptr @3, ptr %92, align 8
|
||||
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %91, i32 0, i32 1
|
||||
store i64 6, ptr %93, align 4
|
||||
%94 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %91, align 8
|
||||
@@ -946,7 +929,7 @@ _llgo_9: ; preds = %_llgo_8
|
||||
%98 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %95, align 8
|
||||
%99 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%100 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %99, i32 0, i32 0
|
||||
store ptr @11, ptr %100, align 8
|
||||
store ptr @6, ptr %100, align 8
|
||||
%101 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %99, i32 0, i32 1
|
||||
store i64 6, ptr %101, align 4
|
||||
%102 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %99, align 8
|
||||
@@ -971,13 +954,13 @@ _llgo_9: ; preds = %_llgo_8
|
||||
%114 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %110, align 8
|
||||
%115 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%116 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %115, i32 0, i32 0
|
||||
store ptr @12, ptr %116, align 8
|
||||
store ptr @0, ptr %116, align 8
|
||||
%117 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %115, i32 0, i32 1
|
||||
store i64 4, ptr %117, align 4
|
||||
%118 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %115, align 8
|
||||
%119 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%120 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %119, i32 0, i32 0
|
||||
store ptr @13, ptr %120, align 8
|
||||
store ptr @7, ptr %120, align 8
|
||||
%121 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %119, i32 0, i32 1
|
||||
store i64 7, ptr %121, align 4
|
||||
%122 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %119, align 8
|
||||
@@ -990,7 +973,7 @@ _llgo_10: ; preds = %_llgo_9, %_llgo_8
|
||||
%125 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%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 @14, ptr %127, align 8
|
||||
store ptr @3, ptr %127, align 8
|
||||
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %126, i32 0, i32 1
|
||||
store i64 6, ptr %128, align 4
|
||||
%129 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %126, align 8
|
||||
@@ -1002,7 +985,7 @@ _llgo_10: ; preds = %_llgo_9, %_llgo_8
|
||||
%133 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %130, align 8
|
||||
%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 @15, ptr %135, align 8
|
||||
store ptr @6, ptr %135, align 8
|
||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %134, i32 0, i32 1
|
||||
store i64 6, ptr %136, align 4
|
||||
%137 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %134, align 8
|
||||
@@ -1027,13 +1010,13 @@ _llgo_10: ; preds = %_llgo_9, %_llgo_8
|
||||
%149 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, align 8
|
||||
%150 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%151 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %150, i32 0, i32 0
|
||||
store ptr @16, ptr %151, align 8
|
||||
store ptr @0, ptr %151, align 8
|
||||
%152 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %150, i32 0, i32 1
|
||||
store i64 4, ptr %152, align 4
|
||||
%153 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %150, align 8
|
||||
%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 @17, ptr %155, align 8
|
||||
store ptr null, ptr %155, align 8
|
||||
%156 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %154, i32 0, i32 1
|
||||
store i64 0, ptr %156, align 4
|
||||
%157 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %154, align 8
|
||||
@@ -1056,7 +1039,7 @@ _llgo_12: ; preds = %_llgo_11, %_llgo_10
|
||||
_llgo_13: ; preds = %_llgo_12
|
||||
%164 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%165 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %164, i32 0, i32 0
|
||||
store ptr @19, ptr %165, align 8
|
||||
store ptr @0, ptr %165, align 8
|
||||
%166 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %164, i32 0, i32 1
|
||||
store i64 4, ptr %166, align 4
|
||||
%167 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %164, align 8
|
||||
@@ -1080,13 +1063,13 @@ _llgo_14: ; preds = %_llgo_13, %_llgo_12
|
||||
_llgo_15: ; preds = %_llgo_14
|
||||
%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 @20, ptr %177, align 8
|
||||
store ptr @9, ptr %177, align 8
|
||||
%178 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %176, i32 0, i32 1
|
||||
store i64 1, ptr %178, align 4
|
||||
%179 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %176, align 8
|
||||
%180 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%181 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %180, i32 0, i32 0
|
||||
store ptr @21, ptr %181, align 8
|
||||
store ptr @3, ptr %181, align 8
|
||||
%182 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %180, i32 0, i32 1
|
||||
store i64 6, ptr %182, align 4
|
||||
%183 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %180, align 8
|
||||
@@ -1135,13 +1118,13 @@ _llgo_15: ; preds = %_llgo_14
|
||||
%210 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %206, align 8
|
||||
%211 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%212 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %211, i32 0, i32 0
|
||||
store ptr @22, ptr %212, align 8
|
||||
store ptr @0, ptr %212, align 8
|
||||
%213 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %211, i32 0, i32 1
|
||||
store i64 4, ptr %213, align 4
|
||||
%214 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %211, align 8
|
||||
%215 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%216 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %215, i32 0, i32 0
|
||||
store ptr @23, ptr %216, align 8
|
||||
store ptr @10, ptr %216, align 8
|
||||
%217 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %215, i32 0, i32 1
|
||||
store i64 7, ptr %217, align 4
|
||||
%218 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %215, align 8
|
||||
@@ -1165,13 +1148,13 @@ _llgo_18: ; preds = %_llgo_17, %_llgo_16
|
||||
_llgo_19: ; preds = %_llgo_18
|
||||
%223 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%224 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %223, i32 0, i32 0
|
||||
store ptr @27, ptr %224, align 8
|
||||
store ptr @9, ptr %224, align 8
|
||||
%225 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %223, i32 0, i32 1
|
||||
store i64 1, ptr %225, align 4
|
||||
%226 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %223, align 8
|
||||
%227 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%228 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %227, i32 0, i32 0
|
||||
store ptr @28, ptr %228, align 8
|
||||
store ptr @3, ptr %228, align 8
|
||||
%229 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %227, i32 0, i32 1
|
||||
store i64 6, ptr %229, align 4
|
||||
%230 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %227, align 8
|
||||
@@ -1198,13 +1181,13 @@ _llgo_19: ; preds = %_llgo_18
|
||||
%243 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %238, align 8
|
||||
%244 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%245 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %244, i32 0, i32 0
|
||||
store ptr @29, ptr %245, align 8
|
||||
store ptr @14, ptr %245, align 8
|
||||
%246 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %244, i32 0, i32 1
|
||||
store i64 1, ptr %246, align 4
|
||||
%247 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %244, align 8
|
||||
%248 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%249 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %248, i32 0, i32 0
|
||||
store ptr @30, ptr %249, align 8
|
||||
store ptr @6, ptr %249, align 8
|
||||
%250 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %248, i32 0, i32 1
|
||||
store i64 6, ptr %250, align 4
|
||||
%251 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %248, align 8
|
||||
@@ -1257,13 +1240,13 @@ _llgo_19: ; preds = %_llgo_18
|
||||
%280 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %276, align 8
|
||||
%281 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%282 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %281, i32 0, i32 0
|
||||
store ptr @31, ptr %282, align 8
|
||||
store ptr @0, ptr %282, align 8
|
||||
%283 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %281, i32 0, i32 1
|
||||
store i64 4, ptr %283, align 4
|
||||
%284 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %281, align 8
|
||||
%285 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%286 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %285, i32 0, i32 0
|
||||
store ptr @32, ptr %286, align 8
|
||||
store ptr @15, ptr %286, align 8
|
||||
%287 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %285, i32 0, i32 1
|
||||
store i64 7, ptr %287, align 4
|
||||
%288 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %285, align 8
|
||||
|
||||
@@ -12,42 +12,26 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@0 = private unnamed_addr constant [4 x i8] c"two\00", align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@_llgo_main.impl = global ptr null
|
||||
@"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw" = linkonce global ptr null
|
||||
@1 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@2 = private unnamed_addr constant [4 x i8] c"one\00", align 1
|
||||
@3 = private unnamed_addr constant [9 x i8] c"main.one\00", align 1
|
||||
@"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA" = linkonce global ptr null
|
||||
@_llgo_int = linkonce global ptr null
|
||||
@4 = private unnamed_addr constant [4 x i8] c"two\00", align 1
|
||||
@5 = private unnamed_addr constant [9 x i8] c"main.two\00", align 1
|
||||
@"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to" = linkonce global ptr null
|
||||
@_llgo_string = linkonce global ptr null
|
||||
@6 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@7 = private unnamed_addr constant [10 x i8] c"main.impl\00", align 1
|
||||
@"main.iface$zZ89tENb5h_KNjvpxf1TXPfaWFYn0IZrZwyVf42lRtA" = global ptr null
|
||||
@8 = private unnamed_addr constant [9 x i8] c"main.one\00", align 1
|
||||
@9 = private unnamed_addr constant [9 x i8] c"main.two\00", align 1
|
||||
@10 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@11 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@_llgo_main.I = linkonce global ptr null
|
||||
@12 = private unnamed_addr constant [9 x i8] c"main.one\00", align 1
|
||||
@13 = private unnamed_addr constant [9 x i8] c"main.two\00", align 1
|
||||
@14 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@15 = private unnamed_addr constant [7 x i8] c"main.I\00", align 1
|
||||
@16 = private unnamed_addr constant [22 x i8] c"type assertion failed\00", align 1
|
||||
@17 = private unnamed_addr constant [22 x i8] c"type assertion failed\00", align 1
|
||||
@18 = private unnamed_addr constant [4 x i8] c"two\00", align 1
|
||||
@19 = private unnamed_addr constant [4 x i8] c"two\00", align 1
|
||||
@20 = private unnamed_addr constant [22 x i8] c"type assertion failed\00", align 1
|
||||
@21 = private unnamed_addr constant [4 x i8] c"two\00", align 1
|
||||
@22 = private unnamed_addr constant [22 x i8] c"type assertion failed\00", align 1
|
||||
@23 = private unnamed_addr constant [4 x i8] c"two\00", align 1
|
||||
@24 = private unnamed_addr constant [5 x i8] c"pass\00", align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@0 = private unnamed_addr constant [3 x i8] c"two", align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@_llgo_main.impl = global ptr null, align 8
|
||||
@"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw" = linkonce global ptr null, align 8
|
||||
@1 = private unnamed_addr constant [4 x i8] c"main", align 1
|
||||
@2 = private unnamed_addr constant [3 x i8] c"one", align 1
|
||||
@3 = private unnamed_addr constant [8 x i8] c"main.one", align 1
|
||||
@"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA" = linkonce global ptr null, align 8
|
||||
@_llgo_int = linkonce global ptr null, align 8
|
||||
@4 = private unnamed_addr constant [8 x i8] c"main.two", align 1
|
||||
@"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to" = linkonce global ptr null, align 8
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
@5 = private unnamed_addr constant [9 x i8] c"main.impl", align 1
|
||||
@"main.iface$zZ89tENb5h_KNjvpxf1TXPfaWFYn0IZrZwyVf42lRtA" = global ptr null, align 8
|
||||
@_llgo_main.I = linkonce global ptr null, align 8
|
||||
@6 = private unnamed_addr constant [6 x i8] c"main.I", align 1
|
||||
@7 = private unnamed_addr constant [21 x i8] c"type assertion failed", align 1
|
||||
@8 = private unnamed_addr constant [4 x i8] c"pass", align 1
|
||||
|
||||
define i64 @main.S.one(%main.S %0) {
|
||||
_llgo_0:
|
||||
@@ -335,7 +319,7 @@ _llgo_8: ; preds = %_llgo_19
|
||||
%99 = call %"github.com/goplus/llgo/internal/runtime.String" %98(ptr %97)
|
||||
%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 @18, ptr %101, align 8
|
||||
store ptr @0, ptr %101, align 8
|
||||
%102 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %100, i32 0, i32 1
|
||||
store i64 3, ptr %102, align 4
|
||||
%103 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %100, align 8
|
||||
@@ -374,7 +358,7 @@ _llgo_10: ; preds = %_llgo_8
|
||||
%124 = call %"github.com/goplus/llgo/internal/runtime.String" %123(ptr %122)
|
||||
%125 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%126 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %125, i32 0, i32 0
|
||||
store ptr @19, ptr %126, align 8
|
||||
store ptr @0, ptr %126, align 8
|
||||
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %125, i32 0, i32 1
|
||||
store i64 3, ptr %127, align 4
|
||||
%128 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %125, align 8
|
||||
@@ -440,7 +424,7 @@ _llgo_15: ; preds = %_llgo_23
|
||||
_llgo_16: ; preds = %_llgo_23
|
||||
%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 @24, ptr %160, align 8
|
||||
store ptr @8, ptr %160, align 8
|
||||
%161 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %159, i32 0, i32 1
|
||||
store i64 4, ptr %161, align 4
|
||||
%162 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %159, align 8
|
||||
@@ -476,7 +460,7 @@ _llgo_17: ; preds = %_llgo_4
|
||||
_llgo_18: ; preds = %_llgo_4
|
||||
%180 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%181 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %180, i32 0, i32 0
|
||||
store ptr @16, ptr %181, align 8
|
||||
store ptr @7, ptr %181, align 8
|
||||
%182 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %180, i32 0, i32 1
|
||||
store i64 21, ptr %182, align 4
|
||||
%183 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %180, align 8
|
||||
@@ -520,7 +504,7 @@ _llgo_19: ; preds = %_llgo_6
|
||||
_llgo_20: ; preds = %_llgo_6
|
||||
%207 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%208 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %207, i32 0, i32 0
|
||||
store ptr @17, ptr %208, align 8
|
||||
store ptr @7, ptr %208, align 8
|
||||
%209 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %207, i32 0, i32 1
|
||||
store i64 21, ptr %209, align 4
|
||||
%210 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %207, align 8
|
||||
@@ -560,7 +544,7 @@ _llgo_21: ; preds = %_llgo_12
|
||||
%232 = call %"github.com/goplus/llgo/internal/runtime.String" %231(ptr %230)
|
||||
%233 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%234 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %233, i32 0, i32 0
|
||||
store ptr @21, ptr %234, align 8
|
||||
store ptr @0, ptr %234, align 8
|
||||
%235 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %233, i32 0, i32 1
|
||||
store i64 3, ptr %235, align 4
|
||||
%236 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %233, align 8
|
||||
@@ -571,7 +555,7 @@ _llgo_21: ; preds = %_llgo_12
|
||||
_llgo_22: ; preds = %_llgo_12
|
||||
%239 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%240 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %239, i32 0, i32 0
|
||||
store ptr @20, ptr %240, align 8
|
||||
store ptr @7, ptr %240, align 8
|
||||
%241 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %239, i32 0, i32 1
|
||||
store i64 21, ptr %241, align 4
|
||||
%242 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %239, align 8
|
||||
@@ -611,7 +595,7 @@ _llgo_23: ; preds = %_llgo_14
|
||||
%264 = call %"github.com/goplus/llgo/internal/runtime.String" %263(ptr %262)
|
||||
%265 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%266 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %265, i32 0, i32 0
|
||||
store ptr @23, ptr %266, align 8
|
||||
store ptr @0, ptr %266, align 8
|
||||
%267 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %265, i32 0, i32 1
|
||||
store i64 3, ptr %267, align 4
|
||||
%268 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %265, align 8
|
||||
@@ -622,7 +606,7 @@ _llgo_23: ; preds = %_llgo_14
|
||||
_llgo_24: ; preds = %_llgo_14
|
||||
%271 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%272 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %271, i32 0, i32 0
|
||||
store ptr @22, ptr %272, align 8
|
||||
store ptr @7, ptr %272, align 8
|
||||
%273 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %271, i32 0, i32 1
|
||||
store i64 21, ptr %273, align 4
|
||||
%274 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %271, align 8
|
||||
@@ -697,282 +681,286 @@ _llgo_3: ; preds = %_llgo_2
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%26 = load ptr, ptr @_llgo_int, align 8
|
||||
%27 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%28 = icmp eq ptr %27, null
|
||||
br i1 %28, label %_llgo_5, label %_llgo_6
|
||||
%26 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %25, i32 0, i32 6
|
||||
%27 = load i8, ptr %26, align 1
|
||||
%28 = or i8 %27, 32
|
||||
store i8 %28, ptr %26, align 1
|
||||
%29 = load ptr, ptr @_llgo_int, align 8
|
||||
%30 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%31 = icmp eq ptr %30, null
|
||||
br i1 %31, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%29 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%30 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %30, i32 0, i32 0
|
||||
store ptr %29, ptr %31, align 8
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %30, i32 0, i32 1
|
||||
store i64 0, ptr %32, align 4
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %30, i32 0, i32 2
|
||||
store i64 0, ptr %33, align 4
|
||||
%34 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %30, align 8
|
||||
%35 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%36 = getelementptr ptr, ptr %35, i64 0
|
||||
store ptr %26, ptr %36, align 8
|
||||
%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 %35, ptr %38, align 8
|
||||
%39 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %37, i32 0, i32 1
|
||||
store i64 1, ptr %39, align 4
|
||||
%40 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %37, i32 0, i32 2
|
||||
store i64 1, 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" %34, %"github.com/goplus/llgo/internal/runtime.Slice" %41, i1 false)
|
||||
store ptr %42, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%32 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%33 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %33, i32 0, i32 0
|
||||
store ptr %32, ptr %34, align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %33, i32 0, i32 1
|
||||
store i64 0, ptr %35, align 4
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %33, i32 0, i32 2
|
||||
store i64 0, ptr %36, align 4
|
||||
%37 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %33, align 8
|
||||
%38 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%39 = getelementptr ptr, ptr %38, i64 0
|
||||
store ptr %29, ptr %39, align 8
|
||||
%40 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%41 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %40, i32 0, i32 0
|
||||
store ptr %38, ptr %41, align 8
|
||||
%42 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %40, i32 0, i32 1
|
||||
store i64 1, ptr %42, align 4
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %40, i32 0, i32 2
|
||||
store i64 1, ptr %43, align 4
|
||||
%44 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %40, align 8
|
||||
%45 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %37, %"github.com/goplus/llgo/internal/runtime.Slice" %44, i1 false)
|
||||
store ptr %45, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
%43 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%44 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %44, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %22, ptr %45, align 8
|
||||
%46 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %44, i32 0, i32 1
|
||||
store ptr %43, ptr %46, align 8
|
||||
%47 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %44, i32 0, i32 2
|
||||
store ptr @"main.(*impl).one", ptr %47, align 8
|
||||
%48 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %44, i32 0, i32 3
|
||||
store ptr @"main.(*impl).one", ptr %48, align 8
|
||||
%49 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %44, align 8
|
||||
%50 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %50, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %22, ptr %51, align 8
|
||||
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %50, i32 0, i32 1
|
||||
store ptr %43, ptr %52, align 8
|
||||
%53 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %50, i32 0, i32 2
|
||||
store ptr @"main.(*impl).one", ptr %53, align 8
|
||||
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %50, i32 0, i32 3
|
||||
store ptr @main.impl.one, ptr %54, align 8
|
||||
%55 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %50, align 8
|
||||
%56 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %56, i32 0, i32 0
|
||||
store ptr @4, ptr %57, align 8
|
||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %56, i32 0, i32 1
|
||||
store i64 3, ptr %58, align 4
|
||||
%59 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %56, align 8
|
||||
%60 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%61 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %60, i32 0, i32 0
|
||||
store ptr @5, ptr %61, align 8
|
||||
%62 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %60, i32 0, i32 1
|
||||
store i64 8, ptr %62, align 4
|
||||
%63 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %60, align 8
|
||||
%64 = load ptr, ptr @_llgo_string, align 8
|
||||
%65 = icmp eq ptr %64, null
|
||||
br i1 %65, label %_llgo_7, label %_llgo_8
|
||||
%46 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%47 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%48 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %47, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %22, ptr %48, align 8
|
||||
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %47, i32 0, i32 1
|
||||
store ptr %46, ptr %49, align 8
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %47, i32 0, i32 2
|
||||
store ptr @"main.(*impl).one", ptr %50, align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %47, i32 0, i32 3
|
||||
store ptr @"main.(*impl).one", ptr %51, align 8
|
||||
%52 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %47, align 8
|
||||
%53 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %53, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %22, ptr %54, align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %53, i32 0, i32 1
|
||||
store ptr %46, ptr %55, align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %53, i32 0, i32 2
|
||||
store ptr @"main.(*impl).one", ptr %56, align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %53, i32 0, i32 3
|
||||
store ptr @main.impl.one, ptr %57, align 8
|
||||
%58 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %53, align 8
|
||||
%59 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%60 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %59, i32 0, i32 0
|
||||
store ptr @0, ptr %60, align 8
|
||||
%61 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %59, i32 0, i32 1
|
||||
store i64 3, ptr %61, align 4
|
||||
%62 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %59, align 8
|
||||
%63 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %63, i32 0, i32 0
|
||||
store ptr @4, ptr %64, align 8
|
||||
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %63, i32 0, i32 1
|
||||
store i64 8, ptr %65, align 4
|
||||
%66 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %63, align 8
|
||||
%67 = load ptr, ptr @_llgo_string, align 8
|
||||
%68 = icmp eq ptr %67, null
|
||||
br i1 %68, label %_llgo_7, label %_llgo_8
|
||||
|
||||
_llgo_7: ; preds = %_llgo_6
|
||||
%66 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %66, ptr @_llgo_string, align 8
|
||||
%69 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %69, ptr @_llgo_string, align 8
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%67 = load ptr, ptr @_llgo_string, align 8
|
||||
%68 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%69 = icmp eq ptr %68, null
|
||||
br i1 %69, label %_llgo_9, label %_llgo_10
|
||||
%70 = load ptr, ptr @_llgo_string, align 8
|
||||
%71 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%72 = icmp eq ptr %71, null
|
||||
br i1 %72, label %_llgo_9, label %_llgo_10
|
||||
|
||||
_llgo_9: ; preds = %_llgo_8
|
||||
%70 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%71 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %71, i32 0, i32 0
|
||||
store ptr %70, ptr %72, align 8
|
||||
%73 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %71, i32 0, i32 1
|
||||
store i64 0, ptr %73, align 4
|
||||
%74 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %71, i32 0, i32 2
|
||||
store i64 0, ptr %74, align 4
|
||||
%75 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %71, align 8
|
||||
%76 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%77 = getelementptr ptr, ptr %76, i64 0
|
||||
store ptr %67, ptr %77, align 8
|
||||
%78 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%79 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, i32 0, i32 0
|
||||
store ptr %76, ptr %79, align 8
|
||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, i32 0, i32 1
|
||||
store i64 1, ptr %80, align 4
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, i32 0, i32 2
|
||||
store i64 1, ptr %81, align 4
|
||||
%82 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, align 8
|
||||
%83 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %75, %"github.com/goplus/llgo/internal/runtime.Slice" %82, i1 false)
|
||||
store ptr %83, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%73 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%74 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %74, i32 0, i32 0
|
||||
store ptr %73, ptr %75, align 8
|
||||
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %74, i32 0, i32 1
|
||||
store i64 0, ptr %76, align 4
|
||||
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %74, i32 0, i32 2
|
||||
store i64 0, ptr %77, align 4
|
||||
%78 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %74, align 8
|
||||
%79 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%80 = getelementptr ptr, ptr %79, i64 0
|
||||
store ptr %70, ptr %80, align 8
|
||||
%81 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%82 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %81, i32 0, i32 0
|
||||
store ptr %79, ptr %82, align 8
|
||||
%83 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %81, i32 0, i32 1
|
||||
store i64 1, ptr %83, align 4
|
||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %81, i32 0, i32 2
|
||||
store i64 1, ptr %84, align 4
|
||||
%85 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %81, align 8
|
||||
%86 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %78, %"github.com/goplus/llgo/internal/runtime.Slice" %85, i1 false)
|
||||
store ptr %86, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
br label %_llgo_10
|
||||
|
||||
_llgo_10: ; preds = %_llgo_9, %_llgo_8
|
||||
%84 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%85 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%86 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %85, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %63, ptr %86, align 8
|
||||
%87 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %85, i32 0, i32 1
|
||||
store ptr %84, ptr %87, align 8
|
||||
%88 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %85, i32 0, i32 2
|
||||
store ptr @"main.(*impl).two", ptr %88, align 8
|
||||
%89 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %85, i32 0, i32 3
|
||||
store ptr @"main.(*impl).two", ptr %89, align 8
|
||||
%90 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %85, align 8
|
||||
%91 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %91, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %63, ptr %92, align 8
|
||||
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %91, i32 0, i32 1
|
||||
store ptr %84, ptr %93, align 8
|
||||
%94 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %91, i32 0, i32 2
|
||||
store ptr @"main.(*impl).two", ptr %94, align 8
|
||||
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %91, i32 0, i32 3
|
||||
store ptr @main.impl.two, ptr %95, align 8
|
||||
%96 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %91, align 8
|
||||
%97 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
%98 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %97, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %55, ptr %98, align 8
|
||||
%99 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %97, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %96, ptr %99, align 8
|
||||
%100 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%101 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %100, i32 0, i32 0
|
||||
store ptr %97, ptr %101, align 8
|
||||
%102 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %100, i32 0, i32 1
|
||||
store i64 2, ptr %102, align 4
|
||||
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %100, i32 0, i32 2
|
||||
store i64 2, ptr %103, align 4
|
||||
%104 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %100, align 8
|
||||
%105 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
%106 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %105, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %49, ptr %106, align 8
|
||||
%107 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %105, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %90, ptr %107, align 8
|
||||
%108 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%109 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %108, i32 0, i32 0
|
||||
store ptr %105, ptr %109, align 8
|
||||
%110 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %108, i32 0, i32 1
|
||||
store i64 2, ptr %110, align 4
|
||||
%111 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %108, i32 0, i32 2
|
||||
store i64 2, ptr %111, align 4
|
||||
%112 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %108, align 8
|
||||
%113 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %113, i32 0, i32 0
|
||||
store ptr @6, ptr %114, align 8
|
||||
%115 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %113, i32 0, i32 1
|
||||
store i64 4, ptr %115, align 4
|
||||
%116 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %113, align 8
|
||||
%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 @7, ptr %118, align 8
|
||||
%119 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %117, i32 0, i32 1
|
||||
store i64 9, ptr %119, align 4
|
||||
%120 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %117, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, %"github.com/goplus/llgo/internal/runtime.String" %116, %"github.com/goplus/llgo/internal/runtime.String" %120, ptr %14, %"github.com/goplus/llgo/internal/runtime.Slice" %104, %"github.com/goplus/llgo/internal/runtime.Slice" %112)
|
||||
%121 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%122 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%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 @8, ptr %124, align 8
|
||||
%125 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %123, i32 0, i32 1
|
||||
store i64 8, ptr %125, align 4
|
||||
%126 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %123, align 8
|
||||
%127 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %127, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %126, ptr %128, align 8
|
||||
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %127, i32 0, i32 1
|
||||
store ptr %121, ptr %129, align 8
|
||||
%130 = load %"github.com/goplus/llgo/internal/abi.Imethod", 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 @9, ptr %132, align 8
|
||||
%133 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %131, i32 0, i32 1
|
||||
store i64 8, ptr %133, align 4
|
||||
%134 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %131, align 8
|
||||
%135 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %135, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %134, ptr %136, align 8
|
||||
%137 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %135, i32 0, i32 1
|
||||
store ptr %122, ptr %137, align 8
|
||||
%138 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %135, align 8
|
||||
%139 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%140 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %139, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %130, ptr %140, align 8
|
||||
%141 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %139, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %138, ptr %141, align 8
|
||||
%142 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %142, i32 0, i32 0
|
||||
store ptr %139, ptr %143, align 8
|
||||
%144 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %142, i32 0, i32 1
|
||||
store i64 2, ptr %144, align 4
|
||||
%145 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %142, i32 0, i32 2
|
||||
store i64 2, ptr %145, align 4
|
||||
%146 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %142, align 8
|
||||
%147 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%148 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %147, i32 0, i32 0
|
||||
store ptr @10, ptr %148, align 8
|
||||
%149 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %147, i32 0, i32 1
|
||||
store i64 4, ptr %149, align 4
|
||||
%150 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %147, 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 @11, ptr %152, align 8
|
||||
%153 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %151, i32 0, i32 1
|
||||
store i64 0, 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.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %150, %"github.com/goplus/llgo/internal/runtime.String" %154, %"github.com/goplus/llgo/internal/runtime.Slice" %146)
|
||||
store ptr %155, ptr @"main.iface$zZ89tENb5h_KNjvpxf1TXPfaWFYn0IZrZwyVf42lRtA", align 8
|
||||
%156 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%157 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%158 = load ptr, ptr @_llgo_main.I, align 8
|
||||
%159 = icmp eq ptr %158, null
|
||||
br i1 %159, label %_llgo_11, label %_llgo_12
|
||||
%87 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%88 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%89 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %88, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %66, ptr %89, align 8
|
||||
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %88, i32 0, i32 1
|
||||
store ptr %87, ptr %90, align 8
|
||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %88, i32 0, i32 2
|
||||
store ptr @"main.(*impl).two", ptr %91, align 8
|
||||
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %88, i32 0, i32 3
|
||||
store ptr @"main.(*impl).two", ptr %92, align 8
|
||||
%93 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %88, align 8
|
||||
%94 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %94, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %66, ptr %95, align 8
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %94, i32 0, i32 1
|
||||
store ptr %87, ptr %96, align 8
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %94, i32 0, i32 2
|
||||
store ptr @"main.(*impl).two", ptr %97, align 8
|
||||
%98 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %94, i32 0, i32 3
|
||||
store ptr @main.impl.two, ptr %98, align 8
|
||||
%99 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %94, align 8
|
||||
%100 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
%101 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %100, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %58, ptr %101, align 8
|
||||
%102 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %100, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %99, ptr %102, align 8
|
||||
%103 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %103, i32 0, i32 0
|
||||
store ptr %100, ptr %104, align 8
|
||||
%105 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %103, i32 0, i32 1
|
||||
store i64 2, ptr %105, align 4
|
||||
%106 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %103, i32 0, i32 2
|
||||
store i64 2, ptr %106, align 4
|
||||
%107 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %103, align 8
|
||||
%108 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
%109 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %108, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %52, ptr %109, align 8
|
||||
%110 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %108, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %93, ptr %110, align 8
|
||||
%111 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%112 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %111, i32 0, i32 0
|
||||
store ptr %108, ptr %112, align 8
|
||||
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %111, i32 0, i32 1
|
||||
store i64 2, ptr %113, align 4
|
||||
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %111, i32 0, i32 2
|
||||
store i64 2, ptr %114, align 4
|
||||
%115 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %111, align 8
|
||||
%116 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%117 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %116, i32 0, i32 0
|
||||
store ptr @1, ptr %117, align 8
|
||||
%118 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %116, i32 0, i32 1
|
||||
store i64 4, ptr %118, align 4
|
||||
%119 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %116, align 8
|
||||
%120 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%121 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %120, i32 0, i32 0
|
||||
store ptr @5, ptr %121, align 8
|
||||
%122 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %120, i32 0, i32 1
|
||||
store i64 9, ptr %122, align 4
|
||||
%123 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %120, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, %"github.com/goplus/llgo/internal/runtime.String" %119, %"github.com/goplus/llgo/internal/runtime.String" %123, ptr %14, %"github.com/goplus/llgo/internal/runtime.Slice" %107, %"github.com/goplus/llgo/internal/runtime.Slice" %115)
|
||||
%124 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%125 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%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 @3, ptr %127, align 8
|
||||
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %126, i32 0, i32 1
|
||||
store i64 8, 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 %124, ptr %132, align 8
|
||||
%133 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %130, align 8
|
||||
%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 @4, ptr %135, align 8
|
||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %134, i32 0, i32 1
|
||||
store i64 8, ptr %136, align 4
|
||||
%137 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %134, align 8
|
||||
%138 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %138, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %137, ptr %139, align 8
|
||||
%140 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %138, i32 0, i32 1
|
||||
store ptr %125, ptr %140, align 8
|
||||
%141 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %138, align 8
|
||||
%142 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%143 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %142, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %133, ptr %143, align 8
|
||||
%144 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %142, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %141, 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 %142, ptr %146, align 8
|
||||
%147 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, i32 0, i32 1
|
||||
store i64 2, ptr %147, align 4
|
||||
%148 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, i32 0, i32 2
|
||||
store i64 2, ptr %148, align 4
|
||||
%149 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %145, align 8
|
||||
%150 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%151 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %150, i32 0, i32 0
|
||||
store ptr @1, ptr %151, align 8
|
||||
%152 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %150, i32 0, i32 1
|
||||
store i64 4, ptr %152, align 4
|
||||
%153 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %150, align 8
|
||||
%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 null, ptr %155, align 8
|
||||
%156 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %154, i32 0, i32 1
|
||||
store i64 0, 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.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %153, %"github.com/goplus/llgo/internal/runtime.String" %157, %"github.com/goplus/llgo/internal/runtime.Slice" %149)
|
||||
store ptr %158, ptr @"main.iface$zZ89tENb5h_KNjvpxf1TXPfaWFYn0IZrZwyVf42lRtA", align 8
|
||||
%159 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%160 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%161 = load ptr, ptr @_llgo_main.I, align 8
|
||||
%162 = icmp eq ptr %161, null
|
||||
br i1 %162, label %_llgo_11, label %_llgo_12
|
||||
|
||||
_llgo_11: ; preds = %_llgo_10
|
||||
%160 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%161 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %160, i32 0, i32 0
|
||||
store ptr @12, ptr %161, align 8
|
||||
%162 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %160, i32 0, i32 1
|
||||
store i64 8, ptr %162, align 4
|
||||
%163 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %160, align 8
|
||||
%164 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%165 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %164, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %163, ptr %165, align 8
|
||||
%166 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %164, i32 0, i32 1
|
||||
store ptr %156, ptr %166, align 8
|
||||
%167 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %164, 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 @13, ptr %169, align 8
|
||||
%170 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %168, i32 0, i32 1
|
||||
store i64 8, ptr %170, align 4
|
||||
%171 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %168, align 8
|
||||
%172 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%173 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %172, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %171, ptr %173, align 8
|
||||
%174 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %172, i32 0, i32 1
|
||||
store ptr %157, ptr %174, align 8
|
||||
%175 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %172, align 8
|
||||
%176 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%177 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %176, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %167, ptr %177, align 8
|
||||
%178 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %176, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %175, ptr %178, align 8
|
||||
%179 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%180 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %179, i32 0, i32 0
|
||||
store ptr %176, ptr %180, align 8
|
||||
%181 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %179, i32 0, i32 1
|
||||
store i64 2, ptr %181, align 4
|
||||
%182 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %179, i32 0, i32 2
|
||||
store i64 2, ptr %182, align 4
|
||||
%183 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %179, align 8
|
||||
%184 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%185 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %184, i32 0, i32 0
|
||||
store ptr @14, ptr %185, align 8
|
||||
%186 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %184, i32 0, i32 1
|
||||
store i64 4, ptr %186, align 4
|
||||
%187 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %184, align 8
|
||||
%188 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%189 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %188, i32 0, i32 0
|
||||
store ptr @15, ptr %189, align 8
|
||||
%190 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %188, i32 0, i32 1
|
||||
store i64 6, ptr %190, align 4
|
||||
%191 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %188, align 8
|
||||
%192 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %187, %"github.com/goplus/llgo/internal/runtime.String" %191, %"github.com/goplus/llgo/internal/runtime.Slice" %183)
|
||||
store ptr %192, ptr @_llgo_main.I, align 8
|
||||
%163 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%164 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %163, i32 0, i32 0
|
||||
store ptr @3, ptr %164, align 8
|
||||
%165 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %163, i32 0, i32 1
|
||||
store i64 8, ptr %165, align 4
|
||||
%166 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %163, align 8
|
||||
%167 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%168 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %167, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %166, ptr %168, align 8
|
||||
%169 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %167, i32 0, i32 1
|
||||
store ptr %159, ptr %169, align 8
|
||||
%170 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %167, align 8
|
||||
%171 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%172 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %171, i32 0, i32 0
|
||||
store ptr @4, ptr %172, align 8
|
||||
%173 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %171, i32 0, i32 1
|
||||
store i64 8, ptr %173, align 4
|
||||
%174 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %171, align 8
|
||||
%175 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%176 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %175, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %174, ptr %176, align 8
|
||||
%177 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %175, i32 0, i32 1
|
||||
store ptr %160, ptr %177, align 8
|
||||
%178 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %175, align 8
|
||||
%179 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%180 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %179, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %170, ptr %180, align 8
|
||||
%181 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %179, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %178, ptr %181, align 8
|
||||
%182 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%183 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %182, i32 0, i32 0
|
||||
store ptr %179, ptr %183, align 8
|
||||
%184 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %182, i32 0, i32 1
|
||||
store i64 2, ptr %184, align 4
|
||||
%185 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %182, i32 0, i32 2
|
||||
store i64 2, ptr %185, align 4
|
||||
%186 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %182, align 8
|
||||
%187 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%188 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %187, i32 0, i32 0
|
||||
store ptr @1, ptr %188, align 8
|
||||
%189 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %187, i32 0, i32 1
|
||||
store i64 4, ptr %189, align 4
|
||||
%190 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %187, align 8
|
||||
%191 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%192 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %191, i32 0, i32 0
|
||||
store ptr @6, ptr %192, align 8
|
||||
%193 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %191, i32 0, i32 1
|
||||
store i64 6, ptr %193, align 4
|
||||
%194 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %191, align 8
|
||||
%195 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %190, %"github.com/goplus/llgo/internal/runtime.String" %194, %"github.com/goplus/llgo/internal/runtime.Slice" %186)
|
||||
store ptr %195, ptr @_llgo_main.I, align 8
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_10
|
||||
|
||||
@@ -10,48 +10,33 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 }
|
||||
%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"*_llgo_main.Game1" = linkonce global ptr null
|
||||
@_llgo_main.Game1 = linkonce global ptr null
|
||||
@"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI" = linkonce global ptr null
|
||||
@"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game" = linkonce global ptr null
|
||||
@"_llgo_github.com/goplus/llgo/cl/internal/foo.Game" = linkonce global ptr null
|
||||
@"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw" = linkonce global ptr null
|
||||
@0 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@1 = private unnamed_addr constant [5 x i8] c"Load\00", align 1
|
||||
@"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac" = linkonce global ptr null
|
||||
@2 = private unnamed_addr constant [9 x i8] c"initGame\00", align 1
|
||||
@3 = private unnamed_addr constant [48 x i8] c"github.com/goplus/llgo/cl/internal/foo.initGame\00", align 1
|
||||
@4 = private unnamed_addr constant [39 x i8] c"github.com/goplus/llgo/cl/internal/foo\00", align 1
|
||||
@5 = private unnamed_addr constant [44 x i8] c"github.com/goplus/llgo/cl/internal/foo.Game\00", align 1
|
||||
@6 = private unnamed_addr constant [5 x i8] c"Game\00", align 1
|
||||
@7 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@8 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@9 = private unnamed_addr constant [5 x i8] c"Load\00", align 1
|
||||
@10 = private unnamed_addr constant [9 x i8] c"initGame\00", align 1
|
||||
@11 = private unnamed_addr constant [48 x i8] c"github.com/goplus/llgo/cl/internal/foo.initGame\00", align 1
|
||||
@12 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@13 = private unnamed_addr constant [11 x i8] c"main.Game1\00", align 1
|
||||
@"*_llgo_main.Game2" = linkonce global ptr null
|
||||
@_llgo_main.Game2 = linkonce global ptr null
|
||||
@14 = private unnamed_addr constant [9 x i8] c"initGame\00", align 1
|
||||
@15 = private unnamed_addr constant [14 x i8] c"main.initGame\00", align 1
|
||||
@16 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@17 = private unnamed_addr constant [11 x i8] c"main.Game2\00", align 1
|
||||
@"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer" = linkonce global ptr null
|
||||
@18 = private unnamed_addr constant [5 x i8] c"Load\00", align 1
|
||||
@19 = private unnamed_addr constant [48 x i8] c"github.com/goplus/llgo/cl/internal/foo.initGame\00", align 1
|
||||
@20 = private unnamed_addr constant [39 x i8] c"github.com/goplus/llgo/cl/internal/foo\00", align 1
|
||||
@21 = private unnamed_addr constant [45 x i8] c"github.com/goplus/llgo/cl/internal/foo.Gamer\00", align 1
|
||||
@"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg" = global ptr null
|
||||
@22 = private unnamed_addr constant [5 x i8] c"Load\00", align 1
|
||||
@23 = private unnamed_addr constant [48 x i8] c"github.com/goplus/llgo/cl/internal/foo.initGame\00", align 1
|
||||
@24 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@25 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@26 = private unnamed_addr constant [3 x i8] c"OK\00", align 1
|
||||
@27 = private unnamed_addr constant [5 x i8] c"FAIL\00", align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@"*_llgo_main.Game1" = linkonce global ptr null, align 8
|
||||
@_llgo_main.Game1 = linkonce global ptr null, align 8
|
||||
@"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI" = linkonce global ptr null, align 8
|
||||
@"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game" = linkonce global ptr null, align 8
|
||||
@"_llgo_github.com/goplus/llgo/cl/internal/foo.Game" = linkonce global ptr null, align 8
|
||||
@"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw" = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [4 x i8] c"main", align 1
|
||||
@1 = private unnamed_addr constant [4 x i8] c"Load", align 1
|
||||
@"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac" = linkonce global ptr null, align 8
|
||||
@2 = private unnamed_addr constant [8 x i8] c"initGame", align 1
|
||||
@3 = private unnamed_addr constant [47 x i8] c"github.com/goplus/llgo/cl/internal/foo.initGame", align 1
|
||||
@4 = private unnamed_addr constant [38 x i8] c"github.com/goplus/llgo/cl/internal/foo", align 1
|
||||
@5 = private unnamed_addr constant [43 x i8] c"github.com/goplus/llgo/cl/internal/foo.Game", align 1
|
||||
@6 = private unnamed_addr constant [4 x i8] c"Game", align 1
|
||||
@7 = private unnamed_addr constant [10 x i8] c"main.Game1", align 1
|
||||
@"*_llgo_main.Game2" = linkonce global ptr null, align 8
|
||||
@_llgo_main.Game2 = linkonce global ptr null, align 8
|
||||
@8 = private unnamed_addr constant [13 x i8] c"main.initGame", align 1
|
||||
@9 = private unnamed_addr constant [10 x i8] c"main.Game2", align 1
|
||||
@"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer" = linkonce global ptr null, align 8
|
||||
@10 = private unnamed_addr constant [44 x i8] c"github.com/goplus/llgo/cl/internal/foo.Gamer", align 1
|
||||
@"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg" = global ptr null, align 8
|
||||
@11 = private unnamed_addr constant [2 x i8] c"OK", align 1
|
||||
@12 = private unnamed_addr constant [4 x i8] c"FAIL", align 1
|
||||
|
||||
define void @main.Game1.Load(%main.Game1 %0) {
|
||||
_llgo_0:
|
||||
@@ -196,7 +181,7 @@ _llgo_5: ; preds = %_llgo_4, %_llgo_3
|
||||
%49 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %47, 1
|
||||
%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 @26, ptr %51, align 8
|
||||
store ptr @11, ptr %51, align 8
|
||||
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %50, i32 0, i32 1
|
||||
store i64 2, ptr %52, align 4
|
||||
%53 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %50, align 8
|
||||
@@ -241,7 +226,7 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%71 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %69, 1
|
||||
%72 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%73 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %72, i32 0, i32 0
|
||||
store ptr @27, ptr %73, align 8
|
||||
store ptr @12, ptr %73, align 8
|
||||
%74 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %72, i32 0, i32 1
|
||||
store i64 4, ptr %74, align 4
|
||||
%75 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %72, align 8
|
||||
@@ -439,14 +424,14 @@ _llgo_13: ; preds = %_llgo_12
|
||||
%87 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %84, align 8
|
||||
%88 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%89 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %88, i32 0, i32 0
|
||||
store ptr @7, ptr %89, align 8
|
||||
store ptr null, ptr %89, align 8
|
||||
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %88, i32 0, i32 1
|
||||
store i64 0, ptr %90, align 4
|
||||
%91 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %88, align 8
|
||||
%92 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %87, ptr %81, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %91, i1 true)
|
||||
%93 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%94 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %93, i32 0, i32 0
|
||||
store ptr @8, ptr %94, align 8
|
||||
store ptr @0, ptr %94, align 8
|
||||
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %93, i32 0, i32 1
|
||||
store i64 4, ptr %95, align 4
|
||||
%96 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %93, align 8
|
||||
@@ -472,7 +457,7 @@ _llgo_14: ; preds = %_llgo_13, %_llgo_12
|
||||
_llgo_15: ; preds = %_llgo_14
|
||||
%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 @9, ptr %107, align 8
|
||||
store ptr @1, ptr %107, align 8
|
||||
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %106, i32 0, i32 1
|
||||
store i64 4, ptr %108, align 4
|
||||
%109 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %106, align 8
|
||||
@@ -489,13 +474,13 @@ _llgo_15: ; preds = %_llgo_14
|
||||
%116 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %111, align 8
|
||||
%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 @10, ptr %118, align 8
|
||||
store ptr @2, ptr %118, align 8
|
||||
%119 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %117, i32 0, i32 1
|
||||
store i64 8, 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 @11, ptr %122, align 8
|
||||
store ptr @3, ptr %122, align 8
|
||||
%123 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %121, i32 0, i32 1
|
||||
store i64 47, ptr %123, align 4
|
||||
%124 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %121, align 8
|
||||
@@ -525,13 +510,13 @@ _llgo_15: ; preds = %_llgo_14
|
||||
%139 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %135, 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 @12, ptr %141, align 8
|
||||
store ptr @0, ptr %141, align 8
|
||||
%142 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %140, i32 0, i32 1
|
||||
store i64 4, ptr %142, align 4
|
||||
%143 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %140, align 8
|
||||
%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 @13, ptr %145, align 8
|
||||
store ptr @7, ptr %145, align 8
|
||||
%146 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %144, i32 0, i32 1
|
||||
store i64 10, ptr %146, align 4
|
||||
%147 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %144, align 8
|
||||
@@ -566,13 +551,13 @@ _llgo_20: ; preds = %_llgo_19, %_llgo_18
|
||||
_llgo_21: ; preds = %_llgo_20
|
||||
%156 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%157 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %156, i32 0, i32 0
|
||||
store ptr @14, ptr %157, align 8
|
||||
store ptr @2, ptr %157, align 8
|
||||
%158 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %156, i32 0, i32 1
|
||||
store i64 8, ptr %158, align 4
|
||||
%159 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %156, align 8
|
||||
%160 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%161 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %160, i32 0, i32 0
|
||||
store ptr @15, ptr %161, align 8
|
||||
store ptr @8, ptr %161, align 8
|
||||
%162 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %160, i32 0, i32 1
|
||||
store i64 13, ptr %162, align 4
|
||||
%163 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %160, align 8
|
||||
@@ -600,13 +585,13 @@ _llgo_21: ; preds = %_llgo_20
|
||||
%177 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %173, align 8
|
||||
%178 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%179 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %178, i32 0, i32 0
|
||||
store ptr @16, ptr %179, align 8
|
||||
store ptr @0, ptr %179, align 8
|
||||
%180 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %178, i32 0, i32 1
|
||||
store i64 4, ptr %180, align 4
|
||||
%181 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %178, align 8
|
||||
%182 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%183 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %182, i32 0, i32 0
|
||||
store ptr @17, ptr %183, align 8
|
||||
store ptr @9, ptr %183, align 8
|
||||
%184 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %182, i32 0, i32 1
|
||||
store i64 10, ptr %184, align 4
|
||||
%185 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %182, align 8
|
||||
@@ -634,7 +619,7 @@ _llgo_24: ; preds = %_llgo_23, %_llgo_22
|
||||
_llgo_25: ; preds = %_llgo_24
|
||||
%194 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%195 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %194, i32 0, i32 0
|
||||
store ptr @18, ptr %195, align 8
|
||||
store ptr @1, ptr %195, align 8
|
||||
%196 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %194, i32 0, i32 1
|
||||
store i64 4, ptr %196, align 4
|
||||
%197 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %194, align 8
|
||||
@@ -646,7 +631,7 @@ _llgo_25: ; preds = %_llgo_24
|
||||
%201 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %198, align 8
|
||||
%202 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%203 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %202, i32 0, i32 0
|
||||
store ptr @19, ptr %203, align 8
|
||||
store ptr @3, ptr %203, align 8
|
||||
%204 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %202, i32 0, i32 1
|
||||
store i64 47, ptr %204, align 4
|
||||
%205 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %202, align 8
|
||||
@@ -671,13 +656,13 @@ _llgo_25: ; preds = %_llgo_24
|
||||
%217 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %213, align 8
|
||||
%218 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%219 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %218, i32 0, i32 0
|
||||
store ptr @20, ptr %219, align 8
|
||||
store ptr @4, ptr %219, align 8
|
||||
%220 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %218, i32 0, i32 1
|
||||
store i64 38, ptr %220, align 4
|
||||
%221 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %218, align 8
|
||||
%222 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%223 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %222, i32 0, i32 0
|
||||
store ptr @21, ptr %223, align 8
|
||||
store ptr @10, ptr %223, align 8
|
||||
%224 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %222, i32 0, i32 1
|
||||
store i64 44, ptr %224, align 4
|
||||
%225 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %222, align 8
|
||||
@@ -690,7 +675,7 @@ _llgo_26: ; preds = %_llgo_25, %_llgo_24
|
||||
%228 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%229 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%230 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %229, i32 0, i32 0
|
||||
store ptr @22, ptr %230, align 8
|
||||
store ptr @1, ptr %230, align 8
|
||||
%231 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %229, i32 0, i32 1
|
||||
store i64 4, ptr %231, align 4
|
||||
%232 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %229, align 8
|
||||
@@ -702,7 +687,7 @@ _llgo_26: ; preds = %_llgo_25, %_llgo_24
|
||||
%236 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %233, align 8
|
||||
%237 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%238 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %237, i32 0, i32 0
|
||||
store ptr @23, ptr %238, align 8
|
||||
store ptr @3, ptr %238, align 8
|
||||
%239 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %237, i32 0, i32 1
|
||||
store i64 47, ptr %239, align 4
|
||||
%240 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %237, align 8
|
||||
@@ -727,13 +712,13 @@ _llgo_26: ; preds = %_llgo_25, %_llgo_24
|
||||
%252 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %248, align 8
|
||||
%253 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%254 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %253, i32 0, i32 0
|
||||
store ptr @24, ptr %254, align 8
|
||||
store ptr @0, ptr %254, align 8
|
||||
%255 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %253, i32 0, i32 1
|
||||
store i64 4, ptr %255, align 4
|
||||
%256 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %253, align 8
|
||||
%257 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%258 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %257, i32 0, i32 0
|
||||
store ptr @25, ptr %258, align 8
|
||||
store ptr null, ptr %258, align 8
|
||||
%259 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %257, i32 0, i32 1
|
||||
store i64 0, ptr %259, align 4
|
||||
%260 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %257, align 8
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -7,21 +7,18 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 }
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88" = global ptr null
|
||||
@_llgo_int = linkonce global ptr null
|
||||
@0 = private unnamed_addr constant [2 x i8] c"v\00", align 1
|
||||
@1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@2 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@3 = private unnamed_addr constant [12 x i8] c"Foo: not ok\00", align 1
|
||||
@"_llgo_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk" = linkonce global ptr null
|
||||
@4 = private unnamed_addr constant [2 x i8] c"V\00", align 1
|
||||
@5 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@6 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@7 = private unnamed_addr constant [12 x i8] c"Bar: not ok\00", align 1
|
||||
@8 = private unnamed_addr constant [10 x i8] c"F: not ok\00", align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88" = global ptr null, align 8
|
||||
@_llgo_int = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [1 x i8] c"v", align 1
|
||||
@1 = private unnamed_addr constant [4 x i8] c"main", align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@2 = private unnamed_addr constant [11 x i8] c"Foo: not ok", align 1
|
||||
@"_llgo_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk" = linkonce global ptr null, align 8
|
||||
@3 = private unnamed_addr constant [1 x i8] c"V", align 1
|
||||
@4 = private unnamed_addr constant [11 x i8] c"Bar: not ok", align 1
|
||||
@5 = private unnamed_addr constant [9 x i8] c"F: not ok", align 1
|
||||
|
||||
define %"github.com/goplus/llgo/internal/runtime.eface" @main.Foo() {
|
||||
_llgo_0:
|
||||
@@ -94,7 +91,7 @@ _llgo_2: ; preds = %_llgo_3, %_llgo_1
|
||||
_llgo_3: ; preds = %_llgo_12
|
||||
%16 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %16, i32 0, i32 0
|
||||
store ptr @3, ptr %17, align 8
|
||||
store ptr @2, ptr %17, align 8
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %16, i32 0, i32 1
|
||||
store i64 11, ptr %18, align 4
|
||||
%19 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %16, align 8
|
||||
@@ -121,7 +118,7 @@ _llgo_5: ; preds = %_llgo_6, %_llgo_4
|
||||
_llgo_6: ; preds = %_llgo_15
|
||||
%28 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %28, i32 0, i32 0
|
||||
store ptr @7, ptr %29, align 8
|
||||
store ptr @4, ptr %29, align 8
|
||||
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %28, i32 0, i32 1
|
||||
store i64 11, ptr %30, align 4
|
||||
%31 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %28, align 8
|
||||
@@ -142,7 +139,7 @@ _llgo_8: ; preds = %_llgo_9, %_llgo_7
|
||||
_llgo_9: ; preds = %_llgo_18
|
||||
%34 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %34, i32 0, i32 0
|
||||
store ptr @8, ptr %35, align 8
|
||||
store ptr @5, ptr %35, align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %34, i32 0, i32 1
|
||||
store i64 9, ptr %36, align 4
|
||||
%37 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %34, align 8
|
||||
@@ -258,80 +255,92 @@ _llgo_1: ; preds = %_llgo_0
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%3 = load ptr, ptr @_llgo_int, 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 @1, 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 %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %7, ptr %3, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %11, i1 false)
|
||||
%13 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%14 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %13, i32 0, i32 0
|
||||
store ptr @2, ptr %14, align 8
|
||||
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %13, i32 0, i32 1
|
||||
store i64 4, ptr %15, align 4
|
||||
%16 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %13, align 8
|
||||
%17 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56)
|
||||
%18 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %17, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %12, ptr %18, align 8
|
||||
%19 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %19, i32 0, i32 0
|
||||
store ptr %17, ptr %20, align 8
|
||||
%21 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %19, i32 0, i32 1
|
||||
store i64 1, ptr %21, align 4
|
||||
%22 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %19, i32 0, i32 2
|
||||
store i64 1, ptr %22, align 4
|
||||
%23 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %19, align 8
|
||||
%24 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %16, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %23)
|
||||
store ptr %24, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8
|
||||
%25 = load ptr, ptr @_llgo_int, align 8
|
||||
%26 = load ptr, ptr @"_llgo_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk", align 8
|
||||
%27 = icmp eq ptr %26, null
|
||||
br i1 %27, label %_llgo_3, label %_llgo_4
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %2, i32 0, i32 6
|
||||
%4 = load i8, ptr %3, align 1
|
||||
%5 = or i8 %4, 32
|
||||
store i8 %5, ptr %3, align 1
|
||||
%6 = load ptr, ptr @_llgo_int, align 8
|
||||
%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 @0, 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 %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %10, ptr %6, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %14, i1 false)
|
||||
%16 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %16, i32 0, i32 0
|
||||
store ptr @1, ptr %17, align 8
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %16, i32 0, i32 1
|
||||
store i64 4, ptr %18, align 4
|
||||
%19 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %16, align 8
|
||||
%20 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56)
|
||||
%21 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %20, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %15, ptr %21, align 8
|
||||
%22 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %22, i32 0, i32 0
|
||||
store ptr %20, ptr %23, align 8
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %22, i32 0, i32 1
|
||||
store i64 1, ptr %24, align 4
|
||||
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %22, i32 0, i32 2
|
||||
store i64 1, ptr %25, align 4
|
||||
%26 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %22, align 8
|
||||
%27 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %19, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %26)
|
||||
store ptr %27, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8
|
||||
%28 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %27, i32 0, i32 6
|
||||
%29 = load i8, ptr %28, align 1
|
||||
%30 = or i8 %29, 32
|
||||
store i8 %30, ptr %28, align 1
|
||||
%31 = load ptr, ptr @_llgo_int, align 8
|
||||
%32 = load ptr, ptr @"_llgo_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk", align 8
|
||||
%33 = icmp eq ptr %32, null
|
||||
br i1 %33, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%28 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %28, i32 0, i32 0
|
||||
store ptr @4, ptr %29, align 8
|
||||
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %28, i32 0, i32 1
|
||||
store i64 1, ptr %30, align 4
|
||||
%31 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %28, align 8
|
||||
%32 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %32, i32 0, i32 0
|
||||
store ptr @5, ptr %33, align 8
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %32, i32 0, i32 1
|
||||
store i64 0, ptr %34, align 4
|
||||
%35 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %32, align 8
|
||||
%36 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %31, ptr %25, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %35, 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 @6, 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 56)
|
||||
%42 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %41, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %36, ptr %42, align 8
|
||||
%43 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %43, i32 0, i32 0
|
||||
store ptr %41, ptr %44, align 8
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %43, i32 0, i32 1
|
||||
store i64 1, ptr %45, align 4
|
||||
%46 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %43, i32 0, i32 2
|
||||
store i64 1, ptr %46, align 4
|
||||
%47 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %43, align 8
|
||||
%48 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %40, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %47)
|
||||
store ptr %48, ptr @"_llgo_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk", align 8
|
||||
%34 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %34, i32 0, i32 0
|
||||
store ptr @3, ptr %35, align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %34, i32 0, i32 1
|
||||
store i64 1, ptr %36, align 4
|
||||
%37 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %34, align 8
|
||||
%38 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%39 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %38, i32 0, i32 0
|
||||
store ptr null, ptr %39, align 8
|
||||
%40 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %38, i32 0, i32 1
|
||||
store i64 0, ptr %40, align 4
|
||||
%41 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %38, align 8
|
||||
%42 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %37, ptr %31, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %41, i1 false)
|
||||
%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 @1, ptr %44, align 8
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %43, i32 0, i32 1
|
||||
store i64 4, ptr %45, align 4
|
||||
%46 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %43, align 8
|
||||
%47 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56)
|
||||
%48 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %47, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %42, ptr %48, align 8
|
||||
%49 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, i32 0, i32 0
|
||||
store ptr %47, ptr %50, align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, i32 0, i32 1
|
||||
store i64 1, ptr %51, align 4
|
||||
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, i32 0, i32 2
|
||||
store i64 1, ptr %52, align 4
|
||||
%53 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, align 8
|
||||
%54 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %46, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %53)
|
||||
store ptr %54, ptr @"_llgo_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk", align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %54, i32 0, i32 6
|
||||
%56 = load i8, ptr %55, align 1
|
||||
%57 = or i8 %56, 32
|
||||
store i8 %57, ptr %55, align 1
|
||||
ret void
|
||||
}
|
||||
|
||||
|
||||
@@ -5,37 +5,31 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
||||
%main.bar = type { ptr, float }
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 }
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo" = linkonce global ptr null
|
||||
@"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs" = global ptr null
|
||||
@"*_llgo_byte" = linkonce global ptr null
|
||||
@_llgo_byte = linkonce global ptr null
|
||||
@_llgo_float32 = linkonce global ptr null
|
||||
@0 = private unnamed_addr constant [3 x i8] c"pb\00", align 1
|
||||
@1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@2 = private unnamed_addr constant [2 x i8] c"F\00", align 1
|
||||
@3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@4 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@5 = private unnamed_addr constant [3 x i8] c"Pb\00", align 1
|
||||
@"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE" = linkonce global ptr null
|
||||
@6 = private unnamed_addr constant [39 x i8] c"github.com/goplus/llgo/cl/internal/foo\00", align 1
|
||||
@7 = private unnamed_addr constant [43 x i8] c"github.com/goplus/llgo/cl/internal/foo.Foo\00", align 1
|
||||
@_llgo_main.bar = global ptr null
|
||||
@"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo" = global ptr null
|
||||
@8 = private unnamed_addr constant [3 x i8] c"pb\00", align 1
|
||||
@9 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@10 = private unnamed_addr constant [2 x i8] c"f\00", align 1
|
||||
@11 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@12 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@13 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@14 = private unnamed_addr constant [9 x i8] c"main.bar\00", align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@15 = private unnamed_addr constant [7 x i8] c"notOk:\00", align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo" = linkonce global ptr null, align 8
|
||||
@"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs" = global ptr null, align 8
|
||||
@"*_llgo_byte" = linkonce global ptr null, align 8
|
||||
@_llgo_byte = linkonce global ptr null, align 8
|
||||
@_llgo_float32 = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [2 x i8] c"pb", align 1
|
||||
@1 = private unnamed_addr constant [1 x i8] c"F", align 1
|
||||
@2 = private unnamed_addr constant [4 x i8] c"main", align 1
|
||||
@3 = private unnamed_addr constant [2 x i8] c"Pb", align 1
|
||||
@"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE" = linkonce global ptr null, align 8
|
||||
@4 = private unnamed_addr constant [38 x i8] c"github.com/goplus/llgo/cl/internal/foo", align 1
|
||||
@5 = private unnamed_addr constant [42 x i8] c"github.com/goplus/llgo/cl/internal/foo.Foo", align 1
|
||||
@_llgo_main.bar = global ptr null, align 8
|
||||
@"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo" = global ptr null, align 8
|
||||
@6 = private unnamed_addr constant [1 x i8] c"f", align 1
|
||||
@7 = private unnamed_addr constant [8 x i8] c"main.bar", align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@8 = private unnamed_addr constant [6 x i8] c"notOk:", align 1
|
||||
|
||||
define { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } @main.Bar(%"github.com/goplus/llgo/internal/runtime.eface" %0) {
|
||||
_llgo_0:
|
||||
@@ -143,7 +137,7 @@ _llgo_0:
|
||||
%11 = xor i1 %6, true
|
||||
%12 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %12, i32 0, i32 0
|
||||
store ptr @15, ptr %13, align 8
|
||||
store ptr @8, ptr %13, align 8
|
||||
%14 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %12, i32 0, i32 1
|
||||
store i64 6, ptr %14, align 4
|
||||
%15 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %12, align 8
|
||||
@@ -207,241 +201,249 @@ _llgo_3: ; preds = %_llgo_2
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%6 = load ptr, ptr @_llgo_byte, align 8
|
||||
%7 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%8 = icmp eq ptr %7, null
|
||||
br i1 %8, label %_llgo_5, label %_llgo_6
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %5, i32 0, i32 6
|
||||
%7 = load i8, ptr %6, align 1
|
||||
%8 = or i8 %7, 32
|
||||
store i8 %8, ptr %6, align 1
|
||||
%9 = load ptr, ptr @_llgo_byte, align 8
|
||||
%10 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%11 = icmp eq ptr %10, null
|
||||
br i1 %11, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%9 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %6)
|
||||
store ptr %9, ptr @"*_llgo_byte", align 8
|
||||
%12 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %9)
|
||||
store ptr %12, ptr @"*_llgo_byte", align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
%10 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%11 = load ptr, ptr @_llgo_float32, align 8
|
||||
%12 = icmp eq ptr %11, null
|
||||
br i1 %12, label %_llgo_7, label %_llgo_8
|
||||
%13 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%14 = load ptr, ptr @_llgo_float32, align 8
|
||||
%15 = icmp eq ptr %14, null
|
||||
br i1 %15, label %_llgo_7, label %_llgo_8
|
||||
|
||||
_llgo_7: ; preds = %_llgo_6
|
||||
%13 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 13)
|
||||
store ptr %13, ptr @_llgo_float32, align 8
|
||||
%16 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 13)
|
||||
store ptr %16, ptr @_llgo_float32, align 8
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%14 = load ptr, ptr @_llgo_float32, 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 @0, ptr %16, align 8
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %15, i32 0, i32 1
|
||||
store i64 2, 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 @1, 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 %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %18, ptr %10, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %22, i1 false)
|
||||
%24 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %24, i32 0, i32 0
|
||||
store ptr @2, ptr %25, align 8
|
||||
%26 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %24, i32 0, i32 1
|
||||
store i64 1, ptr %26, align 4
|
||||
%27 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %24, align 8
|
||||
%28 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %28, i32 0, i32 0
|
||||
store ptr @3, ptr %29, align 8
|
||||
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %28, i32 0, i32 1
|
||||
store i64 0, ptr %30, align 4
|
||||
%31 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %28, align 8
|
||||
%32 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %27, ptr %14, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %31, i1 false)
|
||||
%33 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %33, i32 0, i32 0
|
||||
store ptr @4, ptr %34, align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %33, i32 0, i32 1
|
||||
store i64 4, ptr %35, align 4
|
||||
%36 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %33, align 8
|
||||
%37 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||
%38 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %37, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %23, ptr %38, align 8
|
||||
%39 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %37, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %32, ptr %39, align 8
|
||||
%40 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%41 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %40, i32 0, i32 0
|
||||
store ptr %37, ptr %41, align 8
|
||||
%42 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %40, i32 0, i32 1
|
||||
store i64 2, ptr %42, align 4
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %40, i32 0, i32 2
|
||||
store i64 2, ptr %43, align 4
|
||||
%44 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %40, align 8
|
||||
%45 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %36, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %44)
|
||||
store ptr %45, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
||||
%46 = load ptr, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %16, i32 0, i32 6
|
||||
%18 = load i8, ptr %17, align 1
|
||||
%19 = or i8 %18, 32
|
||||
store i8 %19, ptr %17, align 1
|
||||
%20 = load ptr, ptr @_llgo_float32, 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 2, 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 %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %24, ptr %13, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %28, i1 false)
|
||||
%30 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %30, i32 0, i32 0
|
||||
store ptr @1, ptr %31, align 8
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %30, i32 0, i32 1
|
||||
store i64 1, ptr %32, align 4
|
||||
%33 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %30, align 8
|
||||
%34 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %34, i32 0, i32 0
|
||||
store ptr null, ptr %35, align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %34, i32 0, i32 1
|
||||
store i64 0, ptr %36, align 4
|
||||
%37 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %34, align 8
|
||||
%38 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %33, ptr %20, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %37, i1 false)
|
||||
%39 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%40 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %39, i32 0, i32 0
|
||||
store ptr @2, ptr %40, align 8
|
||||
%41 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %39, i32 0, i32 1
|
||||
store i64 4, ptr %41, align 4
|
||||
%42 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %39, align 8
|
||||
%43 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||
%44 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %43, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %29, ptr %44, align 8
|
||||
%45 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %43, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %38, ptr %45, align 8
|
||||
%46 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%47 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %46, i32 0, i32 0
|
||||
store ptr %43, ptr %47, align 8
|
||||
%48 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %46, i32 0, i32 1
|
||||
store i64 2, ptr %48, align 4
|
||||
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %46, i32 0, i32 2
|
||||
store i64 2, ptr %49, align 4
|
||||
%50 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %46, align 8
|
||||
%51 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %42, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %50)
|
||||
store ptr %51, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
||||
%52 = load ptr, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
||||
br i1 %1, label %_llgo_9, label %_llgo_10
|
||||
|
||||
_llgo_9: ; preds = %_llgo_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 2, ptr %49, align 4
|
||||
%50 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %47, align 8
|
||||
%51 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%52 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
%53 = icmp eq ptr %52, null
|
||||
br i1 %53, label %_llgo_11, label %_llgo_12
|
||||
%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 @3, ptr %54, align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %53, i32 0, i32 1
|
||||
store i64 2, ptr %55, align 4
|
||||
%56 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %53, align 8
|
||||
%57 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%58 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
%59 = icmp eq ptr %58, null
|
||||
br i1 %59, label %_llgo_11, label %_llgo_12
|
||||
|
||||
_llgo_10: ; preds = %_llgo_12, %_llgo_8
|
||||
%54 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 25, i64 0, i64 0)
|
||||
store ptr %54, ptr @_llgo_main.bar, align 8
|
||||
%55 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%56 = load ptr, ptr @_llgo_float32, align 8
|
||||
%57 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %57, i32 0, i32 0
|
||||
store ptr @8, ptr %58, align 8
|
||||
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %57, i32 0, i32 1
|
||||
store i64 2, ptr %59, align 4
|
||||
%60 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %57, align 8
|
||||
%61 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%62 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %61, i32 0, i32 0
|
||||
store ptr @9, ptr %62, align 8
|
||||
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %61, i32 0, i32 1
|
||||
store i64 0, ptr %63, align 4
|
||||
%64 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %61, align 8
|
||||
%65 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %60, ptr %55, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %64, i1 false)
|
||||
%66 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %66, i32 0, i32 0
|
||||
store ptr @10, ptr %67, align 8
|
||||
%68 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %66, i32 0, i32 1
|
||||
store i64 1, ptr %68, align 4
|
||||
%69 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %66, align 8
|
||||
%70 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%71 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %70, i32 0, i32 0
|
||||
store ptr @11, ptr %71, align 8
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %70, i32 0, i32 1
|
||||
store i64 0, ptr %72, align 4
|
||||
%73 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %70, align 8
|
||||
%74 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %69, ptr %56, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %73, i1 false)
|
||||
%75 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %75, i32 0, i32 0
|
||||
store ptr @12, ptr %76, align 8
|
||||
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %75, i32 0, i32 1
|
||||
store i64 4, ptr %77, align 4
|
||||
%78 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %75, align 8
|
||||
%79 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||
%80 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %79, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %65, ptr %80, align 8
|
||||
%81 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %79, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %74, ptr %81, align 8
|
||||
%82 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%83 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %82, i32 0, i32 0
|
||||
store ptr %79, ptr %83, align 8
|
||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %82, i32 0, i32 1
|
||||
store i64 2, ptr %84, align 4
|
||||
%85 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %82, i32 0, i32 2
|
||||
store i64 2, ptr %85, align 4
|
||||
%86 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %82, align 8
|
||||
%87 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %78, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %86)
|
||||
store ptr %87, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8
|
||||
%88 = load ptr, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8
|
||||
%89 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %89, i32 0, i32 0
|
||||
store ptr @13, ptr %90, align 8
|
||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %89, i32 0, i32 1
|
||||
store i64 4, ptr %91, align 4
|
||||
%92 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %89, align 8
|
||||
%93 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%94 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %93, i32 0, i32 0
|
||||
store ptr @14, ptr %94, align 8
|
||||
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %93, i32 0, i32 1
|
||||
store i64 8, ptr %95, align 4
|
||||
%96 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %93, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %54, %"github.com/goplus/llgo/internal/runtime.String" %92, %"github.com/goplus/llgo/internal/runtime.String" %96, ptr %88, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
||||
%60 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 25, i64 0, i64 0)
|
||||
store ptr %60, ptr @_llgo_main.bar, align 8
|
||||
%61 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%62 = load ptr, ptr @_llgo_float32, align 8
|
||||
%63 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %63, i32 0, i32 0
|
||||
store ptr @0, ptr %64, align 8
|
||||
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %63, i32 0, i32 1
|
||||
store i64 2, ptr %65, align 4
|
||||
%66 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %63, 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 null, ptr %68, align 8
|
||||
%69 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %67, i32 0, i32 1
|
||||
store i64 0, ptr %69, align 4
|
||||
%70 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %67, align 8
|
||||
%71 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %66, ptr %61, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %70, i1 false)
|
||||
%72 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%73 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %72, i32 0, i32 0
|
||||
store ptr @6, ptr %73, align 8
|
||||
%74 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %72, i32 0, i32 1
|
||||
store i64 1, ptr %74, align 4
|
||||
%75 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %72, align 8
|
||||
%76 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %76, i32 0, i32 0
|
||||
store ptr null, ptr %77, align 8
|
||||
%78 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %76, i32 0, i32 1
|
||||
store i64 0, ptr %78, align 4
|
||||
%79 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %76, align 8
|
||||
%80 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %75, ptr %62, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %79, i1 false)
|
||||
%81 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%82 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %81, i32 0, i32 0
|
||||
store ptr @2, ptr %82, align 8
|
||||
%83 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %81, i32 0, i32 1
|
||||
store i64 4, ptr %83, align 4
|
||||
%84 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %81, align 8
|
||||
%85 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||
%86 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %85, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %71, ptr %86, align 8
|
||||
%87 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %85, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %80, 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 %85, ptr %89, align 8
|
||||
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %88, i32 0, i32 1
|
||||
store i64 2, ptr %90, align 4
|
||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %88, i32 0, i32 2
|
||||
store i64 2, 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.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %84, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %92)
|
||||
store ptr %93, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8
|
||||
%94 = load ptr, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8
|
||||
%95 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %95, i32 0, i32 0
|
||||
store ptr @2, ptr %96, align 8
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %95, i32 0, i32 1
|
||||
store i64 4, ptr %97, align 4
|
||||
%98 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %95, align 8
|
||||
%99 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%100 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %99, i32 0, i32 0
|
||||
store ptr @7, ptr %100, align 8
|
||||
%101 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %99, i32 0, i32 1
|
||||
store i64 8, ptr %101, align 4
|
||||
%102 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %99, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %60, %"github.com/goplus/llgo/internal/runtime.String" %98, %"github.com/goplus/llgo/internal/runtime.String" %102, ptr %94, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
||||
ret void
|
||||
|
||||
_llgo_11: ; preds = %_llgo_9
|
||||
%97 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%98 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %98, i32 0, i32 0
|
||||
store ptr %97, ptr %99, align 8
|
||||
%100 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %98, i32 0, i32 1
|
||||
store i64 0, ptr %100, align 4
|
||||
%101 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %98, i32 0, i32 2
|
||||
store i64 0, ptr %101, align 4
|
||||
%102 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %98, align 8
|
||||
%103 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%104 = getelementptr ptr, ptr %103, i64 0
|
||||
store ptr %51, ptr %104, align 8
|
||||
%105 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%106 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %105, i32 0, i32 0
|
||||
store ptr %103, ptr %106, align 8
|
||||
%107 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %105, i32 0, i32 1
|
||||
store i64 1, ptr %107, align 4
|
||||
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %105, i32 0, i32 2
|
||||
store i64 1, ptr %108, align 4
|
||||
%109 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %105, align 8
|
||||
%110 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %102, %"github.com/goplus/llgo/internal/runtime.Slice" %109, i1 false)
|
||||
store ptr %110, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
%103 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%104 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%105 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %104, i32 0, i32 0
|
||||
store ptr %103, ptr %105, align 8
|
||||
%106 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %104, i32 0, i32 1
|
||||
store i64 0, ptr %106, align 4
|
||||
%107 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %104, i32 0, i32 2
|
||||
store i64 0, ptr %107, align 4
|
||||
%108 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %104, align 8
|
||||
%109 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%110 = getelementptr ptr, ptr %109, i64 0
|
||||
store ptr %57, ptr %110, align 8
|
||||
%111 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%112 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %111, i32 0, i32 0
|
||||
store ptr %109, ptr %112, align 8
|
||||
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %111, i32 0, i32 1
|
||||
store i64 1, ptr %113, align 4
|
||||
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %111, i32 0, i32 2
|
||||
store i64 1, ptr %114, align 4
|
||||
%115 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %111, align 8
|
||||
%116 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %108, %"github.com/goplus/llgo/internal/runtime.Slice" %115, i1 false)
|
||||
store ptr %116, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_9
|
||||
%111 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
%112 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %112, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %50, ptr %113, align 8
|
||||
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %112, i32 0, i32 1
|
||||
store ptr %111, ptr %114, align 8
|
||||
%115 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %112, i32 0, i32 2
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", ptr %115, align 8
|
||||
%116 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %112, i32 0, i32 3
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", ptr %116, align 8
|
||||
%117 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %112, align 8
|
||||
%117 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
%118 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%119 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %118, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %50, ptr %119, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %56, ptr %119, align 8
|
||||
%120 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %118, i32 0, i32 1
|
||||
store ptr %111, ptr %120, align 8
|
||||
store ptr %117, ptr %120, align 8
|
||||
%121 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %118, i32 0, i32 2
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", ptr %121, align 8
|
||||
%122 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %118, i32 0, i32 3
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.Foo.Pb", ptr %122, align 8
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", ptr %122, align 8
|
||||
%123 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %118, align 8
|
||||
%124 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%125 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %124, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %123, ptr %125, align 8
|
||||
%126 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %126, i32 0, i32 0
|
||||
store ptr %124, ptr %127, align 8
|
||||
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %126, i32 0, i32 1
|
||||
store i64 1, ptr %128, align 4
|
||||
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %126, i32 0, i32 2
|
||||
store i64 1, ptr %129, align 4
|
||||
%130 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %126, align 8
|
||||
%131 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%132 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %131, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %117, ptr %132, align 8
|
||||
%133 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%134 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 0
|
||||
store ptr %131, ptr %134, align 8
|
||||
%135 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 1
|
||||
%124 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%125 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %124, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %56, ptr %125, align 8
|
||||
%126 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %124, i32 0, i32 1
|
||||
store ptr %117, ptr %126, align 8
|
||||
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %124, i32 0, i32 2
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", ptr %127, align 8
|
||||
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %124, i32 0, i32 3
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.Foo.Pb", ptr %128, align 8
|
||||
%129 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %124, align 8
|
||||
%130 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%131 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %130, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %129, ptr %131, align 8
|
||||
%132 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%133 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %132, i32 0, i32 0
|
||||
store ptr %130, ptr %133, align 8
|
||||
%134 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %132, i32 0, i32 1
|
||||
store i64 1, ptr %134, align 4
|
||||
%135 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %132, i32 0, i32 2
|
||||
store i64 1, ptr %135, align 4
|
||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 2
|
||||
store i64 1, ptr %136, align 4
|
||||
%137 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, align 8
|
||||
%138 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %138, i32 0, i32 0
|
||||
store ptr @6, ptr %139, align 8
|
||||
%140 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %138, i32 0, i32 1
|
||||
store i64 38, ptr %140, align 4
|
||||
%141 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %138, align 8
|
||||
%142 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %142, i32 0, i32 0
|
||||
store ptr @7, ptr %143, align 8
|
||||
%144 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %142, i32 0, i32 1
|
||||
store i64 42, ptr %144, align 4
|
||||
%145 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %142, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %2, %"github.com/goplus/llgo/internal/runtime.String" %141, %"github.com/goplus/llgo/internal/runtime.String" %145, ptr %46, %"github.com/goplus/llgo/internal/runtime.Slice" %130, %"github.com/goplus/llgo/internal/runtime.Slice" %137)
|
||||
%136 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %132, align 8
|
||||
%137 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%138 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %137, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %123, ptr %138, align 8
|
||||
%139 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%140 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %139, i32 0, i32 0
|
||||
store ptr %137, ptr %140, align 8
|
||||
%141 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %139, i32 0, i32 1
|
||||
store i64 1, ptr %141, align 4
|
||||
%142 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %139, i32 0, i32 2
|
||||
store i64 1, ptr %142, align 4
|
||||
%143 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %139, align 8
|
||||
%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 @4, ptr %145, align 8
|
||||
%146 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %144, i32 0, i32 1
|
||||
store i64 38, 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 @5, ptr %149, align 8
|
||||
%150 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %148, i32 0, i32 1
|
||||
store i64 42, ptr %150, align 4
|
||||
%151 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %148, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %2, %"github.com/goplus/llgo/internal/runtime.String" %147, %"github.com/goplus/llgo/internal/runtime.String" %151, ptr %52, %"github.com/goplus/llgo/internal/runtime.Slice" %136, %"github.com/goplus/llgo/internal/runtime.Slice" %143)
|
||||
br label %_llgo_10
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@0 = private unnamed_addr constant [20 x i8] c"==> Error: (%d) %s\0A\00", align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@1 = private unnamed_addr constant [9 x i8] c":memory:\00", align 1
|
||||
|
||||
define void @main.check(i32 %0) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@__llgo_py.math.sqrt = linkonce global ptr null
|
||||
@__llgo_py.os.getcwd = linkonce global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@__llgo_py.math.sqrt = linkonce global ptr null, align 8
|
||||
@__llgo_py.os.getcwd = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [14 x i8] c"sqrt(2) = %f\0A\00", align 1
|
||||
@1 = private unnamed_addr constant [10 x i8] c"cwd = %s\0A\00", align 1
|
||||
@__llgo_py.math = external global ptr
|
||||
@__llgo_py.math = external global ptr, align 8
|
||||
@2 = private unnamed_addr constant [5 x i8] c"sqrt\00", align 1
|
||||
@__llgo_py.os = external global ptr
|
||||
@__llgo_py.os = external global ptr, align 8
|
||||
@3 = private unnamed_addr constant [7 x i8] c"getcwd\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@__llgo_py.math.gcd = linkonce global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@__llgo_py.math.gcd = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [22 x i8] c"gcd(60, 20, 25) = %d\0A\00", align 1
|
||||
@__llgo_py.math = external global ptr
|
||||
@__llgo_py.math = external global ptr, align 8
|
||||
@1 = private unnamed_addr constant [4 x i8] c"gcd\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
; ModuleID = 'math'
|
||||
source_filename = "math"
|
||||
|
||||
@"math.init$guard" = global ptr null
|
||||
@__llgo_py.math = linkonce global ptr null
|
||||
@"math.init$guard" = global i1 false, align 1
|
||||
@__llgo_py.math = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [5 x i8] c"math\00", align 1
|
||||
|
||||
define void @math.init() {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@__llgo_py.numpy.add = linkonce global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@__llgo_py.numpy.add = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [8 x i8] c"a = %s\0A\00", align 1
|
||||
@1 = private unnamed_addr constant [8 x i8] c"a = %s\0A\00", align 1
|
||||
@2 = private unnamed_addr constant [10 x i8] c"a+b = %s\0A\00", align 1
|
||||
@__llgo_py.numpy = external global ptr
|
||||
@__llgo_py.numpy = external global ptr, align 8
|
||||
@3 = private unnamed_addr constant [4 x i8] c"add\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@__llgo_py.builtins.max = linkonce global ptr null
|
||||
@__llgo_py.builtins.print = linkonce global ptr null
|
||||
@__llgo_py.builtins.iter = linkonce global ptr null
|
||||
@__llgo_py.builtins = external global ptr
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@__llgo_py.builtins.max = linkonce global ptr null, align 8
|
||||
@__llgo_py.builtins.print = linkonce global ptr null, align 8
|
||||
@__llgo_py.builtins.iter = linkonce global ptr null, align 8
|
||||
@__llgo_py.builtins = external global ptr, align 8
|
||||
@0 = private unnamed_addr constant [5 x i8] c"iter\00", align 1
|
||||
@1 = private unnamed_addr constant [4 x i8] c"max\00", align 1
|
||||
@2 = private unnamed_addr constant [6 x i8] c"print\00", align 1
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [9 x i8] c"pi = %f\0A\00", align 1
|
||||
@__llgo_py.math = external global ptr
|
||||
@__llgo_py.math = external global ptr, align 8
|
||||
@1 = private unnamed_addr constant [3 x i8] c"pi\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@__llgo_py.math.pow = linkonce global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@__llgo_py.math.pow = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [16 x i8] c"pow(2, 3) = %f\0A\00", align 1
|
||||
@__llgo_py.math = external global ptr
|
||||
@__llgo_py.math = external global ptr, align 8
|
||||
@1 = private unnamed_addr constant [4 x i8] c"pow\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [4 x i8] c"Hi\0A\00", align 1
|
||||
@1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@ source_filename = "main"
|
||||
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@0 = private unnamed_addr constant [13 x i8] c"Hello world\0A\00", align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@0 = private unnamed_addr constant [12 x i8] c"Hello world\0A", align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define %"github.com/goplus/llgo/internal/runtime.String" @main.hello() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -5,17 +5,16 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@"*_llgo_int8" = linkonce global ptr null
|
||||
@_llgo_int8 = linkonce global ptr null
|
||||
@0 = private unnamed_addr constant [22 x i8] c"type assertion failed\00", align 1
|
||||
@_llgo_string = linkonce global ptr null
|
||||
@_llgo_int = linkonce global ptr null
|
||||
@1 = private unnamed_addr constant [22 x i8] c"type assertion failed\00", align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@2 = private unnamed_addr constant [7 x i8] c"%s %d\0A\00", align 1
|
||||
@3 = private unnamed_addr constant [6 x i8] c"Hello\00", align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@"*_llgo_int8" = linkonce global ptr null, align 8
|
||||
@_llgo_int8 = linkonce global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [21 x i8] c"type assertion failed", align 1
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
@_llgo_int = linkonce global ptr null, align 8
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@1 = private unnamed_addr constant [7 x i8] c"%s %d\0A\00", align 1
|
||||
@2 = private unnamed_addr constant [6 x i8] c"Hello\00", align 1
|
||||
|
||||
define ptr @main.hi(%"github.com/goplus/llgo/internal/runtime.eface" %0) {
|
||||
_llgo_0:
|
||||
@@ -64,7 +63,7 @@ _llgo_1: ; preds = %_llgo_0
|
||||
_llgo_2: ; preds = %_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 @1, ptr %8, align 8
|
||||
store ptr @0, ptr %8, align 8
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %7, i32 0, i32 1
|
||||
store i64 21, ptr %9, align 4
|
||||
%10 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %7, align 8
|
||||
@@ -106,7 +105,7 @@ _llgo_0:
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %3, i32 0, i32 0
|
||||
store ptr %2, ptr %4, align 8
|
||||
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %3, i32 0, i32 1
|
||||
store ptr @3, ptr %5, align 8
|
||||
store ptr @2, ptr %5, align 8
|
||||
%6 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %3, align 8
|
||||
%7 = call ptr @main.hi(%"github.com/goplus/llgo/internal/runtime.eface" %6)
|
||||
%8 = load ptr, ptr @_llgo_int, align 8
|
||||
@@ -121,7 +120,7 @@ _llgo_0:
|
||||
store ptr inttoptr (i64 100 to ptr), ptr %14, align 8
|
||||
%15 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %12, align 8
|
||||
%16 = call i64 @main.incVal(%"github.com/goplus/llgo/internal/runtime.eface" %15)
|
||||
%17 = call i32 (ptr, ...) @printf(ptr @2, ptr %7, i64 %16)
|
||||
%17 = call i32 (ptr, ...) @printf(ptr @1, ptr %7, i64 %16)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
@@ -137,37 +136,45 @@ _llgo_1: ; preds = %_llgo_0
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%3 = load ptr, ptr @_llgo_int8, align 8
|
||||
%4 = load ptr, ptr @"*_llgo_int8", align 8
|
||||
%5 = icmp eq ptr %4, null
|
||||
br i1 %5, label %_llgo_3, label %_llgo_4
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %2, i32 0, i32 6
|
||||
%4 = load i8, ptr %3, align 1
|
||||
%5 = or i8 %4, 32
|
||||
store i8 %5, ptr %3, align 1
|
||||
%6 = load ptr, ptr @_llgo_int8, align 8
|
||||
%7 = load ptr, ptr @"*_llgo_int8", align 8
|
||||
%8 = icmp eq ptr %7, null
|
||||
br i1 %8, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%6 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %3)
|
||||
store ptr %6, ptr @"*_llgo_int8", align 8
|
||||
%9 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %6)
|
||||
store ptr %9, ptr @"*_llgo_int8", align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%7 = load ptr, ptr @_llgo_string, align 8
|
||||
%8 = icmp eq ptr %7, null
|
||||
br i1 %8, label %_llgo_5, label %_llgo_6
|
||||
%10 = load ptr, ptr @_llgo_string, align 8
|
||||
%11 = icmp eq ptr %10, null
|
||||
br i1 %11, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %9, ptr @_llgo_string, align 8
|
||||
%12 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %12, ptr @_llgo_string, align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
%10 = load ptr, ptr @_llgo_int, align 8
|
||||
%11 = icmp eq ptr %10, null
|
||||
br i1 %11, label %_llgo_7, label %_llgo_8
|
||||
%13 = load ptr, ptr @_llgo_int, align 8
|
||||
%14 = icmp eq ptr %13, null
|
||||
br i1 %14, label %_llgo_7, label %_llgo_8
|
||||
|
||||
_llgo_7: ; preds = %_llgo_6
|
||||
%12 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 2)
|
||||
store ptr %12, ptr @_llgo_int, align 8
|
||||
%15 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 2)
|
||||
store ptr %15, ptr @_llgo_int, align 8
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %15, i32 0, i32 6
|
||||
%17 = load i8, ptr %16, align 1
|
||||
%18 = or i8 %17, 32
|
||||
store i8 %18, ptr %16, align 1
|
||||
ret void
|
||||
}
|
||||
|
||||
|
||||
@@ -6,37 +6,20 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
||||
|
||||
@main.a = global ptr null
|
||||
@main.b = global ptr null
|
||||
@"main.init$guard" = global ptr null
|
||||
@main.n = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@0 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
|
||||
@1 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
|
||||
@2 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
|
||||
@3 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
|
||||
@4 = private unnamed_addr constant [4 x i8] c"def\00", align 1
|
||||
@_llgo_int = linkonce global ptr null
|
||||
@5 = private unnamed_addr constant [5 x i8] c"ABCD\00", align 1
|
||||
@6 = private unnamed_addr constant [8 x i8] c"\E4\B8\ADabcd\00", align 1
|
||||
@7 = private unnamed_addr constant [8 x i8] c"\E4\B8\ADabcd\00", align 1
|
||||
@8 = private unnamed_addr constant [8 x i8] c"\E4\B8\ADabcd\00", align 1
|
||||
@9 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
|
||||
@10 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
|
||||
@11 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
|
||||
@12 = private unnamed_addr constant [4 x i8] c"abd\00", align 1
|
||||
@13 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
|
||||
@14 = private unnamed_addr constant [4 x i8] c"abd\00", align 1
|
||||
@15 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
|
||||
@16 = private unnamed_addr constant [4 x i8] c"abd\00", align 1
|
||||
@17 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
|
||||
@18 = private unnamed_addr constant [4 x i8] c"abd\00", align 1
|
||||
@19 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
|
||||
@20 = private unnamed_addr constant [4 x i8] c"abd\00", align 1
|
||||
@21 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
|
||||
@22 = private unnamed_addr constant [4 x i8] c"abd\00", align 1
|
||||
@23 = private unnamed_addr constant [3 x i8] c"fn\00", align 1
|
||||
@main.a = global i64 0, align 8
|
||||
@main.b = global i64 0, align 8
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@main.n = global i64 0, align 8
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
||||
@1 = private unnamed_addr constant [3 x i8] c"def", align 1
|
||||
@_llgo_int = linkonce global ptr null, align 8
|
||||
@2 = private unnamed_addr constant [4 x i8] c"ABCD", align 1
|
||||
@3 = private unnamed_addr constant [7 x i8] c"\E4\B8\ADabcd", align 1
|
||||
@4 = private unnamed_addr constant [3 x i8] c"abc", align 1
|
||||
@5 = private unnamed_addr constant [3 x i8] c"abd", align 1
|
||||
@6 = private unnamed_addr constant [2 x i8] c"fn", align 1
|
||||
|
||||
define double @main.Float64frombits(i64 %0) {
|
||||
_llgo_0:
|
||||
@@ -249,14 +232,14 @@ _llgo_0:
|
||||
%77 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.NewStringSlice"(%"github.com/goplus/llgo/internal/runtime.String" %75, i64 1, i64 %76)
|
||||
%78 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%79 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %78, i32 0, i32 0
|
||||
store ptr @1, ptr %79, align 8
|
||||
store ptr @0, ptr %79, align 8
|
||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %78, i32 0, i32 1
|
||||
store i64 5, ptr %80, align 4
|
||||
%81 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %78, align 8
|
||||
%82 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.NewStringSlice"(%"github.com/goplus/llgo/internal/runtime.String" %81, i64 1, i64 2)
|
||||
%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 @2, ptr %84, align 8
|
||||
store ptr @0, ptr %84, align 8
|
||||
%85 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %83, i32 0, i32 1
|
||||
store i64 5, ptr %85, align 4
|
||||
%86 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %83, align 8
|
||||
@@ -265,7 +248,7 @@ _llgo_0:
|
||||
%89 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %88, 1
|
||||
%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 @3, ptr %91, align 8
|
||||
store ptr @0, ptr %91, align 8
|
||||
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %90, i32 0, i32 1
|
||||
store i64 5, ptr %92, align 4
|
||||
%93 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %90, align 8
|
||||
@@ -316,7 +299,7 @@ _llgo_0:
|
||||
%115 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %111, align 8
|
||||
%116 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%117 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %116, i32 0, i32 0
|
||||
store ptr @4, ptr %117, align 8
|
||||
store ptr @1, ptr %117, align 8
|
||||
%118 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %116, i32 0, i32 1
|
||||
store i64 3, ptr %118, align 4
|
||||
%119 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %116, align 8
|
||||
@@ -397,7 +380,7 @@ _llgo_0:
|
||||
%154 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %134, i64 1, i64 3, i64 1, i64 3, i64 3)
|
||||
%155 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%156 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %155, i32 0, i32 0
|
||||
store ptr @5, ptr %156, align 8
|
||||
store ptr @2, ptr %156, align 8
|
||||
%157 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %155, i32 0, i32 1
|
||||
store i64 4, ptr %157, align 4
|
||||
%158 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %155, align 8
|
||||
@@ -443,7 +426,7 @@ _llgo_0:
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%179 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%180 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %179, i32 0, i32 0
|
||||
store ptr @6, ptr %180, align 8
|
||||
store ptr @3, ptr %180, align 8
|
||||
%181 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %179, i32 0, i32 1
|
||||
store i64 7, ptr %181, align 4
|
||||
%182 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %179, align 8
|
||||
@@ -484,14 +467,14 @@ _llgo_3: ; preds = %_llgo_1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%195 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%196 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %195, i32 0, i32 0
|
||||
store ptr @7, ptr %196, align 8
|
||||
store ptr @3, ptr %196, align 8
|
||||
%197 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %195, i32 0, i32 1
|
||||
store i64 7, ptr %197, align 4
|
||||
%198 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %195, align 8
|
||||
%199 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String" %198)
|
||||
%200 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%201 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %200, i32 0, i32 0
|
||||
store ptr @8, ptr %201, align 8
|
||||
store ptr @3, ptr %201, align 8
|
||||
%202 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %200, i32 0, i32 1
|
||||
store i64 7, ptr %202, align 4
|
||||
%203 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %200, align 8
|
||||
@@ -521,39 +504,39 @@ _llgo_3: ; preds = %_llgo_1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%216 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%217 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %216, i32 0, i32 0
|
||||
store ptr @9, ptr %217, align 8
|
||||
store ptr @4, ptr %217, align 8
|
||||
%218 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %216, i32 0, i32 1
|
||||
store i64 3, ptr %218, align 4
|
||||
%219 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %216, align 8
|
||||
%220 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%221 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %220, i32 0, i32 0
|
||||
store ptr @10, ptr %221, align 8
|
||||
store ptr @4, ptr %221, align 8
|
||||
%222 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %220, i32 0, i32 1
|
||||
store i64 3, ptr %222, align 4
|
||||
%223 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %220, align 8
|
||||
%224 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %219, %"github.com/goplus/llgo/internal/runtime.String" %223)
|
||||
%225 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%226 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %225, i32 0, i32 0
|
||||
store ptr @11, ptr %226, align 8
|
||||
store ptr @4, ptr %226, align 8
|
||||
%227 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %225, i32 0, i32 1
|
||||
store i64 3, ptr %227, align 4
|
||||
%228 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %225, align 8
|
||||
%229 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%230 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %229, i32 0, i32 0
|
||||
store ptr @12, ptr %230, align 8
|
||||
store ptr @5, ptr %230, align 8
|
||||
%231 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %229, i32 0, i32 1
|
||||
store i64 3, ptr %231, align 4
|
||||
%232 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %229, align 8
|
||||
%233 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %228, %"github.com/goplus/llgo/internal/runtime.String" %232)
|
||||
%234 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%235 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %234, i32 0, i32 0
|
||||
store ptr @13, ptr %235, align 8
|
||||
store ptr @4, ptr %235, align 8
|
||||
%236 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %234, i32 0, i32 1
|
||||
store i64 3, ptr %236, align 4
|
||||
%237 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %234, align 8
|
||||
%238 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%239 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %238, i32 0, i32 0
|
||||
store ptr @14, ptr %239, align 8
|
||||
store ptr @5, ptr %239, align 8
|
||||
%240 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %238, i32 0, i32 1
|
||||
store i64 3, ptr %240, align 4
|
||||
%241 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %238, align 8
|
||||
@@ -561,26 +544,26 @@ _llgo_3: ; preds = %_llgo_1
|
||||
%243 = xor i1 %242, true
|
||||
%244 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%245 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %244, i32 0, i32 0
|
||||
store ptr @15, ptr %245, align 8
|
||||
store ptr @4, ptr %245, align 8
|
||||
%246 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %244, i32 0, i32 1
|
||||
store i64 3, ptr %246, align 4
|
||||
%247 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %244, align 8
|
||||
%248 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%249 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %248, i32 0, i32 0
|
||||
store ptr @16, ptr %249, align 8
|
||||
store ptr @5, ptr %249, align 8
|
||||
%250 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %248, i32 0, i32 1
|
||||
store i64 3, ptr %250, align 4
|
||||
%251 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %248, align 8
|
||||
%252 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" %247, %"github.com/goplus/llgo/internal/runtime.String" %251)
|
||||
%253 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%254 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %253, i32 0, i32 0
|
||||
store ptr @17, ptr %254, align 8
|
||||
store ptr @4, ptr %254, align 8
|
||||
%255 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %253, i32 0, i32 1
|
||||
store i64 3, ptr %255, align 4
|
||||
%256 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %253, align 8
|
||||
%257 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%258 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %257, i32 0, i32 0
|
||||
store ptr @18, ptr %258, align 8
|
||||
store ptr @5, ptr %258, align 8
|
||||
%259 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %257, i32 0, i32 1
|
||||
store i64 3, ptr %259, align 4
|
||||
%260 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %257, align 8
|
||||
@@ -588,26 +571,26 @@ _llgo_3: ; preds = %_llgo_1
|
||||
%262 = xor i1 %261, true
|
||||
%263 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%264 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %263, i32 0, i32 0
|
||||
store ptr @19, ptr %264, align 8
|
||||
store ptr @4, ptr %264, align 8
|
||||
%265 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %263, i32 0, i32 1
|
||||
store i64 3, ptr %265, align 4
|
||||
%266 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %263, align 8
|
||||
%267 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%268 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %267, i32 0, i32 0
|
||||
store ptr @20, ptr %268, align 8
|
||||
store ptr @5, ptr %268, align 8
|
||||
%269 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %267, i32 0, i32 1
|
||||
store i64 3, ptr %269, align 4
|
||||
%270 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %267, align 8
|
||||
%271 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" %270, %"github.com/goplus/llgo/internal/runtime.String" %266)
|
||||
%272 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%273 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %272, i32 0, i32 0
|
||||
store ptr @21, ptr %273, align 8
|
||||
store ptr @4, ptr %273, align 8
|
||||
%274 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %272, i32 0, i32 1
|
||||
store i64 3, ptr %274, align 4
|
||||
%275 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %272, align 8
|
||||
%276 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%277 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %276, i32 0, i32 0
|
||||
store ptr @22, ptr %277, align 8
|
||||
store ptr @5, ptr %277, align 8
|
||||
%278 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %276, i32 0, i32 1
|
||||
store i64 3, ptr %278, align 4
|
||||
%279 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %276, align 8
|
||||
@@ -660,6 +643,10 @@ _llgo_1: ; preds = %_llgo_0
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %2, i32 0, i32 6
|
||||
%4 = load i8, ptr %3, align 1
|
||||
%5 = or i8 %4, 32
|
||||
store i8 %5, ptr %3, align 1
|
||||
ret void
|
||||
}
|
||||
|
||||
@@ -693,7 +680,7 @@ define void @"main.main$1"() {
|
||||
_llgo_0:
|
||||
%0 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%1 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 0
|
||||
store ptr @23, ptr %1, align 8
|
||||
store ptr @6, ptr %1, align 8
|
||||
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 1
|
||||
store i64 2, ptr %2, align 4
|
||||
%3 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %0, align 8
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [7 x i8] c"Hello\0A\00", align 1
|
||||
@1 = private unnamed_addr constant [10 x i8] c"callback\0A\00", align 1
|
||||
|
||||
|
||||
@@ -4,23 +4,11 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@0 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@_llgo_string = linkonce global ptr null
|
||||
@1 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@2 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@3 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@4 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@5 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@6 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@7 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@8 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@9 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@10 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@11 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@12 = private unnamed_addr constant [6 x i8] c"error\00", align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@0 = private unnamed_addr constant [5 x i8] c"error", align 1
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.cvt32Fto32(float %0, i32 %1) {
|
||||
_llgo_0:
|
||||
@@ -60,7 +48,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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 @1, ptr %5, align 8
|
||||
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 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -89,7 +77,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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 @2, ptr %5, align 8
|
||||
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 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -118,7 +106,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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 @3, ptr %5, align 8
|
||||
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 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -147,7 +135,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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 @4, ptr %5, align 8
|
||||
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 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -176,7 +164,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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 @5, ptr %5, align 8
|
||||
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 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -205,7 +193,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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 @6, ptr %5, align 8
|
||||
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 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -234,7 +222,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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 @7, ptr %5, align 8
|
||||
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 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -263,7 +251,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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 @8, ptr %5, align 8
|
||||
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 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -292,7 +280,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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 @9, ptr %5, align 8
|
||||
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 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -321,7 +309,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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 @10, ptr %5, align 8
|
||||
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 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -350,7 +338,7 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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 @11, ptr %5, align 8
|
||||
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 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -374,7 +362,7 @@ _llgo_2: ; preds = %_llgo_0
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%16 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %16, i32 0, i32 0
|
||||
store ptr @12, ptr %17, align 8
|
||||
store ptr @0, ptr %17, align 8
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %16, i32 0, i32 1
|
||||
store i64 5, ptr %18, align 4
|
||||
%19 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %16, align 8
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
|
||||
@1 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
|
||||
|
||||
|
||||
@@ -4,22 +4,20 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@0 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@2 = private unnamed_addr constant [4 x i8] c"...\00", align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@3 = private unnamed_addr constant [6 x i8] c"Hello\00", align 1
|
||||
@4 = private unnamed_addr constant [2 x i8] c" \00", align 1
|
||||
@5 = private unnamed_addr constant [6 x i8] c"World\00", align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@0 = private unnamed_addr constant [3 x i8] c"...", align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@1 = private unnamed_addr constant [5 x i8] c"Hello", align 1
|
||||
@2 = private unnamed_addr constant [1 x i8] c" ", align 1
|
||||
@3 = private unnamed_addr constant [5 x i8] c"World", align 1
|
||||
|
||||
define %"github.com/goplus/llgo/internal/runtime.String" @main.concat(%"github.com/goplus/llgo/internal/runtime.Slice" %0) {
|
||||
_llgo_0:
|
||||
%1 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %0, 1
|
||||
%2 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 0
|
||||
store ptr @0, ptr %3, align 8
|
||||
store ptr null, ptr %3, align 8
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 1
|
||||
store i64 0, ptr %4, align 4
|
||||
%5 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8
|
||||
@@ -49,14 +47,14 @@ define %"github.com/goplus/llgo/internal/runtime.String" @main.info(%"github.com
|
||||
_llgo_0:
|
||||
%1 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %1, i32 0, i32 0
|
||||
store ptr @1, ptr %2, align 8
|
||||
store ptr null, ptr %2, align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %1, i32 0, i32 1
|
||||
store i64 0, ptr %3, align 4
|
||||
%4 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %1, align 8
|
||||
%5 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringCat"(%"github.com/goplus/llgo/internal/runtime.String" %4, %"github.com/goplus/llgo/internal/runtime.String" %0)
|
||||
%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 @2, ptr %7, align 8
|
||||
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 3, ptr %8, align 4
|
||||
%9 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %6, align 8
|
||||
@@ -87,7 +85,7 @@ _llgo_0:
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i64 0
|
||||
%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 @3, ptr %5, align 8
|
||||
store ptr @1, ptr %5, align 8
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %4, i32 0, i32 1
|
||||
store i64 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -95,7 +93,7 @@ _llgo_0:
|
||||
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i64 1
|
||||
%9 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %9, i32 0, i32 0
|
||||
store ptr @4, ptr %10, align 8
|
||||
store ptr @2, ptr %10, align 8
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %9, i32 0, i32 1
|
||||
store i64 1, ptr %11, align 4
|
||||
%12 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %9, align 8
|
||||
@@ -103,7 +101,7 @@ _llgo_0:
|
||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i64 2
|
||||
%14 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %14, i32 0, i32 0
|
||||
store ptr @5, ptr %15, align 8
|
||||
store ptr @3, ptr %15, align 8
|
||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %14, i32 0, i32 1
|
||||
store i64 5, ptr %16, align 4
|
||||
%17 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %14, align 8
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [14 x i8] c"Hello, world\0A\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@_bar_x = external global ptr
|
||||
@_bar_y = external global ptr
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@_bar_x = external global { [16 x i8], [2 x ptr] }, align 8
|
||||
@_bar_y = external global { [16 x i8] }, align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -10,47 +10,40 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 }
|
||||
%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@0 = private unnamed_addr constant [7 x i8] c"invoke\00", align 1
|
||||
@1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@2 = private unnamed_addr constant [8 x i8] c"\09elem: \00", align 1
|
||||
@3 = private unnamed_addr constant [10 x i8] c"\09uncomm: \00", align 1
|
||||
@4 = private unnamed_addr constant [10 x i8] c"\09uncomm: \00", align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@_llgo_bool = linkonce global ptr null
|
||||
@_llgo_int = linkonce global ptr null
|
||||
@_llgo_int8 = linkonce global ptr null
|
||||
@_llgo_int16 = linkonce global ptr null
|
||||
@_llgo_int32 = linkonce global ptr null
|
||||
@_llgo_int64 = linkonce global ptr null
|
||||
@_llgo_uint = linkonce global ptr null
|
||||
@_llgo_uint8 = linkonce global ptr null
|
||||
@_llgo_uint16 = linkonce global ptr null
|
||||
@_llgo_uint32 = linkonce global ptr null
|
||||
@_llgo_uint64 = linkonce global ptr null
|
||||
@_llgo_uintptr = linkonce global ptr null
|
||||
@_llgo_float32 = linkonce global ptr null
|
||||
@_llgo_float64 = linkonce global ptr null
|
||||
@"[10]_llgo_int" = linkonce global ptr null
|
||||
@"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac" = linkonce global ptr null
|
||||
@"*_llgo_int" = linkonce global ptr null
|
||||
@"[]_llgo_int" = linkonce global ptr null
|
||||
@5 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
|
||||
@_llgo_string = linkonce global ptr null
|
||||
@"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM" = global ptr null
|
||||
@6 = private unnamed_addr constant [2 x i8] c"x\00", align 1
|
||||
@7 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@8 = private unnamed_addr constant [2 x i8] c"y\00", align 1
|
||||
@9 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@10 = private unnamed_addr constant [2 x i8] c"z\00", align 1
|
||||
@11 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@12 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@13 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@_llgo_main.T = linkonce global ptr null
|
||||
@14 = private unnamed_addr constant [7 x i8] c"Invoke\00", align 1
|
||||
@15 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@16 = private unnamed_addr constant [7 x i8] c"main.T\00", align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@0 = private unnamed_addr constant [6 x i8] c"invoke", align 1
|
||||
@1 = private unnamed_addr constant [7 x i8] c"\09elem: ", align 1
|
||||
@2 = private unnamed_addr constant [9 x i8] c"\09uncomm: ", align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@_llgo_bool = linkonce global ptr null, align 8
|
||||
@_llgo_int = linkonce global ptr null, align 8
|
||||
@_llgo_int8 = linkonce global ptr null, align 8
|
||||
@_llgo_int16 = linkonce global ptr null, align 8
|
||||
@_llgo_int32 = linkonce global ptr null, align 8
|
||||
@_llgo_int64 = linkonce global ptr null, align 8
|
||||
@_llgo_uint = linkonce global ptr null, align 8
|
||||
@_llgo_uint8 = linkonce global ptr null, align 8
|
||||
@_llgo_uint16 = linkonce global ptr null, align 8
|
||||
@_llgo_uint32 = linkonce global ptr null, align 8
|
||||
@_llgo_uint64 = linkonce global ptr null, align 8
|
||||
@_llgo_uintptr = linkonce global ptr null, align 8
|
||||
@_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
|
||||
@"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac" = linkonce global ptr null, align 8
|
||||
@"*_llgo_int" = linkonce global ptr null, align 8
|
||||
@"[]_llgo_int" = linkonce global ptr null, align 8
|
||||
@3 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
@"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM" = global ptr null, align 8
|
||||
@4 = private unnamed_addr constant [1 x i8] c"x", align 1
|
||||
@5 = private unnamed_addr constant [1 x i8] c"y", align 1
|
||||
@6 = private unnamed_addr constant [1 x i8] c"z", align 1
|
||||
@7 = private unnamed_addr constant [4 x i8] c"main", align 1
|
||||
@_llgo_main.T = linkonce global ptr null, align 8
|
||||
@8 = private unnamed_addr constant [6 x i8] c"Invoke", align 1
|
||||
@9 = private unnamed_addr constant [6 x i8] c"main.T", align 1
|
||||
|
||||
define void @"main.(*T).Invoke"(ptr %0) {
|
||||
_llgo_0:
|
||||
@@ -73,7 +66,7 @@ _llgo_0:
|
||||
%3 = load ptr, ptr %2, 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 @1, ptr %5, align 8
|
||||
store ptr null, ptr %5, align 8
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %4, i32 0, i32 1
|
||||
store i64 0, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
@@ -125,7 +118,7 @@ _llgo_1: ; preds = %_llgo_0
|
||||
%21 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Elem"(ptr %0)
|
||||
%22 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %22, i32 0, i32 0
|
||||
store ptr @2, ptr %23, align 8
|
||||
store ptr @1, ptr %23, align 8
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %22, i32 0, i32 1
|
||||
store i64 7, ptr %24, align 4
|
||||
%25 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %22, align 8
|
||||
@@ -142,7 +135,7 @@ _llgo_3: ; preds = %_llgo_2
|
||||
%29 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Uncommon"(ptr %0)
|
||||
%30 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %30, i32 0, i32 0
|
||||
store ptr @3, ptr %31, align 8
|
||||
store ptr @2, ptr %31, align 8
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %30, i32 0, i32 1
|
||||
store i64 9, ptr %32, align 4
|
||||
%33 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %30, align 8
|
||||
@@ -162,7 +155,7 @@ _llgo_5: ; preds = %_llgo_3
|
||||
%40 = call ptr @"github.com/goplus/llgo/internal/abi.(*Type).Uncommon"(ptr %39)
|
||||
%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 @4, ptr %42, align 8
|
||||
store ptr @2, ptr %42, align 8
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %41, i32 0, i32 1
|
||||
store i64 9, ptr %43, align 4
|
||||
%44 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %41, align 8
|
||||
@@ -427,7 +420,7 @@ _llgo_0:
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %141)
|
||||
%142 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %142, i32 0, i32 0
|
||||
store ptr @5, ptr %143, align 8
|
||||
store ptr @3, ptr %143, align 8
|
||||
%144 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %142, i32 0, i32 1
|
||||
store i64 5, ptr %144, align 4
|
||||
%145 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %142, align 8
|
||||
@@ -453,7 +446,7 @@ _llgo_0:
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %157)
|
||||
%158 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%159 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %158, i32 0, i32 0
|
||||
store ptr @13, ptr %159, align 8
|
||||
store ptr null, ptr %159, align 8
|
||||
%160 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %158, i32 0, i32 1
|
||||
store i64 0, ptr %160, align 4
|
||||
%161 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %158, align 8
|
||||
@@ -504,327 +497,383 @@ _llgo_1: ; preds = %_llgo_0
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%3 = load ptr, ptr @_llgo_int, align 8
|
||||
%4 = icmp eq ptr %3, null
|
||||
br i1 %4, label %_llgo_3, label %_llgo_4
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %2, i32 0, i32 6
|
||||
%4 = load i8, ptr %3, align 1
|
||||
%5 = or i8 %4, 32
|
||||
store i8 %5, ptr %3, align 1
|
||||
%6 = load ptr, ptr @_llgo_int, align 8
|
||||
%7 = icmp eq ptr %6, null
|
||||
br i1 %7, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 2)
|
||||
store ptr %5, ptr @_llgo_int, align 8
|
||||
%8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 2)
|
||||
store ptr %8, ptr @_llgo_int, align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%6 = load ptr, ptr @_llgo_int8, align 8
|
||||
%7 = icmp eq ptr %6, null
|
||||
br i1 %7, label %_llgo_5, label %_llgo_6
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %8, i32 0, i32 6
|
||||
%10 = load i8, ptr %9, align 1
|
||||
%11 = or i8 %10, 32
|
||||
store i8 %11, ptr %9, align 1
|
||||
%12 = load ptr, ptr @_llgo_int8, align 8
|
||||
%13 = icmp eq ptr %12, null
|
||||
br i1 %13, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%8 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 3)
|
||||
store ptr %8, ptr @_llgo_int8, align 8
|
||||
%14 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 3)
|
||||
store ptr %14, ptr @_llgo_int8, align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
%9 = load ptr, ptr @_llgo_int16, align 8
|
||||
%10 = icmp eq ptr %9, null
|
||||
br i1 %10, label %_llgo_7, label %_llgo_8
|
||||
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %14, i32 0, i32 6
|
||||
%16 = load i8, ptr %15, align 1
|
||||
%17 = or i8 %16, 32
|
||||
store i8 %17, ptr %15, align 1
|
||||
%18 = load ptr, ptr @_llgo_int16, align 8
|
||||
%19 = icmp eq ptr %18, null
|
||||
br i1 %19, label %_llgo_7, label %_llgo_8
|
||||
|
||||
_llgo_7: ; preds = %_llgo_6
|
||||
%11 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 4)
|
||||
store ptr %11, ptr @_llgo_int16, align 8
|
||||
%20 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 4)
|
||||
store ptr %20, ptr @_llgo_int16, align 8
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%12 = load ptr, ptr @_llgo_int32, align 8
|
||||
%13 = icmp eq ptr %12, null
|
||||
br i1 %13, label %_llgo_9, label %_llgo_10
|
||||
%21 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %20, i32 0, i32 6
|
||||
%22 = load i8, ptr %21, align 1
|
||||
%23 = or i8 %22, 32
|
||||
store i8 %23, ptr %21, align 1
|
||||
%24 = load ptr, ptr @_llgo_int32, align 8
|
||||
%25 = icmp eq ptr %24, null
|
||||
br i1 %25, label %_llgo_9, label %_llgo_10
|
||||
|
||||
_llgo_9: ; preds = %_llgo_8
|
||||
%14 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 5)
|
||||
store ptr %14, ptr @_llgo_int32, align 8
|
||||
%26 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 5)
|
||||
store ptr %26, ptr @_llgo_int32, align 8
|
||||
br label %_llgo_10
|
||||
|
||||
_llgo_10: ; preds = %_llgo_9, %_llgo_8
|
||||
%15 = load ptr, ptr @_llgo_int64, align 8
|
||||
%16 = icmp eq ptr %15, null
|
||||
br i1 %16, label %_llgo_11, label %_llgo_12
|
||||
%27 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %26, i32 0, i32 6
|
||||
%28 = load i8, ptr %27, align 1
|
||||
%29 = or i8 %28, 32
|
||||
store i8 %29, ptr %27, align 1
|
||||
%30 = load ptr, ptr @_llgo_int64, align 8
|
||||
%31 = icmp eq ptr %30, null
|
||||
br i1 %31, label %_llgo_11, label %_llgo_12
|
||||
|
||||
_llgo_11: ; preds = %_llgo_10
|
||||
%17 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 6)
|
||||
store ptr %17, ptr @_llgo_int64, align 8
|
||||
%32 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 6)
|
||||
store ptr %32, ptr @_llgo_int64, align 8
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_10
|
||||
%18 = load ptr, ptr @_llgo_uint, align 8
|
||||
%19 = icmp eq ptr %18, null
|
||||
br i1 %19, label %_llgo_13, label %_llgo_14
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %32, i32 0, i32 6
|
||||
%34 = load i8, ptr %33, align 1
|
||||
%35 = or i8 %34, 32
|
||||
store i8 %35, ptr %33, align 1
|
||||
%36 = load ptr, ptr @_llgo_uint, align 8
|
||||
%37 = icmp eq ptr %36, null
|
||||
br i1 %37, label %_llgo_13, label %_llgo_14
|
||||
|
||||
_llgo_13: ; preds = %_llgo_12
|
||||
%20 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 7)
|
||||
store ptr %20, ptr @_llgo_uint, align 8
|
||||
%38 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 7)
|
||||
store ptr %38, ptr @_llgo_uint, align 8
|
||||
br label %_llgo_14
|
||||
|
||||
_llgo_14: ; preds = %_llgo_13, %_llgo_12
|
||||
%21 = load ptr, ptr @_llgo_uint8, align 8
|
||||
%22 = icmp eq ptr %21, null
|
||||
br i1 %22, label %_llgo_15, label %_llgo_16
|
||||
%39 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %38, i32 0, i32 6
|
||||
%40 = load i8, ptr %39, align 1
|
||||
%41 = or i8 %40, 32
|
||||
store i8 %41, ptr %39, align 1
|
||||
%42 = load ptr, ptr @_llgo_uint8, align 8
|
||||
%43 = icmp eq ptr %42, null
|
||||
br i1 %43, label %_llgo_15, label %_llgo_16
|
||||
|
||||
_llgo_15: ; preds = %_llgo_14
|
||||
%23 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 8)
|
||||
store ptr %23, ptr @_llgo_uint8, align 8
|
||||
%44 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 8)
|
||||
store ptr %44, ptr @_llgo_uint8, align 8
|
||||
br label %_llgo_16
|
||||
|
||||
_llgo_16: ; preds = %_llgo_15, %_llgo_14
|
||||
%24 = load ptr, ptr @_llgo_uint16, align 8
|
||||
%25 = icmp eq ptr %24, null
|
||||
br i1 %25, label %_llgo_17, label %_llgo_18
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %44, i32 0, i32 6
|
||||
%46 = load i8, ptr %45, align 1
|
||||
%47 = or i8 %46, 32
|
||||
store i8 %47, ptr %45, align 1
|
||||
%48 = load ptr, ptr @_llgo_uint16, align 8
|
||||
%49 = icmp eq ptr %48, null
|
||||
br i1 %49, label %_llgo_17, label %_llgo_18
|
||||
|
||||
_llgo_17: ; preds = %_llgo_16
|
||||
%26 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 9)
|
||||
store ptr %26, ptr @_llgo_uint16, align 8
|
||||
%50 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 9)
|
||||
store ptr %50, ptr @_llgo_uint16, align 8
|
||||
br label %_llgo_18
|
||||
|
||||
_llgo_18: ; preds = %_llgo_17, %_llgo_16
|
||||
%27 = load ptr, ptr @_llgo_uint32, align 8
|
||||
%28 = icmp eq ptr %27, null
|
||||
br i1 %28, label %_llgo_19, label %_llgo_20
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %50, i32 0, i32 6
|
||||
%52 = load i8, ptr %51, align 1
|
||||
%53 = or i8 %52, 32
|
||||
store i8 %53, ptr %51, align 1
|
||||
%54 = load ptr, ptr @_llgo_uint32, align 8
|
||||
%55 = icmp eq ptr %54, null
|
||||
br i1 %55, label %_llgo_19, label %_llgo_20
|
||||
|
||||
_llgo_19: ; preds = %_llgo_18
|
||||
%29 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 10)
|
||||
store ptr %29, ptr @_llgo_uint32, align 8
|
||||
%56 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 10)
|
||||
store ptr %56, ptr @_llgo_uint32, align 8
|
||||
br label %_llgo_20
|
||||
|
||||
_llgo_20: ; preds = %_llgo_19, %_llgo_18
|
||||
%30 = load ptr, ptr @_llgo_uint64, align 8
|
||||
%31 = icmp eq ptr %30, null
|
||||
br i1 %31, label %_llgo_21, label %_llgo_22
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %56, i32 0, i32 6
|
||||
%58 = load i8, ptr %57, align 1
|
||||
%59 = or i8 %58, 32
|
||||
store i8 %59, ptr %57, align 1
|
||||
%60 = load ptr, ptr @_llgo_uint64, align 8
|
||||
%61 = icmp eq ptr %60, null
|
||||
br i1 %61, label %_llgo_21, label %_llgo_22
|
||||
|
||||
_llgo_21: ; preds = %_llgo_20
|
||||
%32 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 11)
|
||||
store ptr %32, ptr @_llgo_uint64, align 8
|
||||
%62 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 11)
|
||||
store ptr %62, ptr @_llgo_uint64, align 8
|
||||
br label %_llgo_22
|
||||
|
||||
_llgo_22: ; preds = %_llgo_21, %_llgo_20
|
||||
%33 = load ptr, ptr @_llgo_uintptr, align 8
|
||||
%34 = icmp eq ptr %33, null
|
||||
br i1 %34, label %_llgo_23, label %_llgo_24
|
||||
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %62, i32 0, i32 6
|
||||
%64 = load i8, ptr %63, align 1
|
||||
%65 = or i8 %64, 32
|
||||
store i8 %65, ptr %63, align 1
|
||||
%66 = load ptr, ptr @_llgo_uintptr, align 8
|
||||
%67 = icmp eq ptr %66, null
|
||||
br i1 %67, label %_llgo_23, label %_llgo_24
|
||||
|
||||
_llgo_23: ; preds = %_llgo_22
|
||||
%35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 12)
|
||||
store ptr %35, ptr @_llgo_uintptr, align 8
|
||||
%68 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 12)
|
||||
store ptr %68, ptr @_llgo_uintptr, align 8
|
||||
br label %_llgo_24
|
||||
|
||||
_llgo_24: ; preds = %_llgo_23, %_llgo_22
|
||||
%36 = load ptr, ptr @_llgo_float32, align 8
|
||||
%37 = icmp eq ptr %36, null
|
||||
br i1 %37, label %_llgo_25, label %_llgo_26
|
||||
%69 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %68, i32 0, i32 6
|
||||
%70 = load i8, ptr %69, align 1
|
||||
%71 = or i8 %70, 32
|
||||
store i8 %71, ptr %69, align 1
|
||||
%72 = load ptr, ptr @_llgo_float32, align 8
|
||||
%73 = icmp eq ptr %72, null
|
||||
br i1 %73, label %_llgo_25, label %_llgo_26
|
||||
|
||||
_llgo_25: ; preds = %_llgo_24
|
||||
%38 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 13)
|
||||
store ptr %38, ptr @_llgo_float32, align 8
|
||||
%74 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 13)
|
||||
store ptr %74, ptr @_llgo_float32, align 8
|
||||
br label %_llgo_26
|
||||
|
||||
_llgo_26: ; preds = %_llgo_25, %_llgo_24
|
||||
%39 = load ptr, ptr @_llgo_float64, align 8
|
||||
%40 = icmp eq ptr %39, null
|
||||
br i1 %40, label %_llgo_27, label %_llgo_28
|
||||
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %74, i32 0, i32 6
|
||||
%76 = load i8, ptr %75, align 1
|
||||
%77 = or i8 %76, 32
|
||||
store i8 %77, ptr %75, align 1
|
||||
%78 = load ptr, ptr @_llgo_float64, align 8
|
||||
%79 = icmp eq ptr %78, null
|
||||
br i1 %79, label %_llgo_27, label %_llgo_28
|
||||
|
||||
_llgo_27: ; preds = %_llgo_26
|
||||
%41 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 14)
|
||||
store ptr %41, ptr @_llgo_float64, align 8
|
||||
%80 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 14)
|
||||
store ptr %80, ptr @_llgo_float64, align 8
|
||||
br label %_llgo_28
|
||||
|
||||
_llgo_28: ; preds = %_llgo_27, %_llgo_26
|
||||
%42 = load ptr, ptr @_llgo_int, align 8
|
||||
%43 = load ptr, ptr @"[10]_llgo_int", align 8
|
||||
%44 = icmp eq ptr %43, null
|
||||
br i1 %44, label %_llgo_29, label %_llgo_30
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %80, i32 0, i32 6
|
||||
%82 = load i8, ptr %81, align 1
|
||||
%83 = or i8 %82, 32
|
||||
store i8 %83, ptr %81, align 1
|
||||
%84 = load ptr, ptr @_llgo_int, align 8
|
||||
%85 = load ptr, ptr @"[10]_llgo_int", align 8
|
||||
%86 = icmp eq ptr %85, null
|
||||
br i1 %86, label %_llgo_29, label %_llgo_30
|
||||
|
||||
_llgo_29: ; preds = %_llgo_28
|
||||
%45 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 10, ptr %42)
|
||||
store ptr %45, ptr @"[10]_llgo_int", align 8
|
||||
%87 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 10, ptr %84)
|
||||
store ptr %87, ptr @"[10]_llgo_int", align 8
|
||||
br label %_llgo_30
|
||||
|
||||
_llgo_30: ; preds = %_llgo_29, %_llgo_28
|
||||
%46 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%47 = icmp eq ptr %46, null
|
||||
br i1 %47, label %_llgo_31, label %_llgo_32
|
||||
%88 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%89 = icmp eq ptr %88, null
|
||||
br i1 %89, label %_llgo_31, label %_llgo_32
|
||||
|
||||
_llgo_31: ; preds = %_llgo_30
|
||||
%48 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%49 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, i32 0, i32 0
|
||||
store ptr %48, ptr %50, align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, i32 0, i32 1
|
||||
store i64 0, ptr %51, align 4
|
||||
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, i32 0, i32 2
|
||||
store i64 0, ptr %52, align 4
|
||||
%53 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %49, align 8
|
||||
%54 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%55 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %55, i32 0, i32 0
|
||||
store ptr %54, ptr %56, align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %55, i32 0, i32 1
|
||||
store i64 0, ptr %57, align 4
|
||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %55, i32 0, i32 2
|
||||
store i64 0, ptr %58, align 4
|
||||
%59 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %55, align 8
|
||||
%60 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %53, %"github.com/goplus/llgo/internal/runtime.Slice" %59, i1 false)
|
||||
store ptr %60, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%90 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%91 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %91, i32 0, i32 0
|
||||
store ptr %90, ptr %92, align 8
|
||||
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %91, i32 0, i32 1
|
||||
store i64 0, ptr %93, align 4
|
||||
%94 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %91, i32 0, i32 2
|
||||
store i64 0, ptr %94, align 4
|
||||
%95 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %91, align 8
|
||||
%96 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%97 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%98 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %97, i32 0, i32 0
|
||||
store ptr %96, ptr %98, align 8
|
||||
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %97, i32 0, i32 1
|
||||
store i64 0, ptr %99, align 4
|
||||
%100 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %97, i32 0, i32 2
|
||||
store i64 0, ptr %100, align 4
|
||||
%101 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %97, align 8
|
||||
%102 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %95, %"github.com/goplus/llgo/internal/runtime.Slice" %101, i1 false)
|
||||
store ptr %102, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
br label %_llgo_32
|
||||
|
||||
_llgo_32: ; preds = %_llgo_31, %_llgo_30
|
||||
%61 = load ptr, ptr @_llgo_int, align 8
|
||||
%62 = load ptr, ptr @"*_llgo_int", align 8
|
||||
%63 = icmp eq ptr %62, null
|
||||
br i1 %63, label %_llgo_33, label %_llgo_34
|
||||
%103 = load ptr, ptr @_llgo_int, align 8
|
||||
%104 = load ptr, ptr @"*_llgo_int", align 8
|
||||
%105 = icmp eq ptr %104, null
|
||||
br i1 %105, label %_llgo_33, label %_llgo_34
|
||||
|
||||
_llgo_33: ; preds = %_llgo_32
|
||||
%64 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %61)
|
||||
store ptr %64, ptr @"*_llgo_int", align 8
|
||||
%106 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %103)
|
||||
store ptr %106, ptr @"*_llgo_int", align 8
|
||||
br label %_llgo_34
|
||||
|
||||
_llgo_34: ; preds = %_llgo_33, %_llgo_32
|
||||
%65 = load ptr, ptr @_llgo_int, align 8
|
||||
%66 = load ptr, ptr @"[]_llgo_int", align 8
|
||||
%67 = icmp eq ptr %66, null
|
||||
br i1 %67, label %_llgo_35, label %_llgo_36
|
||||
%107 = load ptr, ptr @_llgo_int, align 8
|
||||
%108 = load ptr, ptr @"[]_llgo_int", align 8
|
||||
%109 = icmp eq ptr %108, null
|
||||
br i1 %109, label %_llgo_35, label %_llgo_36
|
||||
|
||||
_llgo_35: ; preds = %_llgo_34
|
||||
%68 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %65)
|
||||
store ptr %68, ptr @"[]_llgo_int", align 8
|
||||
%110 = call ptr @"github.com/goplus/llgo/internal/runtime.SliceOf"(ptr %107)
|
||||
store ptr %110, ptr @"[]_llgo_int", align 8
|
||||
br label %_llgo_36
|
||||
|
||||
_llgo_36: ; preds = %_llgo_35, %_llgo_34
|
||||
%69 = load ptr, ptr @_llgo_string, align 8
|
||||
%70 = icmp eq ptr %69, null
|
||||
br i1 %70, label %_llgo_37, label %_llgo_38
|
||||
%111 = load ptr, ptr @_llgo_string, align 8
|
||||
%112 = icmp eq ptr %111, null
|
||||
br i1 %112, label %_llgo_37, label %_llgo_38
|
||||
|
||||
_llgo_37: ; preds = %_llgo_36
|
||||
%71 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %71, ptr @_llgo_string, align 8
|
||||
%113 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %113, ptr @_llgo_string, align 8
|
||||
br label %_llgo_38
|
||||
|
||||
_llgo_38: ; preds = %_llgo_37, %_llgo_36
|
||||
%72 = load ptr, ptr @_llgo_int8, align 8
|
||||
%73 = load ptr, ptr @_llgo_int, align 8
|
||||
%74 = load ptr, ptr @_llgo_int, align 8
|
||||
%75 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %75, i32 0, i32 0
|
||||
store ptr @6, ptr %76, align 8
|
||||
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %75, i32 0, i32 1
|
||||
store i64 1, ptr %77, align 4
|
||||
%78 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %75, align 8
|
||||
%79 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %79, i32 0, i32 0
|
||||
store ptr @7, ptr %80, align 8
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %79, i32 0, i32 1
|
||||
store i64 0, ptr %81, align 4
|
||||
%82 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %79, align 8
|
||||
%83 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %78, ptr %72, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %82, i1 false)
|
||||
%84 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%85 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %84, i32 0, i32 0
|
||||
store ptr @8, ptr %85, align 8
|
||||
%86 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %84, i32 0, i32 1
|
||||
store i64 1, ptr %86, align 4
|
||||
%87 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %84, align 8
|
||||
%88 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%89 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %88, i32 0, i32 0
|
||||
store ptr @9, ptr %89, align 8
|
||||
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %88, i32 0, i32 1
|
||||
store i64 0, ptr %90, align 4
|
||||
%91 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %88, align 8
|
||||
%92 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %87, ptr %73, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %91, i1 false)
|
||||
%93 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%94 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %93, i32 0, i32 0
|
||||
store ptr @10, ptr %94, align 8
|
||||
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %93, i32 0, i32 1
|
||||
store i64 1, ptr %95, align 4
|
||||
%96 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %93, align 8
|
||||
%97 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%98 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %97, i32 0, i32 0
|
||||
store ptr @11, ptr %98, align 8
|
||||
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %97, i32 0, i32 1
|
||||
store i64 0, ptr %99, align 4
|
||||
%100 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %97, align 8
|
||||
%101 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %96, ptr %74, i64 16, %"github.com/goplus/llgo/internal/runtime.String" %100, i1 false)
|
||||
%102 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %102, i32 0, i32 0
|
||||
store ptr @12, ptr %103, align 8
|
||||
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %102, i32 0, i32 1
|
||||
store i64 4, ptr %104, align 4
|
||||
%105 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %102, align 8
|
||||
%106 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 168)
|
||||
%107 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %106, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %83, ptr %107, align 8
|
||||
%108 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %106, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %92, ptr %108, align 8
|
||||
%109 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %106, i64 2
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %101, ptr %109, align 8
|
||||
%110 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%111 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %110, i32 0, i32 0
|
||||
store ptr %106, ptr %111, align 8
|
||||
%112 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %110, i32 0, i32 1
|
||||
store i64 3, ptr %112, align 4
|
||||
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %110, i32 0, i32 2
|
||||
store i64 3, ptr %113, align 4
|
||||
%114 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %110, align 8
|
||||
%115 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %105, i64 24, %"github.com/goplus/llgo/internal/runtime.Slice" %114)
|
||||
store ptr %115, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
||||
%116 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%117 = icmp eq ptr %116, null
|
||||
br i1 %117, label %_llgo_39, label %_llgo_40
|
||||
%114 = load ptr, ptr @_llgo_int8, align 8
|
||||
%115 = load ptr, ptr @_llgo_int, align 8
|
||||
%116 = load ptr, ptr @_llgo_int, align 8
|
||||
%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 @4, 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 %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %120, ptr %114, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %124, i1 false)
|
||||
%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 1, ptr %128, align 4
|
||||
%129 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %126, align 8
|
||||
%130 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%131 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %130, i32 0, i32 0
|
||||
store ptr null, ptr %131, align 8
|
||||
%132 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %130, i32 0, i32 1
|
||||
store i64 0, ptr %132, align 4
|
||||
%133 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %130, align 8
|
||||
%134 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %129, ptr %115, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %133, i1 false)
|
||||
%135 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %135, i32 0, i32 0
|
||||
store ptr @6, ptr %136, align 8
|
||||
%137 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %135, i32 0, i32 1
|
||||
store i64 1, ptr %137, align 4
|
||||
%138 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %135, align 8
|
||||
%139 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%140 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %139, i32 0, i32 0
|
||||
store ptr null, ptr %140, align 8
|
||||
%141 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %139, i32 0, i32 1
|
||||
store i64 0, ptr %141, align 4
|
||||
%142 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %139, align 8
|
||||
%143 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %138, ptr %116, i64 16, %"github.com/goplus/llgo/internal/runtime.String" %142, 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 @7, ptr %145, align 8
|
||||
%146 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %144, i32 0, i32 1
|
||||
store i64 4, ptr %146, align 4
|
||||
%147 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %144, align 8
|
||||
%148 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 168)
|
||||
%149 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %148, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %125, ptr %149, align 8
|
||||
%150 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %148, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %134, ptr %150, align 8
|
||||
%151 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %148, i64 2
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %143, ptr %151, align 8
|
||||
%152 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%153 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %152, i32 0, i32 0
|
||||
store ptr %148, ptr %153, align 8
|
||||
%154 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %152, i32 0, i32 1
|
||||
store i64 3, ptr %154, align 4
|
||||
%155 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %152, i32 0, i32 2
|
||||
store i64 3, ptr %155, align 4
|
||||
%156 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %152, align 8
|
||||
%157 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %147, i64 24, %"github.com/goplus/llgo/internal/runtime.Slice" %156)
|
||||
store ptr %157, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
||||
%158 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%159 = icmp eq ptr %158, null
|
||||
br i1 %159, label %_llgo_39, label %_llgo_40
|
||||
|
||||
_llgo_39: ; preds = %_llgo_38
|
||||
%118 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 24, i64 0, i64 1)
|
||||
store ptr %118, ptr @_llgo_main.T, align 8
|
||||
%160 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 24, i64 0, i64 1)
|
||||
store ptr %160, ptr @_llgo_main.T, align 8
|
||||
br label %_llgo_40
|
||||
|
||||
_llgo_40: ; preds = %_llgo_39, %_llgo_38
|
||||
%119 = load ptr, ptr @_llgo_string, align 8
|
||||
br i1 %117, label %_llgo_41, label %_llgo_42
|
||||
%161 = load ptr, ptr @_llgo_string, align 8
|
||||
br i1 %159, label %_llgo_41, label %_llgo_42
|
||||
|
||||
_llgo_41: ; preds = %_llgo_40
|
||||
%120 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%121 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %120, i32 0, i32 0
|
||||
store ptr @14, ptr %121, align 8
|
||||
%122 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %120, i32 0, i32 1
|
||||
store i64 6, ptr %122, align 4
|
||||
%123 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %120, align 8
|
||||
%124 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%125 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%126 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %125, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %123, ptr %126, align 8
|
||||
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %125, i32 0, i32 1
|
||||
store ptr %124, ptr %127, align 8
|
||||
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %125, i32 0, i32 2
|
||||
store ptr @"main.(*T).Invoke", ptr %128, align 8
|
||||
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %125, i32 0, i32 3
|
||||
store ptr @"main.(*T).Invoke", ptr %129, align 8
|
||||
%130 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %125, align 8
|
||||
%131 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%132 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %131, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %130, ptr %132, align 8
|
||||
%133 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%134 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 0
|
||||
store ptr %131, ptr %134, align 8
|
||||
%135 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 1
|
||||
store i64 1, ptr %135, align 4
|
||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 2
|
||||
store i64 1, ptr %136, align 4
|
||||
%137 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, align 8
|
||||
%138 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %138, i32 0, i32 0
|
||||
store ptr @15, ptr %139, align 8
|
||||
%140 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %138, i32 0, i32 1
|
||||
store i64 4, ptr %140, align 4
|
||||
%141 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %138, align 8
|
||||
%142 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %142, i32 0, i32 0
|
||||
store ptr @16, ptr %143, align 8
|
||||
%144 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %142, i32 0, i32 1
|
||||
store i64 6, ptr %144, align 4
|
||||
%145 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %142, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %118, %"github.com/goplus/llgo/internal/runtime.String" %141, %"github.com/goplus/llgo/internal/runtime.String" %145, ptr %119, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %137)
|
||||
%162 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%163 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %162, i32 0, i32 0
|
||||
store ptr @8, ptr %163, align 8
|
||||
%164 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %162, i32 0, i32 1
|
||||
store i64 6, ptr %164, align 4
|
||||
%165 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %162, align 8
|
||||
%166 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%167 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%168 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %167, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %165, ptr %168, align 8
|
||||
%169 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %167, i32 0, i32 1
|
||||
store ptr %166, ptr %169, align 8
|
||||
%170 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %167, i32 0, i32 2
|
||||
store ptr @"main.(*T).Invoke", ptr %170, align 8
|
||||
%171 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %167, i32 0, i32 3
|
||||
store ptr @"main.(*T).Invoke", ptr %171, align 8
|
||||
%172 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %167, align 8
|
||||
%173 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%174 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %173, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %172, ptr %174, align 8
|
||||
%175 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%176 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %175, i32 0, i32 0
|
||||
store ptr %173, ptr %176, align 8
|
||||
%177 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %175, i32 0, i32 1
|
||||
store i64 1, ptr %177, align 4
|
||||
%178 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %175, i32 0, i32 2
|
||||
store i64 1, ptr %178, align 4
|
||||
%179 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %175, align 8
|
||||
%180 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%181 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %180, i32 0, i32 0
|
||||
store ptr @7, ptr %181, align 8
|
||||
%182 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %180, i32 0, i32 1
|
||||
store i64 4, ptr %182, align 4
|
||||
%183 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %180, align 8
|
||||
%184 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%185 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %184, i32 0, i32 0
|
||||
store ptr @9, ptr %185, align 8
|
||||
%186 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %184, i32 0, i32 1
|
||||
store i64 6, ptr %186, align 4
|
||||
%187 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %184, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %160, %"github.com/goplus/llgo/internal/runtime.String" %183, %"github.com/goplus/llgo/internal/runtime.String" %187, ptr %161, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %179)
|
||||
br label %_llgo_42
|
||||
|
||||
_llgo_42: ; preds = %_llgo_41, %_llgo_40
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__stderrp = external global ptr
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__stderrp = external global ptr, align 8
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [10 x i8] c"Hello %d\0A\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -4,11 +4,11 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
|
||||
@main.basicTypes = global [25 x ptr] undef
|
||||
@"main.init$guard" = global ptr null
|
||||
@main.sizeBasicTypes = global [25 x i64] undef
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.basicTypes = global [25 x ptr] zeroinitializer, align 8
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@main.sizeBasicTypes = global [25 x i64] zeroinitializer, align 8
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [20 x i8] c"Kind: %d, Size: %d\0A\00", align 1
|
||||
|
||||
define ptr @main.Basic(i64 %0) {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@main.format = global [10 x i8] undef
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.format = global [10 x i8] zeroinitializer, align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -4,17 +4,16 @@ source_filename = "main"
|
||||
%main.point = type { i64, i64 }
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
|
||||
@1 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
|
||||
@2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
|
||||
@3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
|
||||
@4 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
|
||||
@5 = private unnamed_addr constant [7 x i8] c"123456\00", align 1
|
||||
@5 = private unnamed_addr constant [6 x i8] c"123456", align 1
|
||||
@6 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
|
||||
@7 = private unnamed_addr constant [7 x i8] c"123456\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
@@ -130,7 +129,7 @@ _llgo_0:
|
||||
%70 = call i32 (ptr, ...) @printf(ptr @4, i8 %69)
|
||||
%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 @7, ptr %72, align 8
|
||||
store ptr @5, ptr %72, align 8
|
||||
%73 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %71, i32 0, i32 1
|
||||
store i64 6, ptr %73, align 4
|
||||
%74 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %71, align 8
|
||||
|
||||
@@ -4,9 +4,9 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
%main.generator = type { i32 }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
|
||||
@1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
|
||||
@2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
|
||||
|
||||
@@ -4,9 +4,9 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%main.m = type { %"github.com/goplus/llgo/internal/runtime.String" }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [2 x i8] c"a\00", align 1
|
||||
@1 = private unnamed_addr constant [2 x i8] c"b\00", align 1
|
||||
@2 = private unnamed_addr constant [2 x i8] c"c\00", align 1
|
||||
@@ -15,7 +15,7 @@ source_filename = "main"
|
||||
@5 = private unnamed_addr constant [2 x i8] c"2\00", align 1
|
||||
@6 = private unnamed_addr constant [2 x i8] c"3\00", align 1
|
||||
@7 = private unnamed_addr constant [2 x i8] c"4\00", align 1
|
||||
@8 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
|
||||
@8 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
||||
|
||||
declare %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/cl/internal/linktarget.m.info"(%main.m)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [10 x i8] c"Hello %d\0A\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -5,9 +5,9 @@ source_filename = "main"
|
||||
%main.minfo = type { ptr, i64 }
|
||||
%main.mSpanList = type { ptr, ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [19 x i8] c"%d %d %d %d %d %d\0A\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -4,11 +4,11 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@0 = private unnamed_addr constant [14 x i8] c"panic message\00", align 1
|
||||
@_llgo_string = linkonce global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [13 x i8] c"panic message", align 1
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
|
||||
@1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
|
||||
@2 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@main.format = global [10 x i8] undef
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.format = global [10 x i8] zeroinitializer, align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.init() {
|
||||
_llgo_0:
|
||||
|
||||
@@ -3,10 +3,10 @@ source_filename = "main"
|
||||
|
||||
%main.Foo = type { i32, i1 }
|
||||
|
||||
@main.format = global [10 x i8] undef
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.format = global [10 x i8] zeroinitializer, align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.Foo.Print(%main.Foo %0) {
|
||||
_llgo_0:
|
||||
|
||||
@@ -3,9 +3,9 @@ source_filename = "main"
|
||||
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [10 x i8] c"Hello %d\0A\00", align 1
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@main.format = global [10 x i8] undef
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@main.format = global [10 x i8] zeroinitializer, align 1
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.Print(ptr %0) {
|
||||
_llgo_0:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
@0 = private unnamed_addr constant [7 x i8] c"Hello\0A\00", align 1
|
||||
|
||||
define void @main.foo() {
|
||||
|
||||
@@ -201,7 +201,7 @@ func (p *context) compileGlobal(pkg llssa.Package, gbl *ssa.Global) {
|
||||
}
|
||||
g := pkg.NewVar(name, typ, llssa.Background(vtype))
|
||||
if define {
|
||||
g.Init(p.prog.Nil(g.Type))
|
||||
g.InitNil()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -380,8 +380,8 @@ func (p *context) compileBlock(b llssa.Builder, block *ssa.BasicBlock, n int, do
|
||||
fn := p.fn
|
||||
argc := pkg.NewVar("__llgo_argc", types.NewPointer(types.Typ[types.Int32]), llssa.InC)
|
||||
argv := pkg.NewVar("__llgo_argv", types.NewPointer(argvTy), llssa.InC)
|
||||
argc.Init(prog.Nil(argc.Type))
|
||||
argv.Init(prog.Nil(argv.Type))
|
||||
argc.InitNil()
|
||||
argv.InitNil()
|
||||
b.Store(argc.Expr, fn.Param(0))
|
||||
b.Store(argv.Expr, fn.Param(1))
|
||||
callRuntimeInit(b, pkg)
|
||||
|
||||
@@ -71,8 +71,8 @@ var a int
|
||||
`, `; ModuleID = 'foo'
|
||||
source_filename = "foo"
|
||||
|
||||
@foo.a = global ptr null
|
||||
@"foo.init$guard" = global ptr null
|
||||
@foo.a = global i64 0, align 8
|
||||
@"foo.init$guard" = global i1 false, align 1
|
||||
|
||||
define void @foo.init() {
|
||||
_llgo_0:
|
||||
@@ -98,7 +98,7 @@ func fn(a int, b float64) int {
|
||||
`, `; ModuleID = 'foo'
|
||||
source_filename = "foo"
|
||||
|
||||
@"foo.init$guard" = global ptr null
|
||||
@"foo.init$guard" = global i1 false, align 1
|
||||
|
||||
define i64 @foo.fn(i64 %0, double %1) {
|
||||
_llgo_0:
|
||||
|
||||
Binary file not shown.
@@ -342,7 +342,7 @@ func EfaceEqual(v, u eface) bool {
|
||||
if v._type != u._type {
|
||||
return false
|
||||
}
|
||||
if v._type.Kind_&abi.KindDirectIface != 0 {
|
||||
if isDirectIface(v._type) {
|
||||
return v.data == u.data
|
||||
}
|
||||
switch v.Kind() {
|
||||
@@ -373,7 +373,11 @@ func EfaceEqual(v, u eface) bool {
|
||||
case abi.Struct:
|
||||
st := v._type.StructType()
|
||||
field := func(data unsafe.Pointer, ft *abi.StructField) eface {
|
||||
return eface{ft.Typ, c.Advance(data, int(ft.Offset))}
|
||||
ptr := c.Advance(data, int(ft.Offset))
|
||||
if isDirectIface(ft.Typ) {
|
||||
ptr = *(*unsafe.Pointer)(ptr)
|
||||
}
|
||||
return eface{ft.Typ, ptr}
|
||||
}
|
||||
for _, ft := range st.Fields {
|
||||
if !EfaceEqual(field(v.data, &ft), field(u.data, &ft)) {
|
||||
@@ -409,7 +413,7 @@ func (v eface) Elem() eface {
|
||||
return *(*eface)(unsafe.Pointer(&i))
|
||||
case abi.Pointer:
|
||||
ptr := v.data
|
||||
if v._type.Kind_&abi.KindDirectIface != 0 {
|
||||
if isDirectIface(v._type) {
|
||||
ptr = *(*unsafe.Pointer)(ptr)
|
||||
}
|
||||
if ptr == nil {
|
||||
@@ -420,4 +424,8 @@ func (v eface) Elem() eface {
|
||||
panic("invalid eface elem")
|
||||
}
|
||||
|
||||
func isDirectIface(t *_type) bool {
|
||||
return t.Kind_&abi.KindDirectIface != 0
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -317,6 +317,15 @@ func (p Package) abiTypeInit(g Global, t types.Type, pub bool) {
|
||||
b.SetBlockEx(blks[1], AtEnd, false)
|
||||
b.blk.last = blks[1].last
|
||||
}
|
||||
prog := p.Prog
|
||||
kind, _, _ := abi.DataKindOf(t, 0, prog.is32Bits)
|
||||
if kind == abi.Integer || kind == abi.BitCast {
|
||||
// abi.Type.Kind_ |= abi.KindDirectIface
|
||||
const kindDirectIface = 1 << 5
|
||||
pkind := b.FieldAddr(vexpr, 6)
|
||||
b.Store(pkind, b.BinOp(token.OR, b.Load(pkind), Expr{prog.IntVal(kindDirectIface, prog.Byte()).impl, prog.Byte()}))
|
||||
}
|
||||
|
||||
if t, ok := t.(*types.Named); ok {
|
||||
// skip interface
|
||||
if _, ok := t.Underlying().(*types.Interface); ok {
|
||||
@@ -345,7 +354,7 @@ func (b Builder) abiType(t types.Type) Expr {
|
||||
if g == nil {
|
||||
prog := b.Prog
|
||||
g = pkg.doNewVar(name, prog.AbiTypePtrPtr())
|
||||
g.Init(prog.Nil(g.Type))
|
||||
g.InitNil()
|
||||
if pub {
|
||||
g.impl.SetLinkage(llvm.LinkOnceAnyLinkage)
|
||||
}
|
||||
|
||||
25
ssa/decl.go
25
ssa/decl.go
@@ -67,7 +67,7 @@ func (p Package) NewConst(name string, val constant.Value) NamedConst {
|
||||
|
||||
type aGlobal struct {
|
||||
Expr
|
||||
array bool
|
||||
//array bool
|
||||
}
|
||||
|
||||
// A Global is a named Value holding the address of a package-level
|
||||
@@ -92,17 +92,11 @@ func (p Package) NewVarEx(name string, t Type) Global {
|
||||
}
|
||||
|
||||
func (p Package) doNewVar(name string, t Type) Global {
|
||||
var gbl llvm.Value
|
||||
var array bool
|
||||
if t.kind == vkPtr && p.Prog.Elem(t).kind == vkArray { // TODO(xsw): check this code
|
||||
typ := p.Prog.Elem(t).ll
|
||||
gbl = llvm.AddGlobal(p.mod, typ, name)
|
||||
gbl.SetInitializer(llvm.Undef(typ))
|
||||
array = true
|
||||
} else {
|
||||
gbl = llvm.AddGlobal(p.mod, t.ll, name)
|
||||
}
|
||||
ret := &aGlobal{Expr{gbl, t}, array}
|
||||
typ := p.Prog.Elem(t).ll
|
||||
gbl := llvm.AddGlobal(p.mod, typ, name)
|
||||
alignment := p.Prog.td.ABITypeAlignment(typ)
|
||||
gbl.SetAlignment(alignment)
|
||||
ret := &aGlobal{Expr{gbl, t}}
|
||||
p.vars[name] = ret
|
||||
return ret
|
||||
}
|
||||
@@ -114,12 +108,13 @@ func (p Package) VarOf(name string) Global {
|
||||
|
||||
// Init initializes the global variable with the given value.
|
||||
func (g Global) Init(v Expr) {
|
||||
if g.array && v.kind == vkPtr { // TODO(xsw): check this code
|
||||
return
|
||||
}
|
||||
g.impl.SetInitializer(v.impl)
|
||||
}
|
||||
|
||||
func (g Global) InitNil() {
|
||||
g.impl.SetInitializer(llvm.ConstNull(g.impl.GlobalValueType()))
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
// Function represents the parameters, results, and code of a function
|
||||
|
||||
@@ -102,8 +102,7 @@ func (p Package) keyInit(name string) {
|
||||
return
|
||||
}
|
||||
prog := p.Prog
|
||||
keyNil := prog.Nil(prog.CIntPtr())
|
||||
keyVar.Init(keyNil)
|
||||
keyVar.InitNil()
|
||||
keyVar.impl.SetLinkage(llvm.LinkOnceAnyLinkage)
|
||||
|
||||
b := p.afterBuilder()
|
||||
|
||||
81
ssa/expr.go
81
ssa/expr.go
@@ -209,13 +209,34 @@ func (b Builder) CStr(v string) Expr {
|
||||
}
|
||||
|
||||
// Str returns a Go string constant expression.
|
||||
func (b Builder) Str(v string) (ret Expr) {
|
||||
func (b Builder) Str(v string) Expr {
|
||||
prog := b.Prog
|
||||
data := llvm.CreateGlobalStringPtr(b.impl, v)
|
||||
data := b.createGlobalStr(v)
|
||||
size := llvm.ConstInt(prog.tyInt(), uint64(len(v)), false)
|
||||
return Expr{aggregateValue(b.impl, prog.rtString(), data, size), prog.String()}
|
||||
}
|
||||
|
||||
func (b Builder) createGlobalStr(v string) (ret llvm.Value) {
|
||||
if ret, ok := b.Pkg.strs[v]; ok {
|
||||
return ret
|
||||
}
|
||||
prog := b.Prog
|
||||
if v != "" {
|
||||
typ := llvm.ArrayType(prog.tyInt8(), len(v))
|
||||
global := llvm.AddGlobal(b.Pkg.mod, typ, "")
|
||||
global.SetInitializer(b.Prog.ctx.ConstString(v, false))
|
||||
global.SetLinkage(llvm.PrivateLinkage)
|
||||
global.SetGlobalConstant(true)
|
||||
global.SetUnnamedAddr(true)
|
||||
global.SetAlignment(1)
|
||||
ret = llvm.ConstInBoundsGEP(typ, global, []llvm.Value{prog.Val(0).impl})
|
||||
} else {
|
||||
ret = llvm.ConstNull(prog.CStr().ll)
|
||||
}
|
||||
b.Pkg.strs[v] = ret
|
||||
return
|
||||
}
|
||||
|
||||
// unsafeString(data *byte, size int) string
|
||||
func (b Builder) unsafeString(data, size llvm.Value) Expr {
|
||||
prog := b.Prog
|
||||
@@ -384,7 +405,8 @@ func (b Builder) BinOp(op token.Token, x, y Expr) Expr {
|
||||
return Expr{llvm.CreateBinOp(b.impl, llop, x.impl, y.impl), x.Type}
|
||||
}
|
||||
case isPredOp(op): // op: == != < <= < >=
|
||||
tret := b.Prog.Bool()
|
||||
prog := b.Prog
|
||||
tret := prog.Bool()
|
||||
kind := x.kind
|
||||
switch kind {
|
||||
case vkSigned:
|
||||
@@ -420,8 +442,59 @@ func (b Builder) BinOp(op token.Token, x, y Expr) Expr {
|
||||
ret.impl = llvm.CreateNot(b.impl, ret.impl)
|
||||
return ret
|
||||
}
|
||||
case vkClosure:
|
||||
x = b.Field(x, 0)
|
||||
y = b.Field(y, 0)
|
||||
fallthrough
|
||||
case vkFuncPtr, vkFuncDecl:
|
||||
switch op {
|
||||
case token.EQL:
|
||||
return Expr{llvm.CreateICmp(b.impl, llvm.IntEQ, x.impl, y.impl), tret}
|
||||
case token.NEQ:
|
||||
return Expr{llvm.CreateICmp(b.impl, llvm.IntNE, x.impl, y.impl), tret}
|
||||
}
|
||||
case vkArray:
|
||||
typ := x.raw.Type.(*types.Array)
|
||||
elem := b.Prog.Elem(x.Type)
|
||||
ret := prog.BoolVal(true)
|
||||
for i, n := 0, int(typ.Len()); i < n; i++ {
|
||||
fx := b.impl.CreateExtractValue(x.impl, i, "")
|
||||
fy := b.impl.CreateExtractValue(y.impl, i, "")
|
||||
r := b.BinOp(token.EQL, Expr{fx, elem}, Expr{fy, elem})
|
||||
ret = Expr{b.impl.CreateAnd(ret.impl, r.impl, ""), tret}
|
||||
}
|
||||
switch op {
|
||||
case token.EQL:
|
||||
return ret
|
||||
case token.NEQ:
|
||||
return Expr{b.impl.CreateNot(ret.impl, ""), tret}
|
||||
}
|
||||
case vkStruct:
|
||||
typ := x.raw.Type.Underlying().(*types.Struct)
|
||||
ret := prog.BoolVal(true)
|
||||
for i, n := 0, typ.NumFields(); i < n; i++ {
|
||||
ft := prog.Type(typ.Field(i).Type(), InGo)
|
||||
fx := b.impl.CreateExtractValue(x.impl, i, "")
|
||||
fy := b.impl.CreateExtractValue(y.impl, i, "")
|
||||
r := b.BinOp(token.EQL, Expr{fx, ft}, Expr{fy, ft})
|
||||
ret = Expr{b.impl.CreateAnd(ret.impl, r.impl, ""), tret}
|
||||
}
|
||||
switch op {
|
||||
case token.EQL:
|
||||
return ret
|
||||
case token.NEQ:
|
||||
return Expr{b.impl.CreateNot(ret.impl, ""), tret}
|
||||
}
|
||||
case vkSlice:
|
||||
dx := b.impl.CreateExtractValue(x.impl, 0, "")
|
||||
dy := b.impl.CreateExtractValue(y.impl, 0, "")
|
||||
switch op {
|
||||
case token.EQL:
|
||||
return Expr{b.impl.CreateICmp(llvm.IntEQ, dx, dy, ""), tret}
|
||||
case token.NEQ:
|
||||
return Expr{b.impl.CreateICmp(llvm.IntNE, dx, dy, ""), tret}
|
||||
}
|
||||
case vkIface, vkEface:
|
||||
prog := b.Prog
|
||||
toEface := func(x Expr, emtpy bool) Expr {
|
||||
if emtpy {
|
||||
return x
|
||||
|
||||
@@ -294,12 +294,13 @@ func (p Program) NewPackage(name, pkgPath string) Package {
|
||||
stubs := make(map[string]Function)
|
||||
pyobjs := make(map[string]PyObjRef)
|
||||
pymods := make(map[string]Global)
|
||||
strs := make(map[string]llvm.Value)
|
||||
p.NeedRuntime = false
|
||||
// Don't need reset p.needPyInit here
|
||||
// p.needPyInit = false
|
||||
ret := &aPackage{
|
||||
mod: mod, vars: gbls, fns: fns, stubs: stubs,
|
||||
pyobjs: pyobjs, pymods: pymods, Prog: p}
|
||||
pyobjs: pyobjs, pymods: pymods, strs: strs, Prog: p}
|
||||
ret.abi.Init(pkgPath)
|
||||
return ret
|
||||
}
|
||||
@@ -544,6 +545,7 @@ type aPackage struct {
|
||||
stubs map[string]Function
|
||||
pyobjs map[string]PyObjRef
|
||||
pymods map[string]Global
|
||||
strs map[string]llvm.Value
|
||||
afterb unsafe.Pointer
|
||||
|
||||
iRoutine int
|
||||
|
||||
@@ -217,7 +217,7 @@ func (p Package) PyNewModVar(name string, doInit bool) Global {
|
||||
objPtr := prog.PyObjectPtrPtr().raw.Type
|
||||
g := p.NewVar(name, objPtr, InC)
|
||||
if doInit {
|
||||
g.Init(prog.Nil(g.Type))
|
||||
g.InitNil()
|
||||
g.impl.SetLinkage(llvm.LinkOnceAnyLinkage)
|
||||
}
|
||||
p.pymods[name] = g
|
||||
@@ -372,7 +372,7 @@ func (p Package) PyNewFunc(name string, sig *types.Signature, doInit bool) PyObj
|
||||
obj := p.NewVar(name, prog.PyObjectPtrPtr().RawType(), InC)
|
||||
if doInit {
|
||||
prog.NeedPyInit = true
|
||||
obj.Init(prog.Nil(obj.Type))
|
||||
obj.InitNil()
|
||||
obj.impl.SetLinkage(llvm.LinkOnceAnyLinkage)
|
||||
}
|
||||
ty := &aType{obj.ll, rawType{types.NewPointer(sig)}, vkPyFuncRef}
|
||||
|
||||
@@ -189,19 +189,20 @@ func TestPyFunc(t *testing.T) {
|
||||
func TestVar(t *testing.T) {
|
||||
prog := NewProgram(nil)
|
||||
pkg := prog.NewPackage("bar", "foo/bar")
|
||||
a := pkg.NewVar("a", types.Typ[types.Int], InGo)
|
||||
if pkg.NewVar("a", types.Typ[types.Int], InGo) != a {
|
||||
typ := types.NewPointer(types.Typ[types.Int])
|
||||
a := pkg.NewVar("a", typ, InGo)
|
||||
if pkg.NewVar("a", typ, InGo) != a {
|
||||
t.Fatal("NewVar(a) failed")
|
||||
}
|
||||
pkg.NewVarEx("a", prog.Type(types.Typ[types.Int], InGo))
|
||||
pkg.NewVarEx("a", prog.Type(typ, InGo))
|
||||
a.Init(prog.Val(100))
|
||||
b := pkg.NewVar("b", types.Typ[types.Int], InGo)
|
||||
b := pkg.NewVar("b", typ, InGo)
|
||||
b.Init(a.Expr)
|
||||
assertPkg(t, pkg, `; ModuleID = 'foo/bar'
|
||||
source_filename = "foo/bar"
|
||||
|
||||
@a = global i64 100
|
||||
@b = global i64 @a
|
||||
@a = global i64 100, align 8
|
||||
@b = global i64 @a, align 8
|
||||
`)
|
||||
}
|
||||
|
||||
@@ -227,11 +228,11 @@ func TestStruct(t *testing.T) {
|
||||
|
||||
prog := NewProgram(nil)
|
||||
pkg := prog.NewPackage("bar", "foo/bar")
|
||||
pkg.NewVar("a", empty, InGo)
|
||||
pkg.NewVar("a", types.NewPointer(empty), InGo)
|
||||
assertPkg(t, pkg, `; ModuleID = 'foo/bar'
|
||||
source_filename = "foo/bar"
|
||||
|
||||
@a = external global {}
|
||||
@a = external global {}, align 1
|
||||
`)
|
||||
if prog.NeedRuntime {
|
||||
t.Fatal("NeedRuntime?")
|
||||
@@ -244,7 +245,7 @@ func TestNamedStruct(t *testing.T) {
|
||||
|
||||
prog := NewProgram(nil)
|
||||
pkg := prog.NewPackage("bar", "foo/bar")
|
||||
pkg.NewVar("a", empty, InGo)
|
||||
pkg.NewVar("a", types.NewPointer(empty), InGo)
|
||||
if pkg.VarOf("a") == nil {
|
||||
t.Fatal("VarOf failed")
|
||||
}
|
||||
@@ -253,7 +254,7 @@ source_filename = "foo/bar"
|
||||
|
||||
%bar.Empty = type {}
|
||||
|
||||
@a = external global %bar.Empty
|
||||
@a = external global %bar.Empty, align 1
|
||||
`)
|
||||
}
|
||||
|
||||
@@ -358,14 +359,14 @@ func TestFuncMultiRet(t *testing.T) {
|
||||
types.NewVar(0, nil, "c", types.Typ[types.Int]),
|
||||
types.NewVar(0, nil, "d", types.Typ[types.Float64]))
|
||||
sig := types.NewSignatureType(nil, nil, nil, params, rets, false)
|
||||
a := pkg.NewVar("a", types.Typ[types.Int], InGo)
|
||||
a := pkg.NewVar("a", types.NewPointer(types.Typ[types.Int]), InGo)
|
||||
fn := pkg.NewFunc("fn", sig, InGo)
|
||||
b := fn.MakeBody(1)
|
||||
b.Return(a.Expr, fn.Param(0))
|
||||
assertPkg(t, pkg, `; ModuleID = 'foo/bar'
|
||||
source_filename = "foo/bar"
|
||||
|
||||
@a = external global i64
|
||||
@a = external global i64, align 8
|
||||
|
||||
define { i64, double } @fn(double %0) {
|
||||
_llgo_0:
|
||||
|
||||
Reference in New Issue
Block a user