2024-05-25 01:11:35 +08:00
|
|
|
; ModuleID = 'main'
|
|
|
|
|
source_filename = "main"
|
|
|
|
|
|
2024-05-26 17:55:16 +08:00
|
|
|
%"github.com/goplus/llgo/cl/internal/foo.Foo" = type { ptr, float }
|
2024-05-26 17:53:29 +08:00
|
|
|
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
2024-05-26 17:55:16 +08:00
|
|
|
%main.bar = type { ptr, float }
|
2024-05-25 01:11:35 +08:00
|
|
|
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
2024-05-27 14:32:23 +08:00
|
|
|
%"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 }
|
2024-05-31 08:12:27 +08:00
|
|
|
%"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 }
|
2024-05-25 01:11:35 +08:00
|
|
|
|
2024-06-14 09:57:23 +08:00
|
|
|
@"main.init$guard" = global i1 false, align 1
|
|
|
|
|
@"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo" = linkonce global ptr null, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
@0 = private unnamed_addr constant [42 x i8] c"github.com/goplus/llgo/cl/internal/foo.Foo", align 1
|
2024-08-20 21:11:27 +08:00
|
|
|
@"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs" = linkonce global ptr null, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
@1 = private unnamed_addr constant [2 x i8] c"pb", align 1
|
|
|
|
|
@2 = private unnamed_addr constant [1 x i8] c"F", align 1
|
|
|
|
|
@3 = private unnamed_addr constant [4 x i8] c"main", align 1
|
|
|
|
|
@4 = private unnamed_addr constant [2 x i8] c"Pb", align 1
|
2024-06-14 09:57:23 +08:00
|
|
|
@"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE" = linkonce global ptr null, align 8
|
2024-06-25 14:41:32 +08:00
|
|
|
@_llgo_byte = linkonce global ptr null, align 8
|
|
|
|
|
@"*_llgo_byte" = linkonce global ptr null, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
@5 = private unnamed_addr constant [38 x i8] c"github.com/goplus/llgo/cl/internal/foo", align 1
|
|
|
|
|
@6 = private unnamed_addr constant [3 x i8] c"Foo", align 1
|
2024-08-20 21:11:27 +08:00
|
|
|
@_llgo_main.bar = linkonce global ptr null, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
@7 = private unnamed_addr constant [8 x i8] c"main.bar", align 1
|
2024-08-20 21:11:27 +08:00
|
|
|
@"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo" = linkonce global ptr null, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
@8 = private unnamed_addr constant [1 x i8] c"f", align 1
|
|
|
|
|
@9 = private unnamed_addr constant [3 x i8] c"bar", align 1
|
2024-06-14 09:57:23 +08:00
|
|
|
@__llgo_argc = global i32 0, align 4
|
|
|
|
|
@__llgo_argv = global ptr null, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
@10 = private unnamed_addr constant [6 x i8] c"notOk:", align 1
|
2024-05-26 17:55:16 +08:00
|
|
|
|
|
|
|
|
define { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } @main.Bar(%"github.com/goplus/llgo/internal/runtime.eface" %0) {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
%1 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0
|
2024-05-27 12:00:01 +08:00
|
|
|
%2 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8
|
2024-05-26 17:55:16 +08:00
|
|
|
%3 = icmp eq ptr %1, %2
|
|
|
|
|
br i1 %3, label %_llgo_1, label %_llgo_2
|
|
|
|
|
|
|
|
|
|
_llgo_1: ; preds = %_llgo_0
|
|
|
|
|
%4 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1
|
|
|
|
|
%5 = load %"github.com/goplus/llgo/cl/internal/foo.Foo", ptr %4, align 8
|
|
|
|
|
%6 = alloca { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, align 8
|
|
|
|
|
%7 = getelementptr inbounds { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, ptr %6, i32 0, i32 0
|
|
|
|
|
store %"github.com/goplus/llgo/cl/internal/foo.Foo" %5, ptr %7, align 8
|
|
|
|
|
%8 = getelementptr inbounds { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, ptr %6, i32 0, i32 1
|
|
|
|
|
store i1 true, ptr %8, align 1
|
|
|
|
|
%9 = load { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, ptr %6, align 8
|
|
|
|
|
br label %_llgo_3
|
|
|
|
|
|
|
|
|
|
_llgo_2: ; preds = %_llgo_0
|
|
|
|
|
%10 = alloca { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, align 8
|
|
|
|
|
%11 = getelementptr inbounds { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, ptr %10, i32 0, i32 0
|
|
|
|
|
store { ptr, double } zeroinitializer, ptr %11, align 8
|
|
|
|
|
%12 = getelementptr inbounds { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, ptr %10, i32 0, i32 1
|
|
|
|
|
store i1 false, ptr %12, align 1
|
|
|
|
|
%13 = load { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, ptr %10, align 8
|
|
|
|
|
br label %_llgo_3
|
|
|
|
|
|
|
|
|
|
_llgo_3: ; preds = %_llgo_2, %_llgo_1
|
|
|
|
|
%14 = phi { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } [ %9, %_llgo_1 ], [ %13, %_llgo_2 ]
|
|
|
|
|
%15 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %14, 0
|
|
|
|
|
%16 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %14, 1
|
2024-07-09 13:10:02 +08:00
|
|
|
%17 = alloca { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, align 8
|
|
|
|
|
%18 = getelementptr inbounds { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, ptr %17, i32 0, i32 0
|
|
|
|
|
store %"github.com/goplus/llgo/cl/internal/foo.Foo" %15, ptr %18, align 8
|
|
|
|
|
%19 = getelementptr inbounds { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, ptr %17, i32 0, i32 1
|
|
|
|
|
store i1 %16, ptr %19, align 1
|
|
|
|
|
%20 = load { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 }, ptr %17, align 8
|
|
|
|
|
ret { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %20
|
2024-05-26 17:55:16 +08:00
|
|
|
}
|
2024-05-25 01:11:35 +08:00
|
|
|
|
|
|
|
|
define { %main.bar, i1 } @main.Foo(%"github.com/goplus/llgo/internal/runtime.eface" %0) {
|
|
|
|
|
_llgo_0:
|
2024-05-26 17:55:16 +08:00
|
|
|
%1 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 0
|
2024-05-27 12:00:01 +08:00
|
|
|
%2 = load ptr, ptr @_llgo_main.bar, align 8
|
2024-05-26 17:55:16 +08:00
|
|
|
%3 = icmp eq ptr %1, %2
|
|
|
|
|
br i1 %3, label %_llgo_1, label %_llgo_2
|
2024-05-25 07:43:24 +08:00
|
|
|
|
|
|
|
|
_llgo_1: ; preds = %_llgo_0
|
2024-05-26 17:55:16 +08:00
|
|
|
%4 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %0, 1
|
|
|
|
|
%5 = load %main.bar, ptr %4, align 8
|
|
|
|
|
%6 = alloca { %main.bar, i1 }, align 8
|
|
|
|
|
%7 = getelementptr inbounds { %main.bar, i1 }, ptr %6, i32 0, i32 0
|
|
|
|
|
store %main.bar %5, ptr %7, align 8
|
|
|
|
|
%8 = getelementptr inbounds { %main.bar, i1 }, ptr %6, i32 0, i32 1
|
|
|
|
|
store i1 true, ptr %8, align 1
|
|
|
|
|
%9 = load { %main.bar, i1 }, ptr %6, align 8
|
|
|
|
|
br label %_llgo_3
|
|
|
|
|
|
|
|
|
|
_llgo_2: ; preds = %_llgo_0
|
2024-05-25 01:11:35 +08:00
|
|
|
%10 = alloca { %main.bar, i1 }, align 8
|
|
|
|
|
%11 = getelementptr inbounds { %main.bar, i1 }, ptr %10, i32 0, i32 0
|
2024-05-26 17:55:16 +08:00
|
|
|
store { ptr, double } zeroinitializer, ptr %11, align 8
|
2024-05-25 01:11:35 +08:00
|
|
|
%12 = getelementptr inbounds { %main.bar, i1 }, ptr %10, i32 0, i32 1
|
2024-05-26 17:55:16 +08:00
|
|
|
store i1 false, ptr %12, align 1
|
2024-05-25 01:11:35 +08:00
|
|
|
%13 = load { %main.bar, i1 }, ptr %10, align 8
|
2024-05-25 07:43:24 +08:00
|
|
|
br label %_llgo_3
|
|
|
|
|
|
|
|
|
|
_llgo_3: ; preds = %_llgo_2, %_llgo_1
|
2024-05-26 17:55:16 +08:00
|
|
|
%14 = phi { %main.bar, i1 } [ %9, %_llgo_1 ], [ %13, %_llgo_2 ]
|
|
|
|
|
%15 = extractvalue { %main.bar, i1 } %14, 0
|
|
|
|
|
%16 = extractvalue { %main.bar, i1 } %14, 1
|
2024-07-09 13:10:02 +08:00
|
|
|
%17 = alloca { %main.bar, i1 }, align 8
|
|
|
|
|
%18 = getelementptr inbounds { %main.bar, i1 }, ptr %17, i32 0, i32 0
|
|
|
|
|
store %main.bar %15, ptr %18, align 8
|
|
|
|
|
%19 = getelementptr inbounds { %main.bar, i1 }, ptr %17, i32 0, i32 1
|
|
|
|
|
store i1 %16, ptr %19, align 1
|
|
|
|
|
%20 = load { %main.bar, i1 }, ptr %17, align 8
|
|
|
|
|
ret { %main.bar, i1 } %20
|
2024-05-25 01:11:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2024-05-26 17:55:16 +08:00
|
|
|
call void @"github.com/goplus/llgo/cl/internal/foo.init"()
|
2024-06-03 01:06:01 +08:00
|
|
|
call void @"main.init$after"()
|
2024-05-25 01:11:35 +08:00
|
|
|
br label %_llgo_2
|
|
|
|
|
|
|
|
|
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define i32 @main(i32 %0, ptr %1) {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
store i32 %0, ptr @__llgo_argc, align 4
|
|
|
|
|
store ptr %1, ptr @__llgo_argv, align 8
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.init"()
|
|
|
|
|
call void @main.init()
|
2024-05-26 17:55:16 +08:00
|
|
|
%2 = alloca %main.bar, align 8
|
2024-09-14 15:46:34 +08:00
|
|
|
call void @llvm.memset(ptr %2, i8 0, i64 16, i1 false)
|
|
|
|
|
%3 = call { %main.bar, i1 } @main.Foo(%"github.com/goplus/llgo/internal/runtime.eface" zeroinitializer)
|
|
|
|
|
%4 = extractvalue { %main.bar, i1 } %3, 0
|
|
|
|
|
store %main.bar %4, ptr %2, align 8
|
|
|
|
|
%5 = extractvalue { %main.bar, i1 } %3, 1
|
|
|
|
|
%6 = getelementptr inbounds %main.bar, ptr %2, i32 0, i32 0
|
|
|
|
|
%7 = load ptr, ptr %6, align 8
|
|
|
|
|
%8 = getelementptr inbounds %main.bar, ptr %2, i32 0, i32 1
|
|
|
|
|
%9 = load float, ptr %8, align 4
|
|
|
|
|
%10 = xor i1 %5, true
|
|
|
|
|
%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
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr @10, ptr %12, align 8
|
2024-09-14 15:46:34 +08:00
|
|
|
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %11, i32 0, i32 1
|
|
|
|
|
store i64 6, ptr %13, align 4
|
|
|
|
|
%14 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %11, align 8
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %7)
|
2024-05-26 17:55:16 +08:00
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
2024-09-14 15:46:34 +08:00
|
|
|
%15 = fpext float %9 to double
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %15)
|
2024-05-26 17:53:29 +08:00
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
2024-09-14 15:46:34 +08:00
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %14)
|
2024-05-26 17:55:16 +08:00
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
2024-09-14 15:46:34 +08:00
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %10)
|
2024-05-26 17:55:16 +08:00
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
2024-09-14 15:46:34 +08:00
|
|
|
%16 = alloca %"github.com/goplus/llgo/cl/internal/foo.Foo", align 8
|
|
|
|
|
call void @llvm.memset(ptr %16, i8 0, i64 16, i1 false)
|
|
|
|
|
%17 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8
|
|
|
|
|
%18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
|
|
|
|
store %"github.com/goplus/llgo/cl/internal/foo.Foo" zeroinitializer, ptr %18, align 8
|
|
|
|
|
%19 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %19, i32 0, i32 0
|
|
|
|
|
store ptr %17, ptr %20, align 8
|
|
|
|
|
%21 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %19, i32 0, i32 1
|
|
|
|
|
store ptr %18, ptr %21, align 8
|
|
|
|
|
%22 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %19, align 8
|
|
|
|
|
%23 = call { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } @main.Bar(%"github.com/goplus/llgo/internal/runtime.eface" %22)
|
|
|
|
|
%24 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %23, 0
|
|
|
|
|
store %"github.com/goplus/llgo/cl/internal/foo.Foo" %24, ptr %16, align 8
|
|
|
|
|
%25 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %23, 1
|
|
|
|
|
%26 = load %"github.com/goplus/llgo/cl/internal/foo.Foo", ptr %16, align 8
|
|
|
|
|
%27 = call ptr @"github.com/goplus/llgo/cl/internal/foo.Foo.Pb"(%"github.com/goplus/llgo/cl/internal/foo.Foo" %26)
|
|
|
|
|
%28 = getelementptr inbounds %"github.com/goplus/llgo/cl/internal/foo.Foo", ptr %16, i32 0, i32 1
|
|
|
|
|
%29 = load float, ptr %28, align 4
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %27)
|
2024-05-25 08:20:09 +08:00
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
2024-09-14 15:46:34 +08:00
|
|
|
%30 = fpext float %29 to double
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %30)
|
2024-05-25 08:20:09 +08:00
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
2024-09-14 15:46:34 +08:00
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %25)
|
2024-05-25 08:20:09 +08:00
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
2024-05-25 01:11:35 +08:00
|
|
|
ret i32 0
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-03 01:06:01 +08:00
|
|
|
define void @"main.init$after"() {
|
2024-05-25 01:11:35 +08:00
|
|
|
_llgo_0:
|
2024-09-05 21:27:40 +08:00
|
|
|
%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 @0, ptr %1, align 8
|
|
|
|
|
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 1
|
|
|
|
|
store i64 42, ptr %2, align 4
|
|
|
|
|
%3 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %0, align 8
|
|
|
|
|
%4 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %3, i64 25, i64 16, i64 1, i64 1)
|
|
|
|
|
%5 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8
|
|
|
|
|
%6 = icmp eq ptr %5, null
|
|
|
|
|
br i1 %6, label %_llgo_1, label %_llgo_2
|
2024-05-26 17:55:16 +08:00
|
|
|
|
|
|
|
|
_llgo_1: ; preds = %_llgo_0
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr %4, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8
|
2024-05-27 14:32:23 +08:00
|
|
|
br label %_llgo_2
|
|
|
|
|
|
|
|
|
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
2024-06-25 14:41:32 +08:00
|
|
|
%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
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr @1, ptr %8, align 8
|
2024-06-25 14:41:32 +08:00
|
|
|
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %7, i32 0, i32 1
|
2024-09-05 21:27:40 +08:00
|
|
|
store i64 2, ptr %9, align 4
|
2024-06-25 14:41:32 +08:00
|
|
|
%10 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %7, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
%11 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %11, i32 0, i32 0
|
|
|
|
|
store ptr null, ptr %12, align 8
|
|
|
|
|
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %11, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %13, align 4
|
|
|
|
|
%14 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %11, align 8
|
|
|
|
|
%15 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
|
|
|
|
%16 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %15)
|
|
|
|
|
%17 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %10, ptr %16, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %14, i1 false)
|
2024-06-25 14:41:32 +08:00
|
|
|
%18 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%19 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %18, i32 0, i32 0
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr @2, ptr %19, align 8
|
2024-06-25 14:41:32 +08:00
|
|
|
%20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %18, i32 0, i32 1
|
2024-09-05 21:27:40 +08:00
|
|
|
store i64 1, ptr %20, align 4
|
2024-06-25 14:41:32 +08:00
|
|
|
%21 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %18, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
%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 null, ptr %23, align 8
|
|
|
|
|
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %22, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %24, align 4
|
|
|
|
|
%25 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %22, align 8
|
|
|
|
|
%26 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45)
|
|
|
|
|
%27 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %21, ptr %26, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %25, i1 false)
|
|
|
|
|
%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 4, ptr %30, align 4
|
|
|
|
|
%31 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %28, align 8
|
|
|
|
|
%32 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
|
|
|
|
%33 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %32, i64 0
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %17, ptr %33, align 8
|
|
|
|
|
%34 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %32, i64 1
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %27, ptr %34, align 8
|
|
|
|
|
%35 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
|
|
|
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %35, i32 0, i32 0
|
|
|
|
|
store ptr %32, ptr %36, align 8
|
|
|
|
|
%37 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %35, i32 0, i32 1
|
|
|
|
|
store i64 2, ptr %37, align 4
|
|
|
|
|
%38 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %35, i32 0, i32 2
|
|
|
|
|
store i64 2, ptr %38, align 4
|
|
|
|
|
%39 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %35, align 8
|
|
|
|
|
%40 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %31, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %39)
|
|
|
|
|
store ptr %40, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
|
|
|
|
%41 = load ptr, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
|
|
|
|
br i1 %6, label %_llgo_3, label %_llgo_4
|
2024-05-31 08:12:27 +08:00
|
|
|
|
|
|
|
|
_llgo_3: ; preds = %_llgo_2
|
2024-09-05 21:27:40 +08:00
|
|
|
%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 @4, ptr %43, align 8
|
|
|
|
|
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %42, i32 0, i32 1
|
|
|
|
|
store i64 2, ptr %44, align 4
|
|
|
|
|
%45 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %42, align 8
|
|
|
|
|
%46 = load ptr, ptr @_llgo_byte, align 8
|
|
|
|
|
%47 = icmp eq ptr %46, null
|
|
|
|
|
br i1 %47, label %_llgo_5, label %_llgo_6
|
2024-06-25 14:41:32 +08:00
|
|
|
|
|
|
|
|
_llgo_4: ; preds = %_llgo_10, %_llgo_2
|
2024-09-05 21:27:40 +08:00
|
|
|
%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 @7, ptr %49, align 8
|
|
|
|
|
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %48, i32 0, i32 1
|
|
|
|
|
store i64 8, ptr %50, align 4
|
|
|
|
|
%51 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %48, align 8
|
|
|
|
|
%52 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %51, i64 25, i64 16, i64 0, i64 0)
|
|
|
|
|
store ptr %52, ptr @_llgo_main.bar, 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 @1, 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 = 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 null, ptr %58, align 8
|
|
|
|
|
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %57, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %59, align 4
|
|
|
|
|
%60 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %57, align 8
|
|
|
|
|
%61 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
|
|
|
|
%62 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %61)
|
|
|
|
|
%63 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %56, ptr %62, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %60, i1 false)
|
|
|
|
|
%64 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %64, i32 0, i32 0
|
|
|
|
|
store ptr @8, ptr %65, align 8
|
|
|
|
|
%66 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %64, i32 0, i32 1
|
|
|
|
|
store i64 1, ptr %66, align 4
|
|
|
|
|
%67 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %64, align 8
|
|
|
|
|
%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 null, ptr %69, align 8
|
|
|
|
|
%70 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %68, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %70, align 4
|
|
|
|
|
%71 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %68, align 8
|
|
|
|
|
%72 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45)
|
|
|
|
|
%73 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %67, ptr %72, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %71, i1 false)
|
|
|
|
|
%74 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %74, i32 0, i32 0
|
|
|
|
|
store ptr @3, ptr %75, align 8
|
|
|
|
|
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %74, i32 0, i32 1
|
|
|
|
|
store i64 4, ptr %76, align 4
|
|
|
|
|
%77 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %74, align 8
|
|
|
|
|
%78 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
|
|
|
|
%79 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %78, i64 0
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %63, ptr %79, align 8
|
|
|
|
|
%80 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %78, i64 1
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %73, 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 %78, ptr %82, align 8
|
|
|
|
|
%83 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %81, i32 0, i32 1
|
|
|
|
|
store i64 2, ptr %83, align 4
|
|
|
|
|
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %81, i32 0, i32 2
|
|
|
|
|
store i64 2, 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.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %77, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %85)
|
|
|
|
|
store ptr %86, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8
|
|
|
|
|
%87 = load ptr, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", 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 @3, ptr %89, align 8
|
|
|
|
|
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %88, i32 0, i32 1
|
|
|
|
|
store i64 4, ptr %90, align 4
|
|
|
|
|
%91 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %88, align 8
|
|
|
|
|
%92 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %92, i32 0, i32 0
|
|
|
|
|
store ptr @9, ptr %93, align 8
|
|
|
|
|
%94 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %92, i32 0, i32 1
|
|
|
|
|
store i64 3, ptr %94, align 4
|
|
|
|
|
%95 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %92, align 8
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %52, %"github.com/goplus/llgo/internal/runtime.String" %91, %"github.com/goplus/llgo/internal/runtime.String" %95, ptr %87, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
2024-06-25 14:41:32 +08:00
|
|
|
ret void
|
2024-05-31 08:12:27 +08:00
|
|
|
|
2024-06-25 14:41:32 +08:00
|
|
|
_llgo_5: ; preds = %_llgo_3
|
2024-09-05 21:27:40 +08:00
|
|
|
%96 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
|
|
|
|
store ptr %96, ptr @_llgo_byte, align 8
|
2024-05-31 08:12:27 +08:00
|
|
|
br label %_llgo_6
|
|
|
|
|
|
2024-06-25 14:41:32 +08:00
|
|
|
_llgo_6: ; preds = %_llgo_5, %_llgo_3
|
2024-09-05 21:27:40 +08:00
|
|
|
%97 = load ptr, ptr @"*_llgo_byte", align 8
|
|
|
|
|
%98 = icmp eq ptr %97, null
|
|
|
|
|
br i1 %98, label %_llgo_7, label %_llgo_8
|
2024-05-31 08:12:27 +08:00
|
|
|
|
|
|
|
|
_llgo_7: ; preds = %_llgo_6
|
2024-09-05 21:27:40 +08:00
|
|
|
%99 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
|
|
|
|
%100 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %99)
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %100)
|
|
|
|
|
store ptr %100, ptr @"*_llgo_byte", align 8
|
2024-06-25 12:11:51 +08:00
|
|
|
br label %_llgo_8
|
|
|
|
|
|
|
|
|
|
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
2024-09-05 21:27:40 +08:00
|
|
|
%101 = load ptr, ptr @"*_llgo_byte", align 8
|
|
|
|
|
%102 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
|
|
|
|
%103 = icmp eq ptr %102, null
|
|
|
|
|
br i1 %103, label %_llgo_9, label %_llgo_10
|
2024-06-25 12:11:51 +08:00
|
|
|
|
|
|
|
|
_llgo_9: ; preds = %_llgo_8
|
2024-09-05 21:27:40 +08:00
|
|
|
%104 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
|
|
|
|
%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 %104, ptr %106, align 8
|
|
|
|
|
%107 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %105, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %107, align 4
|
|
|
|
|
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %105, i32 0, i32 2
|
|
|
|
|
store i64 0, 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.AllocU"(i64 8)
|
|
|
|
|
%111 = getelementptr ptr, ptr %110, i64 0
|
|
|
|
|
store ptr %101, ptr %111, align 8
|
|
|
|
|
%112 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
|
|
|
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %112, i32 0, i32 0
|
|
|
|
|
store ptr %110, ptr %113, align 8
|
|
|
|
|
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %112, i32 0, i32 1
|
|
|
|
|
store i64 1, ptr %114, align 4
|
|
|
|
|
%115 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %112, i32 0, i32 2
|
|
|
|
|
store i64 1, ptr %115, align 4
|
|
|
|
|
%116 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %112, align 8
|
|
|
|
|
%117 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %109, %"github.com/goplus/llgo/internal/runtime.Slice" %116, i1 false)
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %117)
|
|
|
|
|
store ptr %117, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
2024-06-25 14:41:32 +08:00
|
|
|
br label %_llgo_10
|
2024-05-31 08:12:27 +08:00
|
|
|
|
2024-06-25 14:41:32 +08:00
|
|
|
_llgo_10: ; preds = %_llgo_9, %_llgo_8
|
2024-09-05 21:27:40 +08:00
|
|
|
%118 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
|
|
|
|
%119 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
|
|
|
|
%120 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %119, i32 0, i32 0
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %45, ptr %120, align 8
|
|
|
|
|
%121 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %119, i32 0, i32 1
|
|
|
|
|
store ptr %118, ptr %121, align 8
|
|
|
|
|
%122 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %119, i32 0, i32 2
|
|
|
|
|
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", ptr %122, align 8
|
|
|
|
|
%123 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %119, i32 0, i32 3
|
|
|
|
|
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", ptr %123, align 8
|
|
|
|
|
%124 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %119, 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" %45, ptr %126, align 8
|
|
|
|
|
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %125, i32 0, i32 1
|
|
|
|
|
store ptr %118, ptr %127, align 8
|
|
|
|
|
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %125, i32 0, i32 2
|
|
|
|
|
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", ptr %128, align 8
|
|
|
|
|
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %125, i32 0, i32 3
|
|
|
|
|
store ptr @"github.com/goplus/llgo/cl/internal/foo.Foo.Pb", 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
|
2024-07-04 08:23:57 +08:00
|
|
|
store i64 1, ptr %135, align 4
|
2024-09-05 21:27:40 +08:00
|
|
|
%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 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
|
|
|
|
%139 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %138, i64 0
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.Method" %124, ptr %139, align 8
|
|
|
|
|
%140 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
|
|
|
%141 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %140, i32 0, i32 0
|
|
|
|
|
store ptr %138, ptr %141, align 8
|
|
|
|
|
%142 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %140, i32 0, i32 1
|
|
|
|
|
store i64 1, ptr %142, align 4
|
|
|
|
|
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %140, i32 0, i32 2
|
|
|
|
|
store i64 1, ptr %143, align 4
|
|
|
|
|
%144 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %140, align 8
|
|
|
|
|
%145 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%146 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %145, i32 0, i32 0
|
|
|
|
|
store ptr @5, ptr %146, align 8
|
|
|
|
|
%147 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %145, i32 0, i32 1
|
|
|
|
|
store i64 38, ptr %147, align 4
|
|
|
|
|
%148 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %145, align 8
|
|
|
|
|
%149 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%150 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %149, i32 0, i32 0
|
|
|
|
|
store ptr @6, ptr %150, align 8
|
|
|
|
|
%151 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %149, i32 0, i32 1
|
|
|
|
|
store i64 3, ptr %151, align 4
|
|
|
|
|
%152 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %149, align 8
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %4, %"github.com/goplus/llgo/internal/runtime.String" %148, %"github.com/goplus/llgo/internal/runtime.String" %152, ptr %41, %"github.com/goplus/llgo/internal/runtime.Slice" %137, %"github.com/goplus/llgo/internal/runtime.Slice" %144)
|
2024-06-25 14:41:32 +08:00
|
|
|
br label %_llgo_4
|
2024-05-25 01:11:35 +08:00
|
|
|
}
|
|
|
|
|
|
2024-09-05 21:27:40 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64)
|
2024-05-31 08:12:27 +08:00
|
|
|
|
2024-05-26 17:53:29 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice")
|
2024-05-25 01:11:35 +08:00
|
|
|
|
2024-05-26 17:53:29 +08:00
|
|
|
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)
|
2024-05-25 01:11:35 +08:00
|
|
|
|
2024-06-25 14:41:32 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr)
|
|
|
|
|
|
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64)
|
|
|
|
|
|
2024-05-31 08:12:27 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64)
|
|
|
|
|
|
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice")
|
2024-05-25 01:11:35 +08:00
|
|
|
|
2024-07-08 20:19:25 +08:00
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr)
|
|
|
|
|
|
2024-05-27 14:32:23 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1)
|
|
|
|
|
|
2024-05-29 09:36:53 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb"(ptr)
|
2024-05-27 14:32:23 +08:00
|
|
|
|
2024-05-29 09:36:53 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/cl/internal/foo.Foo.Pb"(%"github.com/goplus/llgo/cl/internal/foo.Foo")
|
2024-05-27 14:32:23 +08:00
|
|
|
|
2024-05-31 08:12:27 +08:00
|
|
|
declare void @"github.com/goplus/llgo/cl/internal/foo.init"()
|
2024-05-27 14:32:23 +08:00
|
|
|
|
2024-05-31 08:12:27 +08:00
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.init"()
|
|
|
|
|
|
2024-09-14 15:46:34 +08:00
|
|
|
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
|
|
|
|
|
declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0
|
2024-05-31 08:12:27 +08:00
|
|
|
|
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr)
|
|
|
|
|
|
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8)
|
|
|
|
|
|
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double)
|
|
|
|
|
|
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String")
|
|
|
|
|
|
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1)
|
2024-09-14 15:46:34 +08:00
|
|
|
|
|
|
|
|
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
|