ssa: compile go string constant without alloca
This commit is contained in:
17
cl/_testgo/allocinloop/in.go
Normal file
17
cl/_testgo/allocinloop/in.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
func Foo(s string) int {
|
||||
return len(s)
|
||||
}
|
||||
|
||||
func Test() {
|
||||
j := 0
|
||||
for i := 0; i < 10000000; i++ {
|
||||
j += Foo("hello")
|
||||
}
|
||||
println(j)
|
||||
}
|
||||
|
||||
func main() {
|
||||
Test()
|
||||
}
|
||||
66
cl/_testgo/allocinloop/out.ll
Normal file
66
cl/_testgo/allocinloop/out.ll
Normal file
@@ -0,0 +1,66 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@0 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define i64 @main.Foo(%"github.com/goplus/llgo/internal/runtime.String" %0) {
|
||||
_llgo_0:
|
||||
%1 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %0, 1
|
||||
ret i64 %1
|
||||
}
|
||||
|
||||
define void @main.Test() {
|
||||
_llgo_0:
|
||||
br label %_llgo_3
|
||||
|
||||
_llgo_1: ; preds = %_llgo_3
|
||||
%0 = call i64 @main.Foo(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 })
|
||||
%1 = add i64 %3, %0
|
||||
%2 = add i64 %4, 1
|
||||
br label %_llgo_3
|
||||
|
||||
_llgo_2: ; preds = %_llgo_3
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret void
|
||||
|
||||
_llgo_3: ; preds = %_llgo_1, %_llgo_0
|
||||
%3 = phi i64 [ 0, %_llgo_0 ], [ %1, %_llgo_1 ]
|
||||
%4 = phi i64 [ 0, %_llgo_0 ], [ %2, %_llgo_1 ]
|
||||
%5 = icmp slt i64 %4, 10000000
|
||||
br i1 %5, label %_llgo_1, label %_llgo_2
|
||||
}
|
||||
|
||||
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
|
||||
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()
|
||||
call void @main.Test()
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64)
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8)
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
@@ -31,49 +31,24 @@ _llgo_0:
|
||||
call void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
call void @main.init()
|
||||
%2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 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 @0, ptr %4, align 8
|
||||
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %3, i32 0, i32 1
|
||||
store i64 3, ptr %5, align 4
|
||||
%6 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %3, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %6, ptr %2, align 8
|
||||
%7 = alloca %main.T, align 8
|
||||
%8 = getelementptr inbounds %main.T, ptr %7, i32 0, i32 0
|
||||
store ptr @"__llgo_stub.main.main$1", ptr %8, align 8
|
||||
%9 = getelementptr inbounds %main.T, ptr %7, i32 0, i32 1
|
||||
store ptr null, ptr %9, align 8
|
||||
%10 = load %main.T, ptr %7, align 8
|
||||
%11 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%12 = getelementptr inbounds { ptr }, ptr %11, i32 0, i32 0
|
||||
store ptr %2, ptr %12, align 8
|
||||
%13 = alloca { ptr, ptr }, align 8
|
||||
%14 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 0
|
||||
store ptr @"main.main$2", ptr %14, align 8
|
||||
%15 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 1
|
||||
store ptr %11, ptr %15, align 8
|
||||
%16 = load { ptr, ptr }, ptr %13, align 8
|
||||
%17 = alloca %main.T, align 8
|
||||
store { ptr, ptr } %16, ptr %17, align 8
|
||||
%18 = load %main.T, ptr %17, align 8
|
||||
%19 = extractvalue %main.T %10, 1
|
||||
%20 = extractvalue %main.T %10, 0
|
||||
call void %20(ptr %19, i64 100)
|
||||
%21 = extractvalue %main.T %18, 1
|
||||
%22 = extractvalue %main.T %18, 0
|
||||
call void %22(ptr %21, i64 200)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 3 }, ptr %2, align 8
|
||||
%3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%4 = getelementptr inbounds { ptr }, ptr %3, i32 0, i32 0
|
||||
store ptr %2, ptr %4, align 8
|
||||
%5 = insertvalue { ptr, ptr } { ptr @"main.main$2", ptr undef }, ptr %3, 1
|
||||
%6 = alloca %main.T, align 8
|
||||
store { ptr, ptr } %5, ptr %6, align 8
|
||||
%7 = load %main.T, ptr %6, align 8
|
||||
call void @"__llgo_stub.main.main$1"(ptr null, i64 100)
|
||||
%8 = extractvalue %main.T %7, 1
|
||||
%9 = extractvalue %main.T %7, 0
|
||||
call void %9(ptr %8, i64 200)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define void @"main.main$1"(i64 %0) {
|
||||
_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
|
||||
%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
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %4)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %0)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
@@ -85,13 +60,7 @@ _llgo_0:
|
||||
%2 = load { ptr }, ptr %0, align 8
|
||||
%3 = extractvalue { ptr } %2, 0
|
||||
%4 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %3, align 8
|
||||
%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 @2, ptr %6, align 8
|
||||
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %5, i32 0, i32 1
|
||||
store i64 7, ptr %7, align 4
|
||||
%8 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %5, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %8)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 7 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %1)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -35,13 +35,9 @@ _llgo_0:
|
||||
%5 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%6 = load ptr, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8
|
||||
%7 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %6, ptr %4)
|
||||
%8 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %8, i32 0, i32 0
|
||||
store ptr %7, ptr %9, align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %8, i32 0, i32 1
|
||||
store ptr %1, ptr %10, align 8
|
||||
%11 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %8, align 8
|
||||
ret %"github.com/goplus/llgo/internal/runtime.iface" %11
|
||||
%8 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %7, 0
|
||||
%9 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %8, ptr %1, 1
|
||||
ret %"github.com/goplus/llgo/internal/runtime.iface" %9
|
||||
}
|
||||
|
||||
define %"github.com/goplus/llgo/internal/runtime.String" @"main.(*errorString).Error"(ptr %0) {
|
||||
@@ -71,29 +67,19 @@ _llgo_0:
|
||||
store ptr %1, ptr @__llgo_argv, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
call void @main.init()
|
||||
%2 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 0
|
||||
store ptr @5, ptr %3, align 8
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 1
|
||||
store i64 8, ptr %4, align 4
|
||||
%5 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8
|
||||
%6 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.New(%"github.com/goplus/llgo/internal/runtime.String" %5)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %6)
|
||||
%2 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.New(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 8 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %2)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%7 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %6)
|
||||
%8 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %6, 0
|
||||
%9 = getelementptr ptr, ptr %8, i64 3
|
||||
%10 = load ptr, ptr %9, align 8
|
||||
%11 = alloca { ptr, ptr }, align 8
|
||||
%12 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
|
||||
store ptr %10, ptr %12, align 8
|
||||
%13 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
|
||||
store ptr %7, ptr %13, align 8
|
||||
%14 = load { ptr, ptr }, ptr %11, align 8
|
||||
%15 = extractvalue { ptr, ptr } %14, 1
|
||||
%16 = extractvalue { ptr, ptr } %14, 0
|
||||
%17 = call %"github.com/goplus/llgo/internal/runtime.String" %16(ptr %15)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %17)
|
||||
%3 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %2)
|
||||
%4 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %2, 0
|
||||
%5 = getelementptr ptr, ptr %4, i64 3
|
||||
%6 = load ptr, ptr %5, align 8
|
||||
%7 = insertvalue { ptr, ptr } undef, ptr %6, 0
|
||||
%8 = insertvalue { ptr, ptr } %7, ptr %3, 1
|
||||
%9 = extractvalue { ptr, ptr } %8, 1
|
||||
%10 = extractvalue { ptr, ptr } %8, 0
|
||||
%11 = call %"github.com/goplus/llgo/internal/runtime.String" %10(ptr %9)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %11)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret i32 0
|
||||
}
|
||||
@@ -102,185 +88,82 @@ declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64)
|
||||
|
||||
define void @"main.init$after"() {
|
||||
_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 @0, ptr %1, align 8
|
||||
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 1
|
||||
store i64 16, 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 0, i64 1)
|
||||
store ptr %4, ptr @_llgo_main.errorString, align 8
|
||||
%5 = load ptr, ptr @_llgo_string, align 8
|
||||
%6 = icmp eq ptr %5, null
|
||||
br i1 %6, label %_llgo_1, label %_llgo_2
|
||||
%0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 16 }, i64 25, i64 16, i64 0, i64 1)
|
||||
store ptr %0, ptr @_llgo_main.errorString, align 8
|
||||
%1 = load ptr, ptr @_llgo_string, align 8
|
||||
%2 = icmp eq ptr %1, null
|
||||
br i1 %2, label %_llgo_1, label %_llgo_2
|
||||
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%7 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %7, ptr @_llgo_string, align 8
|
||||
%3 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %3, ptr @_llgo_string, align 8
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%8 = load ptr, ptr @_llgo_string, 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
|
||||
%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
|
||||
%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 null, ptr %14, align 8
|
||||
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %13, i32 0, i32 1
|
||||
store i64 0, 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.Basic"(i64 24)
|
||||
%18 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %12, ptr %17, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %16, i1 false)
|
||||
%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 @2, ptr %20, align 8
|
||||
%21 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %19, i32 0, i32 1
|
||||
store i64 4, ptr %21, align 4
|
||||
%22 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %19, align 8
|
||||
%23 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56)
|
||||
%24 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %23, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %18, ptr %24, align 8
|
||||
%25 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%26 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %25, i32 0, i32 0
|
||||
store ptr %23, ptr %26, align 8
|
||||
%27 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %25, i32 0, i32 1
|
||||
store i64 1, ptr %27, align 4
|
||||
%28 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %25, i32 0, i32 2
|
||||
store i64 1, ptr %28, align 4
|
||||
%29 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %25, align 8
|
||||
%30 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %22, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %29)
|
||||
store ptr %30, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8
|
||||
%31 = load ptr, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", 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 @3, ptr %33, align 8
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %32, i32 0, i32 1
|
||||
store i64 5, ptr %34, align 4
|
||||
%35 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %32, align 8
|
||||
%36 = load ptr, ptr @_llgo_string, align 8
|
||||
%37 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%38 = icmp eq ptr %37, null
|
||||
br i1 %38, label %_llgo_3, label %_llgo_4
|
||||
%4 = load ptr, ptr @_llgo_string, align 8
|
||||
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
%6 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 1 }, ptr %5, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false)
|
||||
%7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56)
|
||||
%8 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %7, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %6, ptr %8, align 8
|
||||
%9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %7, 0
|
||||
%10 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, i64 1, 1
|
||||
%11 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %10, i64 1, 2
|
||||
%12 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %11)
|
||||
store ptr %12, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8
|
||||
%13 = load ptr, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8
|
||||
%14 = load ptr, ptr @_llgo_string, align 8
|
||||
%15 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%16 = icmp eq ptr %15, null
|
||||
br i1 %16, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%39 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%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 %39, ptr %41, align 8
|
||||
%42 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %40, i32 0, i32 1
|
||||
store i64 0, ptr %42, align 4
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %40, i32 0, i32 2
|
||||
store i64 0, 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.AllocU"(i64 8)
|
||||
%46 = getelementptr ptr, ptr %45, i64 0
|
||||
store ptr %36, ptr %46, align 8
|
||||
%47 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%48 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %47, i32 0, i32 0
|
||||
store ptr %45, ptr %48, align 8
|
||||
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %47, i32 0, i32 1
|
||||
store i64 1, ptr %49, align 4
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %47, i32 0, i32 2
|
||||
store i64 1, ptr %50, align 4
|
||||
%51 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %47, align 8
|
||||
%52 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %44, %"github.com/goplus/llgo/internal/runtime.Slice" %51, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %52)
|
||||
store ptr %52, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%17 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%18 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %17, 0
|
||||
%19 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %18, i64 0, 1
|
||||
%20 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %19, i64 0, 2
|
||||
%21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%22 = getelementptr ptr, ptr %21, i64 0
|
||||
store ptr %14, ptr %22, align 8
|
||||
%23 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %21, 0
|
||||
%24 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %23, i64 1, 1
|
||||
%25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %24, i64 1, 2
|
||||
%26 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %20, %"github.com/goplus/llgo/internal/runtime.Slice" %25, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %26)
|
||||
store ptr %26, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%53 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%54 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %54, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %35, ptr %55, align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %54, i32 0, i32 1
|
||||
store ptr %53, ptr %56, align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %54, i32 0, i32 2
|
||||
store ptr @"main.(*errorString).Error", ptr %57, align 8
|
||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %54, i32 0, i32 3
|
||||
store ptr @"main.(*errorString).Error", ptr %58, align 8
|
||||
%59 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %54, align 8
|
||||
%60 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%61 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %60, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %59, ptr %61, align 8
|
||||
%62 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %62, i32 0, i32 0
|
||||
store ptr %60, ptr %63, align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %62, i32 0, i32 1
|
||||
store i64 1, ptr %64, align 4
|
||||
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %62, i32 0, i32 2
|
||||
store i64 1, ptr %65, align 4
|
||||
%66 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %62, 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 4, ptr %69, align 4
|
||||
%70 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %67, align 8
|
||||
%71 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %71, i32 0, i32 0
|
||||
store ptr @4, ptr %72, align 8
|
||||
%73 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %71, i32 0, i32 1
|
||||
store i64 11, ptr %73, align 4
|
||||
%74 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %71, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %4, %"github.com/goplus/llgo/internal/runtime.String" %70, %"github.com/goplus/llgo/internal/runtime.String" %74, ptr %31, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %66)
|
||||
%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 @0, ptr %76, align 8
|
||||
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %75, i32 0, i32 1
|
||||
store i64 16, 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.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %78, i64 25, i64 16, i64 0, i64 1)
|
||||
%80 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %79)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %80)
|
||||
store ptr %80, ptr @"*_llgo_main.errorString", align 8
|
||||
%81 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%82 = load ptr, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8
|
||||
%83 = icmp eq ptr %82, null
|
||||
br i1 %83, label %_llgo_5, label %_llgo_6
|
||||
%27 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%28 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %27, 1
|
||||
%29 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %28, ptr @"main.(*errorString).Error", 2
|
||||
%30 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %29, ptr @"main.(*errorString).Error", 3
|
||||
%31 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%32 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %31, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %30, ptr %32, align 8
|
||||
%33 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %31, 0
|
||||
%34 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %33, i64 1, 1
|
||||
%35 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %34, i64 1, 2
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 11 }, ptr %13, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %35)
|
||||
%36 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 16 }, i64 25, i64 16, i64 0, i64 1)
|
||||
%37 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %36)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %37)
|
||||
store ptr %37, ptr @"*_llgo_main.errorString", align 8
|
||||
%38 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
||||
%39 = load ptr, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8
|
||||
%40 = icmp eq ptr %39, null
|
||||
br i1 %40, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%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 5, ptr %86, align 4
|
||||
%87 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %84, align 8
|
||||
%88 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%89 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %88, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %87, ptr %89, align 8
|
||||
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %88, i32 0, i32 1
|
||||
store ptr %81, ptr %90, align 8
|
||||
%91 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %88, align 8
|
||||
%92 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
%93 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %92, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %91, ptr %93, align 8
|
||||
%94 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %94, i32 0, i32 0
|
||||
store ptr %92, ptr %95, align 8
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %94, i32 0, i32 1
|
||||
store i64 1, ptr %96, align 4
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %94, i32 0, i32 2
|
||||
store i64 1, ptr %97, align 4
|
||||
%98 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %94, 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 @2, ptr %100, align 8
|
||||
%101 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %99, i32 0, i32 1
|
||||
store i64 4, ptr %101, align 4
|
||||
%102 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %99, align 8
|
||||
%103 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %103, i32 0, i32 0
|
||||
store ptr null, ptr %104, align 8
|
||||
%105 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %103, i32 0, i32 1
|
||||
store i64 0, ptr %105, align 4
|
||||
%106 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %103, align 8
|
||||
%107 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %102, %"github.com/goplus/llgo/internal/runtime.String" %106, %"github.com/goplus/llgo/internal/runtime.Slice" %98)
|
||||
store ptr %107, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8
|
||||
%41 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 5 }, ptr undef }, ptr %38, 1
|
||||
%42 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
%43 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %42, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %41, ptr %43, align 8
|
||||
%44 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %42, 0
|
||||
%45 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %44, i64 1, 1
|
||||
%46 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %45, i64 1, 2
|
||||
%47 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %46)
|
||||
store ptr %47, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
|
||||
@@ -34,49 +34,26 @@ _llgo_0:
|
||||
%3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%4 = getelementptr inbounds { ptr }, ptr %3, i32 0, i32 0
|
||||
store ptr %2, ptr %4, align 8
|
||||
%5 = alloca { ptr, ptr }, align 8
|
||||
%6 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 0
|
||||
store ptr @"main.main$1", ptr %6, align 8
|
||||
%7 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 1
|
||||
store ptr %3, ptr %7, align 8
|
||||
%8 = load { ptr, ptr }, 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 @0, ptr %10, align 8
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %9, i32 0, i32 1
|
||||
store i64 16, ptr %11, align 4
|
||||
%12 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %9, align 8
|
||||
%13 = call ptr @malloc(i64 32)
|
||||
%14 = getelementptr inbounds { { ptr, ptr }, %"github.com/goplus/llgo/internal/runtime.String" }, ptr %13, i32 0, i32 0
|
||||
store { ptr, ptr } %8, ptr %14, align 8
|
||||
%15 = getelementptr inbounds { { ptr, ptr }, %"github.com/goplus/llgo/internal/runtime.String" }, ptr %13, i32 0, i32 1
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %12, ptr %15, align 8
|
||||
%16 = alloca i8, i64 8, align 1
|
||||
%17 = alloca %"github.com/goplus/llgo/c/pthread.RoutineFunc", align 8
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/c/pthread.RoutineFunc", ptr %17, i32 0, i32 0
|
||||
store ptr @"__llgo_stub.main._llgo_routine$1", ptr %18, align 8
|
||||
%19 = getelementptr inbounds %"github.com/goplus/llgo/c/pthread.RoutineFunc", ptr %17, i32 0, i32 1
|
||||
store ptr null, ptr %19, align 8
|
||||
%20 = load %"github.com/goplus/llgo/c/pthread.RoutineFunc", ptr %17, align 8
|
||||
%21 = call i32 @"github.com/goplus/llgo/internal/runtime.CreateThread"(ptr %16, ptr null, %"github.com/goplus/llgo/c/pthread.RoutineFunc" %20, ptr %13)
|
||||
%5 = insertvalue { ptr, ptr } { ptr @"main.main$1", ptr undef }, ptr %3, 1
|
||||
%6 = call ptr @malloc(i64 32)
|
||||
%7 = getelementptr inbounds { { ptr, ptr }, %"github.com/goplus/llgo/internal/runtime.String" }, ptr %6, i32 0, i32 0
|
||||
store { ptr, ptr } %5, ptr %7, align 8
|
||||
%8 = getelementptr inbounds { { ptr, ptr }, %"github.com/goplus/llgo/internal/runtime.String" }, ptr %6, i32 0, i32 1
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 16 }, ptr %8, align 8
|
||||
%9 = alloca i8, i64 8, align 1
|
||||
%10 = call i32 @"github.com/goplus/llgo/internal/runtime.CreateThread"(ptr %9, ptr null, %"github.com/goplus/llgo/c/pthread.RoutineFunc" { ptr @"__llgo_stub.main._llgo_routine$1", ptr null }, ptr %6)
|
||||
br label %_llgo_3
|
||||
|
||||
_llgo_1: ; preds = %_llgo_3
|
||||
%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 @1, ptr %23, align 8
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %22, i32 0, i32 1
|
||||
store i64 1, ptr %24, align 4
|
||||
%25 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %22, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %25)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 1 })
|
||||
br label %_llgo_3
|
||||
|
||||
_llgo_2: ; preds = %_llgo_3
|
||||
ret i32 0
|
||||
|
||||
_llgo_3: ; preds = %_llgo_1, %_llgo_0
|
||||
%26 = load i1, ptr %2, align 1
|
||||
br i1 %26, label %_llgo_2, label %_llgo_1
|
||||
%11 = load i1, ptr %2, align 1
|
||||
br i1 %11, label %_llgo_2, label %_llgo_1
|
||||
}
|
||||
|
||||
define void @"main.main$1"(ptr %0, %"github.com/goplus/llgo/internal/runtime.String" %1) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -110,135 +110,83 @@ _llgo_0:
|
||||
store ptr %4, ptr %3, align 8
|
||||
%5 = load ptr, ptr @_llgo_main.Game1, align 8
|
||||
%6 = load ptr, ptr @"*_llgo_main.Game1", align 8
|
||||
%7 = 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 %6, ptr %8, align 8
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, i32 0, i32 1
|
||||
store ptr %2, ptr %9, align 8
|
||||
%10 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, align 8
|
||||
%11 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 0)
|
||||
%12 = load ptr, ptr @_llgo_main.Game2, align 8
|
||||
%13 = load ptr, ptr @"*_llgo_main.Game2", align 8
|
||||
%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 %13, ptr %15, align 8
|
||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %14, i32 0, i32 1
|
||||
store ptr %11, ptr %16, align 8
|
||||
%17 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %14, align 8
|
||||
%18 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %10, 0
|
||||
%19 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8
|
||||
%20 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %19, ptr %18)
|
||||
br i1 %20, label %_llgo_3, label %_llgo_4
|
||||
%7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %6, 0
|
||||
%8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %7, ptr %2, 1
|
||||
%9 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 0)
|
||||
%10 = load ptr, ptr @_llgo_main.Game2, align 8
|
||||
%11 = load ptr, ptr @"*_llgo_main.Game2", align 8
|
||||
%12 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %11, 0
|
||||
%13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, ptr %9, 1
|
||||
%14 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %8, 0
|
||||
%15 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8
|
||||
%16 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %15, ptr %14)
|
||||
br i1 %16, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_1: ; preds = %_llgo_5
|
||||
%21 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %50)
|
||||
%22 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %50, 0
|
||||
%23 = getelementptr ptr, ptr %22, i64 3
|
||||
%24 = load ptr, ptr %23, align 8
|
||||
%25 = alloca { ptr, ptr }, align 8
|
||||
%26 = getelementptr inbounds { ptr, ptr }, ptr %25, i32 0, i32 0
|
||||
store ptr %24, ptr %26, align 8
|
||||
%27 = getelementptr inbounds { ptr, ptr }, ptr %25, i32 0, i32 1
|
||||
store ptr %21, ptr %27, align 8
|
||||
%28 = load { ptr, ptr }, ptr %25, align 8
|
||||
%29 = extractvalue { ptr, ptr } %28, 1
|
||||
%30 = extractvalue { ptr, ptr } %28, 0
|
||||
call void %30(ptr %29)
|
||||
%17 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %36)
|
||||
%18 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %36, 0
|
||||
%19 = getelementptr ptr, ptr %18, i64 3
|
||||
%20 = load ptr, ptr %19, align 8
|
||||
%21 = insertvalue { ptr, ptr } undef, ptr %20, 0
|
||||
%22 = insertvalue { ptr, ptr } %21, ptr %17, 1
|
||||
%23 = extractvalue { ptr, ptr } %22, 1
|
||||
%24 = extractvalue { ptr, ptr } %22, 0
|
||||
call void %24(ptr %23)
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_5
|
||||
%31 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %17, 0
|
||||
%32 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8
|
||||
%33 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %32, ptr %31)
|
||||
br i1 %33, label %_llgo_6, label %_llgo_7
|
||||
%25 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %13, 0
|
||||
%26 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8
|
||||
%27 = call i1 @"github.com/goplus/llgo/internal/runtime.Implements"(ptr %26, ptr %25)
|
||||
br i1 %27, label %_llgo_6, label %_llgo_7
|
||||
|
||||
_llgo_3: ; preds = %_llgo_0
|
||||
%34 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %10, 1
|
||||
%35 = load ptr, ptr @"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg", align 8
|
||||
%36 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %35, ptr %18)
|
||||
%37 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%38 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %37, i32 0, i32 0
|
||||
store ptr %36, ptr %38, align 8
|
||||
%39 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %37, i32 0, i32 1
|
||||
store ptr %34, ptr %39, align 8
|
||||
%40 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %37, align 8
|
||||
%41 = alloca { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, align 8
|
||||
%42 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %41, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.iface" %40, ptr %42, align 8
|
||||
%43 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %41, i32 0, i32 1
|
||||
store i1 true, ptr %43, align 1
|
||||
%44 = load { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %41, align 8
|
||||
%28 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %8, 1
|
||||
%29 = load ptr, ptr @"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg", align 8
|
||||
%30 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %29, ptr %14)
|
||||
%31 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %30, 0
|
||||
%32 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %31, ptr %28, 1
|
||||
%33 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %32, 0
|
||||
%34 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %33, i1 true, 1
|
||||
br label %_llgo_5
|
||||
|
||||
_llgo_4: ; preds = %_llgo_0
|
||||
%45 = alloca { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, align 8
|
||||
%46 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %45, i32 0, i32 0
|
||||
store { ptr, ptr } zeroinitializer, ptr %46, align 8
|
||||
%47 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %45, i32 0, i32 1
|
||||
store i1 false, ptr %47, align 1
|
||||
%48 = load { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %45, align 8
|
||||
br label %_llgo_5
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4, %_llgo_3
|
||||
%49 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %44, %_llgo_3 ], [ %48, %_llgo_4 ]
|
||||
%50 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %49, 0
|
||||
%51 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %49, 1
|
||||
%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 @13, ptr %53, align 8
|
||||
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %52, i32 0, i32 1
|
||||
store i64 2, ptr %54, align 4
|
||||
%55 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %52, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %55)
|
||||
%35 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %34, %_llgo_3 ], [ zeroinitializer, %_llgo_4 ]
|
||||
%36 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %35, 0
|
||||
%37 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %35, 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @13, i64 2 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %50)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %36)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %51)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %37)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
br i1 %51, label %_llgo_1, label %_llgo_2
|
||||
br i1 %37, label %_llgo_1, label %_llgo_2
|
||||
|
||||
_llgo_6: ; preds = %_llgo_2
|
||||
%56 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %17, 1
|
||||
%57 = load ptr, ptr @"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg", align 8
|
||||
%58 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %57, ptr %31)
|
||||
%59 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%60 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %59, i32 0, i32 0
|
||||
store ptr %58, ptr %60, align 8
|
||||
%61 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %59, i32 0, i32 1
|
||||
store ptr %56, ptr %61, align 8
|
||||
%62 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %59, align 8
|
||||
%63 = alloca { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, align 8
|
||||
%64 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %63, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.iface" %62, ptr %64, align 8
|
||||
%65 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %63, i32 0, i32 1
|
||||
store i1 true, ptr %65, align 1
|
||||
%66 = load { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %63, align 8
|
||||
%38 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %13, 1
|
||||
%39 = load ptr, ptr @"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg", align 8
|
||||
%40 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %39, ptr %25)
|
||||
%41 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" undef, ptr %40, 0
|
||||
%42 = insertvalue %"github.com/goplus/llgo/internal/runtime.iface" %41, ptr %38, 1
|
||||
%43 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } undef, %"github.com/goplus/llgo/internal/runtime.iface" %42, 0
|
||||
%44 = insertvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %43, i1 true, 1
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_7: ; preds = %_llgo_2
|
||||
%67 = alloca { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, align 8
|
||||
%68 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %67, i32 0, i32 0
|
||||
store { ptr, ptr } zeroinitializer, ptr %68, align 8
|
||||
%69 = getelementptr inbounds { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %67, i32 0, i32 1
|
||||
store i1 false, ptr %69, align 1
|
||||
%70 = load { %"github.com/goplus/llgo/internal/runtime.iface", i1 }, ptr %67, align 8
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%71 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %66, %_llgo_6 ], [ %70, %_llgo_7 ]
|
||||
%72 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %71, 0
|
||||
%73 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %71, 1
|
||||
%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 @14, 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
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %77)
|
||||
%45 = phi { %"github.com/goplus/llgo/internal/runtime.iface", i1 } [ %44, %_llgo_6 ], [ zeroinitializer, %_llgo_7 ]
|
||||
%46 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %45, 0
|
||||
%47 = extractvalue { %"github.com/goplus/llgo/internal/runtime.iface", i1 } %45, 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @14, i64 4 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %72)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %46)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %73)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %47)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret i32 0
|
||||
}
|
||||
@@ -258,549 +206,239 @@ declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64)
|
||||
|
||||
define void @"main.init$after"() {
|
||||
_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 @0, ptr %1, align 8
|
||||
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 1
|
||||
store i64 10, 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 8, i64 2, i64 2)
|
||||
%5 = load ptr, ptr @_llgo_main.Game1, align 8
|
||||
%6 = icmp eq ptr %5, null
|
||||
br i1 %6, label %_llgo_1, label %_llgo_2
|
||||
%0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 10 }, i64 25, i64 8, i64 2, i64 2)
|
||||
%1 = load ptr, ptr @_llgo_main.Game1, align 8
|
||||
%2 = icmp eq ptr %1, null
|
||||
br i1 %2, label %_llgo_1, label %_llgo_2
|
||||
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %4)
|
||||
store ptr %4, ptr @_llgo_main.Game1, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %0)
|
||||
store ptr %0, ptr @_llgo_main.Game1, align 8
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%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
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %7, i32 0, i32 1
|
||||
store i64 43, ptr %9, align 4
|
||||
%10 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %7, align 8
|
||||
%11 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %10, i64 25, i64 0, i64 0, i64 2)
|
||||
%12 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8
|
||||
%13 = icmp eq ptr %12, null
|
||||
br i1 %13, label %_llgo_3, label %_llgo_4
|
||||
%3 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 43 }, i64 25, i64 0, i64 0, i64 2)
|
||||
%4 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8
|
||||
%5 = icmp eq ptr %4, null
|
||||
br i1 %5, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
store ptr %11, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8
|
||||
store ptr %3, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%14 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
%15 = icmp eq ptr %14, null
|
||||
br i1 %15, label %_llgo_5, label %_llgo_6
|
||||
%6 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
%7 = icmp eq ptr %6, null
|
||||
br i1 %7, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%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 @2, 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 0)
|
||||
%21 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%22 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %21, i32 0, i32 0
|
||||
store ptr %20, ptr %22, align 8
|
||||
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %21, i32 0, i32 1
|
||||
store i64 0, ptr %23, align 4
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %21, i32 0, i32 2
|
||||
store i64 0, ptr %24, align 4
|
||||
%25 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %21, align 8
|
||||
%26 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %19, i64 0, %"github.com/goplus/llgo/internal/runtime.Slice" %25)
|
||||
store ptr %26, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
%8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %8, 0
|
||||
%10 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, i64 0, 1
|
||||
%11 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %10, i64 0, 2
|
||||
%12 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }, i64 0, %"github.com/goplus/llgo/internal/runtime.Slice" %11)
|
||||
store ptr %12, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
%27 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
br i1 %13, label %_llgo_7, label %_llgo_8
|
||||
%13 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
br i1 %5, label %_llgo_7, label %_llgo_8
|
||||
|
||||
_llgo_7: ; preds = %_llgo_6
|
||||
%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 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%33 = icmp eq ptr %32, null
|
||||
br i1 %33, label %_llgo_9, label %_llgo_10
|
||||
%14 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%15 = icmp eq ptr %14, null
|
||||
br i1 %15, label %_llgo_9, label %_llgo_10
|
||||
|
||||
_llgo_8: ; preds = %_llgo_10, %_llgo_6
|
||||
%34 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8
|
||||
%35 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %35, i32 0, i32 0
|
||||
store ptr @1, ptr %36, align 8
|
||||
%37 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %35, i32 0, i32 1
|
||||
store i64 43, ptr %37, align 4
|
||||
%38 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %35, align 8
|
||||
%39 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %38, i64 25, i64 0, i64 0, i64 2)
|
||||
%40 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8
|
||||
%41 = icmp eq ptr %40, null
|
||||
br i1 %41, label %_llgo_11, label %_llgo_12
|
||||
%16 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8
|
||||
%17 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 43 }, i64 25, i64 0, i64 0, i64 2)
|
||||
%18 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8
|
||||
%19 = icmp eq ptr %18, null
|
||||
br i1 %19, label %_llgo_11, label %_llgo_12
|
||||
|
||||
_llgo_9: ; preds = %_llgo_7
|
||||
%42 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%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 %42, ptr %44, align 8
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %43, i32 0, i32 1
|
||||
store i64 0, ptr %45, align 4
|
||||
%46 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %43, i32 0, i32 2
|
||||
store i64 0, 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.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.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %47, %"github.com/goplus/llgo/internal/runtime.Slice" %53, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %54)
|
||||
store ptr %54, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%20 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%21 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %20, 0
|
||||
%22 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %21, i64 0, 1
|
||||
%23 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %22, i64 0, 2
|
||||
%24 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %24, 0
|
||||
%26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %25, i64 0, 1
|
||||
%27 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %26, i64 0, 2
|
||||
%28 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %23, %"github.com/goplus/llgo/internal/runtime.Slice" %27, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %28)
|
||||
store ptr %28, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
br label %_llgo_10
|
||||
|
||||
_llgo_10: ; preds = %_llgo_9, %_llgo_7
|
||||
%55 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%56 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %56, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %31, ptr %57, align 8
|
||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %56, i32 0, i32 1
|
||||
store ptr %55, ptr %58, align 8
|
||||
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %56, i32 0, i32 2
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).Load", ptr %59, align 8
|
||||
%60 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %56, i32 0, i32 3
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).Load", ptr %60, align 8
|
||||
%61 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %56, 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
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %62, i32 0, i32 1
|
||||
store i64 8, 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
|
||||
%68 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %66, i32 0, i32 1
|
||||
store i64 47, ptr %68, align 4
|
||||
%69 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %66, align 8
|
||||
%70 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%71 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %71, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %69, ptr %72, align 8
|
||||
%73 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %71, i32 0, i32 1
|
||||
store ptr %70, ptr %73, align 8
|
||||
%74 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %71, i32 0, i32 2
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", ptr %74, align 8
|
||||
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %71, i32 0, i32 3
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", ptr %75, align 8
|
||||
%76 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %71, align 8
|
||||
%77 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
%78 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %77, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %61, ptr %78, align 8
|
||||
%79 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %77, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %76, ptr %79, align 8
|
||||
%80 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %80, i32 0, i32 0
|
||||
store ptr %77, ptr %81, align 8
|
||||
%82 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %80, i32 0, i32 1
|
||||
store i64 2, ptr %82, align 4
|
||||
%83 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %80, i32 0, i32 2
|
||||
store i64 2, ptr %83, align 4
|
||||
%84 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %80, align 8
|
||||
%85 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%86 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %85, i32 0, i32 0
|
||||
store ptr @6, ptr %86, align 8
|
||||
%87 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %85, i32 0, i32 1
|
||||
store i64 38, ptr %87, align 4
|
||||
%88 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %85, 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 @7, 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
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %11, %"github.com/goplus/llgo/internal/runtime.String" %88, %"github.com/goplus/llgo/internal/runtime.String" %92, ptr %27, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %84)
|
||||
%29 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%30 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %29, 1
|
||||
%31 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %30, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).Load", 2
|
||||
%32 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %31, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).Load", 3
|
||||
%33 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%34 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 47 }, ptr undef, ptr undef, ptr undef }, ptr %33, 1
|
||||
%35 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %34, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", 2
|
||||
%36 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %35, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", 3
|
||||
%37 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
%38 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %37, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %32, ptr %38, align 8
|
||||
%39 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %37, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %36, ptr %39, align 8
|
||||
%40 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %37, 0
|
||||
%41 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %40, i64 2, 1
|
||||
%42 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %41, i64 2, 2
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %3, %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 38 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 4 }, ptr %13, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %42)
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_11: ; preds = %_llgo_8
|
||||
%93 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %39)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %93)
|
||||
store ptr %93, ptr @"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8
|
||||
%43 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %17)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %43)
|
||||
store ptr %43, ptr @"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_8
|
||||
%94 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game", 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 @1, ptr %96, align 8
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %95, i32 0, i32 1
|
||||
store i64 43, ptr %97, align 4
|
||||
%98 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %95, align 8
|
||||
%99 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %98, i64 25, i64 0, i64 0, i64 2)
|
||||
%100 = load ptr, ptr @"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI", align 8
|
||||
%101 = icmp eq ptr %100, null
|
||||
br i1 %101, label %_llgo_13, label %_llgo_14
|
||||
%44 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/cl/internal/foo.Game", align 8
|
||||
%45 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 43 }, i64 25, i64 0, i64 0, i64 2)
|
||||
%46 = load ptr, ptr @"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI", align 8
|
||||
%47 = icmp eq ptr %46, null
|
||||
br i1 %47, label %_llgo_13, label %_llgo_14
|
||||
|
||||
_llgo_13: ; preds = %_llgo_12
|
||||
%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 @7, 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 = 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 null, ptr %107, align 8
|
||||
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %106, i32 0, i32 1
|
||||
store i64 0, ptr %108, align 4
|
||||
%109 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %106, align 8
|
||||
%110 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %99)
|
||||
%111 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %105, ptr %110, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %109, i1 true)
|
||||
%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 @2, 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 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56)
|
||||
%117 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %116, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %111, ptr %117, align 8
|
||||
%118 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%119 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %118, i32 0, i32 0
|
||||
store ptr %116, ptr %119, align 8
|
||||
%120 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %118, i32 0, i32 1
|
||||
store i64 1, ptr %120, align 4
|
||||
%121 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %118, i32 0, i32 2
|
||||
store i64 1, ptr %121, align 4
|
||||
%122 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %118, align 8
|
||||
%123 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %115, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %122)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %123)
|
||||
store ptr %123, ptr @"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI", align 8
|
||||
%48 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %45)
|
||||
%49 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 4 }, ptr %48, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 true)
|
||||
%50 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56)
|
||||
%51 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %50, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %49, ptr %51, align 8
|
||||
%52 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %50, 0
|
||||
%53 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %52, i64 1, 1
|
||||
%54 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %53, i64 1, 2
|
||||
%55 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %54)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %55)
|
||||
store ptr %55, ptr @"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI", align 8
|
||||
br label %_llgo_14
|
||||
|
||||
_llgo_14: ; preds = %_llgo_13, %_llgo_12
|
||||
%124 = load ptr, ptr @"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI", align 8
|
||||
br i1 %6, label %_llgo_15, label %_llgo_16
|
||||
%56 = load ptr, ptr @"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI", align 8
|
||||
br i1 %2, label %_llgo_15, label %_llgo_16
|
||||
|
||||
_llgo_15: ; preds = %_llgo_14
|
||||
%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 @3, ptr %126, align 8
|
||||
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %125, i32 0, i32 1
|
||||
store i64 4, ptr %127, align 4
|
||||
%128 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %125, align 8
|
||||
%129 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%130 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%131 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %130, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %128, ptr %131, align 8
|
||||
%132 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %130, i32 0, i32 1
|
||||
store ptr %129, ptr %132, align 8
|
||||
%133 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %130, i32 0, i32 2
|
||||
store ptr @"main.(*Game1).Load", ptr %133, align 8
|
||||
%134 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %130, i32 0, i32 3
|
||||
store ptr @"main.(*Game1).Load", ptr %134, align 8
|
||||
%135 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %130, align 8
|
||||
%136 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%137 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %136, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %128, ptr %137, align 8
|
||||
%138 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %136, i32 0, i32 1
|
||||
store ptr %129, ptr %138, align 8
|
||||
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %136, i32 0, i32 2
|
||||
store ptr @"main.(*Game1).Load", ptr %139, align 8
|
||||
%140 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %136, i32 0, i32 3
|
||||
store ptr @main.Game1.Load, ptr %140, align 8
|
||||
%141 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %136, 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 @4, ptr %143, align 8
|
||||
%144 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %142, i32 0, i32 1
|
||||
store i64 8, ptr %144, align 4
|
||||
%145 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %142, align 8
|
||||
%146 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%147 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %146, i32 0, i32 0
|
||||
store ptr @5, ptr %147, align 8
|
||||
%148 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %146, i32 0, i32 1
|
||||
store i64 47, ptr %148, align 4
|
||||
%149 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %146, align 8
|
||||
%150 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%151 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%152 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %151, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %149, ptr %152, align 8
|
||||
%153 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %151, i32 0, i32 1
|
||||
store ptr %150, ptr %153, align 8
|
||||
%154 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %151, i32 0, i32 2
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", ptr %154, align 8
|
||||
%155 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %151, i32 0, i32 3
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", ptr %155, align 8
|
||||
%156 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %151, align 8
|
||||
%157 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%158 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %157, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %141, ptr %158, align 8
|
||||
%159 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%160 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %159, i32 0, i32 0
|
||||
store ptr %157, ptr %160, align 8
|
||||
%161 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %159, i32 0, i32 1
|
||||
store i64 1, ptr %161, align 4
|
||||
%162 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %159, i32 0, i32 2
|
||||
store i64 1, ptr %162, align 4
|
||||
%163 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %159, align 8
|
||||
%164 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
%165 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %164, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %135, ptr %165, align 8
|
||||
%166 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %164, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %156, ptr %166, align 8
|
||||
%167 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%168 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %167, i32 0, i32 0
|
||||
store ptr %164, ptr %168, align 8
|
||||
%169 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %167, i32 0, i32 1
|
||||
store i64 2, ptr %169, align 4
|
||||
%170 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %167, i32 0, i32 2
|
||||
store i64 2, ptr %170, align 4
|
||||
%171 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %167, align 8
|
||||
%172 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%173 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %172, i32 0, i32 0
|
||||
store ptr @2, ptr %173, align 8
|
||||
%174 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %172, i32 0, i32 1
|
||||
store i64 4, ptr %174, align 4
|
||||
%175 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %172, align 8
|
||||
%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 @8, ptr %177, align 8
|
||||
%178 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %176, i32 0, i32 1
|
||||
store i64 5, ptr %178, align 4
|
||||
%179 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %176, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %4, %"github.com/goplus/llgo/internal/runtime.String" %175, %"github.com/goplus/llgo/internal/runtime.String" %179, ptr %124, %"github.com/goplus/llgo/internal/runtime.Slice" %163, %"github.com/goplus/llgo/internal/runtime.Slice" %171)
|
||||
%57 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%58 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %57, 1
|
||||
%59 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %58, ptr @"main.(*Game1).Load", 2
|
||||
%60 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %59, ptr @"main.(*Game1).Load", 3
|
||||
%61 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %57, 1
|
||||
%62 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %61, ptr @"main.(*Game1).Load", 2
|
||||
%63 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %62, ptr @main.Game1.Load, 3
|
||||
%64 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%65 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 47 }, ptr undef, ptr undef, ptr undef }, ptr %64, 1
|
||||
%66 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %65, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", 2
|
||||
%67 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %66, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Game).initGame", 3
|
||||
%68 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%69 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %68, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %63, ptr %69, align 8
|
||||
%70 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %68, 0
|
||||
%71 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %70, i64 1, 1
|
||||
%72 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %71, i64 1, 2
|
||||
%73 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
%74 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %73, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %60, ptr %74, align 8
|
||||
%75 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %73, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %67, ptr %75, align 8
|
||||
%76 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %73, 0
|
||||
%77 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %76, i64 2, 1
|
||||
%78 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %77, i64 2, 2
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 5 }, ptr %56, %"github.com/goplus/llgo/internal/runtime.Slice" %72, %"github.com/goplus/llgo/internal/runtime.Slice" %78)
|
||||
br label %_llgo_16
|
||||
|
||||
_llgo_16: ; preds = %_llgo_15, %_llgo_14
|
||||
%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 @0, ptr %181, align 8
|
||||
%182 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %180, i32 0, i32 1
|
||||
store i64 10, ptr %182, align 4
|
||||
%183 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %180, align 8
|
||||
%184 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %183, i64 25, i64 8, i64 2, i64 2)
|
||||
%185 = load ptr, ptr @"*_llgo_main.Game1", align 8
|
||||
%186 = icmp eq ptr %185, null
|
||||
br i1 %186, label %_llgo_17, label %_llgo_18
|
||||
%79 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 10 }, i64 25, i64 8, i64 2, i64 2)
|
||||
%80 = load ptr, ptr @"*_llgo_main.Game1", align 8
|
||||
%81 = icmp eq ptr %80, null
|
||||
br i1 %81, label %_llgo_17, label %_llgo_18
|
||||
|
||||
_llgo_17: ; preds = %_llgo_16
|
||||
%187 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %184)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %187)
|
||||
store ptr %187, ptr @"*_llgo_main.Game1", align 8
|
||||
%82 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %79)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %82)
|
||||
store ptr %82, ptr @"*_llgo_main.Game1", align 8
|
||||
br label %_llgo_18
|
||||
|
||||
_llgo_18: ; preds = %_llgo_17, %_llgo_16
|
||||
%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 @9, ptr %189, align 8
|
||||
%190 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %188, i32 0, i32 1
|
||||
store i64 10, 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.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %191, i64 25, i64 0, i64 0, i64 1)
|
||||
%193 = load ptr, ptr @_llgo_main.Game2, align 8
|
||||
%194 = icmp eq ptr %193, null
|
||||
br i1 %194, label %_llgo_19, label %_llgo_20
|
||||
%83 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 10 }, i64 25, i64 0, i64 0, i64 1)
|
||||
%84 = load ptr, ptr @_llgo_main.Game2, align 8
|
||||
%85 = icmp eq ptr %84, null
|
||||
br i1 %85, label %_llgo_19, label %_llgo_20
|
||||
|
||||
_llgo_19: ; preds = %_llgo_18
|
||||
store ptr %192, ptr @_llgo_main.Game2, align 8
|
||||
store ptr %83, ptr @_llgo_main.Game2, align 8
|
||||
br label %_llgo_20
|
||||
|
||||
_llgo_20: ; preds = %_llgo_19, %_llgo_18
|
||||
%195 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
br i1 %194, label %_llgo_21, label %_llgo_22
|
||||
%86 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
br i1 %85, label %_llgo_21, label %_llgo_22
|
||||
|
||||
_llgo_21: ; preds = %_llgo_20
|
||||
%196 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%197 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %196, i32 0, i32 0
|
||||
store ptr @4, ptr %197, align 8
|
||||
%198 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %196, i32 0, i32 1
|
||||
store i64 8, ptr %198, align 4
|
||||
%199 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %196, align 8
|
||||
%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 @10, ptr %201, align 8
|
||||
%202 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %200, i32 0, i32 1
|
||||
store i64 13, ptr %202, align 4
|
||||
%203 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %200, align 8
|
||||
%204 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%205 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%206 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %205, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %203, ptr %206, align 8
|
||||
%207 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %205, i32 0, i32 1
|
||||
store ptr %204, ptr %207, align 8
|
||||
%208 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %205, i32 0, i32 2
|
||||
store ptr @"main.(*Game2).initGame", ptr %208, align 8
|
||||
%209 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %205, i32 0, i32 3
|
||||
store ptr @"main.(*Game2).initGame", ptr %209, align 8
|
||||
%210 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %205, align 8
|
||||
%211 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%212 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %211, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %210, ptr %212, align 8
|
||||
%213 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%214 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %213, i32 0, i32 0
|
||||
store ptr %211, ptr %214, align 8
|
||||
%215 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %213, i32 0, i32 1
|
||||
store i64 1, ptr %215, align 4
|
||||
%216 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %213, i32 0, i32 2
|
||||
store i64 1, ptr %216, align 4
|
||||
%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 @2, ptr %219, align 8
|
||||
%220 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %218, i32 0, i32 1
|
||||
store i64 4, 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 @11, ptr %223, align 8
|
||||
%224 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %222, i32 0, i32 1
|
||||
store i64 5, ptr %224, align 4
|
||||
%225 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %222, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %192, %"github.com/goplus/llgo/internal/runtime.String" %221, %"github.com/goplus/llgo/internal/runtime.String" %225, ptr %195, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %217)
|
||||
%87 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%88 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 13 }, ptr undef, ptr undef, ptr undef }, ptr %87, 1
|
||||
%89 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %88, ptr @"main.(*Game2).initGame", 2
|
||||
%90 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %89, ptr @"main.(*Game2).initGame", 3
|
||||
%91 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%92 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %91, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %90, ptr %92, align 8
|
||||
%93 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %91, 0
|
||||
%94 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %93, i64 1, 1
|
||||
%95 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %94, i64 1, 2
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %83, %"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @11, i64 5 }, ptr %86, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %95)
|
||||
br label %_llgo_22
|
||||
|
||||
_llgo_22: ; preds = %_llgo_21, %_llgo_20
|
||||
%226 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%227 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %226, i32 0, i32 0
|
||||
store ptr @9, ptr %227, align 8
|
||||
%228 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %226, i32 0, i32 1
|
||||
store i64 10, ptr %228, align 4
|
||||
%229 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %226, align 8
|
||||
%230 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %229, i64 25, i64 0, i64 0, i64 1)
|
||||
%231 = load ptr, ptr @"*_llgo_main.Game2", align 8
|
||||
%232 = icmp eq ptr %231, null
|
||||
br i1 %232, label %_llgo_23, label %_llgo_24
|
||||
%96 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 10 }, i64 25, i64 0, i64 0, i64 1)
|
||||
%97 = load ptr, ptr @"*_llgo_main.Game2", align 8
|
||||
%98 = icmp eq ptr %97, null
|
||||
br i1 %98, label %_llgo_23, label %_llgo_24
|
||||
|
||||
_llgo_23: ; preds = %_llgo_22
|
||||
%233 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %230)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %233)
|
||||
store ptr %233, ptr @"*_llgo_main.Game2", align 8
|
||||
%99 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %96)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %99)
|
||||
store ptr %99, ptr @"*_llgo_main.Game2", align 8
|
||||
br label %_llgo_24
|
||||
|
||||
_llgo_24: ; preds = %_llgo_23, %_llgo_22
|
||||
%234 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%235 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%236 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8
|
||||
%237 = icmp eq ptr %236, null
|
||||
br i1 %237, label %_llgo_25, label %_llgo_26
|
||||
%100 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%101 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%102 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8
|
||||
%103 = icmp eq ptr %102, null
|
||||
br i1 %103, label %_llgo_25, label %_llgo_26
|
||||
|
||||
_llgo_25: ; preds = %_llgo_24
|
||||
%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 @3, ptr %239, align 8
|
||||
%240 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %238, i32 0, i32 1
|
||||
store i64 4, ptr %240, align 4
|
||||
%241 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %238, align 8
|
||||
%242 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%243 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %242, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %241, ptr %243, align 8
|
||||
%244 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %242, i32 0, i32 1
|
||||
store ptr %234, ptr %244, align 8
|
||||
%245 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %242, align 8
|
||||
%246 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%247 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %246, i32 0, i32 0
|
||||
store ptr @5, ptr %247, align 8
|
||||
%248 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %246, i32 0, i32 1
|
||||
store i64 47, ptr %248, align 4
|
||||
%249 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %246, align 8
|
||||
%250 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%251 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %250, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %249, ptr %251, align 8
|
||||
%252 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %250, i32 0, i32 1
|
||||
store ptr %235, ptr %252, align 8
|
||||
%253 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %250, align 8
|
||||
%254 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%255 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %254, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %245, ptr %255, align 8
|
||||
%256 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %254, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %253, ptr %256, align 8
|
||||
%257 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%258 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %257, i32 0, i32 0
|
||||
store ptr %254, ptr %258, align 8
|
||||
%259 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %257, i32 0, i32 1
|
||||
store i64 2, ptr %259, align 4
|
||||
%260 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %257, i32 0, i32 2
|
||||
store i64 2, ptr %260, align 4
|
||||
%261 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %257, align 8
|
||||
%262 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%263 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %262, i32 0, i32 0
|
||||
store ptr @6, ptr %263, align 8
|
||||
%264 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %262, i32 0, i32 1
|
||||
store i64 38, ptr %264, align 4
|
||||
%265 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %262, align 8
|
||||
%266 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%267 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %266, i32 0, i32 0
|
||||
store ptr @12, ptr %267, align 8
|
||||
%268 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %266, i32 0, i32 1
|
||||
store i64 44, ptr %268, align 4
|
||||
%269 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %266, align 8
|
||||
%270 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %265, %"github.com/goplus/llgo/internal/runtime.String" %269, %"github.com/goplus/llgo/internal/runtime.Slice" %261)
|
||||
store ptr %270, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8
|
||||
%104 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, ptr undef }, ptr %100, 1
|
||||
%105 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 47 }, ptr undef }, ptr %101, 1
|
||||
%106 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%107 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %106, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %104, ptr %107, align 8
|
||||
%108 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %106, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %105, ptr %108, align 8
|
||||
%109 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %106, 0
|
||||
%110 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %109, i64 2, 1
|
||||
%111 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %110, i64 2, 2
|
||||
%112 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 38 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @12, i64 44 }, %"github.com/goplus/llgo/internal/runtime.Slice" %111)
|
||||
store ptr %112, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Gamer", align 8
|
||||
br label %_llgo_26
|
||||
|
||||
_llgo_26: ; preds = %_llgo_25, %_llgo_24
|
||||
%271 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%272 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%273 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%274 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %273, i32 0, i32 0
|
||||
store ptr @3, ptr %274, align 8
|
||||
%275 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %273, i32 0, i32 1
|
||||
store i64 4, ptr %275, align 4
|
||||
%276 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %273, align 8
|
||||
%277 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%278 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %277, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %276, ptr %278, align 8
|
||||
%279 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %277, i32 0, i32 1
|
||||
store ptr %271, ptr %279, align 8
|
||||
%280 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %277, 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 @5, ptr %282, align 8
|
||||
%283 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %281, i32 0, i32 1
|
||||
store i64 47, ptr %283, align 4
|
||||
%284 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %281, align 8
|
||||
%285 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%286 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %285, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %284, ptr %286, align 8
|
||||
%287 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %285, i32 0, i32 1
|
||||
store ptr %272, ptr %287, align 8
|
||||
%288 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %285, align 8
|
||||
%289 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%290 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %289, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %280, ptr %290, align 8
|
||||
%291 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %289, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %288, ptr %291, align 8
|
||||
%292 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%293 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %292, i32 0, i32 0
|
||||
store ptr %289, ptr %293, align 8
|
||||
%294 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %292, i32 0, i32 1
|
||||
store i64 2, ptr %294, align 4
|
||||
%295 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %292, i32 0, i32 2
|
||||
store i64 2, ptr %295, align 4
|
||||
%296 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %292, align 8
|
||||
%297 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%298 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %297, i32 0, i32 0
|
||||
store ptr @2, ptr %298, align 8
|
||||
%299 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %297, i32 0, i32 1
|
||||
store i64 4, ptr %299, align 4
|
||||
%300 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %297, align 8
|
||||
%301 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%302 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %301, i32 0, i32 0
|
||||
store ptr null, ptr %302, align 8
|
||||
%303 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %301, i32 0, i32 1
|
||||
store i64 0, ptr %303, align 4
|
||||
%304 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %301, align 8
|
||||
%305 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %300, %"github.com/goplus/llgo/internal/runtime.String" %304, %"github.com/goplus/llgo/internal/runtime.Slice" %296)
|
||||
store ptr %305, ptr @"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg", align 8
|
||||
%113 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%114 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%115 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, ptr undef }, ptr %113, 1
|
||||
%116 = insertvalue %"github.com/goplus/llgo/internal/abi.Imethod" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 47 }, ptr undef }, ptr %114, 1
|
||||
%117 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%118 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %117, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %115, ptr %118, align 8
|
||||
%119 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %117, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %116, ptr %119, align 8
|
||||
%120 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %117, 0
|
||||
%121 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %120, i64 2, 1
|
||||
%122 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %121, i64 2, 2
|
||||
%123 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %122)
|
||||
store ptr %123, ptr @"main.iface$sO8a1LvuUsjXwiwaC6sR9-L4DiYgiOnZi7iosyShJXg", align 8
|
||||
ret void
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
12
cl/_testgo/multiret/in.go
Normal file
12
cl/_testgo/multiret/in.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
var a int = 1
|
||||
|
||||
func foo(f float64) (int, float64) {
|
||||
return a, f
|
||||
}
|
||||
|
||||
func main() {
|
||||
i, f := foo(2.0)
|
||||
println(i, f)
|
||||
}
|
||||
53
cl/_testgo/multiret/out.ll
Normal file
53
cl/_testgo/multiret/out.ll
Normal file
@@ -0,0 +1,53 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
@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 { i64, double } @main.foo(double %0) {
|
||||
_llgo_0:
|
||||
%1 = load i64, ptr @main.a, align 4
|
||||
%2 = insertvalue { i64, double } undef, i64 %1, 0
|
||||
%3 = insertvalue { i64, double } %2, double %0, 1
|
||||
ret { i64, double } %3
|
||||
}
|
||||
|
||||
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
|
||||
store i64 1, ptr @main.a, align 4
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
ret void
|
||||
}
|
||||
|
||||
define i32 @main(i32 %0, ptr %1) {
|
||||
_llgo_0:
|
||||
store i32 %0, ptr @__llgo_argc, align 4
|
||||
store ptr %1, ptr @__llgo_argv, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
call void @main.init()
|
||||
%2 = call { i64, double } @main.foo(double 2.000000e+00)
|
||||
%3 = extractvalue { i64, double } %2, 0
|
||||
%4 = extractvalue { i64, double } %2, 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %4)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double)
|
||||
64
cl/_testgo/out.ll
Normal file
64
cl/_testgo/out.ll
Normal file
@@ -0,0 +1,64 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@0 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define i64 @main.Foo(%"github.com/goplus/llgo/internal/runtime.String" %0) {
|
||||
_llgo_0:
|
||||
%1 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %0, 1
|
||||
ret i64 %1
|
||||
}
|
||||
|
||||
define void @main.Test() {
|
||||
_llgo_0:
|
||||
br label %_llgo_3
|
||||
|
||||
_llgo_1: ; preds = %_llgo_3
|
||||
%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 5, ptr %2, align 4
|
||||
%3 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %0, align 8
|
||||
%4 = call i64 @main.Foo(%"github.com/goplus/llgo/internal/runtime.String" %3)
|
||||
%5 = add i64 %6, 1
|
||||
br label %_llgo_3
|
||||
|
||||
_llgo_2: ; preds = %_llgo_3
|
||||
ret void
|
||||
|
||||
_llgo_3: ; preds = %_llgo_1, %_llgo_0
|
||||
%6 = phi i64 [ 0, %_llgo_0 ], [ %5, %_llgo_1 ]
|
||||
%7 = icmp slt i64 %6, 1000000
|
||||
br i1 %7, label %_llgo_1, label %_llgo_2
|
||||
}
|
||||
|
||||
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
|
||||
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()
|
||||
call void @main.Test()
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -56,141 +56,79 @@ _llgo_0:
|
||||
store ptr %4, ptr %11, align 8
|
||||
%12 = getelementptr inbounds { ptr, ptr, ptr }, ptr %9, i32 0, i32 2
|
||||
store ptr %6, ptr %12, align 8
|
||||
%13 = alloca { ptr, ptr }, align 8
|
||||
%14 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 0
|
||||
store ptr @"main.main$1", ptr %14, align 8
|
||||
%15 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 1
|
||||
store ptr %9, ptr %15, align 8
|
||||
%16 = load { ptr, ptr }, ptr %13, align 8
|
||||
%17 = call ptr @malloc(i64 16)
|
||||
%18 = getelementptr inbounds { { ptr, ptr } }, ptr %17, i32 0, i32 0
|
||||
store { ptr, ptr } %16, ptr %18, align 8
|
||||
%19 = alloca i8, i64 8, align 1
|
||||
%20 = alloca %"github.com/goplus/llgo/c/pthread.RoutineFunc", align 8
|
||||
%21 = getelementptr inbounds %"github.com/goplus/llgo/c/pthread.RoutineFunc", ptr %20, i32 0, i32 0
|
||||
store ptr @"__llgo_stub.main._llgo_routine$1", ptr %21, align 8
|
||||
%22 = getelementptr inbounds %"github.com/goplus/llgo/c/pthread.RoutineFunc", ptr %20, i32 0, i32 1
|
||||
store ptr null, ptr %22, align 8
|
||||
%23 = load %"github.com/goplus/llgo/c/pthread.RoutineFunc", ptr %20, align 8
|
||||
%24 = call i32 @"github.com/goplus/llgo/internal/runtime.CreateThread"(ptr %19, ptr null, %"github.com/goplus/llgo/c/pthread.RoutineFunc" %23, ptr %17)
|
||||
%25 = load ptr, ptr %2, align 8
|
||||
%26 = alloca {}, align 8
|
||||
call void @llvm.memset(ptr %26, i8 0, i64 0, i1 false)
|
||||
store {} zeroinitializer, ptr %26, align 1
|
||||
%27 = call i1 @"github.com/goplus/llgo/internal/runtime.ChanSend"(ptr %25, ptr %26, i64 0)
|
||||
%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 @0, 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
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %31)
|
||||
%13 = insertvalue { ptr, ptr } { ptr @"main.main$1", ptr undef }, ptr %9, 1
|
||||
%14 = call ptr @malloc(i64 16)
|
||||
%15 = getelementptr inbounds { { ptr, ptr } }, ptr %14, i32 0, i32 0
|
||||
store { ptr, ptr } %13, ptr %15, align 8
|
||||
%16 = alloca i8, i64 8, align 1
|
||||
%17 = call i32 @"github.com/goplus/llgo/internal/runtime.CreateThread"(ptr %16, ptr null, %"github.com/goplus/llgo/c/pthread.RoutineFunc" { ptr @"__llgo_stub.main._llgo_routine$1", ptr null }, ptr %14)
|
||||
%18 = load ptr, ptr %2, align 8
|
||||
%19 = alloca {}, align 8
|
||||
call void @llvm.memset(ptr %19, i8 0, i64 0, i1 false)
|
||||
store {} zeroinitializer, ptr %19, align 1
|
||||
%20 = call i1 @"github.com/goplus/llgo/internal/runtime.ChanSend"(ptr %18, ptr %19, i64 0)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 4 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%32 = load ptr, ptr %4, align 8
|
||||
%33 = alloca {}, align 8
|
||||
call void @llvm.memset(ptr %33, i8 0, i64 0, i1 false)
|
||||
%34 = alloca %"github.com/goplus/llgo/internal/runtime.ChanOp", align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %34, i32 0, i32 0
|
||||
store ptr %32, ptr %35, align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %34, i32 0, i32 1
|
||||
store ptr %33, ptr %36, align 8
|
||||
%37 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %34, i32 0, i32 2
|
||||
store i32 0, ptr %37, align 4
|
||||
%38 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %34, i32 0, i32 3
|
||||
store i1 false, ptr %38, align 1
|
||||
%39 = load %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %34, align 8
|
||||
%40 = alloca {}, align 8
|
||||
call void @llvm.memset(ptr %40, i8 0, i64 0, i1 false)
|
||||
%41 = alloca %"github.com/goplus/llgo/internal/runtime.ChanOp", align 8
|
||||
%42 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %41, i32 0, i32 0
|
||||
store ptr %8, ptr %42, align 8
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %41, i32 0, i32 1
|
||||
store ptr %40, ptr %43, align 8
|
||||
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %41, i32 0, i32 2
|
||||
store i32 0, ptr %44, align 4
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %41, i32 0, i32 3
|
||||
store i1 false, ptr %45, align 1
|
||||
%46 = load %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %41, align 8
|
||||
%47 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%48 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %47, i64 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.ChanOp" %39, ptr %48, align 8
|
||||
%49 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %47, i64 1
|
||||
store %"github.com/goplus/llgo/internal/runtime.ChanOp" %46, ptr %49, align 8
|
||||
%50 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, i32 0, i32 0
|
||||
store ptr %47, ptr %51, align 8
|
||||
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, i32 0, i32 1
|
||||
store i64 2, ptr %52, align 4
|
||||
%53 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, i32 0, i32 2
|
||||
store i64 2, ptr %53, align 4
|
||||
%54 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, align 8
|
||||
%55 = call { i64, i1 } @"github.com/goplus/llgo/internal/runtime.Select"(%"github.com/goplus/llgo/internal/runtime.Slice" %54)
|
||||
%56 = extractvalue { i64, i1 } %55, 0
|
||||
%57 = extractvalue { i64, i1 } %55, 1
|
||||
%58 = extractvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %39, 1
|
||||
%59 = load {}, ptr %58, align 1
|
||||
%60 = extractvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %46, 1
|
||||
%61 = load {}, ptr %60, align 1
|
||||
%62 = alloca { i64, i1, {}, {} }, align 8
|
||||
%63 = getelementptr inbounds { i64, i1, {}, {} }, ptr %62, i32 0, i32 0
|
||||
store i64 %56, ptr %63, align 4
|
||||
%64 = getelementptr inbounds { i64, i1, {}, {} }, ptr %62, i32 0, i32 1
|
||||
store i1 %57, ptr %64, align 1
|
||||
%65 = getelementptr inbounds { i64, i1, {}, {} }, ptr %62, i32 0, i32 2
|
||||
store {} %59, ptr %65, align 1
|
||||
%66 = getelementptr inbounds { i64, i1, {}, {} }, ptr %62, i32 0, i32 3
|
||||
store {} %61, ptr %66, align 1
|
||||
%67 = load { i64, i1, {}, {} }, ptr %62, align 4
|
||||
%68 = extractvalue { i64, i1, {}, {} } %67, 0
|
||||
%69 = icmp eq i64 %68, 0
|
||||
br i1 %69, label %_llgo_2, label %_llgo_3
|
||||
%21 = load ptr, ptr %4, align 8
|
||||
%22 = alloca {}, align 8
|
||||
call void @llvm.memset(ptr %22, i8 0, i64 0, i1 false)
|
||||
%23 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" undef, ptr %21, 0
|
||||
%24 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %23, ptr %22, 1
|
||||
%25 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %24, i32 0, 2
|
||||
%26 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %25, i1 false, 3
|
||||
%27 = alloca {}, align 8
|
||||
call void @llvm.memset(ptr %27, i8 0, i64 0, i1 false)
|
||||
%28 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" undef, ptr %8, 0
|
||||
%29 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %28, ptr %27, 1
|
||||
%30 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %29, i32 0, 2
|
||||
%31 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %30, i1 false, 3
|
||||
%32 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%33 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %32, i64 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.ChanOp" %26, ptr %33, align 8
|
||||
%34 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %32, i64 1
|
||||
store %"github.com/goplus/llgo/internal/runtime.ChanOp" %31, ptr %34, align 8
|
||||
%35 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %32, 0
|
||||
%36 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %35, i64 2, 1
|
||||
%37 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %36, i64 2, 2
|
||||
%38 = call { i64, i1 } @"github.com/goplus/llgo/internal/runtime.Select"(%"github.com/goplus/llgo/internal/runtime.Slice" %37)
|
||||
%39 = extractvalue { i64, i1 } %38, 0
|
||||
%40 = extractvalue { i64, i1 } %38, 1
|
||||
%41 = extractvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %26, 1
|
||||
%42 = load {}, ptr %41, align 1
|
||||
%43 = extractvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %31, 1
|
||||
%44 = load {}, ptr %43, align 1
|
||||
%45 = insertvalue { i64, i1, {}, {} } undef, i64 %39, 0
|
||||
%46 = insertvalue { i64, i1, {}, {} } %45, i1 %40, 1
|
||||
%47 = insertvalue { i64, i1, {}, {} } %46, {} %42, 2
|
||||
%48 = insertvalue { i64, i1, {}, {} } %47, {} %44, 3
|
||||
%49 = extractvalue { i64, i1, {}, {} } %48, 0
|
||||
%50 = icmp eq i64 %49, 0
|
||||
br i1 %50, label %_llgo_2, label %_llgo_3
|
||||
|
||||
_llgo_1: ; preds = %_llgo_4, %_llgo_2
|
||||
ret i32 0
|
||||
|
||||
_llgo_2: ; preds = %_llgo_0
|
||||
%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 @1, ptr %71, align 8
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %70, i32 0, i32 1
|
||||
store i64 4, ptr %72, align 4
|
||||
%73 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %70, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %73)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
br label %_llgo_1
|
||||
|
||||
_llgo_3: ; preds = %_llgo_0
|
||||
%74 = icmp eq i64 %68, 1
|
||||
br i1 %74, label %_llgo_4, label %_llgo_5
|
||||
%51 = icmp eq i64 %49, 1
|
||||
br i1 %51, label %_llgo_4, label %_llgo_5
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3
|
||||
%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 @2, 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
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %78)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 4 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
br label %_llgo_1
|
||||
|
||||
_llgo_5: ; preds = %_llgo_3
|
||||
%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 @3, ptr %80, align 8
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %79, i32 0, i32 1
|
||||
store i64 31, ptr %81, align 4
|
||||
%82 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %79, align 8
|
||||
%83 = load ptr, ptr @_llgo_string, align 8
|
||||
%84 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %82, ptr %84, align 8
|
||||
%85 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%86 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %85, i32 0, i32 0
|
||||
store ptr %83, ptr %86, align 8
|
||||
%87 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %85, i32 0, i32 1
|
||||
store ptr %84, ptr %87, align 8
|
||||
%88 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %85, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %88)
|
||||
%52 = load ptr, ptr @_llgo_string, align 8
|
||||
%53 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 31 }, ptr %53, align 8
|
||||
%54 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %52, 0
|
||||
%55 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %54, ptr %53, 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %55)
|
||||
unreachable
|
||||
}
|
||||
|
||||
@@ -203,119 +141,69 @@ _llgo_0:
|
||||
call void @llvm.memset(ptr %4, i8 0, i64 0, i1 false)
|
||||
%5 = call i1 @"github.com/goplus/llgo/internal/runtime.ChanRecv"(ptr %3, ptr %4, i64 0)
|
||||
%6 = load {}, ptr %4, align 1
|
||||
%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 @4, ptr %8, align 8
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %7, i32 0, i32 1
|
||||
store i64 4, ptr %9, align 4
|
||||
%10 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %7, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %10)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 4 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%11 = extractvalue { ptr, ptr, ptr } %1, 1
|
||||
%12 = load ptr, ptr %11, align 8
|
||||
%13 = extractvalue { ptr, ptr, ptr } %1, 2
|
||||
%14 = load ptr, ptr %13, align 8
|
||||
%15 = alloca {}, align 8
|
||||
call void @llvm.memset(ptr %15, i8 0, i64 0, i1 false)
|
||||
store {} zeroinitializer, ptr %15, align 1
|
||||
%16 = alloca %"github.com/goplus/llgo/internal/runtime.ChanOp", align 8
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %16, i32 0, i32 0
|
||||
store ptr %12, ptr %17, align 8
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %16, i32 0, i32 1
|
||||
store ptr %15, ptr %18, align 8
|
||||
%19 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %16, i32 0, i32 2
|
||||
store i32 0, ptr %19, align 4
|
||||
%20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %16, i32 0, i32 3
|
||||
store i1 true, ptr %20, align 1
|
||||
%21 = load %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %16, align 8
|
||||
%22 = alloca {}, align 8
|
||||
call void @llvm.memset(ptr %22, i8 0, i64 0, i1 false)
|
||||
%23 = alloca %"github.com/goplus/llgo/internal/runtime.ChanOp", align 8
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %23, i32 0, i32 0
|
||||
store ptr %14, ptr %24, align 8
|
||||
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %23, i32 0, i32 1
|
||||
store ptr %22, ptr %25, align 8
|
||||
%26 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %23, i32 0, i32 2
|
||||
store i32 0, ptr %26, align 4
|
||||
%27 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %23, i32 0, i32 3
|
||||
store i1 false, ptr %27, align 1
|
||||
%28 = load %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %23, align 8
|
||||
%29 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%30 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %29, i64 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.ChanOp" %21, ptr %30, align 8
|
||||
%31 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %29, i64 1
|
||||
store %"github.com/goplus/llgo/internal/runtime.ChanOp" %28, ptr %31, align 8
|
||||
%32 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %32, i32 0, i32 0
|
||||
store ptr %29, ptr %33, align 8
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %32, i32 0, i32 1
|
||||
store i64 2, ptr %34, align 4
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %32, i32 0, i32 2
|
||||
store i64 2, ptr %35, align 4
|
||||
%36 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %32, align 8
|
||||
%37 = call { i64, i1 } @"github.com/goplus/llgo/internal/runtime.Select"(%"github.com/goplus/llgo/internal/runtime.Slice" %36)
|
||||
%38 = extractvalue { i64, i1 } %37, 0
|
||||
%39 = extractvalue { i64, i1 } %37, 1
|
||||
%40 = extractvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %28, 1
|
||||
%41 = load {}, ptr %40, align 1
|
||||
%42 = alloca { i64, i1, {} }, align 8
|
||||
%43 = getelementptr inbounds { i64, i1, {} }, ptr %42, i32 0, i32 0
|
||||
store i64 %38, ptr %43, align 4
|
||||
%44 = getelementptr inbounds { i64, i1, {} }, ptr %42, i32 0, i32 1
|
||||
store i1 %39, ptr %44, align 1
|
||||
%45 = getelementptr inbounds { i64, i1, {} }, ptr %42, i32 0, i32 2
|
||||
store {} %41, ptr %45, align 1
|
||||
%46 = load { i64, i1, {} }, ptr %42, align 4
|
||||
%47 = extractvalue { i64, i1, {} } %46, 0
|
||||
%48 = icmp eq i64 %47, 0
|
||||
br i1 %48, label %_llgo_2, label %_llgo_3
|
||||
%7 = extractvalue { ptr, ptr, ptr } %1, 1
|
||||
%8 = load ptr, ptr %7, align 8
|
||||
%9 = extractvalue { ptr, ptr, ptr } %1, 2
|
||||
%10 = load ptr, ptr %9, align 8
|
||||
%11 = alloca {}, align 8
|
||||
call void @llvm.memset(ptr %11, i8 0, i64 0, i1 false)
|
||||
store {} zeroinitializer, ptr %11, align 1
|
||||
%12 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" undef, ptr %8, 0
|
||||
%13 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %12, ptr %11, 1
|
||||
%14 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %13, i32 0, 2
|
||||
%15 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %14, i1 true, 3
|
||||
%16 = alloca {}, align 8
|
||||
call void @llvm.memset(ptr %16, i8 0, i64 0, i1 false)
|
||||
%17 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" undef, ptr %10, 0
|
||||
%18 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %17, ptr %16, 1
|
||||
%19 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %18, i32 0, 2
|
||||
%20 = insertvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %19, i1 false, 3
|
||||
%21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
||||
%22 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %21, i64 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.ChanOp" %15, ptr %22, align 8
|
||||
%23 = getelementptr %"github.com/goplus/llgo/internal/runtime.ChanOp", ptr %21, i64 1
|
||||
store %"github.com/goplus/llgo/internal/runtime.ChanOp" %20, ptr %23, align 8
|
||||
%24 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %21, 0
|
||||
%25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %24, i64 2, 1
|
||||
%26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %25, i64 2, 2
|
||||
%27 = call { i64, i1 } @"github.com/goplus/llgo/internal/runtime.Select"(%"github.com/goplus/llgo/internal/runtime.Slice" %26)
|
||||
%28 = extractvalue { i64, i1 } %27, 0
|
||||
%29 = extractvalue { i64, i1 } %27, 1
|
||||
%30 = extractvalue %"github.com/goplus/llgo/internal/runtime.ChanOp" %20, 1
|
||||
%31 = load {}, ptr %30, align 1
|
||||
%32 = insertvalue { i64, i1, {} } undef, i64 %28, 0
|
||||
%33 = insertvalue { i64, i1, {} } %32, i1 %29, 1
|
||||
%34 = insertvalue { i64, i1, {} } %33, {} %31, 2
|
||||
%35 = extractvalue { i64, i1, {} } %34, 0
|
||||
%36 = icmp eq i64 %35, 0
|
||||
br i1 %36, label %_llgo_2, label %_llgo_3
|
||||
|
||||
_llgo_1: ; preds = %_llgo_4, %_llgo_2
|
||||
ret void
|
||||
|
||||
_llgo_2: ; preds = %_llgo_0
|
||||
%49 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %49, i32 0, i32 0
|
||||
store ptr @5, ptr %50, align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %49, i32 0, i32 1
|
||||
store i64 4, ptr %51, align 4
|
||||
%52 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %49, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %52)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 4 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
br label %_llgo_1
|
||||
|
||||
_llgo_3: ; preds = %_llgo_0
|
||||
%53 = icmp eq i64 %47, 1
|
||||
br i1 %53, label %_llgo_4, label %_llgo_5
|
||||
%37 = icmp eq i64 %35, 1
|
||||
br i1 %37, label %_llgo_4, label %_llgo_5
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3
|
||||
%54 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %54, i32 0, i32 0
|
||||
store ptr @6, ptr %55, align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %54, i32 0, i32 1
|
||||
store i64 4, ptr %56, align 4
|
||||
%57 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %54, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %57)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 4 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
br label %_llgo_1
|
||||
|
||||
_llgo_5: ; preds = %_llgo_3
|
||||
%58 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %58, i32 0, i32 0
|
||||
store ptr @3, ptr %59, align 8
|
||||
%60 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %58, i32 0, i32 1
|
||||
store i64 31, ptr %60, align 4
|
||||
%61 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %58, align 8
|
||||
%62 = load ptr, ptr @_llgo_string, align 8
|
||||
%63 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %61, ptr %63, align 8
|
||||
%64 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %64, i32 0, i32 0
|
||||
store ptr %62, ptr %65, align 8
|
||||
%66 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %64, i32 0, i32 1
|
||||
store ptr %63, ptr %66, align 8
|
||||
%67 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %64, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %67)
|
||||
%38 = load ptr, ptr @_llgo_string, align 8
|
||||
%39 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 31 }, ptr %39, align 8
|
||||
%40 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %38, 0
|
||||
%41 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %40, ptr %39, 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %41)
|
||||
unreachable
|
||||
}
|
||||
|
||||
|
||||
@@ -30,13 +30,9 @@ _llgo_0:
|
||||
%4 = load ptr, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8
|
||||
%5 = extractvalue { i64 } %2, 0
|
||||
%6 = inttoptr i64 %5 to ptr
|
||||
%7 = 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 %4, 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
|
||||
ret %"github.com/goplus/llgo/internal/runtime.eface" %10
|
||||
%7 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %4, 0
|
||||
%8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %7, ptr %6, 1
|
||||
ret %"github.com/goplus/llgo/internal/runtime.eface" %8
|
||||
}
|
||||
|
||||
define void @main.init() {
|
||||
@@ -85,47 +81,35 @@ _llgo_2: ; preds = %_llgo_3, %_llgo_1
|
||||
br i1 %13, label %_llgo_13, label %_llgo_14
|
||||
|
||||
_llgo_3: ; preds = %_llgo_12
|
||||
%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
|
||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %14, i32 0, i32 1
|
||||
store i64 11, ptr %16, align 4
|
||||
%17 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %14, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %17)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 11 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_4: ; preds = %_llgo_15
|
||||
%18 = getelementptr inbounds { i64 }, ptr %10, i32 0, i32 0
|
||||
%19 = load i64, ptr %18, align 4
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %19)
|
||||
%14 = getelementptr inbounds { i64 }, ptr %10, i32 0, i32 0
|
||||
%15 = load i64, ptr %14, align 4
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %15)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
br label %_llgo_5
|
||||
|
||||
_llgo_5: ; preds = %_llgo_6, %_llgo_4
|
||||
%20 = alloca { i64 }, align 8
|
||||
call void @llvm.memset(ptr %20, i8 0, i64 8, i1 false)
|
||||
%21 = call %"github.com/goplus/llgo/internal/runtime.eface" @"github.com/goplus/llgo/cl/internal/foo.F"()
|
||||
%22 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %21, 0
|
||||
%23 = load ptr, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8
|
||||
%24 = icmp eq ptr %22, %23
|
||||
br i1 %24, label %_llgo_16, label %_llgo_17
|
||||
%16 = alloca { i64 }, align 8
|
||||
call void @llvm.memset(ptr %16, i8 0, i64 8, i1 false)
|
||||
%17 = call %"github.com/goplus/llgo/internal/runtime.eface" @"github.com/goplus/llgo/cl/internal/foo.F"()
|
||||
%18 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %17, 0
|
||||
%19 = load ptr, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8
|
||||
%20 = icmp eq ptr %18, %19
|
||||
br i1 %20, label %_llgo_16, label %_llgo_17
|
||||
|
||||
_llgo_6: ; preds = %_llgo_15
|
||||
%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 @4, ptr %26, align 8
|
||||
%27 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %25, i32 0, i32 1
|
||||
store i64 11, ptr %27, align 4
|
||||
%28 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %25, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %28)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 11 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
br label %_llgo_5
|
||||
|
||||
_llgo_7: ; preds = %_llgo_18
|
||||
%29 = getelementptr inbounds { i64 }, ptr %20, i32 0, i32 0
|
||||
%30 = load i64, ptr %29, align 4
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %30)
|
||||
%21 = getelementptr inbounds { i64 }, ptr %16, i32 0, i32 0
|
||||
%22 = load i64, ptr %21, align 4
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %22)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
br label %_llgo_8
|
||||
|
||||
@@ -133,108 +117,63 @@ _llgo_8: ; preds = %_llgo_9, %_llgo_7
|
||||
ret i32 0
|
||||
|
||||
_llgo_9: ; preds = %_llgo_18
|
||||
%31 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %31, i32 0, i32 0
|
||||
store ptr @5, ptr %32, align 8
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %31, i32 0, i32 1
|
||||
store i64 9, ptr %33, align 4
|
||||
%34 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %31, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %34)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 9 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_10: ; preds = %_llgo_0
|
||||
%35 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %2, 1
|
||||
%36 = ptrtoint ptr %35 to i64
|
||||
%37 = alloca { i64 }, align 8
|
||||
%38 = getelementptr inbounds { i64 }, ptr %37, i32 0, i32 0
|
||||
store i64 %36, ptr %38, align 4
|
||||
%39 = load { i64 }, ptr %37, align 4
|
||||
%40 = alloca { { i64 }, i1 }, align 8
|
||||
%41 = getelementptr inbounds { { i64 }, i1 }, ptr %40, i32 0, i32 0
|
||||
store { i64 } %39, ptr %41, align 4
|
||||
%42 = getelementptr inbounds { { i64 }, i1 }, ptr %40, i32 0, i32 1
|
||||
store i1 true, ptr %42, align 1
|
||||
%43 = load { { i64 }, i1 }, ptr %40, align 4
|
||||
%23 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %2, 1
|
||||
%24 = ptrtoint ptr %23 to i64
|
||||
%25 = insertvalue { i64 } undef, i64 %24, 0
|
||||
%26 = insertvalue { { i64 }, i1 } undef, { i64 } %25, 0
|
||||
%27 = insertvalue { { i64 }, i1 } %26, i1 true, 1
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_11: ; preds = %_llgo_0
|
||||
%44 = alloca { { i64 }, i1 }, align 8
|
||||
%45 = getelementptr inbounds { { i64 }, i1 }, ptr %44, i32 0, i32 0
|
||||
store { i64 } zeroinitializer, ptr %45, align 4
|
||||
%46 = getelementptr inbounds { { i64 }, i1 }, ptr %44, i32 0, i32 1
|
||||
store i1 false, ptr %46, align 1
|
||||
%47 = load { { i64 }, i1 }, ptr %44, align 4
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_10
|
||||
%48 = phi { { i64 }, i1 } [ %43, %_llgo_10 ], [ %47, %_llgo_11 ]
|
||||
%49 = extractvalue { { i64 }, i1 } %48, 0
|
||||
store { i64 } %49, ptr %3, align 4
|
||||
%50 = extractvalue { { i64 }, i1 } %48, 1
|
||||
br i1 %50, label %_llgo_1, label %_llgo_3
|
||||
%28 = phi { { i64 }, i1 } [ %27, %_llgo_10 ], [ zeroinitializer, %_llgo_11 ]
|
||||
%29 = extractvalue { { i64 }, i1 } %28, 0
|
||||
store { i64 } %29, ptr %3, align 4
|
||||
%30 = extractvalue { { i64 }, i1 } %28, 1
|
||||
br i1 %30, label %_llgo_1, label %_llgo_3
|
||||
|
||||
_llgo_13: ; preds = %_llgo_2
|
||||
%51 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, 1
|
||||
%52 = ptrtoint ptr %51 to i64
|
||||
%53 = alloca { i64 }, align 8
|
||||
%54 = getelementptr inbounds { i64 }, ptr %53, i32 0, i32 0
|
||||
store i64 %52, ptr %54, align 4
|
||||
%55 = load { i64 }, ptr %53, align 4
|
||||
%56 = alloca { { i64 }, i1 }, align 8
|
||||
%57 = getelementptr inbounds { { i64 }, i1 }, ptr %56, i32 0, i32 0
|
||||
store { i64 } %55, ptr %57, align 4
|
||||
%58 = getelementptr inbounds { { i64 }, i1 }, ptr %56, i32 0, i32 1
|
||||
store i1 true, ptr %58, align 1
|
||||
%59 = load { { i64 }, i1 }, ptr %56, align 4
|
||||
%31 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %9, 1
|
||||
%32 = ptrtoint ptr %31 to i64
|
||||
%33 = insertvalue { i64 } undef, i64 %32, 0
|
||||
%34 = insertvalue { { i64 }, i1 } undef, { i64 } %33, 0
|
||||
%35 = insertvalue { { i64 }, i1 } %34, i1 true, 1
|
||||
br label %_llgo_15
|
||||
|
||||
_llgo_14: ; preds = %_llgo_2
|
||||
%60 = alloca { { i64 }, i1 }, align 8
|
||||
%61 = getelementptr inbounds { { i64 }, i1 }, ptr %60, i32 0, i32 0
|
||||
store { i64 } zeroinitializer, ptr %61, align 4
|
||||
%62 = getelementptr inbounds { { i64 }, i1 }, ptr %60, i32 0, i32 1
|
||||
store i1 false, ptr %62, align 1
|
||||
%63 = load { { i64 }, i1 }, ptr %60, align 4
|
||||
br label %_llgo_15
|
||||
|
||||
_llgo_15: ; preds = %_llgo_14, %_llgo_13
|
||||
%64 = phi { { i64 }, i1 } [ %59, %_llgo_13 ], [ %63, %_llgo_14 ]
|
||||
%65 = extractvalue { { i64 }, i1 } %64, 0
|
||||
store { i64 } %65, ptr %10, align 4
|
||||
%66 = extractvalue { { i64 }, i1 } %64, 1
|
||||
br i1 %66, label %_llgo_4, label %_llgo_6
|
||||
%36 = phi { { i64 }, i1 } [ %35, %_llgo_13 ], [ zeroinitializer, %_llgo_14 ]
|
||||
%37 = extractvalue { { i64 }, i1 } %36, 0
|
||||
store { i64 } %37, ptr %10, align 4
|
||||
%38 = extractvalue { { i64 }, i1 } %36, 1
|
||||
br i1 %38, label %_llgo_4, label %_llgo_6
|
||||
|
||||
_llgo_16: ; preds = %_llgo_5
|
||||
%67 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %21, 1
|
||||
%68 = ptrtoint ptr %67 to i64
|
||||
%69 = alloca { i64 }, align 8
|
||||
%70 = getelementptr inbounds { i64 }, ptr %69, i32 0, i32 0
|
||||
store i64 %68, ptr %70, align 4
|
||||
%71 = load { i64 }, ptr %69, align 4
|
||||
%72 = alloca { { i64 }, i1 }, align 8
|
||||
%73 = getelementptr inbounds { { i64 }, i1 }, ptr %72, i32 0, i32 0
|
||||
store { i64 } %71, ptr %73, align 4
|
||||
%74 = getelementptr inbounds { { i64 }, i1 }, ptr %72, i32 0, i32 1
|
||||
store i1 true, ptr %74, align 1
|
||||
%75 = load { { i64 }, i1 }, ptr %72, align 4
|
||||
%39 = extractvalue %"github.com/goplus/llgo/internal/runtime.eface" %17, 1
|
||||
%40 = ptrtoint ptr %39 to i64
|
||||
%41 = insertvalue { i64 } undef, i64 %40, 0
|
||||
%42 = insertvalue { { i64 }, i1 } undef, { i64 } %41, 0
|
||||
%43 = insertvalue { { i64 }, i1 } %42, i1 true, 1
|
||||
br label %_llgo_18
|
||||
|
||||
_llgo_17: ; preds = %_llgo_5
|
||||
%76 = alloca { { i64 }, i1 }, align 8
|
||||
%77 = getelementptr inbounds { { i64 }, i1 }, ptr %76, i32 0, i32 0
|
||||
store { i64 } zeroinitializer, ptr %77, align 4
|
||||
%78 = getelementptr inbounds { { i64 }, i1 }, ptr %76, i32 0, i32 1
|
||||
store i1 false, ptr %78, align 1
|
||||
%79 = load { { i64 }, i1 }, ptr %76, align 4
|
||||
br label %_llgo_18
|
||||
|
||||
_llgo_18: ; preds = %_llgo_17, %_llgo_16
|
||||
%80 = phi { { i64 }, i1 } [ %75, %_llgo_16 ], [ %79, %_llgo_17 ]
|
||||
%81 = extractvalue { { i64 }, i1 } %80, 0
|
||||
store { i64 } %81, ptr %20, align 4
|
||||
%82 = extractvalue { { i64 }, i1 } %80, 1
|
||||
br i1 %82, label %_llgo_7, label %_llgo_9
|
||||
%44 = phi { { i64 }, i1 } [ %43, %_llgo_16 ], [ zeroinitializer, %_llgo_17 ]
|
||||
%45 = extractvalue { { i64 }, i1 } %44, 0
|
||||
store { i64 } %45, ptr %16, align 4
|
||||
%46 = extractvalue { { i64 }, i1 } %44, 1
|
||||
br i1 %46, label %_llgo_7, label %_llgo_9
|
||||
}
|
||||
|
||||
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
|
||||
@@ -252,77 +191,31 @@ _llgo_1: ; preds = %_llgo_0
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%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 @0, ptr %4, align 8
|
||||
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %3, i32 0, i32 1
|
||||
store i64 1, ptr %5, align 4
|
||||
%6 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %3, 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 null, ptr %8, align 8
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %7, i32 0, i32 1
|
||||
store i64 0, ptr %9, align 4
|
||||
%10 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %7, align 8
|
||||
%11 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%12 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %6, ptr %11, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %10, 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 @1, 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_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk", align 8
|
||||
%26 = icmp eq ptr %25, null
|
||||
br i1 %26, label %_llgo_3, label %_llgo_4
|
||||
%3 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%4 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 1 }, ptr %3, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false)
|
||||
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56)
|
||||
%6 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %5, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %4, ptr %6, align 8
|
||||
%7 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %5, 0
|
||||
%8 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %7, i64 1, 1
|
||||
%9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, i64 1, 2
|
||||
%10 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %9)
|
||||
store ptr %10, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8
|
||||
%11 = load ptr, ptr @"_llgo_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk", align 8
|
||||
%12 = icmp eq ptr %11, null
|
||||
br i1 %12, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%27 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%28 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %27, i32 0, i32 0
|
||||
store ptr @3, ptr %28, align 8
|
||||
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %27, i32 0, i32 1
|
||||
store i64 1, ptr %29, align 4
|
||||
%30 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %27, align 8
|
||||
%31 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %31, i32 0, i32 0
|
||||
store ptr null, ptr %32, align 8
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %31, i32 0, i32 1
|
||||
store i64 0, ptr %33, align 4
|
||||
%34 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %31, align 8
|
||||
%35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%36 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %30, ptr %35, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %34, i1 false)
|
||||
%37 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%38 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %37, i32 0, i32 0
|
||||
store ptr @1, 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
|
||||
%13 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
||||
%14 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 1 }, ptr %13, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false)
|
||||
%15 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56)
|
||||
%16 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %15, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %14, ptr %16, align 8
|
||||
%17 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %15, 0
|
||||
%18 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %17, i64 1, 1
|
||||
%19 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %18, i64 1, 2
|
||||
%20 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 4 }, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %19)
|
||||
store ptr %20, ptr @"_llgo_struct$K-dZ9QotZfVPz2a0YdRa9vmZUuDXPTqZOlMShKEDJtk", align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
|
||||
@@ -42,34 +42,20 @@ _llgo_0:
|
||||
_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
|
||||
%6 = insertvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } undef, %"github.com/goplus/llgo/cl/internal/foo.Foo" %5, 0
|
||||
%7 = insertvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %6, i1 true, 1
|
||||
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
|
||||
%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
|
||||
%8 = phi { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } [ %7, %_llgo_1 ], [ zeroinitializer, %_llgo_2 ]
|
||||
%9 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %8, 0
|
||||
%10 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %8, 1
|
||||
%11 = insertvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } undef, %"github.com/goplus/llgo/cl/internal/foo.Foo" %9, 0
|
||||
%12 = insertvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %11, i1 %10, 1
|
||||
ret { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %12
|
||||
}
|
||||
|
||||
define { %main.bar, i1 } @main.Foo(%"github.com/goplus/llgo/internal/runtime.eface" %0) {
|
||||
@@ -82,34 +68,20 @@ _llgo_0:
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%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
|
||||
%6 = insertvalue { %main.bar, i1 } undef, %main.bar %5, 0
|
||||
%7 = insertvalue { %main.bar, i1 } %6, i1 true, 1
|
||||
br label %_llgo_3
|
||||
|
||||
_llgo_2: ; preds = %_llgo_0
|
||||
%10 = alloca { %main.bar, i1 }, align 8
|
||||
%11 = getelementptr inbounds { %main.bar, i1 }, ptr %10, i32 0, i32 0
|
||||
store { ptr, double } zeroinitializer, ptr %11, align 8
|
||||
%12 = getelementptr inbounds { %main.bar, i1 }, ptr %10, i32 0, i32 1
|
||||
store i1 false, ptr %12, align 1
|
||||
%13 = load { %main.bar, i1 }, ptr %10, align 8
|
||||
br label %_llgo_3
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2, %_llgo_1
|
||||
%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
|
||||
%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
|
||||
%8 = phi { %main.bar, i1 } [ %7, %_llgo_1 ], [ zeroinitializer, %_llgo_2 ]
|
||||
%9 = extractvalue { %main.bar, i1 } %8, 0
|
||||
%10 = extractvalue { %main.bar, i1 } %8, 1
|
||||
%11 = insertvalue { %main.bar, i1 } undef, %main.bar %9, 0
|
||||
%12 = insertvalue { %main.bar, i1 } %11, i1 %10, 1
|
||||
ret { %main.bar, i1 } %12
|
||||
}
|
||||
|
||||
define void @main.init() {
|
||||
@@ -144,328 +116,172 @@ _llgo_0:
|
||||
%8 = getelementptr inbounds %main.bar, ptr %2, i32 0, i32 1
|
||||
%9 = load float, ptr %8, align 4
|
||||
%10 = xor i1 %5, true
|
||||
%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 @10, ptr %12, align 8
|
||||
%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)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%15 = fpext float %9 to double
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %15)
|
||||
%11 = fpext float %9 to double
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %11)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %14)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @10, i64 6 })
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %10)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%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)
|
||||
%12 = alloca %"github.com/goplus/llgo/cl/internal/foo.Foo", align 8
|
||||
call void @llvm.memset(ptr %12, i8 0, i64 16, i1 false)
|
||||
%13 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8
|
||||
%14 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/cl/internal/foo.Foo" zeroinitializer, ptr %14, align 8
|
||||
%15 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %13, 0
|
||||
%16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %15, ptr %14, 1
|
||||
%17 = call { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } @main.Bar(%"github.com/goplus/llgo/internal/runtime.eface" %16)
|
||||
%18 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %17, 0
|
||||
store %"github.com/goplus/llgo/cl/internal/foo.Foo" %18, ptr %12, align 8
|
||||
%19 = extractvalue { %"github.com/goplus/llgo/cl/internal/foo.Foo", i1 } %17, 1
|
||||
%20 = load %"github.com/goplus/llgo/cl/internal/foo.Foo", ptr %12, align 8
|
||||
%21 = call ptr @"github.com/goplus/llgo/cl/internal/foo.Foo.Pb"(%"github.com/goplus/llgo/cl/internal/foo.Foo" %20)
|
||||
%22 = getelementptr inbounds %"github.com/goplus/llgo/cl/internal/foo.Foo", ptr %12, i32 0, i32 1
|
||||
%23 = load float, ptr %22, align 4
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %21)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%30 = fpext float %29 to double
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %30)
|
||||
%24 = fpext float %23 to double
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %24)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %25)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %19)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define void @"main.init$after"() {
|
||||
_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 @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
|
||||
%0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 42 }, i64 25, i64 16, i64 1, i64 1)
|
||||
%1 = load ptr, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8
|
||||
%2 = icmp eq ptr %1, null
|
||||
br i1 %2, label %_llgo_1, label %_llgo_2
|
||||
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
store ptr %4, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8
|
||||
store ptr %0, ptr @"_llgo_github.com/goplus/llgo/cl/internal/foo.Foo", align 8
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%7 = load ptr, ptr @_llgo_byte, align 8
|
||||
%8 = icmp eq ptr %7, null
|
||||
br i1 %8, label %_llgo_3, label %_llgo_4
|
||||
%3 = load ptr, ptr @_llgo_byte, align 8
|
||||
%4 = icmp eq ptr %3, null
|
||||
br i1 %4, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
||||
store ptr %9, ptr @_llgo_byte, align 8
|
||||
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
||||
store ptr %5, ptr @_llgo_byte, align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%10 = load ptr, ptr @_llgo_byte, align 8
|
||||
%11 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%12 = icmp eq ptr %11, null
|
||||
br i1 %12, label %_llgo_5, label %_llgo_6
|
||||
%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
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%13 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
||||
%14 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %13)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %14)
|
||||
store ptr %14, ptr @"*_llgo_byte", align 8
|
||||
%9 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
||||
%10 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %9)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %10)
|
||||
store ptr %10, ptr @"*_llgo_byte", align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
%15 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%16 = load ptr, ptr @_llgo_float32, align 8
|
||||
%17 = icmp eq ptr %16, null
|
||||
br i1 %17, label %_llgo_7, label %_llgo_8
|
||||
%11 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%12 = load ptr, ptr @_llgo_float32, align 8
|
||||
%13 = icmp eq ptr %12, null
|
||||
br i1 %13, label %_llgo_7, label %_llgo_8
|
||||
|
||||
_llgo_7: ; preds = %_llgo_6
|
||||
%18 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45)
|
||||
store ptr %18, ptr @_llgo_float32, align 8
|
||||
%14 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45)
|
||||
store ptr %14, ptr @_llgo_float32, align 8
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%19 = load ptr, ptr @_llgo_float32, align 8
|
||||
%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 2, ptr %22, align 4
|
||||
%23 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %20, align 8
|
||||
%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 null, ptr %25, align 8
|
||||
%26 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %24, i32 0, i32 1
|
||||
store i64 0, ptr %26, align 4
|
||||
%27 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %24, align 8
|
||||
%28 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
||||
%29 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %28)
|
||||
%30 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %23, ptr %29, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %27, i1 false)
|
||||
%31 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %31, i32 0, i32 0
|
||||
store ptr @2, ptr %32, align 8
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %31, i32 0, i32 1
|
||||
store i64 1, ptr %33, align 4
|
||||
%34 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %31, align 8
|
||||
%35 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %35, i32 0, i32 0
|
||||
store ptr null, ptr %36, align 8
|
||||
%37 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %35, i32 0, i32 1
|
||||
store i64 0, ptr %37, align 4
|
||||
%38 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %35, align 8
|
||||
%39 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45)
|
||||
%40 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %34, ptr %39, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %38, i1 false)
|
||||
%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 @3, ptr %42, align 8
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %41, i32 0, i32 1
|
||||
store i64 4, ptr %43, align 4
|
||||
%44 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %41, align 8
|
||||
%45 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||
%46 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %45, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %30, ptr %46, align 8
|
||||
%47 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %45, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %40, ptr %47, align 8
|
||||
%48 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %48, i32 0, i32 0
|
||||
store ptr %45, ptr %49, align 8
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %48, i32 0, i32 1
|
||||
store i64 2, ptr %50, align 4
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %48, i32 0, i32 2
|
||||
store i64 2, ptr %51, align 4
|
||||
%52 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %48, align 8
|
||||
%53 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %44, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %52)
|
||||
store ptr %53, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
||||
%54 = load ptr, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
||||
br i1 %6, label %_llgo_9, label %_llgo_10
|
||||
%15 = load ptr, ptr @_llgo_float32, align 8
|
||||
%16 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
||||
%17 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %16)
|
||||
%18 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 2 }, ptr %17, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false)
|
||||
%19 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45)
|
||||
%20 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 1 }, ptr %19, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false)
|
||||
%21 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||
%22 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %18, ptr %22, align 8
|
||||
%23 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %21, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %20, ptr %23, align 8
|
||||
%24 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %21, 0
|
||||
%25 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %24, i64 2, 1
|
||||
%26 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %25, i64 2, 2
|
||||
%27 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %26)
|
||||
store ptr %27, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
||||
%28 = load ptr, ptr @"main.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
||||
br i1 %2, label %_llgo_9, label %_llgo_10
|
||||
|
||||
_llgo_9: ; preds = %_llgo_8
|
||||
%55 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %55, i32 0, i32 0
|
||||
store ptr @4, ptr %56, align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %55, i32 0, i32 1
|
||||
store i64 2, ptr %57, align 4
|
||||
%58 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %55, align 8
|
||||
%59 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%60 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%61 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
%62 = icmp eq ptr %61, null
|
||||
br i1 %62, label %_llgo_11, label %_llgo_12
|
||||
%29 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%30 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%31 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
%32 = icmp eq ptr %31, null
|
||||
br i1 %32, label %_llgo_11, label %_llgo_12
|
||||
|
||||
_llgo_10: ; preds = %_llgo_12, %_llgo_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 @7, 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 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %66, i64 25, i64 16, i64 0, i64 0)
|
||||
store ptr %67, ptr @_llgo_main.bar, align 8
|
||||
%68 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%69 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%70 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %69, i32 0, i32 0
|
||||
store ptr @1, ptr %70, align 8
|
||||
%71 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %69, i32 0, i32 1
|
||||
store i64 2, ptr %71, align 4
|
||||
%72 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %69, align 8
|
||||
%73 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%74 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %73, i32 0, i32 0
|
||||
store ptr null, ptr %74, align 8
|
||||
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %73, i32 0, i32 1
|
||||
store i64 0, ptr %75, align 4
|
||||
%76 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %73, align 8
|
||||
%77 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
||||
%78 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %77)
|
||||
%79 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %72, ptr %78, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %76, i1 false)
|
||||
%80 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %80, i32 0, i32 0
|
||||
store ptr @8, ptr %81, align 8
|
||||
%82 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %80, i32 0, i32 1
|
||||
store i64 1, ptr %82, align 4
|
||||
%83 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %80, align 8
|
||||
%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 null, ptr %85, align 8
|
||||
%86 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %84, i32 0, i32 1
|
||||
store i64 0, 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.Basic"(i64 45)
|
||||
%89 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %83, ptr %88, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %87, i1 false)
|
||||
%90 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %90, i32 0, i32 0
|
||||
store ptr @3, 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 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||
%95 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %94, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %79, ptr %95, align 8
|
||||
%96 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %94, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %89, ptr %96, align 8
|
||||
%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 %94, ptr %98, align 8
|
||||
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %97, i32 0, i32 1
|
||||
store i64 2, ptr %99, align 4
|
||||
%100 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %97, i32 0, i32 2
|
||||
store i64 2, 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.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %93, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %101)
|
||||
store ptr %102, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8
|
||||
%103 = load ptr, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", 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 @3, ptr %105, align 8
|
||||
%106 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %104, i32 0, i32 1
|
||||
store i64 4, ptr %106, align 4
|
||||
%107 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %104, align 8
|
||||
%108 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%109 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %108, i32 0, i32 0
|
||||
store ptr @9, ptr %109, align 8
|
||||
%110 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %108, i32 0, i32 1
|
||||
store i64 3, ptr %110, align 4
|
||||
%111 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %108, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %67, %"github.com/goplus/llgo/internal/runtime.String" %107, %"github.com/goplus/llgo/internal/runtime.String" %111, ptr %103, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
||||
%33 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @7, i64 8 }, i64 25, i64 16, i64 0, i64 0)
|
||||
store ptr %33, ptr @_llgo_main.bar, align 8
|
||||
%34 = load ptr, ptr @"*_llgo_byte", align 8
|
||||
%35 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
||||
%36 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %35)
|
||||
%37 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 2 }, ptr %36, i64 0, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false)
|
||||
%38 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 45)
|
||||
%39 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @8, i64 1 }, ptr %38, i64 8, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, i1 false)
|
||||
%40 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 112)
|
||||
%41 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %40, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %37, ptr %41, align 8
|
||||
%42 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %40, i64 1
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %39, ptr %42, align 8
|
||||
%43 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %40, 0
|
||||
%44 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %43, i64 2, 1
|
||||
%45 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %44, i64 2, 2
|
||||
%46 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %45)
|
||||
store ptr %46, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8
|
||||
%47 = load ptr, ptr @"main.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %33, %"github.com/goplus/llgo/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @9, i64 3 }, ptr %47, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
||||
ret void
|
||||
|
||||
_llgo_11: ; preds = %_llgo_9
|
||||
%112 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%113 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %113, i32 0, i32 0
|
||||
store ptr %112, ptr %114, align 8
|
||||
%115 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %113, i32 0, i32 1
|
||||
store i64 0, ptr %115, align 4
|
||||
%116 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %113, i32 0, i32 2
|
||||
store i64 0, ptr %116, align 4
|
||||
%117 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %113, align 8
|
||||
%118 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%119 = getelementptr ptr, ptr %118, i64 0
|
||||
store ptr %60, ptr %119, align 8
|
||||
%120 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%121 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %120, i32 0, i32 0
|
||||
store ptr %118, ptr %121, align 8
|
||||
%122 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %120, i32 0, i32 1
|
||||
store i64 1, ptr %122, align 4
|
||||
%123 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %120, i32 0, i32 2
|
||||
store i64 1, ptr %123, align 4
|
||||
%124 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %120, align 8
|
||||
%125 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %117, %"github.com/goplus/llgo/internal/runtime.Slice" %124, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %125)
|
||||
store ptr %125, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
%48 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
||||
%49 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %48, 0
|
||||
%50 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %49, i64 0, 1
|
||||
%51 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %50, i64 0, 2
|
||||
%52 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%53 = getelementptr ptr, ptr %52, i64 0
|
||||
store ptr %30, ptr %53, align 8
|
||||
%54 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %52, 0
|
||||
%55 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, i64 1, 1
|
||||
%56 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %55, i64 1, 2
|
||||
%57 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %51, %"github.com/goplus/llgo/internal/runtime.Slice" %56, i1 false)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %57)
|
||||
store ptr %57, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_9
|
||||
%126 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
%127 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %127, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %58, ptr %128, align 8
|
||||
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %127, i32 0, i32 1
|
||||
store ptr %126, ptr %129, align 8
|
||||
%130 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %127, i32 0, i32 2
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", ptr %130, align 8
|
||||
%131 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %127, i32 0, i32 3
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", ptr %131, align 8
|
||||
%132 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %127, align 8
|
||||
%133 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%134 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %133, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %58, ptr %134, align 8
|
||||
%135 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %133, i32 0, i32 1
|
||||
store ptr %126, ptr %135, align 8
|
||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %133, i32 0, i32 2
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", ptr %136, align 8
|
||||
%137 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %133, i32 0, i32 3
|
||||
store ptr @"github.com/goplus/llgo/cl/internal/foo.Foo.Pb", ptr %137, align 8
|
||||
%138 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %133, align 8
|
||||
%139 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%140 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %139, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %138, ptr %140, align 8
|
||||
%141 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%142 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %141, i32 0, i32 0
|
||||
store ptr %139, ptr %142, align 8
|
||||
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %141, i32 0, i32 1
|
||||
store i64 1, ptr %143, align 4
|
||||
%144 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %141, i32 0, i32 2
|
||||
store i64 1, ptr %144, align 4
|
||||
%145 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %141, align 8
|
||||
%146 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%147 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %146, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %132, ptr %147, align 8
|
||||
%148 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%149 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %148, i32 0, i32 0
|
||||
store ptr %146, ptr %149, align 8
|
||||
%150 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %148, i32 0, i32 1
|
||||
store i64 1, ptr %150, align 4
|
||||
%151 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %148, i32 0, i32 2
|
||||
store i64 1, ptr %151, align 4
|
||||
%152 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %148, align 8
|
||||
%153 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%154 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %153, i32 0, i32 0
|
||||
store ptr @5, ptr %154, align 8
|
||||
%155 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %153, i32 0, i32 1
|
||||
store i64 38, ptr %155, align 4
|
||||
%156 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %153, align 8
|
||||
%157 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%158 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %157, i32 0, i32 0
|
||||
store ptr @6, ptr %158, align 8
|
||||
%159 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %157, i32 0, i32 1
|
||||
store i64 3, ptr %159, align 4
|
||||
%160 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %157, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %4, %"github.com/goplus/llgo/internal/runtime.String" %156, %"github.com/goplus/llgo/internal/runtime.String" %160, ptr %54, %"github.com/goplus/llgo/internal/runtime.Slice" %145, %"github.com/goplus/llgo/internal/runtime.Slice" %152)
|
||||
%58 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
||||
%59 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 2 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1
|
||||
%60 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %59, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", 2
|
||||
%61 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %60, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", 3
|
||||
%62 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" { %"github.com/goplus/llgo/internal/runtime.String" { ptr @4, i64 2 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1
|
||||
%63 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %62, ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb", 2
|
||||
%64 = insertvalue %"github.com/goplus/llgo/internal/abi.Method" %63, ptr @"github.com/goplus/llgo/cl/internal/foo.Foo.Pb", 3
|
||||
%65 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%66 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %65, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %64, ptr %66, align 8
|
||||
%67 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %65, 0
|
||||
%68 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %67, i64 1, 1
|
||||
%69 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %68, i64 1, 2
|
||||
%70 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%71 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %70, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %61, ptr %71, align 8
|
||||
%72 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %70, 0
|
||||
%73 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %72, i64 1, 1
|
||||
%74 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %73, i64 1, 2
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %0, %"github.com/goplus/llgo/internal/runtime.String" { ptr @5, i64 38 }, %"github.com/goplus/llgo/internal/runtime.String" { ptr @6, i64 3 }, ptr %28, %"github.com/goplus/llgo/internal/runtime.Slice" %69, %"github.com/goplus/llgo/internal/runtime.Slice" %74)
|
||||
br label %_llgo_10
|
||||
}
|
||||
|
||||
|
||||
@@ -40,99 +40,46 @@ _llgo_0:
|
||||
call void @main.init()
|
||||
%2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32)
|
||||
%3 = load ptr, ptr @_llgo_int, align 8
|
||||
%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 %3, ptr %5, align 8
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %4, i32 0, i32 1
|
||||
store ptr inttoptr (i64 1 to ptr), ptr %6, align 8
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.eface", 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 @0, ptr %9, align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %8, i32 0, i32 1
|
||||
store i64 5, ptr %10, align 4
|
||||
%11 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %8, align 8
|
||||
%12 = load ptr, ptr @_llgo_string, align 8
|
||||
%13 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %11, ptr %13, align 8
|
||||
%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 %12, ptr %15, align 8
|
||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %14, i32 0, i32 1
|
||||
store ptr %13, ptr %16, align 8
|
||||
%17 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %14, align 8
|
||||
call void @"sync.(*Map).Store"(ptr %2, %"github.com/goplus/llgo/internal/runtime.eface" %7, %"github.com/goplus/llgo/internal/runtime.eface" %17)
|
||||
%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
|
||||
store ptr @1, ptr %19, align 8
|
||||
%20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %18, i32 0, i32 1
|
||||
store i64 1, ptr %20, align 4
|
||||
%21 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %18, align 8
|
||||
%22 = load ptr, ptr @_llgo_string, align 8
|
||||
%23 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %21, ptr %23, align 8
|
||||
%24 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %24, i32 0, i32 0
|
||||
store ptr %22, ptr %25, align 8
|
||||
%26 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %24, i32 0, i32 1
|
||||
store ptr %23, ptr %26, align 8
|
||||
%27 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %24, align 8
|
||||
%28 = load ptr, ptr @_llgo_int, align 8
|
||||
%29 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %29, i32 0, i32 0
|
||||
store ptr %28, ptr %30, align 8
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %29, i32 0, i32 1
|
||||
store ptr inttoptr (i64 100 to ptr), ptr %31, align 8
|
||||
%32 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %29, align 8
|
||||
call void @"sync.(*Map).Store"(ptr %2, %"github.com/goplus/llgo/internal/runtime.eface" %27, %"github.com/goplus/llgo/internal/runtime.eface" %32)
|
||||
%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 @1, ptr %34, align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %33, i32 0, i32 1
|
||||
store i64 1, ptr %35, align 4
|
||||
%36 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %33, align 8
|
||||
%37 = load ptr, ptr @_llgo_string, align 8
|
||||
%38 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %36, ptr %38, align 8
|
||||
%39 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%40 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %39, i32 0, i32 0
|
||||
store ptr %37, ptr %40, align 8
|
||||
%41 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %39, i32 0, i32 1
|
||||
store ptr %38, ptr %41, align 8
|
||||
%42 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %39, align 8
|
||||
%43 = call { %"github.com/goplus/llgo/internal/runtime.eface", i1 } @"sync.(*Map).Load"(ptr %2, %"github.com/goplus/llgo/internal/runtime.eface" %42)
|
||||
%44 = extractvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %43, 0
|
||||
%45 = extractvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %43, 1
|
||||
%46 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32)
|
||||
%47 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %46, i64 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %44, ptr %47, align 8
|
||||
%48 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %46, i64 1
|
||||
%49 = load ptr, ptr @_llgo_bool, align 8
|
||||
%50 = sext i1 %45 to i64
|
||||
%51 = inttoptr i64 %50 to ptr
|
||||
%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 %49, 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 %48, align 8
|
||||
%56 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %56, i32 0, i32 0
|
||||
store ptr %46, ptr %57, align 8
|
||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %56, i32 0, i32 1
|
||||
store i64 2, ptr %58, align 4
|
||||
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %56, i32 0, i32 2
|
||||
store i64 2, ptr %59, align 4
|
||||
%60 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %56, align 8
|
||||
%61 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @fmt.Println(%"github.com/goplus/llgo/internal/runtime.Slice" %60)
|
||||
%62 = alloca { ptr, ptr }, align 8
|
||||
%63 = getelementptr inbounds { ptr, ptr }, ptr %62, i32 0, i32 0
|
||||
store ptr @"__llgo_stub.main.main$1", ptr %63, align 8
|
||||
%64 = getelementptr inbounds { ptr, ptr }, ptr %62, i32 0, i32 1
|
||||
store ptr null, ptr %64, align 8
|
||||
%65 = load { ptr, ptr }, ptr %62, align 8
|
||||
call void @"sync.(*Map).Range"(ptr %2, { ptr, ptr } %65)
|
||||
%4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %3, 0
|
||||
%5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %4, ptr inttoptr (i64 1 to ptr), 1
|
||||
%6 = load ptr, ptr @_llgo_string, align 8
|
||||
%7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %7, align 8
|
||||
%8 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %6, 0
|
||||
%9 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %8, ptr %7, 1
|
||||
call void @"sync.(*Map).Store"(ptr %2, %"github.com/goplus/llgo/internal/runtime.eface" %5, %"github.com/goplus/llgo/internal/runtime.eface" %9)
|
||||
%10 = load ptr, ptr @_llgo_string, align 8
|
||||
%11 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 1 }, ptr %11, align 8
|
||||
%12 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %10, 0
|
||||
%13 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %12, ptr %11, 1
|
||||
%14 = load ptr, ptr @_llgo_int, align 8
|
||||
%15 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %14, 0
|
||||
%16 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %15, ptr inttoptr (i64 100 to ptr), 1
|
||||
call void @"sync.(*Map).Store"(ptr %2, %"github.com/goplus/llgo/internal/runtime.eface" %13, %"github.com/goplus/llgo/internal/runtime.eface" %16)
|
||||
%17 = load ptr, ptr @_llgo_string, align 8
|
||||
%18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" { ptr @1, i64 1 }, ptr %18, align 8
|
||||
%19 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %17, 0
|
||||
%20 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %19, ptr %18, 1
|
||||
%21 = call { %"github.com/goplus/llgo/internal/runtime.eface", i1 } @"sync.(*Map).Load"(ptr %2, %"github.com/goplus/llgo/internal/runtime.eface" %20)
|
||||
%22 = extractvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %21, 0
|
||||
%23 = extractvalue { %"github.com/goplus/llgo/internal/runtime.eface", i1 } %21, 1
|
||||
%24 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32)
|
||||
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %24, i64 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %22, ptr %25, align 8
|
||||
%26 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %24, i64 1
|
||||
%27 = load ptr, ptr @_llgo_bool, align 8
|
||||
%28 = sext i1 %23 to i64
|
||||
%29 = inttoptr i64 %28 to ptr
|
||||
%30 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %27, 0
|
||||
%31 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %30, ptr %29, 1
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %31, ptr %26, align 8
|
||||
%32 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %24, 0
|
||||
%33 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %32, i64 2, 1
|
||||
%34 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %33, i64 2, 2
|
||||
%35 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @fmt.Println(%"github.com/goplus/llgo/internal/runtime.Slice" %34)
|
||||
call void @"sync.(*Map).Range"(ptr %2, { ptr, ptr } { ptr @"__llgo_stub.main.main$1", ptr null })
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
@@ -143,21 +90,10 @@ _llgo_0:
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %0, ptr %3, align 8
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %2, i64 1
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %1, ptr %4, align 8
|
||||
%5 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %5, i32 0, i32 0
|
||||
store ptr %2, ptr %6, align 8
|
||||
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %5, i32 0, i32 1
|
||||
store i64 2, ptr %7, align 4
|
||||
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %5, i32 0, i32 2
|
||||
store i64 2, ptr %8, align 4
|
||||
%9 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %5, align 8
|
||||
%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 @2, ptr %11, align 8
|
||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %10, i32 0, i32 1
|
||||
store i64 7, ptr %12, align 4
|
||||
%13 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %10, align 8
|
||||
%14 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/internal/runtime.String" %13, %"github.com/goplus/llgo/internal/runtime.Slice" %9)
|
||||
%5 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %2, 0
|
||||
%6 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %5, i64 2, 1
|
||||
%7 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %6, i64 2, 2
|
||||
%8 = call { i64, %"github.com/goplus/llgo/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/internal/runtime.String" { ptr @2, i64 7 }, %"github.com/goplus/llgo/internal/runtime.Slice" %7)
|
||||
ret i1 true
|
||||
}
|
||||
|
||||
|
||||
@@ -37,19 +37,14 @@ _llgo_0:
|
||||
store i64 2, ptr %6, align 4
|
||||
%7 = getelementptr inbounds i64, ptr %2, i64 4
|
||||
store i64 4, ptr %7, align 4
|
||||
%8 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %8, i32 0, i32 0
|
||||
store ptr %2, ptr %9, align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %8, i32 0, i32 1
|
||||
store i64 5, ptr %10, align 4
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %8, i32 0, i32 2
|
||||
store i64 5, ptr %11, align 4
|
||||
%12 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %8, align 8
|
||||
%13 = call i64 @"main.index[int]"(%"github.com/goplus/llgo/internal/runtime.Slice" %12, i64 3)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %13)
|
||||
%8 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %2, 0
|
||||
%9 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, i64 5, 1
|
||||
%10 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %9, i64 5, 2
|
||||
%11 = call i64 @"main.index[int]"(%"github.com/goplus/llgo/internal/runtime.Slice" %10, i64 3)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %11)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%14 = call i64 @"main.index[int]"(%"github.com/goplus/llgo/internal/runtime.Slice" %12, i64 6)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %14)
|
||||
%12 = call i64 @"main.index[int]"(%"github.com/goplus/llgo/internal/runtime.Slice" %10, i64 6)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %12)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
@@ -14,24 +14,12 @@ source_filename = "main"
|
||||
|
||||
define %"main.IO[error]" @main.WriteFile(%"github.com/goplus/llgo/internal/runtime.String" %0) {
|
||||
_llgo_0:
|
||||
%1 = alloca %"main.IO[error]", align 8
|
||||
%2 = getelementptr inbounds %"main.IO[error]", ptr %1, i32 0, i32 0
|
||||
store ptr @"__llgo_stub.main.WriteFile$1", ptr %2, align 8
|
||||
%3 = getelementptr inbounds %"main.IO[error]", ptr %1, i32 0, i32 1
|
||||
store ptr null, ptr %3, align 8
|
||||
%4 = load %"main.IO[error]", ptr %1, align 8
|
||||
ret %"main.IO[error]" %4
|
||||
ret %"main.IO[error]" { ptr @"__llgo_stub.main.WriteFile$1", ptr null }
|
||||
}
|
||||
|
||||
define %"main.Future[error]" @"main.WriteFile$1"() {
|
||||
_llgo_0:
|
||||
%0 = alloca %"main.Future[error]", align 8
|
||||
%1 = getelementptr inbounds %"main.Future[error]", ptr %0, i32 0, i32 0
|
||||
store ptr @"__llgo_stub.main.WriteFile$1$1", ptr %1, align 8
|
||||
%2 = getelementptr inbounds %"main.Future[error]", ptr %0, i32 0, i32 1
|
||||
store ptr null, ptr %2, align 8
|
||||
%3 = load %"main.Future[error]", ptr %0, align 8
|
||||
ret %"main.Future[error]" %3
|
||||
ret %"main.Future[error]" { ptr @"__llgo_stub.main.WriteFile$1$1", ptr null }
|
||||
}
|
||||
|
||||
define %"github.com/goplus/llgo/internal/runtime.iface" @"main.WriteFile$1$1"() {
|
||||
@@ -58,25 +46,13 @@ _llgo_0:
|
||||
store ptr %1, ptr @__llgo_argv, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
call void @main.init()
|
||||
%2 = alloca %"main.IO[[0]byte]", align 8
|
||||
%3 = getelementptr inbounds %"main.IO[[0]byte]", ptr %2, i32 0, i32 0
|
||||
store ptr @"__llgo_stub.main.main$1", ptr %3, align 8
|
||||
%4 = getelementptr inbounds %"main.IO[[0]byte]", ptr %2, i32 0, i32 1
|
||||
store ptr null, ptr %4, align 8
|
||||
%5 = load %"main.IO[[0]byte]", ptr %2, align 8
|
||||
%6 = call [0 x i8] @"main.RunIO[[0]byte]"(%"main.IO[[0]byte]" %5)
|
||||
%2 = call [0 x i8] @"main.RunIO[[0]byte]"(%"main.IO[[0]byte]" { ptr @"__llgo_stub.main.main$1", ptr null })
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define %"main.Future[[0]byte]" @"main.main$1"() {
|
||||
_llgo_0:
|
||||
%0 = alloca %"main.Future[[0]byte]", align 8
|
||||
%1 = getelementptr inbounds %"main.Future[[0]byte]", ptr %0, i32 0, i32 0
|
||||
store ptr @"__llgo_stub.main.main$1$1", ptr %1, align 8
|
||||
%2 = getelementptr inbounds %"main.Future[[0]byte]", ptr %0, i32 0, i32 1
|
||||
store ptr null, ptr %2, align 8
|
||||
%3 = load %"main.Future[[0]byte]", ptr %0, align 8
|
||||
ret %"main.Future[[0]byte]" %3
|
||||
ret %"main.Future[[0]byte]" { ptr @"__llgo_stub.main.main$1$1", ptr null }
|
||||
}
|
||||
|
||||
define [0 x i8] @"main.main$1$1"() {
|
||||
|
||||
@@ -42,22 +42,12 @@ _llgo_0:
|
||||
br i1 %1, label %_llgo_1, label %_llgo_2
|
||||
|
||||
_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 @0, ptr %3, align 8
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 1
|
||||
store i64 5, ptr %4, align 4
|
||||
%5 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8
|
||||
%6 = load ptr, ptr @_llgo_string, align 8
|
||||
%7 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %5, ptr %7, align 8
|
||||
%8 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %8, i32 0, i32 0
|
||||
store ptr %6, ptr %9, align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %8, i32 0, i32 1
|
||||
store ptr %7, ptr %10, align 8
|
||||
%11 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %8, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %11)
|
||||
%2 = load ptr, ptr @_llgo_string, align 8
|
||||
%3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %3, align 8
|
||||
%4 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" undef, ptr %2, 0
|
||||
%5 = insertvalue %"github.com/goplus/llgo/internal/runtime.eface" %4, ptr %3, 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %5)
|
||||
unreachable
|
||||
|
||||
_llgo_2: ; preds = %_llgo_0
|
||||
|
||||
@@ -30,21 +30,15 @@ _llgo_0:
|
||||
%3 = getelementptr inbounds %"main.My[int]", ptr %2, i32 0, i32 1
|
||||
%4 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24)
|
||||
%5 = getelementptr inbounds %"main.My[int]", ptr %4, i32 0, i32 0
|
||||
%6 = alloca { ptr, ptr }, align 8
|
||||
%7 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
|
||||
store ptr @"__llgo_stub.main.main$1", ptr %7, align 8
|
||||
%8 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
|
||||
store ptr null, ptr %8, align 8
|
||||
%9 = load { ptr, ptr }, ptr %6, align 8
|
||||
store { ptr, ptr } %9, ptr %5, align 8
|
||||
store { ptr, ptr } { ptr @"__llgo_stub.main.main$1", ptr null }, ptr %5, align 8
|
||||
store ptr %4, ptr %3, align 8
|
||||
%10 = getelementptr inbounds %"main.My[int]", ptr %2, i32 0, i32 1
|
||||
%11 = load ptr, ptr %10, align 8
|
||||
%12 = getelementptr inbounds %"main.My[int]", ptr %11, i32 0, i32 0
|
||||
%13 = load { ptr, ptr }, ptr %12, align 8
|
||||
%14 = extractvalue { ptr, ptr } %13, 1
|
||||
%15 = extractvalue { ptr, ptr } %13, 0
|
||||
call void %15(ptr %14, i64 100)
|
||||
%6 = getelementptr inbounds %"main.My[int]", ptr %2, i32 0, i32 1
|
||||
%7 = load ptr, ptr %6, align 8
|
||||
%8 = getelementptr inbounds %"main.My[int]", ptr %7, i32 0, i32 0
|
||||
%9 = load { ptr, ptr }, ptr %8, align 8
|
||||
%10 = extractvalue { ptr, ptr } %9, 1
|
||||
%11 = extractvalue { ptr, ptr } %9, 0
|
||||
call void %11(ptr %10, i64 100)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
|
||||
@@ -43,151 +43,113 @@ _llgo_0:
|
||||
%6 = alloca %"main.Data[string]", align 8
|
||||
call void @llvm.memset(ptr %6, i8 0, i64 16, i1 false)
|
||||
%7 = getelementptr inbounds %"main.Data[string]", ptr %6, i32 0, i32 0
|
||||
%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 @0, ptr %9, align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %8, i32 0, i32 1
|
||||
store i64 5, ptr %10, align 4
|
||||
%11 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %8, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %11, ptr %7, align 8
|
||||
%12 = load %"main.Data[string]", ptr %6, align 8
|
||||
%13 = extractvalue %"main.Data[string]" %12, 0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %13)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %7, align 8
|
||||
%8 = load %"main.Data[string]", ptr %6, align 8
|
||||
%9 = extractvalue %"main.Data[string]" %8, 0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %9)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%14 = alloca %"main.Data[int]", align 8
|
||||
call void @llvm.memset(ptr %14, i8 0, i64 8, i1 false)
|
||||
%15 = getelementptr inbounds %"main.Data[int]", ptr %14, i32 0, i32 0
|
||||
store i64 100, ptr %15, align 4
|
||||
%16 = load %"main.Data[int]", ptr %14, align 4
|
||||
%17 = extractvalue %"main.Data[int]" %16, 0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %17)
|
||||
%10 = alloca %"main.Data[int]", align 8
|
||||
call void @llvm.memset(ptr %10, i8 0, i64 8, i1 false)
|
||||
%11 = getelementptr inbounds %"main.Data[int]", ptr %10, i32 0, i32 0
|
||||
store i64 100, ptr %11, align 4
|
||||
%12 = load %"main.Data[int]", ptr %10, align 4
|
||||
%13 = extractvalue %"main.Data[int]" %12, 0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %13)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%18 = alloca %"main.Data[string]", align 8
|
||||
call void @llvm.memset(ptr %18, i8 0, i64 16, i1 false)
|
||||
%19 = getelementptr inbounds %"main.Data[string]", ptr %18, i32 0, i32 0
|
||||
%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 @0, 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 %19, align 8
|
||||
%24 = load %"main.Data[string]", ptr %18, align 8
|
||||
%25 = extractvalue %"main.Data[string]" %24, 0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %25)
|
||||
%14 = alloca %"main.Data[string]", align 8
|
||||
call void @llvm.memset(ptr %14, i8 0, i64 16, i1 false)
|
||||
%15 = getelementptr inbounds %"main.Data[string]", ptr %14, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %15, align 8
|
||||
%16 = load %"main.Data[string]", ptr %14, align 8
|
||||
%17 = extractvalue %"main.Data[string]" %16, 0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %17)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 0)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%26 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24)
|
||||
%27 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8)
|
||||
%28 = getelementptr inbounds i64, ptr %27, i64 0
|
||||
store i64 100, ptr %28, align 4
|
||||
%29 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %29, i32 0, i32 0
|
||||
store ptr %27, ptr %30, align 8
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %29, i32 0, i32 1
|
||||
store i64 1, ptr %31, align 4
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %29, i32 0, i32 2
|
||||
store i64 1, ptr %32, align 4
|
||||
%33 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %29, align 8
|
||||
%34 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append"(ptr %26, %"github.com/goplus/llgo/internal/runtime.Slice" %33)
|
||||
%35 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24)
|
||||
%36 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16)
|
||||
%37 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %36, i64 0
|
||||
%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 @0, ptr %39, align 8
|
||||
%40 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %38, i32 0, i32 1
|
||||
store i64 5, ptr %40, align 4
|
||||
%41 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %38, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %41, ptr %37, align 8
|
||||
%42 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, i32 0, i32 0
|
||||
store ptr %36, ptr %43, align 8
|
||||
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, i32 0, i32 1
|
||||
store i64 1, ptr %44, align 4
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, i32 0, i32 2
|
||||
store i64 1, ptr %45, align 4
|
||||
%46 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %42, align 8
|
||||
%47 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]string,string]).Append"(ptr %35, %"github.com/goplus/llgo/internal/runtime.Slice" %46)
|
||||
%48 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24)
|
||||
%49 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32)
|
||||
%50 = getelementptr inbounds i64, ptr %49, i64 0
|
||||
store i64 1, ptr %50, align 4
|
||||
%51 = getelementptr inbounds i64, ptr %49, i64 1
|
||||
store i64 2, ptr %51, align 4
|
||||
%52 = getelementptr inbounds i64, ptr %49, i64 2
|
||||
store i64 3, ptr %52, align 4
|
||||
%53 = getelementptr inbounds i64, ptr %49, i64 3
|
||||
store i64 4, ptr %53, align 4
|
||||
%54 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %54, i32 0, i32 0
|
||||
store ptr %49, ptr %55, align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %54, i32 0, i32 1
|
||||
store i64 4, ptr %56, align 4
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %54, i32 0, i32 2
|
||||
store i64 4, ptr %57, align 4
|
||||
%58 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %54, align 8
|
||||
%59 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append"(ptr %48, %"github.com/goplus/llgo/internal/runtime.Slice" %58)
|
||||
%60 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32)
|
||||
%61 = getelementptr inbounds i64, ptr %60, i64 0
|
||||
store i64 1, ptr %61, align 4
|
||||
%62 = getelementptr inbounds i64, ptr %60, i64 1
|
||||
store i64 2, ptr %62, align 4
|
||||
%63 = getelementptr inbounds i64, ptr %60, i64 2
|
||||
store i64 3, ptr %63, align 4
|
||||
%64 = getelementptr inbounds i64, ptr %60, i64 3
|
||||
store i64 4, ptr %64, align 4
|
||||
%65 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%66 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %65, i32 0, i32 0
|
||||
store ptr %60, ptr %66, align 8
|
||||
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %65, i32 0, i32 1
|
||||
store i64 4, ptr %67, align 4
|
||||
%68 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %65, i32 0, i32 2
|
||||
store i64 4, ptr %68, align 4
|
||||
%69 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %65, align 8
|
||||
%70 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append2"(ptr %48, %"github.com/goplus/llgo/internal/runtime.Slice" %69)
|
||||
%71 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %26, i32 0, i32 0
|
||||
%18 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24)
|
||||
%19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8)
|
||||
%20 = getelementptr inbounds i64, ptr %19, i64 0
|
||||
store i64 100, ptr %20, align 4
|
||||
%21 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %19, 0
|
||||
%22 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %21, i64 1, 1
|
||||
%23 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %22, i64 1, 2
|
||||
%24 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append"(ptr %18, %"github.com/goplus/llgo/internal/runtime.Slice" %23)
|
||||
%25 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24)
|
||||
%26 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16)
|
||||
%27 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %26, i64 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" { ptr @0, i64 5 }, ptr %27, align 8
|
||||
%28 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %26, 0
|
||||
%29 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %28, i64 1, 1
|
||||
%30 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %29, i64 1, 2
|
||||
%31 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]string,string]).Append"(ptr %25, %"github.com/goplus/llgo/internal/runtime.Slice" %30)
|
||||
%32 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24)
|
||||
%33 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32)
|
||||
%34 = getelementptr inbounds i64, ptr %33, i64 0
|
||||
store i64 1, ptr %34, align 4
|
||||
%35 = getelementptr inbounds i64, ptr %33, i64 1
|
||||
store i64 2, ptr %35, align 4
|
||||
%36 = getelementptr inbounds i64, ptr %33, i64 2
|
||||
store i64 3, ptr %36, align 4
|
||||
%37 = getelementptr inbounds i64, ptr %33, i64 3
|
||||
store i64 4, ptr %37, align 4
|
||||
%38 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %33, 0
|
||||
%39 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %38, i64 4, 1
|
||||
%40 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %39, i64 4, 2
|
||||
%41 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append"(ptr %32, %"github.com/goplus/llgo/internal/runtime.Slice" %40)
|
||||
%42 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32)
|
||||
%43 = getelementptr inbounds i64, ptr %42, i64 0
|
||||
store i64 1, ptr %43, align 4
|
||||
%44 = getelementptr inbounds i64, ptr %42, i64 1
|
||||
store i64 2, ptr %44, align 4
|
||||
%45 = getelementptr inbounds i64, ptr %42, i64 2
|
||||
store i64 3, ptr %45, align 4
|
||||
%46 = getelementptr inbounds i64, ptr %42, i64 3
|
||||
store i64 4, ptr %46, align 4
|
||||
%47 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" undef, ptr %42, 0
|
||||
%48 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %47, i64 4, 1
|
||||
%49 = insertvalue %"github.com/goplus/llgo/internal/runtime.Slice" %48, i64 4, 2
|
||||
%50 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"main.(*Slice[[]int,int]).Append2"(ptr %32, %"github.com/goplus/llgo/internal/runtime.Slice" %49)
|
||||
%51 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %18, i32 0, i32 0
|
||||
%52 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %51, align 8
|
||||
%53 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %18, i32 0, i32 0
|
||||
%54 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %53, align 8
|
||||
%55 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, 0
|
||||
%56 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %54, 1
|
||||
%57 = icmp sge i64 0, %56
|
||||
call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %57)
|
||||
%58 = getelementptr inbounds i64, ptr %55, i64 0
|
||||
%59 = load i64, ptr %58, align 4
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %52)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %59)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%60 = getelementptr inbounds %"main.Slice[[]string,string]", ptr %25, i32 0, i32 0
|
||||
%61 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %60, align 8
|
||||
%62 = getelementptr inbounds %"main.Slice[[]string,string]", ptr %25, i32 0, i32 0
|
||||
%63 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %62, align 8
|
||||
%64 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %63, 0
|
||||
%65 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %63, 1
|
||||
%66 = icmp sge i64 0, %65
|
||||
call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %66)
|
||||
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %64, i64 0
|
||||
%68 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %67, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %61)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %68)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%69 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %32, i32 0, i32 0
|
||||
%70 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %69, align 8
|
||||
%71 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %32, i32 0, i32 0
|
||||
%72 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %71, align 8
|
||||
%73 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %26, i32 0, i32 0
|
||||
%74 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %73, align 8
|
||||
%75 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %74, 0
|
||||
%76 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %74, 1
|
||||
%77 = icmp sge i64 0, %76
|
||||
call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %77)
|
||||
%78 = getelementptr inbounds i64, ptr %75, i64 0
|
||||
%79 = load i64, ptr %78, align 4
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %72)
|
||||
%73 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %72, 0
|
||||
%74 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %72, 1
|
||||
%75 = icmp sge i64 0, %74
|
||||
call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %75)
|
||||
%76 = getelementptr inbounds i64, ptr %73, i64 0
|
||||
%77 = load i64, ptr %76, align 4
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %70)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %79)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%80 = getelementptr inbounds %"main.Slice[[]string,string]", ptr %35, i32 0, i32 0
|
||||
%81 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %80, align 8
|
||||
%82 = getelementptr inbounds %"main.Slice[[]string,string]", ptr %35, i32 0, i32 0
|
||||
%83 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %82, align 8
|
||||
%84 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %83, 0
|
||||
%85 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %83, 1
|
||||
%86 = icmp sge i64 0, %85
|
||||
call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %86)
|
||||
%87 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %84, i64 0
|
||||
%88 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %87, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %81)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %88)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%89 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %48, i32 0, i32 0
|
||||
%90 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %89, align 8
|
||||
%91 = getelementptr inbounds %"main.Slice[[]int,int]", ptr %48, i32 0, i32 0
|
||||
%92 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %91, align 8
|
||||
%93 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %92, 0
|
||||
%94 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %92, 1
|
||||
%95 = icmp sge i64 0, %94
|
||||
call void @"github.com/goplus/llgo/internal/runtime.AssertIndexRange"(i1 %95)
|
||||
%96 = getelementptr inbounds i64, ptr %93, i64 0
|
||||
%97 = load i64, ptr %96, align 4
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %90)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %97)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %77)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user