ssa: MakeInterface check abi.KindDirectIface
This commit is contained in:
@@ -5,6 +5,7 @@ source_filename = "main"
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%main.stringStruct = type { ptr, i64 }
|
||||
%main.slice = type { ptr, i64, i64 }
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@@ -120,272 +121,352 @@ _llgo_0:
|
||||
call void @main.prinfsub(double 1.001000e+02)
|
||||
call void @main.printnl()
|
||||
%6 = load ptr, ptr @_llgo_float32, 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 inttoptr (i32 1315859240 to ptr), ptr %9, align 8
|
||||
%10 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, align 8
|
||||
call void @main.printany(%"github.com/goplus/llgo/internal/runtime.eface" %10)
|
||||
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %6, i32 0, i32 6
|
||||
%8 = load i8, ptr %7, align 1
|
||||
%9 = or i8 %8, 32
|
||||
store i8 %9, ptr %7, align 1
|
||||
%10 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, i32 0, i32 0
|
||||
store ptr %6, ptr %11, align 8
|
||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, i32 0, i32 1
|
||||
store ptr inttoptr (i32 1315859240 to ptr), ptr %12, align 8
|
||||
%13 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, align 8
|
||||
call void @main.printany(%"github.com/goplus/llgo/internal/runtime.eface" %13)
|
||||
call void @main.printnl()
|
||||
%11 = load ptr, ptr @_llgo_float64, align 8
|
||||
%12 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %12, i32 0, i32 0
|
||||
store ptr %11, ptr %13, align 8
|
||||
%14 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %12, i32 0, i32 1
|
||||
store ptr inttoptr (i64 4746175415993761792 to ptr), ptr %14, align 8
|
||||
%15 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %12, align 8
|
||||
call void @main.printany(%"github.com/goplus/llgo/internal/runtime.eface" %15)
|
||||
%14 = load ptr, ptr @_llgo_float64, align 8
|
||||
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %14, i32 0, i32 6
|
||||
%16 = load i8, ptr %15, align 1
|
||||
%17 = or i8 %16, 32
|
||||
store i8 %17, ptr %15, align 1
|
||||
%18 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%19 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %18, i32 0, i32 0
|
||||
store ptr %14, ptr %19, align 8
|
||||
%20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %18, i32 0, i32 1
|
||||
store ptr inttoptr (i64 4746175415993761792 to ptr), ptr %20, align 8
|
||||
%21 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %18, align 8
|
||||
call void @main.printany(%"github.com/goplus/llgo/internal/runtime.eface" %21)
|
||||
call void @main.printnl()
|
||||
br i1 true, label %_llgo_3, label %_llgo_2
|
||||
|
||||
_llgo_1: ; preds = %_llgo_3
|
||||
%16 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32)
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %16, i64 0
|
||||
%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 @2, ptr %19, align 8
|
||||
%20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %18, i32 0, i32 1
|
||||
store i64 10, 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
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %27, ptr %17, align 8
|
||||
%28 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %16, i64 1
|
||||
%29 = load ptr, ptr @_llgo_bool, align 8
|
||||
%22 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 32)
|
||||
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %22, i64 0
|
||||
%24 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %24, i32 0, i32 0
|
||||
store ptr @2, ptr %25, align 8
|
||||
%26 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %24, i32 0, i32 1
|
||||
store i64 10, ptr %26, align 4
|
||||
%27 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %24, align 8
|
||||
%28 = load ptr, ptr @_llgo_string, align 8
|
||||
%29 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %27, ptr %29, align 8
|
||||
%30 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %30, i32 0, i32 0
|
||||
store ptr %29, ptr %31, align 8
|
||||
store ptr %28, ptr %31, align 8
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %30, i32 0, i32 1
|
||||
store ptr inttoptr (i64 -1 to ptr), ptr %32, align 8
|
||||
store ptr %29, ptr %32, align 8
|
||||
%33 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %30, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %33, ptr %28, align 8
|
||||
%34 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %34, i32 0, i32 0
|
||||
store ptr %16, ptr %35, align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %34, i32 0, i32 1
|
||||
store i64 2, ptr %36, align 4
|
||||
%37 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %34, i32 0, i32 2
|
||||
store i64 2, ptr %37, align 4
|
||||
%38 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %34, align 8
|
||||
call void @main.println(%"github.com/goplus/llgo/internal/runtime.Slice" %38)
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %33, ptr %23, align 8
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %22, i64 1
|
||||
%35 = load ptr, ptr @_llgo_bool, align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %35, i32 0, i32 6
|
||||
%37 = load i8, ptr %36, align 1
|
||||
%38 = or i8 %37, 32
|
||||
store i8 %38, ptr %36, align 1
|
||||
%39 = 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 %35, ptr %40, align 8
|
||||
%41 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %39, i32 0, i32 1
|
||||
store ptr inttoptr (i64 -1 to ptr), ptr %41, align 8
|
||||
%42 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %39, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %42, ptr %34, 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 %22, ptr %44, align 8
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %43, i32 0, i32 1
|
||||
store i64 2, ptr %45, align 4
|
||||
%46 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %43, i32 0, i32 2
|
||||
store i64 2, ptr %46, align 4
|
||||
%47 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %43, align 8
|
||||
call void @main.println(%"github.com/goplus/llgo/internal/runtime.Slice" %47)
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_3, %_llgo_1, %_llgo_0
|
||||
%39 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 48)
|
||||
%40 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %39, i64 0
|
||||
%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 8, ptr %43, align 4
|
||||
%44 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %41, align 8
|
||||
%45 = load ptr, ptr @_llgo_string, align 8
|
||||
%46 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %44, ptr %46, align 8
|
||||
%47 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%48 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %47, i32 0, i32 0
|
||||
store ptr %45, ptr %48, align 8
|
||||
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %47, i32 0, i32 1
|
||||
store ptr %46, ptr %49, align 8
|
||||
%50 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %47, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %50, ptr %40, align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %39, i64 1
|
||||
%52 = load ptr, ptr @_llgo_bool, align 8
|
||||
%53 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %53, i32 0, i32 0
|
||||
store ptr %52, ptr %54, align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %53, i32 0, i32 1
|
||||
store ptr inttoptr (i64 -1 to ptr), ptr %55, align 8
|
||||
%56 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %53, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %56, ptr %51, align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %39, i64 2
|
||||
%58 = load ptr, ptr @_llgo_bool, align 8
|
||||
%59 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%60 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %59, i32 0, i32 0
|
||||
store ptr %58, ptr %60, align 8
|
||||
%61 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %59, i32 0, i32 1
|
||||
store ptr inttoptr (i64 -1 to ptr), ptr %61, align 8
|
||||
%62 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %59, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %62, ptr %57, align 8
|
||||
%63 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %63, i32 0, i32 0
|
||||
store ptr %39, ptr %64, align 8
|
||||
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %63, i32 0, i32 1
|
||||
store i64 3, ptr %65, align 4
|
||||
%66 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %63, i32 0, i32 2
|
||||
store i64 3, ptr %66, align 4
|
||||
%67 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %63, align 8
|
||||
call void @main.println(%"github.com/goplus/llgo/internal/runtime.Slice" %67)
|
||||
%68 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 256)
|
||||
%69 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 0
|
||||
%48 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 48)
|
||||
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %48, i64 0
|
||||
%50 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %50, i32 0, i32 0
|
||||
store ptr @3, ptr %51, align 8
|
||||
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %50, i32 0, i32 1
|
||||
store i64 8, ptr %52, align 4
|
||||
%53 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %50, align 8
|
||||
%54 = load ptr, ptr @_llgo_string, align 8
|
||||
%55 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %53, ptr %55, align 8
|
||||
%56 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %56, i32 0, i32 0
|
||||
store ptr %54, ptr %57, align 8
|
||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %56, i32 0, i32 1
|
||||
store ptr %55, ptr %58, align 8
|
||||
%59 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %56, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %59, ptr %49, align 8
|
||||
%60 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %48, i64 1
|
||||
%61 = load ptr, ptr @_llgo_bool, align 8
|
||||
%62 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %61, i32 0, i32 6
|
||||
%63 = load i8, ptr %62, align 1
|
||||
%64 = or i8 %63, 32
|
||||
store i8 %64, ptr %62, align 1
|
||||
%65 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%66 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %65, i32 0, i32 0
|
||||
store ptr %61, ptr %66, align 8
|
||||
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %65, i32 0, i32 1
|
||||
store ptr inttoptr (i64 -1 to ptr), ptr %67, align 8
|
||||
%68 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %65, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %68, ptr %60, align 8
|
||||
%69 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %48, i64 2
|
||||
%70 = load ptr, ptr @_llgo_bool, align 8
|
||||
%71 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %71, i32 0, i32 0
|
||||
store ptr %70, ptr %72, align 8
|
||||
%73 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %71, i32 0, i32 1
|
||||
store ptr inttoptr (i64 -1 to ptr), ptr %73, align 8
|
||||
%74 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %71, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %74, ptr %69, align 8
|
||||
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 1
|
||||
%76 = load ptr, ptr @_llgo_bool, align 8
|
||||
%77 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%78 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %77, i32 0, i32 0
|
||||
store ptr %76, ptr %78, align 8
|
||||
%79 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %77, i32 0, i32 1
|
||||
store ptr null, ptr %79, align 8
|
||||
%80 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %77, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %80, ptr %75, align 8
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 2
|
||||
%82 = load ptr, ptr @_llgo_int32, align 8
|
||||
%83 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i32 0, i32 0
|
||||
store ptr %82, ptr %84, align 8
|
||||
%85 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i32 0, i32 1
|
||||
store ptr inttoptr (i64 97 to ptr), ptr %85, align 8
|
||||
%86 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %86, ptr %81, align 8
|
||||
%87 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 3
|
||||
%88 = load ptr, ptr @_llgo_int32, align 8
|
||||
%71 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %70, i32 0, i32 6
|
||||
%72 = load i8, ptr %71, align 1
|
||||
%73 = or i8 %72, 32
|
||||
store i8 %73, ptr %71, align 1
|
||||
%74 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %74, i32 0, i32 0
|
||||
store ptr %70, ptr %75, align 8
|
||||
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %74, i32 0, i32 1
|
||||
store ptr inttoptr (i64 -1 to ptr), ptr %76, align 8
|
||||
%77 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %74, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %77, ptr %69, align 8
|
||||
%78 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%79 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, i32 0, i32 0
|
||||
store ptr %48, ptr %79, align 8
|
||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, i32 0, i32 1
|
||||
store i64 3, ptr %80, align 4
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, i32 0, i32 2
|
||||
store i64 3, ptr %81, align 4
|
||||
%82 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, align 8
|
||||
call void @main.println(%"github.com/goplus/llgo/internal/runtime.Slice" %82)
|
||||
%83 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 256)
|
||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 0
|
||||
%85 = load ptr, ptr @_llgo_bool, align 8
|
||||
%86 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %85, i32 0, i32 6
|
||||
%87 = load i8, ptr %86, align 1
|
||||
%88 = or i8 %87, 32
|
||||
store i8 %88, ptr %86, align 1
|
||||
%89 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %89, i32 0, i32 0
|
||||
store ptr %88, ptr %90, align 8
|
||||
store ptr %85, ptr %90, align 8
|
||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %89, i32 0, i32 1
|
||||
store ptr inttoptr (i64 65 to ptr), ptr %91, align 8
|
||||
store ptr inttoptr (i64 -1 to ptr), ptr %91, align 8
|
||||
%92 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %89, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %92, ptr %87, align 8
|
||||
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 4
|
||||
%94 = load ptr, ptr @_llgo_int32, align 8
|
||||
%95 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %95, i32 0, i32 0
|
||||
store ptr %94, ptr %96, align 8
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %95, i32 0, i32 1
|
||||
store ptr inttoptr (i64 20013 to ptr), ptr %97, align 8
|
||||
%98 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %95, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %98, ptr %93, align 8
|
||||
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 5
|
||||
%100 = load ptr, ptr @_llgo_int8, align 8
|
||||
%101 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%102 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %101, i32 0, i32 0
|
||||
store ptr %100, ptr %102, align 8
|
||||
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %101, i32 0, i32 1
|
||||
store ptr inttoptr (i64 1 to ptr), ptr %103, align 8
|
||||
%104 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %101, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %104, ptr %99, align 8
|
||||
%105 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 6
|
||||
%106 = load ptr, ptr @_llgo_int16, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %92, ptr %84, align 8
|
||||
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 1
|
||||
%94 = load ptr, ptr @_llgo_bool, align 8
|
||||
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %94, i32 0, i32 6
|
||||
%96 = load i8, ptr %95, align 1
|
||||
%97 = or i8 %96, 32
|
||||
store i8 %97, ptr %95, align 1
|
||||
%98 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %98, i32 0, i32 0
|
||||
store ptr %94, ptr %99, align 8
|
||||
%100 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %98, i32 0, i32 1
|
||||
store ptr null, ptr %100, align 8
|
||||
%101 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %98, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %101, ptr %93, align 8
|
||||
%102 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 2
|
||||
%103 = load ptr, ptr @_llgo_int32, align 8
|
||||
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %103, i32 0, i32 6
|
||||
%105 = load i8, ptr %104, align 1
|
||||
%106 = or i8 %105, 32
|
||||
store i8 %106, ptr %104, align 1
|
||||
%107 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %107, i32 0, i32 0
|
||||
store ptr %106, ptr %108, align 8
|
||||
store ptr %103, ptr %108, align 8
|
||||
%109 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %107, i32 0, i32 1
|
||||
store ptr inttoptr (i64 2 to ptr), ptr %109, align 8
|
||||
store ptr inttoptr (i64 97 to ptr), ptr %109, align 8
|
||||
%110 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %107, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %110, ptr %105, align 8
|
||||
%111 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 7
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %110, ptr %102, align 8
|
||||
%111 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 3
|
||||
%112 = load ptr, ptr @_llgo_int32, align 8
|
||||
%113 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %113, i32 0, i32 0
|
||||
store ptr %112, ptr %114, align 8
|
||||
%115 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %113, i32 0, i32 1
|
||||
store ptr inttoptr (i64 3 to ptr), ptr %115, align 8
|
||||
%116 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %113, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %116, ptr %111, align 8
|
||||
%117 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 8
|
||||
%118 = load ptr, ptr @_llgo_int64, align 8
|
||||
%119 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%120 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %119, i32 0, i32 0
|
||||
store ptr %118, ptr %120, align 8
|
||||
%121 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %119, i32 0, i32 1
|
||||
store ptr inttoptr (i64 4 to ptr), ptr %121, align 8
|
||||
%122 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %119, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %122, ptr %117, align 8
|
||||
%123 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 9
|
||||
%124 = load ptr, ptr @_llgo_int, align 8
|
||||
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %112, i32 0, i32 6
|
||||
%114 = load i8, ptr %113, align 1
|
||||
%115 = or i8 %114, 32
|
||||
store i8 %115, ptr %113, align 1
|
||||
%116 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%117 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %116, i32 0, i32 0
|
||||
store ptr %112, ptr %117, align 8
|
||||
%118 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %116, i32 0, i32 1
|
||||
store ptr inttoptr (i64 65 to ptr), ptr %118, align 8
|
||||
%119 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %116, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %119, ptr %111, align 8
|
||||
%120 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 4
|
||||
%121 = load ptr, ptr @_llgo_int32, align 8
|
||||
%122 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %121, i32 0, i32 6
|
||||
%123 = load i8, ptr %122, align 1
|
||||
%124 = or i8 %123, 32
|
||||
store i8 %124, ptr %122, align 1
|
||||
%125 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%126 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %125, i32 0, i32 0
|
||||
store ptr %124, ptr %126, align 8
|
||||
store ptr %121, ptr %126, align 8
|
||||
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %125, i32 0, i32 1
|
||||
store ptr inttoptr (i64 5 to ptr), ptr %127, align 8
|
||||
store ptr inttoptr (i64 20013 to ptr), ptr %127, align 8
|
||||
%128 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %125, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %128, ptr %123, align 8
|
||||
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 10
|
||||
%130 = load ptr, ptr @_llgo_uint8, align 8
|
||||
%131 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%132 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %131, i32 0, i32 0
|
||||
store ptr %130, ptr %132, align 8
|
||||
%133 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %131, i32 0, i32 1
|
||||
store ptr inttoptr (i64 1 to ptr), ptr %133, align 8
|
||||
%134 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %131, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %134, ptr %129, align 8
|
||||
%135 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 11
|
||||
%136 = load ptr, ptr @_llgo_uint16, align 8
|
||||
%137 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%138 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %137, i32 0, i32 0
|
||||
store ptr %136, ptr %138, align 8
|
||||
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %137, i32 0, i32 1
|
||||
store ptr inttoptr (i64 2 to ptr), ptr %139, align 8
|
||||
%140 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %137, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %140, ptr %135, align 8
|
||||
%141 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 12
|
||||
%142 = load ptr, ptr @_llgo_uint32, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %128, ptr %120, align 8
|
||||
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 5
|
||||
%130 = load ptr, ptr @_llgo_int8, align 8
|
||||
%131 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %130, i32 0, i32 6
|
||||
%132 = load i8, ptr %131, align 1
|
||||
%133 = or i8 %132, 32
|
||||
store i8 %133, ptr %131, align 1
|
||||
%134 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%135 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %134, i32 0, i32 0
|
||||
store ptr %130, ptr %135, align 8
|
||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %134, i32 0, i32 1
|
||||
store ptr inttoptr (i64 1 to ptr), ptr %136, align 8
|
||||
%137 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %134, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %137, ptr %129, align 8
|
||||
%138 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 6
|
||||
%139 = load ptr, ptr @_llgo_int16, align 8
|
||||
%140 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %139, i32 0, i32 6
|
||||
%141 = load i8, ptr %140, align 1
|
||||
%142 = or i8 %141, 32
|
||||
store i8 %142, ptr %140, align 1
|
||||
%143 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%144 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %143, i32 0, i32 0
|
||||
store ptr %142, ptr %144, align 8
|
||||
store ptr %139, ptr %144, align 8
|
||||
%145 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %143, i32 0, i32 1
|
||||
store ptr inttoptr (i64 3 to ptr), ptr %145, align 8
|
||||
store ptr inttoptr (i64 2 to ptr), ptr %145, align 8
|
||||
%146 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %143, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %146, ptr %141, align 8
|
||||
%147 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 13
|
||||
%148 = load ptr, ptr @_llgo_uint64, align 8
|
||||
%149 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%150 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %149, i32 0, i32 0
|
||||
store ptr %148, ptr %150, align 8
|
||||
%151 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %149, i32 0, i32 1
|
||||
store ptr inttoptr (i64 4 to ptr), ptr %151, align 8
|
||||
%152 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %149, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %152, ptr %147, align 8
|
||||
%153 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 14
|
||||
%154 = load ptr, ptr @_llgo_uintptr, align 8
|
||||
%155 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%156 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %155, i32 0, i32 0
|
||||
store ptr %154, ptr %156, align 8
|
||||
%157 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %155, i32 0, i32 1
|
||||
store ptr inttoptr (i64 5 to ptr), ptr %157, align 8
|
||||
%158 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %155, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %158, ptr %153, align 8
|
||||
%159 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i64 15
|
||||
%160 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%161 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %160, i32 0, i32 0
|
||||
store ptr @4, ptr %161, align 8
|
||||
%162 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %160, i32 0, i32 1
|
||||
store i64 4, ptr %162, align 4
|
||||
%163 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %160, align 8
|
||||
%164 = load ptr, ptr @_llgo_string, align 8
|
||||
%165 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %163, ptr %165, align 8
|
||||
%166 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%167 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %166, i32 0, i32 0
|
||||
store ptr %164, ptr %167, align 8
|
||||
%168 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %166, i32 0, i32 1
|
||||
store ptr %165, ptr %168, align 8
|
||||
%169 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %166, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %169, ptr %159, align 8
|
||||
%170 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%171 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %170, i32 0, i32 0
|
||||
store ptr %68, ptr %171, align 8
|
||||
%172 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %170, i32 0, i32 1
|
||||
store i64 16, ptr %172, align 4
|
||||
%173 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %170, i32 0, i32 2
|
||||
store i64 16, ptr %173, align 4
|
||||
%174 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %170, align 8
|
||||
call void @main.println(%"github.com/goplus/llgo/internal/runtime.Slice" %174)
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %146, ptr %138, align 8
|
||||
%147 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 7
|
||||
%148 = load ptr, ptr @_llgo_int32, align 8
|
||||
%149 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %148, i32 0, i32 6
|
||||
%150 = load i8, ptr %149, align 1
|
||||
%151 = or i8 %150, 32
|
||||
store i8 %151, ptr %149, align 1
|
||||
%152 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%153 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %152, i32 0, i32 0
|
||||
store ptr %148, ptr %153, align 8
|
||||
%154 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %152, i32 0, i32 1
|
||||
store ptr inttoptr (i64 3 to ptr), ptr %154, align 8
|
||||
%155 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %152, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %155, ptr %147, align 8
|
||||
%156 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 8
|
||||
%157 = load ptr, ptr @_llgo_int64, align 8
|
||||
%158 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %157, i32 0, i32 6
|
||||
%159 = load i8, ptr %158, align 1
|
||||
%160 = or i8 %159, 32
|
||||
store i8 %160, ptr %158, align 1
|
||||
%161 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%162 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %161, i32 0, i32 0
|
||||
store ptr %157, ptr %162, align 8
|
||||
%163 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %161, i32 0, i32 1
|
||||
store ptr inttoptr (i64 4 to ptr), ptr %163, align 8
|
||||
%164 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %161, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %164, ptr %156, align 8
|
||||
%165 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 9
|
||||
%166 = load ptr, ptr @_llgo_int, align 8
|
||||
%167 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %166, i32 0, i32 6
|
||||
%168 = load i8, ptr %167, align 1
|
||||
%169 = or i8 %168, 32
|
||||
store i8 %169, ptr %167, align 1
|
||||
%170 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%171 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %170, i32 0, i32 0
|
||||
store ptr %166, ptr %171, align 8
|
||||
%172 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %170, i32 0, i32 1
|
||||
store ptr inttoptr (i64 5 to ptr), ptr %172, align 8
|
||||
%173 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %170, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %173, ptr %165, align 8
|
||||
%174 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 10
|
||||
%175 = load ptr, ptr @_llgo_uint8, align 8
|
||||
%176 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %175, i32 0, i32 6
|
||||
%177 = load i8, ptr %176, align 1
|
||||
%178 = or i8 %177, 32
|
||||
store i8 %178, ptr %176, align 1
|
||||
%179 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%180 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %179, i32 0, i32 0
|
||||
store ptr %175, ptr %180, align 8
|
||||
%181 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %179, i32 0, i32 1
|
||||
store ptr inttoptr (i64 1 to ptr), ptr %181, align 8
|
||||
%182 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %179, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %182, ptr %174, align 8
|
||||
%183 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 11
|
||||
%184 = load ptr, ptr @_llgo_uint16, align 8
|
||||
%185 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %184, i32 0, i32 6
|
||||
%186 = load i8, ptr %185, align 1
|
||||
%187 = or i8 %186, 32
|
||||
store i8 %187, ptr %185, align 1
|
||||
%188 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%189 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %188, i32 0, i32 0
|
||||
store ptr %184, ptr %189, align 8
|
||||
%190 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %188, i32 0, i32 1
|
||||
store ptr inttoptr (i64 2 to ptr), ptr %190, align 8
|
||||
%191 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %188, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %191, ptr %183, align 8
|
||||
%192 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 12
|
||||
%193 = load ptr, ptr @_llgo_uint32, align 8
|
||||
%194 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %193, i32 0, i32 6
|
||||
%195 = load i8, ptr %194, align 1
|
||||
%196 = or i8 %195, 32
|
||||
store i8 %196, ptr %194, align 1
|
||||
%197 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%198 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %197, i32 0, i32 0
|
||||
store ptr %193, ptr %198, align 8
|
||||
%199 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %197, i32 0, i32 1
|
||||
store ptr inttoptr (i64 3 to ptr), ptr %199, align 8
|
||||
%200 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %197, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %200, ptr %192, align 8
|
||||
%201 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 13
|
||||
%202 = load ptr, ptr @_llgo_uint64, align 8
|
||||
%203 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %202, i32 0, i32 6
|
||||
%204 = load i8, ptr %203, align 1
|
||||
%205 = or i8 %204, 32
|
||||
store i8 %205, ptr %203, align 1
|
||||
%206 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%207 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %206, i32 0, i32 0
|
||||
store ptr %202, ptr %207, align 8
|
||||
%208 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %206, i32 0, i32 1
|
||||
store ptr inttoptr (i64 4 to ptr), ptr %208, align 8
|
||||
%209 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %206, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %209, ptr %201, align 8
|
||||
%210 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 14
|
||||
%211 = load ptr, ptr @_llgo_uintptr, align 8
|
||||
%212 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %211, i32 0, i32 6
|
||||
%213 = load i8, ptr %212, align 1
|
||||
%214 = or i8 %213, 32
|
||||
store i8 %214, ptr %212, align 1
|
||||
%215 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%216 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %215, i32 0, i32 0
|
||||
store ptr %211, ptr %216, align 8
|
||||
%217 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %215, i32 0, i32 1
|
||||
store ptr inttoptr (i64 5 to ptr), ptr %217, align 8
|
||||
%218 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %215, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %218, ptr %210, align 8
|
||||
%219 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %83, i64 15
|
||||
%220 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%221 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %220, i32 0, i32 0
|
||||
store ptr @4, ptr %221, align 8
|
||||
%222 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %220, i32 0, i32 1
|
||||
store i64 4, ptr %222, align 4
|
||||
%223 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %220, align 8
|
||||
%224 = load ptr, ptr @_llgo_string, align 8
|
||||
%225 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %223, ptr %225, align 8
|
||||
%226 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%227 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %226, i32 0, i32 0
|
||||
store ptr %224, ptr %227, align 8
|
||||
%228 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %226, i32 0, i32 1
|
||||
store ptr %225, ptr %228, align 8
|
||||
%229 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %226, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %229, ptr %219, align 8
|
||||
%230 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%231 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %230, i32 0, i32 0
|
||||
store ptr %83, ptr %231, align 8
|
||||
%232 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %230, i32 0, i32 1
|
||||
store i64 16, ptr %232, align 4
|
||||
%233 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %230, i32 0, i32 2
|
||||
store i64 16, ptr %233, align 4
|
||||
%234 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %230, align 8
|
||||
call void @main.println(%"github.com/goplus/llgo/internal/runtime.Slice" %234)
|
||||
ret i32 0
|
||||
|
||||
_llgo_3: ; preds = %_llgo_0
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
source_filename = "main"
|
||||
|
||||
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@__llgo_argc = global ptr null
|
||||
@@ -35,40 +36,52 @@ _llgo_0:
|
||||
%2 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 48)
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %2, i64 0
|
||||
%4 = load ptr, ptr @_llgo_int, align 8
|
||||
%5 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %5, i32 0, i32 0
|
||||
store ptr %4, ptr %6, align 8
|
||||
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %5, i32 0, i32 1
|
||||
store ptr inttoptr (i64 1 to ptr), ptr %7, align 8
|
||||
%8 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %5, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %8, ptr %3, align 8
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %2, i64 1
|
||||
%10 = load ptr, ptr @_llgo_int, align 8
|
||||
%11 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %11, i32 0, i32 0
|
||||
store ptr %10, ptr %12, align 8
|
||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %11, i32 0, i32 1
|
||||
store ptr inttoptr (i64 2 to ptr), ptr %13, align 8
|
||||
%14 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %11, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %14, ptr %9, align 8
|
||||
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %2, i64 2
|
||||
%16 = load ptr, ptr @_llgo_int, align 8
|
||||
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %4, i32 0, i32 6
|
||||
%6 = load i8, ptr %5, align 1
|
||||
%7 = or i8 %6, 32
|
||||
store i8 %7, ptr %5, align 1
|
||||
%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 %4, ptr %9, align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %8, i32 0, i32 1
|
||||
store ptr inttoptr (i64 1 to ptr), ptr %10, align 8
|
||||
%11 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %8, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %11, ptr %3, align 8
|
||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %2, i64 1
|
||||
%13 = load ptr, ptr @_llgo_int, align 8
|
||||
%14 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %13, i32 0, i32 6
|
||||
%15 = load i8, ptr %14, align 1
|
||||
%16 = or i8 %15, 32
|
||||
store i8 %16, ptr %14, align 1
|
||||
%17 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %17, i32 0, i32 0
|
||||
store ptr %16, ptr %18, align 8
|
||||
store ptr %13, ptr %18, align 8
|
||||
%19 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %17, i32 0, i32 1
|
||||
store ptr inttoptr (i64 3 to ptr), ptr %19, align 8
|
||||
store ptr inttoptr (i64 2 to ptr), ptr %19, align 8
|
||||
%20 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %17, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %20, ptr %15, align 8
|
||||
%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 %2, ptr %22, align 8
|
||||
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %21, i32 0, i32 1
|
||||
store i64 3, ptr %23, align 4
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %21, i32 0, i32 2
|
||||
store i64 3, ptr %24, align 4
|
||||
%25 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %21, align 8
|
||||
call void @main.test(%"github.com/goplus/llgo/internal/runtime.Slice" %25)
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %20, ptr %12, align 8
|
||||
%21 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %2, i64 2
|
||||
%22 = load ptr, ptr @_llgo_int, align 8
|
||||
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %22, i32 0, i32 6
|
||||
%24 = load i8, ptr %23, align 1
|
||||
%25 = or i8 %24, 32
|
||||
store i8 %25, ptr %23, align 1
|
||||
%26 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%27 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %26, i32 0, i32 0
|
||||
store ptr %22, ptr %27, align 8
|
||||
%28 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %26, i32 0, i32 1
|
||||
store ptr inttoptr (i64 3 to ptr), ptr %28, align 8
|
||||
%29 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %26, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %29, ptr %21, align 8
|
||||
%30 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %30, i32 0, i32 0
|
||||
store ptr %2, ptr %31, align 8
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %30, i32 0, i32 1
|
||||
store i64 3, ptr %32, align 4
|
||||
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %30, i32 0, i32 2
|
||||
store i64 3, ptr %33, align 4
|
||||
%34 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %30, align 8
|
||||
call void @main.test(%"github.com/goplus/llgo/internal/runtime.Slice" %34)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ _llgo_0:
|
||||
%7 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %6, 0
|
||||
%8 = getelementptr ptr, ptr %7, i64 3
|
||||
%9 = load ptr, ptr %8, align 8
|
||||
%10 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %6, 1
|
||||
%10 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceData"(%"github.com/goplus/llgo/internal/runtime.iface" %6)
|
||||
%11 = alloca { ptr, ptr }, align 8
|
||||
%12 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
|
||||
store ptr %9, ptr %12, align 8
|
||||
@@ -300,4 +300,6 @@ declare void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8)
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.IfaceData"(%"github.com/goplus/llgo/internal/runtime.iface")
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String")
|
||||
|
||||
53
cl/_testgo/invoke/in.go
Normal file
53
cl/_testgo/invoke/in.go
Normal file
@@ -0,0 +1,53 @@
|
||||
package main
|
||||
|
||||
type T struct {
|
||||
s string
|
||||
}
|
||||
|
||||
func (t T) Invoke() int {
|
||||
println("invoke", t.s)
|
||||
return 0
|
||||
}
|
||||
|
||||
type T1 int
|
||||
|
||||
func (t T1) Invoke() int {
|
||||
println("invoke1", t)
|
||||
return 1
|
||||
}
|
||||
|
||||
type T2 float64
|
||||
|
||||
func (t T2) Invoke() int {
|
||||
println("invoke2", t)
|
||||
return 2
|
||||
}
|
||||
|
||||
type T3 int8
|
||||
|
||||
func (t *T3) Invoke() int {
|
||||
println("invoke3", *t)
|
||||
return 3
|
||||
}
|
||||
|
||||
type I interface {
|
||||
Invoke() int
|
||||
}
|
||||
|
||||
func main() {
|
||||
var t = T{"hello"}
|
||||
var t1 = T1(100)
|
||||
var t2 = T2(100.1)
|
||||
var t3 = T3(127)
|
||||
invoke(t)
|
||||
invoke(&t)
|
||||
invoke(t1)
|
||||
invoke(&t1)
|
||||
invoke(t2)
|
||||
invoke(&t2)
|
||||
invoke(&t3)
|
||||
}
|
||||
|
||||
func invoke(i I) {
|
||||
println(i.Invoke())
|
||||
}
|
||||
815
cl/_testgo/invoke/out.ll
Normal file
815
cl/_testgo/invoke/out.ll
Normal file
@@ -0,0 +1,815 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
|
||||
%main.T = type { %"github.com/goplus/llgo/internal/runtime.String" }
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr }
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 }
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
%"github.com/goplus/llgo/internal/abi.Method" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, ptr, ptr }
|
||||
%"github.com/goplus/llgo/internal/abi.Imethod" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@0 = private unnamed_addr constant [7 x i8] c"invoke\00", align 1
|
||||
@1 = private unnamed_addr constant [8 x i8] c"invoke1\00", align 1
|
||||
@2 = private unnamed_addr constant [8 x i8] c"invoke2\00", align 1
|
||||
@3 = private unnamed_addr constant [8 x i8] c"invoke3\00", align 1
|
||||
@__llgo_argc = global ptr null
|
||||
@__llgo_argv = global ptr null
|
||||
@4 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
|
||||
@_llgo_main.T = linkonce global ptr null
|
||||
@"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ" = global ptr null
|
||||
@_llgo_string = linkonce global ptr null
|
||||
@5 = private unnamed_addr constant [2 x i8] c"s\00", align 1
|
||||
@6 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@7 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@8 = private unnamed_addr constant [7 x i8] c"Invoke\00", align 1
|
||||
@"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA" = linkonce global ptr null
|
||||
@_llgo_int = linkonce global ptr null
|
||||
@9 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@10 = private unnamed_addr constant [7 x i8] c"main.T\00", align 1
|
||||
@"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0" = linkonce global ptr null
|
||||
@11 = private unnamed_addr constant [7 x i8] c"Invoke\00", align 1
|
||||
@12 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@13 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
||||
@"*_llgo_main.T" = linkonce global ptr null
|
||||
@_llgo_main.T1 = linkonce global ptr null
|
||||
@14 = private unnamed_addr constant [7 x i8] c"Invoke\00", align 1
|
||||
@15 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@16 = private unnamed_addr constant [8 x i8] c"main.T1\00", align 1
|
||||
@"*_llgo_main.T1" = linkonce global ptr null
|
||||
@_llgo_main.T2 = linkonce global ptr null
|
||||
@_llgo_float64 = linkonce global ptr null
|
||||
@17 = private unnamed_addr constant [7 x i8] c"Invoke\00", align 1
|
||||
@18 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@19 = private unnamed_addr constant [8 x i8] c"main.T2\00", align 1
|
||||
@"*_llgo_main.T2" = linkonce global ptr null
|
||||
@"*_llgo_main.T3" = linkonce global ptr null
|
||||
@_llgo_main.T3 = linkonce global ptr null
|
||||
@_llgo_int8 = linkonce global ptr null
|
||||
@20 = private unnamed_addr constant [7 x i8] c"Invoke\00", align 1
|
||||
@21 = private unnamed_addr constant [5 x i8] c"main\00", align 1
|
||||
@22 = private unnamed_addr constant [8 x i8] c"main.T3\00", align 1
|
||||
|
||||
define i64 @main.T.Invoke(%main.T %0) {
|
||||
_llgo_0:
|
||||
%1 = alloca %main.T, align 8
|
||||
%2 = call ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr %1, i64 16)
|
||||
store %main.T %0, ptr %2, align 8
|
||||
%3 = getelementptr inbounds %main.T, ptr %2, i32 0, i32 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 @0, ptr %6, align 8
|
||||
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %5, i32 0, i32 1
|
||||
store i64 6, 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.PrintByte"(i8 32)
|
||||
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.PrintByte"(i8 10)
|
||||
ret i64 0
|
||||
}
|
||||
|
||||
define i64 @"main.(*T).Invoke"(ptr %0) {
|
||||
_llgo_0:
|
||||
%1 = load %main.T, ptr %0, align 8
|
||||
%2 = call i64 @main.T.Invoke(%main.T %1)
|
||||
ret i64 %2
|
||||
}
|
||||
|
||||
define i64 @main.T1.Invoke(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 7, 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.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)
|
||||
ret i64 1
|
||||
}
|
||||
|
||||
define i64 @"main.(*T1).Invoke"(ptr %0) {
|
||||
_llgo_0:
|
||||
%1 = load i64, ptr %0, align 4
|
||||
%2 = call i64 @main.T1.Invoke(i64 %1)
|
||||
ret i64 %2
|
||||
}
|
||||
|
||||
define i64 @main.T2.Invoke(double %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 @2, ptr %2, align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %1, i32 0, i32 1
|
||||
store i64 7, 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.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %0)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret i64 2
|
||||
}
|
||||
|
||||
define i64 @"main.(*T2).Invoke"(ptr %0) {
|
||||
_llgo_0:
|
||||
%1 = load double, ptr %0, align 8
|
||||
%2 = call i64 @main.T2.Invoke(double %1)
|
||||
ret i64 %2
|
||||
}
|
||||
|
||||
define i64 @"main.(*T3).Invoke"(ptr %0) {
|
||||
_llgo_0:
|
||||
%1 = load i8, ptr %0, align 1
|
||||
%2 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 0
|
||||
store ptr @3, ptr %3, align 8
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 1
|
||||
store i64 7, ptr %4, align 4
|
||||
%5 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %5)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%6 = sext i8 %1 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %6)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret i64 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
|
||||
call void @"main.init$after"()
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %0) {
|
||||
_llgo_0:
|
||||
%1 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %0, 0
|
||||
%2 = getelementptr ptr, ptr %1, i64 3
|
||||
%3 = load ptr, ptr %2, align 8
|
||||
%4 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceData"(%"github.com/goplus/llgo/internal/runtime.iface" %0)
|
||||
%5 = alloca { ptr, ptr }, align 8
|
||||
%6 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 0
|
||||
store ptr %3, ptr %6, align 8
|
||||
%7 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 1
|
||||
store ptr %4, ptr %7, align 8
|
||||
%8 = load { ptr, ptr }, ptr %5, align 8
|
||||
%9 = extractvalue { ptr, ptr } %8, 1
|
||||
%10 = extractvalue { ptr, ptr } %8, 0
|
||||
%11 = call i64 %10(ptr %9)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %11)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
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 ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16)
|
||||
%3 = getelementptr inbounds %main.T, ptr %2, i32 0, i32 0
|
||||
%4 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %4, i32 0, i32 0
|
||||
store ptr @4, ptr %5, align 8
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %4, i32 0, i32 1
|
||||
store i64 5, ptr %6, align 4
|
||||
%7 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %4, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %7, ptr %3, align 8
|
||||
%8 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8)
|
||||
store i64 100, ptr %8, align 4
|
||||
%9 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8)
|
||||
store double 1.001000e+02, ptr %9, align 8
|
||||
%10 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 1)
|
||||
store i8 127, ptr %10, align 1
|
||||
%11 = load %main.T, ptr %2, align 8
|
||||
%12 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%13 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %main.T %11, ptr %13, align 8
|
||||
%14 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8
|
||||
%15 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %14, ptr %12)
|
||||
%16 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %16, i32 0, i32 0
|
||||
store ptr %15, ptr %17, align 8
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %16, i32 0, i32 1
|
||||
store ptr %13, ptr %18, align 8
|
||||
%19 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %16, align 8
|
||||
call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %19)
|
||||
%20 = load ptr, ptr @"*_llgo_main.T", align 8
|
||||
%21 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8
|
||||
%22 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %21, ptr %20)
|
||||
%23 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %23, i32 0, i32 0
|
||||
store ptr %22, ptr %24, align 8
|
||||
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %23, i32 0, i32 1
|
||||
store ptr %2, ptr %25, align 8
|
||||
%26 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %23, align 8
|
||||
call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %26)
|
||||
%27 = load i64, ptr %8, align 4
|
||||
%28 = load ptr, ptr @_llgo_main.T1, align 8
|
||||
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %28, i32 0, i32 6
|
||||
%30 = load i8, ptr %29, align 1
|
||||
%31 = or i8 %30, 32
|
||||
store i8 %31, ptr %29, align 1
|
||||
%32 = inttoptr i64 %27 to ptr
|
||||
%33 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8
|
||||
%34 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %33, ptr %28)
|
||||
%35 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %35, i32 0, i32 0
|
||||
store ptr %34, ptr %36, align 8
|
||||
%37 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %35, i32 0, i32 1
|
||||
store ptr %32, ptr %37, align 8
|
||||
%38 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %35, align 8
|
||||
call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %38)
|
||||
%39 = load ptr, ptr @"*_llgo_main.T1", align 8
|
||||
%40 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8
|
||||
%41 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %40, ptr %39)
|
||||
%42 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %42, i32 0, i32 0
|
||||
store ptr %41, ptr %43, align 8
|
||||
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %42, i32 0, i32 1
|
||||
store ptr %8, ptr %44, align 8
|
||||
%45 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %42, align 8
|
||||
call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %45)
|
||||
%46 = load double, ptr %9, align 8
|
||||
%47 = load ptr, ptr @_llgo_main.T2, align 8
|
||||
%48 = bitcast double %46 to i64
|
||||
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %47, i32 0, i32 6
|
||||
%50 = load i8, ptr %49, align 1
|
||||
%51 = or i8 %50, 32
|
||||
store i8 %51, ptr %49, align 1
|
||||
%52 = inttoptr i64 %48 to ptr
|
||||
%53 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8
|
||||
%54 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %53, ptr %47)
|
||||
%55 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %55, i32 0, i32 0
|
||||
store ptr %54, ptr %56, align 8
|
||||
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %55, i32 0, i32 1
|
||||
store ptr %52, ptr %57, align 8
|
||||
%58 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %55, align 8
|
||||
call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %58)
|
||||
%59 = load ptr, ptr @"*_llgo_main.T2", align 8
|
||||
%60 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8
|
||||
%61 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %60, ptr %59)
|
||||
%62 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %62, i32 0, i32 0
|
||||
store ptr %61, ptr %63, align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %62, i32 0, i32 1
|
||||
store ptr %9, ptr %64, align 8
|
||||
%65 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %62, align 8
|
||||
call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %65)
|
||||
%66 = load ptr, ptr @"*_llgo_main.T3", align 8
|
||||
%67 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8
|
||||
%68 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %67, ptr %66)
|
||||
%69 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
||||
%70 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %69, i32 0, i32 0
|
||||
store ptr %68, ptr %70, align 8
|
||||
%71 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %69, i32 0, i32 1
|
||||
store ptr %10, ptr %71, align 8
|
||||
%72 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %69, align 8
|
||||
call void @main.invoke(%"github.com/goplus/llgo/internal/runtime.iface" %72)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr, i64)
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String")
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8)
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64)
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double)
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.IfaceData"(%"github.com/goplus/llgo/internal/runtime.iface")
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64)
|
||||
|
||||
define void @"main.init$after"() {
|
||||
_llgo_0:
|
||||
%0 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%1 = icmp eq ptr %0, null
|
||||
br i1 %1, label %_llgo_1, label %_llgo_2
|
||||
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
%2 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 25, i64 1, i64 1)
|
||||
store ptr %2, ptr @_llgo_main.T, align 8
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
%3 = load ptr, ptr @_llgo_string, align 8
|
||||
%4 = icmp eq ptr %3, null
|
||||
br i1 %4, label %_llgo_3, label %_llgo_4
|
||||
|
||||
_llgo_3: ; preds = %_llgo_2
|
||||
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
||||
store ptr %5, ptr @_llgo_string, align 8
|
||||
br label %_llgo_4
|
||||
|
||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%6 = load ptr, ptr @_llgo_string, 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 @5, ptr %8, align 8
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %7, i32 0, i32 1
|
||||
store i64 1, ptr %9, align 4
|
||||
%10 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %7, align 8
|
||||
%11 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %11, i32 0, i32 0
|
||||
store ptr @6, ptr %12, align 8
|
||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %11, i32 0, i32 1
|
||||
store i64 0, ptr %13, align 4
|
||||
%14 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %11, align 8
|
||||
%15 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %10, ptr %6, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %14, i1 false)
|
||||
%16 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %16, i32 0, i32 0
|
||||
store ptr @7, ptr %17, align 8
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %16, i32 0, i32 1
|
||||
store i64 4, ptr %18, align 4
|
||||
%19 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %16, align 8
|
||||
%20 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56)
|
||||
%21 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %20, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.StructField" %15, ptr %21, align 8
|
||||
%22 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %22, i32 0, i32 0
|
||||
store ptr %20, ptr %23, align 8
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %22, i32 0, i32 1
|
||||
store i64 1, ptr %24, align 4
|
||||
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %22, i32 0, i32 2
|
||||
store i64 1, ptr %25, align 4
|
||||
%26 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %22, align 8
|
||||
%27 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %19, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %26)
|
||||
store ptr %27, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8
|
||||
%28 = load ptr, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8
|
||||
br i1 %1, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
%29 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %29, i32 0, i32 0
|
||||
store ptr @8, ptr %30, align 8
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %29, i32 0, i32 1
|
||||
store i64 6, ptr %31, align 4
|
||||
%32 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %29, align 8
|
||||
%33 = load ptr, ptr @_llgo_int, align 8
|
||||
%34 = icmp eq ptr %33, null
|
||||
br i1 %34, label %_llgo_7, label %_llgo_8
|
||||
|
||||
_llgo_6: ; preds = %_llgo_10, %_llgo_4
|
||||
%35 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%36 = load ptr, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8
|
||||
%37 = icmp eq ptr %36, null
|
||||
br i1 %37, label %_llgo_11, label %_llgo_12
|
||||
|
||||
_llgo_7: ; preds = %_llgo_5
|
||||
%38 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 2)
|
||||
store ptr %38, ptr @_llgo_int, align 8
|
||||
br label %_llgo_8
|
||||
|
||||
_llgo_8: ; preds = %_llgo_7, %_llgo_5
|
||||
%39 = load ptr, ptr @_llgo_int, align 8
|
||||
%40 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%41 = icmp eq ptr %40, null
|
||||
br i1 %41, label %_llgo_9, label %_llgo_10
|
||||
|
||||
_llgo_9: ; preds = %_llgo_8
|
||||
%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 8)
|
||||
%49 = getelementptr ptr, ptr %48, i64 0
|
||||
store ptr %39, 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 %48, ptr %51, align 8
|
||||
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, i32 0, i32 1
|
||||
store i64 1, ptr %52, align 4
|
||||
%53 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, i32 0, i32 2
|
||||
store i64 1, ptr %53, align 4
|
||||
%54 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %50, align 8
|
||||
%55 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %47, %"github.com/goplus/llgo/internal/runtime.Slice" %54, i1 false)
|
||||
store ptr %55, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
br label %_llgo_10
|
||||
|
||||
_llgo_10: ; preds = %_llgo_9, %_llgo_8
|
||||
%56 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%57 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%58 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %57, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %32, ptr %58, align 8
|
||||
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %57, i32 0, i32 1
|
||||
store ptr %56, ptr %59, align 8
|
||||
%60 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %57, i32 0, i32 2
|
||||
store ptr @"main.(*T).Invoke", ptr %60, align 8
|
||||
%61 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %57, i32 0, i32 3
|
||||
store ptr @"main.(*T).Invoke", ptr %61, align 8
|
||||
%62 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %57, align 8
|
||||
%63 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %32, ptr %64, align 8
|
||||
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i32 0, i32 1
|
||||
store ptr %56, ptr %65, align 8
|
||||
%66 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i32 0, i32 2
|
||||
store ptr @"main.(*T).Invoke", ptr %66, align 8
|
||||
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %63, i32 0, i32 3
|
||||
store ptr @main.T.Invoke, ptr %67, align 8
|
||||
%68 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %63, align 8
|
||||
%69 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%70 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %69, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %68, ptr %70, align 8
|
||||
%71 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %71, i32 0, i32 0
|
||||
store ptr %69, ptr %72, align 8
|
||||
%73 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %71, i32 0, i32 1
|
||||
store i64 1, ptr %73, align 4
|
||||
%74 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %71, i32 0, i32 2
|
||||
store i64 1, ptr %74, align 4
|
||||
%75 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %71, align 8
|
||||
%76 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%77 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %76, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %62, ptr %77, align 8
|
||||
%78 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%79 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, i32 0, i32 0
|
||||
store ptr %76, ptr %79, align 8
|
||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, i32 0, i32 1
|
||||
store i64 1, ptr %80, align 4
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, i32 0, i32 2
|
||||
store i64 1, ptr %81, align 4
|
||||
%82 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %78, align 8
|
||||
%83 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %83, i32 0, i32 0
|
||||
store ptr @9, ptr %84, align 8
|
||||
%85 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %83, i32 0, i32 1
|
||||
store i64 4, ptr %85, align 4
|
||||
%86 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %83, align 8
|
||||
%87 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%88 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %87, i32 0, i32 0
|
||||
store ptr @10, ptr %88, align 8
|
||||
%89 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %87, i32 0, i32 1
|
||||
store i64 6, ptr %89, align 4
|
||||
%90 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %87, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %2, %"github.com/goplus/llgo/internal/runtime.String" %86, %"github.com/goplus/llgo/internal/runtime.String" %90, ptr %28, %"github.com/goplus/llgo/internal/runtime.Slice" %75, %"github.com/goplus/llgo/internal/runtime.Slice" %82)
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_11: ; preds = %_llgo_6
|
||||
%91 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %91, i32 0, i32 0
|
||||
store ptr @11, ptr %92, align 8
|
||||
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %91, i32 0, i32 1
|
||||
store i64 6, ptr %93, align 4
|
||||
%94 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %91, align 8
|
||||
%95 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %95, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %94, ptr %96, align 8
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %95, i32 0, i32 1
|
||||
store ptr %35, ptr %97, align 8
|
||||
%98 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %95, align 8
|
||||
%99 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
%100 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %99, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Imethod" %98, ptr %100, align 8
|
||||
%101 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%102 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %101, i32 0, i32 0
|
||||
store ptr %99, ptr %102, align 8
|
||||
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %101, i32 0, i32 1
|
||||
store i64 1, ptr %103, align 4
|
||||
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %101, i32 0, i32 2
|
||||
store i64 1, ptr %104, align 4
|
||||
%105 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %101, align 8
|
||||
%106 = 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 @12, ptr %107, align 8
|
||||
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %106, i32 0, i32 1
|
||||
store i64 4, ptr %108, align 4
|
||||
%109 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %106, align 8
|
||||
%110 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%111 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %110, i32 0, i32 0
|
||||
store ptr @13, ptr %111, align 8
|
||||
%112 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %110, i32 0, i32 1
|
||||
store i64 0, ptr %112, align 4
|
||||
%113 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %110, align 8
|
||||
%114 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %109, %"github.com/goplus/llgo/internal/runtime.String" %113, %"github.com/goplus/llgo/internal/runtime.Slice" %105)
|
||||
store ptr %114, ptr @"_llgo_iface$uRUteI7wmSy7y7ODhGzk0FdDaxGKMhVSSu6HZEv9aa0", align 8
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_6
|
||||
%115 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%116 = load ptr, ptr @"*_llgo_main.T", align 8
|
||||
%117 = icmp eq ptr %116, null
|
||||
br i1 %117, label %_llgo_13, label %_llgo_14
|
||||
|
||||
_llgo_13: ; preds = %_llgo_12
|
||||
%118 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %115)
|
||||
store ptr %118, ptr @"*_llgo_main.T", align 8
|
||||
br label %_llgo_14
|
||||
|
||||
_llgo_14: ; preds = %_llgo_13, %_llgo_12
|
||||
%119 = load ptr, ptr @_llgo_main.T1, align 8
|
||||
%120 = icmp eq ptr %119, null
|
||||
br i1 %120, label %_llgo_15, label %_llgo_16
|
||||
|
||||
_llgo_15: ; preds = %_llgo_14
|
||||
%121 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 2, i64 1, i64 1)
|
||||
store ptr %121, ptr @_llgo_main.T1, align 8
|
||||
br label %_llgo_16
|
||||
|
||||
_llgo_16: ; preds = %_llgo_15, %_llgo_14
|
||||
%122 = load ptr, ptr @_llgo_int, align 8
|
||||
br i1 %120, label %_llgo_17, label %_llgo_18
|
||||
|
||||
_llgo_17: ; preds = %_llgo_16
|
||||
%123 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%124 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %123, i32 0, i32 0
|
||||
store ptr @14, ptr %124, align 8
|
||||
%125 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %123, i32 0, i32 1
|
||||
store i64 6, ptr %125, align 4
|
||||
%126 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %123, align 8
|
||||
%127 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%128 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %128, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %126, ptr %129, align 8
|
||||
%130 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %128, i32 0, i32 1
|
||||
store ptr %127, ptr %130, align 8
|
||||
%131 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %128, i32 0, i32 2
|
||||
store ptr @"main.(*T1).Invoke", ptr %131, align 8
|
||||
%132 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %128, i32 0, i32 3
|
||||
store ptr @"main.(*T1).Invoke", ptr %132, align 8
|
||||
%133 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %128, align 8
|
||||
%134 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%135 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %134, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %126, ptr %135, align 8
|
||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %134, i32 0, i32 1
|
||||
store ptr %127, ptr %136, align 8
|
||||
%137 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %134, i32 0, i32 2
|
||||
store ptr @"main.(*T1).Invoke", ptr %137, align 8
|
||||
%138 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %134, i32 0, i32 3
|
||||
store ptr @main.T1.Invoke, ptr %138, align 8
|
||||
%139 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %134, align 8
|
||||
%140 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%141 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %140, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %139, ptr %141, align 8
|
||||
%142 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %142, i32 0, i32 0
|
||||
store ptr %140, ptr %143, align 8
|
||||
%144 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %142, i32 0, i32 1
|
||||
store i64 1, ptr %144, align 4
|
||||
%145 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %142, i32 0, i32 2
|
||||
store i64 1, ptr %145, align 4
|
||||
%146 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %142, align 8
|
||||
%147 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%148 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %147, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %133, ptr %148, align 8
|
||||
%149 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%150 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %149, i32 0, i32 0
|
||||
store ptr %147, ptr %150, align 8
|
||||
%151 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %149, i32 0, i32 1
|
||||
store i64 1, ptr %151, align 4
|
||||
%152 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %149, i32 0, i32 2
|
||||
store i64 1, ptr %152, align 4
|
||||
%153 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %149, align 8
|
||||
%154 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%155 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %154, i32 0, i32 0
|
||||
store ptr @15, ptr %155, align 8
|
||||
%156 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %154, i32 0, i32 1
|
||||
store i64 4, ptr %156, align 4
|
||||
%157 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %154, align 8
|
||||
%158 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%159 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %158, i32 0, i32 0
|
||||
store ptr @16, ptr %159, align 8
|
||||
%160 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %158, i32 0, i32 1
|
||||
store i64 7, ptr %160, align 4
|
||||
%161 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %158, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %121, %"github.com/goplus/llgo/internal/runtime.String" %157, %"github.com/goplus/llgo/internal/runtime.String" %161, ptr %122, %"github.com/goplus/llgo/internal/runtime.Slice" %146, %"github.com/goplus/llgo/internal/runtime.Slice" %153)
|
||||
br label %_llgo_18
|
||||
|
||||
_llgo_18: ; preds = %_llgo_17, %_llgo_16
|
||||
%162 = load ptr, ptr @_llgo_main.T1, align 8
|
||||
%163 = load ptr, ptr @"*_llgo_main.T1", align 8
|
||||
%164 = icmp eq ptr %163, null
|
||||
br i1 %164, label %_llgo_19, label %_llgo_20
|
||||
|
||||
_llgo_19: ; preds = %_llgo_18
|
||||
%165 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %162)
|
||||
store ptr %165, ptr @"*_llgo_main.T1", align 8
|
||||
br label %_llgo_20
|
||||
|
||||
_llgo_20: ; preds = %_llgo_19, %_llgo_18
|
||||
%166 = load ptr, ptr @_llgo_main.T2, align 8
|
||||
%167 = icmp eq ptr %166, null
|
||||
br i1 %167, label %_llgo_21, label %_llgo_22
|
||||
|
||||
_llgo_21: ; preds = %_llgo_20
|
||||
%168 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 14, i64 1, i64 1)
|
||||
store ptr %168, ptr @_llgo_main.T2, align 8
|
||||
br label %_llgo_22
|
||||
|
||||
_llgo_22: ; preds = %_llgo_21, %_llgo_20
|
||||
%169 = load ptr, ptr @_llgo_float64, align 8
|
||||
%170 = icmp eq ptr %169, null
|
||||
br i1 %170, label %_llgo_23, label %_llgo_24
|
||||
|
||||
_llgo_23: ; preds = %_llgo_22
|
||||
%171 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 14)
|
||||
store ptr %171, ptr @_llgo_float64, align 8
|
||||
br label %_llgo_24
|
||||
|
||||
_llgo_24: ; preds = %_llgo_23, %_llgo_22
|
||||
%172 = load ptr, ptr @_llgo_float64, align 8
|
||||
br i1 %167, label %_llgo_25, label %_llgo_26
|
||||
|
||||
_llgo_25: ; preds = %_llgo_24
|
||||
%173 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%174 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %173, i32 0, i32 0
|
||||
store ptr @17, ptr %174, align 8
|
||||
%175 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %173, i32 0, i32 1
|
||||
store i64 6, ptr %175, align 4
|
||||
%176 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %173, align 8
|
||||
%177 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%178 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%179 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %178, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %176, ptr %179, align 8
|
||||
%180 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %178, i32 0, i32 1
|
||||
store ptr %177, ptr %180, align 8
|
||||
%181 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %178, i32 0, i32 2
|
||||
store ptr @"main.(*T2).Invoke", ptr %181, align 8
|
||||
%182 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %178, i32 0, i32 3
|
||||
store ptr @"main.(*T2).Invoke", ptr %182, align 8
|
||||
%183 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %178, align 8
|
||||
%184 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%185 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %184, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %176, ptr %185, align 8
|
||||
%186 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %184, i32 0, i32 1
|
||||
store ptr %177, ptr %186, align 8
|
||||
%187 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %184, i32 0, i32 2
|
||||
store ptr @"main.(*T2).Invoke", ptr %187, align 8
|
||||
%188 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %184, i32 0, i32 3
|
||||
store ptr @main.T2.Invoke, ptr %188, align 8
|
||||
%189 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %184, align 8
|
||||
%190 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%191 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %190, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %189, ptr %191, align 8
|
||||
%192 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%193 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %192, i32 0, i32 0
|
||||
store ptr %190, ptr %193, align 8
|
||||
%194 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %192, i32 0, i32 1
|
||||
store i64 1, ptr %194, align 4
|
||||
%195 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %192, i32 0, i32 2
|
||||
store i64 1, ptr %195, align 4
|
||||
%196 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %192, align 8
|
||||
%197 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%198 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %197, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %183, ptr %198, align 8
|
||||
%199 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%200 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %199, i32 0, i32 0
|
||||
store ptr %197, ptr %200, align 8
|
||||
%201 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %199, i32 0, i32 1
|
||||
store i64 1, ptr %201, align 4
|
||||
%202 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %199, i32 0, i32 2
|
||||
store i64 1, ptr %202, align 4
|
||||
%203 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %199, align 8
|
||||
%204 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%205 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %204, i32 0, i32 0
|
||||
store ptr @18, ptr %205, align 8
|
||||
%206 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %204, i32 0, i32 1
|
||||
store i64 4, ptr %206, align 4
|
||||
%207 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %204, align 8
|
||||
%208 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%209 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %208, i32 0, i32 0
|
||||
store ptr @19, ptr %209, align 8
|
||||
%210 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %208, i32 0, i32 1
|
||||
store i64 7, ptr %210, align 4
|
||||
%211 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %208, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %168, %"github.com/goplus/llgo/internal/runtime.String" %207, %"github.com/goplus/llgo/internal/runtime.String" %211, ptr %172, %"github.com/goplus/llgo/internal/runtime.Slice" %196, %"github.com/goplus/llgo/internal/runtime.Slice" %203)
|
||||
br label %_llgo_26
|
||||
|
||||
_llgo_26: ; preds = %_llgo_25, %_llgo_24
|
||||
%212 = load ptr, ptr @_llgo_main.T2, align 8
|
||||
%213 = load ptr, ptr @"*_llgo_main.T2", align 8
|
||||
%214 = icmp eq ptr %213, null
|
||||
br i1 %214, label %_llgo_27, label %_llgo_28
|
||||
|
||||
_llgo_27: ; preds = %_llgo_26
|
||||
%215 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %212)
|
||||
store ptr %215, ptr @"*_llgo_main.T2", align 8
|
||||
br label %_llgo_28
|
||||
|
||||
_llgo_28: ; preds = %_llgo_27, %_llgo_26
|
||||
%216 = load ptr, ptr @_llgo_main.T3, align 8
|
||||
%217 = icmp eq ptr %216, null
|
||||
br i1 %217, label %_llgo_29, label %_llgo_30
|
||||
|
||||
_llgo_29: ; preds = %_llgo_28
|
||||
%218 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 3, i64 0, i64 1)
|
||||
store ptr %218, ptr @_llgo_main.T3, align 8
|
||||
br label %_llgo_30
|
||||
|
||||
_llgo_30: ; preds = %_llgo_29, %_llgo_28
|
||||
%219 = load ptr, ptr @_llgo_int8, align 8
|
||||
%220 = icmp eq ptr %219, null
|
||||
br i1 %220, label %_llgo_31, label %_llgo_32
|
||||
|
||||
_llgo_31: ; preds = %_llgo_30
|
||||
%221 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 3)
|
||||
store ptr %221, ptr @_llgo_int8, align 8
|
||||
br label %_llgo_32
|
||||
|
||||
_llgo_32: ; preds = %_llgo_31, %_llgo_30
|
||||
%222 = load ptr, ptr @_llgo_int8, align 8
|
||||
br i1 %217, label %_llgo_33, label %_llgo_34
|
||||
|
||||
_llgo_33: ; preds = %_llgo_32
|
||||
%223 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%224 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %223, i32 0, i32 0
|
||||
store ptr @20, ptr %224, align 8
|
||||
%225 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %223, i32 0, i32 1
|
||||
store i64 6, ptr %225, align 4
|
||||
%226 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %223, align 8
|
||||
%227 = load ptr, ptr @"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA", align 8
|
||||
%228 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
||||
%229 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %228, i32 0, i32 0
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %226, ptr %229, align 8
|
||||
%230 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %228, i32 0, i32 1
|
||||
store ptr %227, ptr %230, align 8
|
||||
%231 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %228, i32 0, i32 2
|
||||
store ptr @"main.(*T3).Invoke", ptr %231, align 8
|
||||
%232 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %228, i32 0, i32 3
|
||||
store ptr @"main.(*T3).Invoke", ptr %232, align 8
|
||||
%233 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %228, align 8
|
||||
%234 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
||||
%235 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %234, i64 0
|
||||
store %"github.com/goplus/llgo/internal/abi.Method" %233, ptr %235, align 8
|
||||
%236 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%237 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %236, i32 0, i32 0
|
||||
store ptr %234, ptr %237, align 8
|
||||
%238 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %236, i32 0, i32 1
|
||||
store i64 1, ptr %238, align 4
|
||||
%239 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %236, i32 0, i32 2
|
||||
store i64 1, ptr %239, align 4
|
||||
%240 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %236, align 8
|
||||
%241 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%242 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %241, i32 0, i32 0
|
||||
store ptr @21, ptr %242, align 8
|
||||
%243 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %241, i32 0, i32 1
|
||||
store i64 4, ptr %243, align 4
|
||||
%244 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %241, align 8
|
||||
%245 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%246 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %245, i32 0, i32 0
|
||||
store ptr @22, ptr %246, align 8
|
||||
%247 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %245, i32 0, i32 1
|
||||
store i64 7, ptr %247, align 4
|
||||
%248 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %245, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %218, %"github.com/goplus/llgo/internal/runtime.String" %244, %"github.com/goplus/llgo/internal/runtime.String" %248, ptr %222, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %240)
|
||||
br label %_llgo_34
|
||||
|
||||
_llgo_34: ; preds = %_llgo_33, %_llgo_32
|
||||
%249 = load ptr, ptr @_llgo_main.T3, align 8
|
||||
%250 = load ptr, ptr @"*_llgo_main.T3", align 8
|
||||
%251 = icmp eq ptr %250, null
|
||||
br i1 %251, label %_llgo_35, label %_llgo_36
|
||||
|
||||
_llgo_35: ; preds = %_llgo_34
|
||||
%252 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %249)
|
||||
store ptr %252, ptr @"*_llgo_main.T3", align 8
|
||||
br label %_llgo_36
|
||||
|
||||
_llgo_36: ; preds = %_llgo_35, %_llgo_34
|
||||
ret void
|
||||
}
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64, i64, i64)
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64)
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice")
|
||||
|
||||
declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1)
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64)
|
||||
|
||||
declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice")
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1)
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice")
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr, ptr)
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr)
|
||||
@@ -2,6 +2,7 @@
|
||||
source_filename = "main"
|
||||
|
||||
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 }
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
@@ -31,14 +32,18 @@ _llgo_0:
|
||||
%3 = load { i64 }, ptr %1, align 4
|
||||
%4 = load ptr, ptr @"main.struct$MYpsoM99ZwFY087IpUOkIw1zjBA_sgFXVodmn1m-G88", align 8
|
||||
%5 = extractvalue { i64 } %3, 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
|
||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %4, i32 0, i32 6
|
||||
%7 = load i8, ptr %6, align 1
|
||||
%8 = or i8 %7, 32
|
||||
store i8 %8, ptr %6, align 1
|
||||
%9 = inttoptr i64 %5 to ptr
|
||||
%10 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, i32 0, i32 0
|
||||
store ptr %4, ptr %11, align 8
|
||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, i32 0, i32 1
|
||||
store ptr %9, ptr %12, align 8
|
||||
%13 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, align 8
|
||||
ret %"github.com/goplus/llgo/internal/runtime.eface" %13
|
||||
}
|
||||
|
||||
define void @main.init() {
|
||||
|
||||
@@ -3,6 +3,7 @@ source_filename = "main"
|
||||
|
||||
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
|
||||
@"main.init$guard" = global ptr null
|
||||
@"*_llgo_int8" = linkonce global ptr null
|
||||
@@ -90,14 +91,18 @@ _llgo_0:
|
||||
%6 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %3, align 8
|
||||
%7 = call ptr @main.hi(%"github.com/goplus/llgo/internal/runtime.eface" %6)
|
||||
%8 = load ptr, ptr @_llgo_int, align 8
|
||||
%9 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %9, i32 0, i32 0
|
||||
store ptr %8, ptr %10, align 8
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %9, i32 0, i32 1
|
||||
store ptr inttoptr (i64 100 to ptr), ptr %11, align 8
|
||||
%12 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %9, align 8
|
||||
%13 = call i64 @main.incVal(%"github.com/goplus/llgo/internal/runtime.eface" %12)
|
||||
%14 = call i32 (ptr, ...) @printf(ptr @2, ptr %7, i64 %13)
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %8, i32 0, i32 6
|
||||
%10 = load i8, ptr %9, align 1
|
||||
%11 = or i8 %10, 32
|
||||
store i8 %11, ptr %9, align 1
|
||||
%12 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %12, i32 0, i32 0
|
||||
store ptr %8, ptr %13, align 8
|
||||
%14 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %12, i32 0, i32 1
|
||||
store ptr inttoptr (i64 100 to ptr), ptr %14, align 8
|
||||
%15 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %12, align 8
|
||||
%16 = call i64 @main.incVal(%"github.com/goplus/llgo/internal/runtime.eface" %15)
|
||||
%17 = call i32 (ptr, ...) @printf(ptr @2, ptr %7, i64 %16)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ source_filename = "main"
|
||||
|
||||
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/runtime.String", ptr }
|
||||
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
||||
|
||||
@main.a = global ptr null
|
||||
@@ -326,15 +327,19 @@ _llgo_0:
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%123 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16)
|
||||
%124 = load ptr, ptr @_llgo_int, align 8
|
||||
%125 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%126 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %125, i32 0, i32 0
|
||||
store ptr %124, ptr %126, align 8
|
||||
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %125, i32 0, i32 1
|
||||
store ptr inttoptr (i64 100 to ptr), ptr %127, align 8
|
||||
%128 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %125, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %128, ptr %123, align 8
|
||||
%129 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %123, align 8
|
||||
%130 = ptrtoint ptr %123 to i64
|
||||
%125 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %124, i32 0, i32 6
|
||||
%126 = load i8, ptr %125, align 1
|
||||
%127 = or i8 %126, 32
|
||||
store i8 %127, ptr %125, align 1
|
||||
%128 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%129 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %128, i32 0, i32 0
|
||||
store ptr %124, ptr %129, align 8
|
||||
%130 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %128, i32 0, i32 1
|
||||
store ptr inttoptr (i64 100 to ptr), ptr %130, align 8
|
||||
%131 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %128, align 8
|
||||
store %"github.com/goplus/llgo/internal/runtime.eface" %131, ptr %123, align 8
|
||||
%132 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %123, align 8
|
||||
%133 = ptrtoint ptr %123 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 true)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 0)
|
||||
@@ -351,276 +356,276 @@ _llgo_0:
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double 1.005000e+02)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintEface"(%"github.com/goplus/llgo/internal/runtime.eface" %129)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintEface"(%"github.com/goplus/llgo/internal/runtime.eface" %132)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %123)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %130)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %133)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%131 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 3)
|
||||
%132 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8)
|
||||
%133 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%134 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 0
|
||||
store ptr %131, ptr %134, align 8
|
||||
%135 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 1
|
||||
store i64 3, ptr %135, align 4
|
||||
%136 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, i32 0, i32 2
|
||||
store i64 3, ptr %136, align 4
|
||||
%137 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %133, align 8
|
||||
%138 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %122, 0
|
||||
%139 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %122, 1
|
||||
%140 = call i64 @"github.com/goplus/llgo/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/internal/runtime.Slice" %137, ptr %138, i64 %139, i64 1)
|
||||
store i64 %140, ptr %132, align 4
|
||||
%141 = load i64, ptr %132, align 4
|
||||
%142 = getelementptr inbounds i8, ptr %131, i64 0
|
||||
%143 = load i8, ptr %142, align 1
|
||||
%144 = getelementptr inbounds i8, ptr %131, i64 1
|
||||
%145 = load i8, ptr %144, align 1
|
||||
%146 = getelementptr inbounds i8, ptr %131, i64 2
|
||||
%147 = load i8, ptr %146, align 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %141)
|
||||
%134 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 3)
|
||||
%135 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8)
|
||||
%136 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%137 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %136, i32 0, i32 0
|
||||
store ptr %134, ptr %137, align 8
|
||||
%138 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %136, i32 0, i32 1
|
||||
store i64 3, ptr %138, align 4
|
||||
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %136, i32 0, i32 2
|
||||
store i64 3, ptr %139, align 4
|
||||
%140 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %136, align 8
|
||||
%141 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %122, 0
|
||||
%142 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %122, 1
|
||||
%143 = call i64 @"github.com/goplus/llgo/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/internal/runtime.Slice" %140, ptr %141, i64 %142, i64 1)
|
||||
store i64 %143, ptr %135, align 4
|
||||
%144 = load i64, ptr %135, align 4
|
||||
%145 = getelementptr inbounds i8, ptr %134, i64 0
|
||||
%146 = load i8, ptr %145, align 1
|
||||
%147 = getelementptr inbounds i8, ptr %134, i64 1
|
||||
%148 = load i8, ptr %147, align 1
|
||||
%149 = getelementptr inbounds i8, ptr %134, i64 2
|
||||
%150 = load i8, ptr %149, align 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %144)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%148 = zext i8 %143 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %148)
|
||||
%151 = zext i8 %146 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %151)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%149 = zext i8 %145 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %149)
|
||||
%152 = zext i8 %148 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %152)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%150 = zext i8 %147 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %150)
|
||||
%153 = zext i8 %150 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %153)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%151 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %131, i64 1, i64 3, i64 1, i64 3, i64 3)
|
||||
%152 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%153 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %152, i32 0, i32 0
|
||||
store ptr @5, ptr %153, align 8
|
||||
%154 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %152, i32 0, i32 1
|
||||
store i64 4, ptr %154, align 4
|
||||
%155 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %152, align 8
|
||||
%156 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %155, 0
|
||||
%157 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %155, 1
|
||||
%158 = call i64 @"github.com/goplus/llgo/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/internal/runtime.Slice" %151, ptr %156, i64 %157, i64 1)
|
||||
store i64 %158, ptr %132, align 4
|
||||
%159 = load i64, ptr %132, align 4
|
||||
%160 = getelementptr inbounds i8, ptr %131, i64 0
|
||||
%161 = load i8, ptr %160, align 1
|
||||
%162 = getelementptr inbounds i8, ptr %131, i64 1
|
||||
%163 = load i8, ptr %162, align 1
|
||||
%164 = getelementptr inbounds i8, ptr %131, i64 2
|
||||
%165 = load i8, ptr %164, align 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %159)
|
||||
%154 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %134, i64 1, i64 3, i64 1, i64 3, i64 3)
|
||||
%155 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%156 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %155, i32 0, i32 0
|
||||
store ptr @5, ptr %156, align 8
|
||||
%157 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %155, i32 0, i32 1
|
||||
store i64 4, ptr %157, align 4
|
||||
%158 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %155, align 8
|
||||
%159 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %158, 0
|
||||
%160 = extractvalue %"github.com/goplus/llgo/internal/runtime.String" %158, 1
|
||||
%161 = call i64 @"github.com/goplus/llgo/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/internal/runtime.Slice" %154, ptr %159, i64 %160, i64 1)
|
||||
store i64 %161, ptr %135, align 4
|
||||
%162 = load i64, ptr %135, align 4
|
||||
%163 = getelementptr inbounds i8, ptr %134, i64 0
|
||||
%164 = load i8, ptr %163, align 1
|
||||
%165 = getelementptr inbounds i8, ptr %134, i64 1
|
||||
%166 = load i8, ptr %165, align 1
|
||||
%167 = getelementptr inbounds i8, ptr %134, i64 2
|
||||
%168 = load i8, ptr %167, align 1
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %162)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%166 = zext i8 %161 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %166)
|
||||
%169 = zext i8 %164 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %169)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%167 = zext i8 %163 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %167)
|
||||
%170 = zext i8 %166 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %170)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%168 = zext i8 %165 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %168)
|
||||
%171 = zext i8 %168 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintUint"(i64 %171)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%169 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%170 = getelementptr inbounds { ptr }, ptr %169, i32 0, i32 0
|
||||
store ptr %132, ptr %170, align 8
|
||||
%171 = alloca { ptr, ptr }, align 8
|
||||
%172 = getelementptr inbounds { ptr, ptr }, ptr %171, i32 0, i32 0
|
||||
store ptr @"main.main$2", ptr %172, align 8
|
||||
%173 = getelementptr inbounds { ptr, ptr }, ptr %171, i32 0, i32 1
|
||||
store ptr %169, ptr %173, align 8
|
||||
%174 = load { ptr, ptr }, ptr %171, align 8
|
||||
%172 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
||||
%173 = getelementptr inbounds { ptr }, ptr %172, i32 0, i32 0
|
||||
store ptr %135, ptr %173, align 8
|
||||
%174 = alloca { ptr, ptr }, align 8
|
||||
%175 = getelementptr inbounds { ptr, ptr }, ptr %174, i32 0, i32 0
|
||||
store ptr @"main.main$2", ptr %175, align 8
|
||||
%176 = getelementptr inbounds { ptr, ptr }, ptr %174, i32 0, i32 1
|
||||
store ptr %172, ptr %176, align 8
|
||||
%177 = load { ptr, ptr }, ptr %174, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr @main.demo)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr @main.demo)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr @"main.main$1")
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%175 = extractvalue { ptr, ptr } %174, 0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %175)
|
||||
%178 = extractvalue { ptr, ptr } %177, 0
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintPointer"(ptr %178)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%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 @6, ptr %177, align 8
|
||||
%178 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %176, i32 0, i32 1
|
||||
store i64 7, ptr %178, align 4
|
||||
%179 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %176, align 8
|
||||
%180 = call ptr @"github.com/goplus/llgo/internal/runtime.NewStringIter"(%"github.com/goplus/llgo/internal/runtime.String" %179)
|
||||
%179 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%180 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %179, i32 0, i32 0
|
||||
store ptr @6, ptr %180, align 8
|
||||
%181 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %179, i32 0, i32 1
|
||||
store i64 7, ptr %181, align 4
|
||||
%182 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %179, align 8
|
||||
%183 = call ptr @"github.com/goplus/llgo/internal/runtime.NewStringIter"(%"github.com/goplus/llgo/internal/runtime.String" %182)
|
||||
br label %_llgo_1
|
||||
|
||||
_llgo_1: ; preds = %_llgo_2, %_llgo_0
|
||||
%181 = call { i1, i64, i32 } @"github.com/goplus/llgo/internal/runtime.StringIterNext"(ptr %180)
|
||||
%182 = extractvalue { i1, i64, i32 } %181, 0
|
||||
br i1 %182, label %_llgo_2, label %_llgo_3
|
||||
%184 = call { i1, i64, i32 } @"github.com/goplus/llgo/internal/runtime.StringIterNext"(ptr %183)
|
||||
%185 = extractvalue { i1, i64, i32 } %184, 0
|
||||
br i1 %185, label %_llgo_2, label %_llgo_3
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1
|
||||
%183 = extractvalue { i1, i64, i32 } %181, 1
|
||||
%184 = extractvalue { i1, i64, i32 } %181, 2
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %183)
|
||||
%186 = extractvalue { i1, i64, i32 } %184, 1
|
||||
%187 = extractvalue { i1, i64, i32 } %184, 2
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %186)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
%185 = sext i32 %184 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %185)
|
||||
%188 = sext i32 %187 to i64
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %188)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
br label %_llgo_1
|
||||
|
||||
_llgo_3: ; preds = %_llgo_1
|
||||
%186 = call double @main.Inf(i64 1)
|
||||
%187 = call double @main.Inf(i64 -1)
|
||||
%188 = call double @main.NaN()
|
||||
%189 = call double @main.NaN()
|
||||
%190 = call i1 @main.IsNaN(double %189)
|
||||
%191 = call i1 @main.IsNaN(double 1.000000e+00)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %186)
|
||||
%189 = call double @main.Inf(i64 1)
|
||||
%190 = call double @main.Inf(i64 -1)
|
||||
%191 = call double @main.NaN()
|
||||
%192 = call double @main.NaN()
|
||||
%193 = call i1 @main.IsNaN(double %192)
|
||||
%194 = call i1 @main.IsNaN(double 1.000000e+00)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %189)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %187)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %190)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %188)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintFloat"(double %191)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %190)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %193)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %191)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %194)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%192 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%193 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %192, i32 0, i32 0
|
||||
store ptr @7, ptr %193, align 8
|
||||
%194 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %192, i32 0, i32 1
|
||||
store i64 7, ptr %194, align 4
|
||||
%195 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %192, align 8
|
||||
%196 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String" %195)
|
||||
%197 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%198 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %197, i32 0, i32 0
|
||||
store ptr @8, ptr %198, align 8
|
||||
%199 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %197, i32 0, i32 1
|
||||
store i64 7, ptr %199, align 4
|
||||
%200 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %197, align 8
|
||||
%201 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToRunes"(%"github.com/goplus/llgo/internal/runtime.String" %200)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %196)
|
||||
%195 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%196 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %195, i32 0, i32 0
|
||||
store ptr @7, ptr %196, align 8
|
||||
%197 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %195, i32 0, i32 1
|
||||
store i64 7, ptr %197, align 4
|
||||
%198 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %195, align 8
|
||||
%199 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/internal/runtime.String" %198)
|
||||
%200 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%201 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %200, i32 0, i32 0
|
||||
store ptr @8, ptr %201, align 8
|
||||
%202 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %200, i32 0, i32 1
|
||||
store i64 7, ptr %202, align 4
|
||||
%203 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %200, align 8
|
||||
%204 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.StringToRunes"(%"github.com/goplus/llgo/internal/runtime.String" %203)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %199)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %201)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/internal/runtime.Slice" %204)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%202 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/internal/runtime.Slice" %196)
|
||||
%203 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRunes"(%"github.com/goplus/llgo/internal/runtime.Slice" %201)
|
||||
%204 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %196, 0
|
||||
%205 = getelementptr inbounds i8, ptr %204, i64 3
|
||||
%206 = load i8, ptr %205, align 1
|
||||
%207 = sext i8 %206 to i32
|
||||
%208 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRune"(i32 %207)
|
||||
%209 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %201, 0
|
||||
%210 = getelementptr inbounds i32, ptr %209, i64 0
|
||||
%211 = load i32, ptr %210, align 4
|
||||
%212 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRune"(i32 %211)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %202)
|
||||
%205 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/internal/runtime.Slice" %199)
|
||||
%206 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRunes"(%"github.com/goplus/llgo/internal/runtime.Slice" %204)
|
||||
%207 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %199, 0
|
||||
%208 = getelementptr inbounds i8, ptr %207, i64 3
|
||||
%209 = load i8, ptr %208, align 1
|
||||
%210 = sext i8 %209 to i32
|
||||
%211 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRune"(i32 %210)
|
||||
%212 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %204, 0
|
||||
%213 = getelementptr inbounds i32, ptr %212, i64 0
|
||||
%214 = load i32, ptr %213, align 4
|
||||
%215 = call %"github.com/goplus/llgo/internal/runtime.String" @"github.com/goplus/llgo/internal/runtime.StringFromRune"(i32 %214)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %205)
|
||||
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" %203)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %206)
|
||||
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" %208)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %211)
|
||||
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" %212)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %215)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
%213 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%214 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %213, i32 0, i32 0
|
||||
store ptr @9, ptr %214, align 8
|
||||
%215 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %213, i32 0, i32 1
|
||||
store i64 3, ptr %215, align 4
|
||||
%216 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %213, align 8
|
||||
%217 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%218 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %217, i32 0, i32 0
|
||||
store ptr @10, ptr %218, align 8
|
||||
%219 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %217, i32 0, i32 1
|
||||
store i64 3, ptr %219, align 4
|
||||
%220 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %217, align 8
|
||||
%221 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %216, %"github.com/goplus/llgo/internal/runtime.String" %220)
|
||||
%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 3, ptr %224, align 4
|
||||
%225 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %222, align 8
|
||||
%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 @12, ptr %227, align 8
|
||||
%228 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %226, i32 0, i32 1
|
||||
store i64 3, ptr %228, align 4
|
||||
%229 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %226, align 8
|
||||
%230 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %225, %"github.com/goplus/llgo/internal/runtime.String" %229)
|
||||
%231 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%232 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %231, i32 0, i32 0
|
||||
store ptr @13, ptr %232, align 8
|
||||
%233 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %231, i32 0, i32 1
|
||||
store i64 3, ptr %233, align 4
|
||||
%234 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %231, align 8
|
||||
%235 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%236 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %235, i32 0, i32 0
|
||||
store ptr @14, ptr %236, align 8
|
||||
%237 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %235, i32 0, i32 1
|
||||
store i64 3, ptr %237, align 4
|
||||
%238 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %235, align 8
|
||||
%239 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %234, %"github.com/goplus/llgo/internal/runtime.String" %238)
|
||||
%240 = xor i1 %239, true
|
||||
%241 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%242 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %241, i32 0, i32 0
|
||||
store ptr @15, ptr %242, align 8
|
||||
%243 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %241, i32 0, i32 1
|
||||
store i64 3, ptr %243, align 4
|
||||
%244 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %241, align 8
|
||||
%245 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%246 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %245, i32 0, i32 0
|
||||
store ptr @16, ptr %246, align 8
|
||||
%247 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %245, i32 0, i32 1
|
||||
store i64 3, ptr %247, align 4
|
||||
%248 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %245, align 8
|
||||
%249 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" %244, %"github.com/goplus/llgo/internal/runtime.String" %248)
|
||||
%250 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%251 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %250, i32 0, i32 0
|
||||
store ptr @17, ptr %251, align 8
|
||||
%252 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %250, i32 0, i32 1
|
||||
store i64 3, ptr %252, align 4
|
||||
%253 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %250, align 8
|
||||
%254 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%255 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %254, i32 0, i32 0
|
||||
store ptr @18, ptr %255, align 8
|
||||
%256 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %254, i32 0, i32 1
|
||||
store i64 3, ptr %256, align 4
|
||||
%257 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %254, align 8
|
||||
%258 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" %257, %"github.com/goplus/llgo/internal/runtime.String" %253)
|
||||
%259 = xor i1 %258, true
|
||||
%260 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%261 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %260, i32 0, i32 0
|
||||
store ptr @19, ptr %261, align 8
|
||||
%262 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %260, i32 0, i32 1
|
||||
store i64 3, ptr %262, align 4
|
||||
%263 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %260, align 8
|
||||
%264 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%265 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %264, i32 0, i32 0
|
||||
store ptr @20, ptr %265, align 8
|
||||
%266 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %264, i32 0, i32 1
|
||||
store i64 3, ptr %266, align 4
|
||||
%267 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %264, align 8
|
||||
%268 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" %267, %"github.com/goplus/llgo/internal/runtime.String" %263)
|
||||
%269 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%270 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %269, i32 0, i32 0
|
||||
store ptr @21, ptr %270, align 8
|
||||
%271 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %269, i32 0, i32 1
|
||||
store i64 3, ptr %271, align 4
|
||||
%272 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %269, 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 @22, ptr %274, align 8
|
||||
%275 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %273, i32 0, i32 1
|
||||
store i64 3, ptr %275, align 4
|
||||
%276 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %273, align 8
|
||||
%277 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" %272, %"github.com/goplus/llgo/internal/runtime.String" %276)
|
||||
%278 = xor i1 %277, true
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %221)
|
||||
%216 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%217 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %216, i32 0, i32 0
|
||||
store ptr @9, ptr %217, align 8
|
||||
%218 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %216, i32 0, i32 1
|
||||
store i64 3, ptr %218, align 4
|
||||
%219 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %216, align 8
|
||||
%220 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%221 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %220, i32 0, i32 0
|
||||
store ptr @10, ptr %221, align 8
|
||||
%222 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %220, i32 0, i32 1
|
||||
store i64 3, ptr %222, align 4
|
||||
%223 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %220, align 8
|
||||
%224 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %219, %"github.com/goplus/llgo/internal/runtime.String" %223)
|
||||
%225 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%226 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %225, i32 0, i32 0
|
||||
store ptr @11, ptr %226, align 8
|
||||
%227 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %225, i32 0, i32 1
|
||||
store i64 3, ptr %227, align 4
|
||||
%228 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %225, align 8
|
||||
%229 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%230 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %229, i32 0, i32 0
|
||||
store ptr @12, ptr %230, align 8
|
||||
%231 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %229, i32 0, i32 1
|
||||
store i64 3, ptr %231, align 4
|
||||
%232 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %229, align 8
|
||||
%233 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %228, %"github.com/goplus/llgo/internal/runtime.String" %232)
|
||||
%234 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%235 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %234, i32 0, i32 0
|
||||
store ptr @13, ptr %235, align 8
|
||||
%236 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %234, i32 0, i32 1
|
||||
store i64 3, ptr %236, align 4
|
||||
%237 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %234, align 8
|
||||
%238 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%239 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %238, i32 0, i32 0
|
||||
store ptr @14, ptr %239, align 8
|
||||
%240 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %238, i32 0, i32 1
|
||||
store i64 3, ptr %240, align 4
|
||||
%241 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %238, align 8
|
||||
%242 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %237, %"github.com/goplus/llgo/internal/runtime.String" %241)
|
||||
%243 = xor i1 %242, true
|
||||
%244 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%245 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %244, i32 0, i32 0
|
||||
store ptr @15, ptr %245, align 8
|
||||
%246 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %244, i32 0, i32 1
|
||||
store i64 3, ptr %246, align 4
|
||||
%247 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %244, align 8
|
||||
%248 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%249 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %248, i32 0, i32 0
|
||||
store ptr @16, ptr %249, align 8
|
||||
%250 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %248, i32 0, i32 1
|
||||
store i64 3, ptr %250, align 4
|
||||
%251 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %248, align 8
|
||||
%252 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" %247, %"github.com/goplus/llgo/internal/runtime.String" %251)
|
||||
%253 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%254 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %253, i32 0, i32 0
|
||||
store ptr @17, ptr %254, align 8
|
||||
%255 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %253, i32 0, i32 1
|
||||
store i64 3, ptr %255, align 4
|
||||
%256 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %253, align 8
|
||||
%257 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%258 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %257, i32 0, i32 0
|
||||
store ptr @18, ptr %258, align 8
|
||||
%259 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %257, i32 0, i32 1
|
||||
store i64 3, ptr %259, align 4
|
||||
%260 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %257, align 8
|
||||
%261 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" %260, %"github.com/goplus/llgo/internal/runtime.String" %256)
|
||||
%262 = xor i1 %261, true
|
||||
%263 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%264 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %263, i32 0, i32 0
|
||||
store ptr @19, ptr %264, align 8
|
||||
%265 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %263, i32 0, i32 1
|
||||
store i64 3, ptr %265, align 4
|
||||
%266 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %263, align 8
|
||||
%267 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%268 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %267, i32 0, i32 0
|
||||
store ptr @20, ptr %268, align 8
|
||||
%269 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %267, i32 0, i32 1
|
||||
store i64 3, ptr %269, align 4
|
||||
%270 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %267, align 8
|
||||
%271 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" %270, %"github.com/goplus/llgo/internal/runtime.String" %266)
|
||||
%272 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%273 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %272, i32 0, i32 0
|
||||
store ptr @21, ptr %273, align 8
|
||||
%274 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %272, i32 0, i32 1
|
||||
store i64 3, ptr %274, align 4
|
||||
%275 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %272, align 8
|
||||
%276 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%277 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %276, i32 0, i32 0
|
||||
store ptr @22, ptr %277, align 8
|
||||
%278 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %276, i32 0, i32 1
|
||||
store i64 3, ptr %278, align 4
|
||||
%279 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %276, align 8
|
||||
%280 = call i1 @"github.com/goplus/llgo/internal/runtime.StringLess"(%"github.com/goplus/llgo/internal/runtime.String" %275, %"github.com/goplus/llgo/internal/runtime.String" %279)
|
||||
%281 = xor i1 %280, true
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %224)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %230)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %233)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %240)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %243)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %249)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %252)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %259)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %262)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %268)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %271)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 32)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %278)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintBool"(i1 %281)
|
||||
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
@@ -213,204 +213,260 @@ _llgo_0:
|
||||
call void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
call void @main.init()
|
||||
%2 = load ptr, ptr @_llgo_bool, align 8
|
||||
%3 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %3, i32 0, i32 0
|
||||
store ptr %2, ptr %4, align 8
|
||||
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %3, i32 0, i32 1
|
||||
store ptr inttoptr (i64 -1 to ptr), ptr %5, align 8
|
||||
%6 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %3, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %6)
|
||||
%7 = load ptr, ptr @_llgo_int, 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 %7, ptr %9, align 8
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %8, i32 0, i32 1
|
||||
store ptr null, ptr %10, align 8
|
||||
%11 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %8, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %11)
|
||||
%12 = load ptr, ptr @_llgo_int8, align 8
|
||||
%13 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%14 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %13, i32 0, i32 0
|
||||
store ptr %12, ptr %14, align 8
|
||||
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %13, i32 0, i32 1
|
||||
store ptr null, ptr %15, align 8
|
||||
%16 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %13, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %16)
|
||||
%17 = load ptr, ptr @_llgo_int16, align 8
|
||||
%18 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%19 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %18, i32 0, i32 0
|
||||
store ptr %17, ptr %19, align 8
|
||||
%20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %18, i32 0, i32 1
|
||||
store ptr null, ptr %20, align 8
|
||||
%21 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %18, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %21)
|
||||
%22 = load ptr, ptr @_llgo_int32, align 8
|
||||
%23 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %23, i32 0, i32 0
|
||||
store ptr %22, ptr %24, align 8
|
||||
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %23, i32 0, i32 1
|
||||
store ptr null, ptr %25, align 8
|
||||
%26 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %23, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %26)
|
||||
%27 = load ptr, ptr @_llgo_int64, align 8
|
||||
%28 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %28, i32 0, i32 0
|
||||
store ptr %27, ptr %29, align 8
|
||||
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %28, i32 0, i32 1
|
||||
store ptr null, ptr %30, align 8
|
||||
%31 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %28, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %31)
|
||||
%32 = load ptr, ptr @_llgo_uint, align 8
|
||||
%33 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %33, i32 0, i32 0
|
||||
store ptr %32, ptr %34, align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %33, i32 0, i32 1
|
||||
store ptr null, ptr %35, align 8
|
||||
%36 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %33, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %36)
|
||||
%37 = load ptr, ptr @_llgo_uint8, align 8
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %2, i32 0, i32 6
|
||||
%4 = load i8, ptr %3, align 1
|
||||
%5 = or i8 %4, 32
|
||||
store i8 %5, ptr %3, align 1
|
||||
%6 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %6, i32 0, i32 0
|
||||
store ptr %2, ptr %7, align 8
|
||||
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %6, i32 0, i32 1
|
||||
store ptr inttoptr (i64 -1 to ptr), ptr %8, align 8
|
||||
%9 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %6, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %9)
|
||||
%10 = load ptr, ptr @_llgo_int, align 8
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %10, i32 0, i32 6
|
||||
%12 = load i8, ptr %11, align 1
|
||||
%13 = or i8 %12, 32
|
||||
store i8 %13, ptr %11, align 1
|
||||
%14 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %14, i32 0, i32 0
|
||||
store ptr %10, ptr %15, align 8
|
||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %14, i32 0, i32 1
|
||||
store ptr null, ptr %16, align 8
|
||||
%17 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %14, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %17)
|
||||
%18 = load ptr, ptr @_llgo_int8, align 8
|
||||
%19 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %18, i32 0, i32 6
|
||||
%20 = load i8, ptr %19, align 1
|
||||
%21 = or i8 %20, 32
|
||||
store i8 %21, ptr %19, align 1
|
||||
%22 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %22, i32 0, i32 0
|
||||
store ptr %18, ptr %23, align 8
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %22, i32 0, i32 1
|
||||
store ptr null, ptr %24, align 8
|
||||
%25 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %22, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %25)
|
||||
%26 = load ptr, ptr @_llgo_int16, align 8
|
||||
%27 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %26, i32 0, i32 6
|
||||
%28 = load i8, ptr %27, align 1
|
||||
%29 = or i8 %28, 32
|
||||
store i8 %29, ptr %27, align 1
|
||||
%30 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %30, i32 0, i32 0
|
||||
store ptr %26, ptr %31, align 8
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %30, i32 0, i32 1
|
||||
store ptr null, ptr %32, align 8
|
||||
%33 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %30, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %33)
|
||||
%34 = load ptr, ptr @_llgo_int32, align 8
|
||||
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %34, i32 0, i32 6
|
||||
%36 = load i8, ptr %35, align 1
|
||||
%37 = or i8 %36, 32
|
||||
store i8 %37, ptr %35, align 1
|
||||
%38 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%39 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i32 0, i32 0
|
||||
store ptr %37, ptr %39, align 8
|
||||
store ptr %34, ptr %39, align 8
|
||||
%40 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, i32 0, i32 1
|
||||
store ptr null, ptr %40, align 8
|
||||
%41 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %38, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %41)
|
||||
%42 = load ptr, ptr @_llgo_uint16, align 8
|
||||
%43 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %43, i32 0, i32 0
|
||||
store ptr %42, ptr %44, align 8
|
||||
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %43, i32 0, i32 1
|
||||
store ptr null, ptr %45, align 8
|
||||
%46 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %43, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %46)
|
||||
%47 = load ptr, ptr @_llgo_uint32, align 8
|
||||
%48 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %48, i32 0, i32 0
|
||||
store ptr %47, ptr %49, align 8
|
||||
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %48, i32 0, i32 1
|
||||
store ptr null, ptr %50, align 8
|
||||
%51 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %48, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %51)
|
||||
%52 = load ptr, ptr @_llgo_uint64, align 8
|
||||
%53 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %53, i32 0, i32 0
|
||||
store ptr %52, ptr %54, align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %53, i32 0, i32 1
|
||||
store ptr null, ptr %55, align 8
|
||||
%56 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %53, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %56)
|
||||
%57 = load ptr, ptr @_llgo_uintptr, align 8
|
||||
%58 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %58, i32 0, i32 0
|
||||
store ptr %57, ptr %59, align 8
|
||||
%60 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %58, i32 0, i32 1
|
||||
store ptr null, ptr %60, align 8
|
||||
%61 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %58, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %61)
|
||||
%62 = load ptr, ptr @_llgo_float32, align 8
|
||||
%63 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %63, i32 0, i32 0
|
||||
store ptr %62, ptr %64, align 8
|
||||
%65 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %63, i32 0, i32 1
|
||||
store ptr null, ptr %65, align 8
|
||||
%66 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %63, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %66)
|
||||
%67 = load ptr, ptr @_llgo_float64, align 8
|
||||
%68 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%69 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i32 0, i32 0
|
||||
store ptr %67, ptr %69, align 8
|
||||
%70 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, i32 0, i32 1
|
||||
store ptr null, ptr %70, align 8
|
||||
%71 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %68, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %71)
|
||||
%72 = load ptr, ptr @"[10]_llgo_int", align 8
|
||||
%73 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
store [10 x i64] zeroinitializer, ptr %73, align 4
|
||||
%74 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %74, i32 0, i32 0
|
||||
store ptr %72, ptr %75, align 8
|
||||
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %74, i32 0, i32 1
|
||||
store ptr %73, ptr %76, align 8
|
||||
%77 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %74, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %77)
|
||||
%78 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%79 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %79, i32 0, i32 0
|
||||
store ptr %78, ptr %80, align 8
|
||||
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %79, i32 0, i32 1
|
||||
store ptr @"main.main$1", ptr %81, align 8
|
||||
%82 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %79, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %82)
|
||||
%83 = load ptr, ptr @"*_llgo_int", align 8
|
||||
%84 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%85 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %84, i32 0, i32 0
|
||||
store ptr %83, ptr %85, align 8
|
||||
%86 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %84, i32 0, i32 1
|
||||
store ptr null, ptr %86, align 8
|
||||
%87 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %84, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %87)
|
||||
%88 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 0)
|
||||
%89 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %89, i32 0, i32 0
|
||||
store ptr %88, ptr %90, align 8
|
||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %89, i32 0, i32 1
|
||||
store i64 0, ptr %91, align 4
|
||||
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %89, i32 0, i32 2
|
||||
store i64 0, ptr %92, align 4
|
||||
%93 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %89, align 8
|
||||
%94 = load ptr, ptr @"[]_llgo_int", align 8
|
||||
%95 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
store %"github.com/goplus/llgo/internal/runtime.Slice" %93, ptr %95, align 8
|
||||
%96 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%97 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %96, i32 0, i32 0
|
||||
store ptr %94, ptr %97, align 8
|
||||
%98 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %96, i32 0, i32 1
|
||||
store ptr %95, ptr %98, align 8
|
||||
%99 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %96, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %99)
|
||||
%100 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%101 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %100, i32 0, i32 0
|
||||
store ptr @5, ptr %101, align 8
|
||||
%102 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %100, i32 0, i32 1
|
||||
store i64 5, ptr %102, align 4
|
||||
%103 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %100, align 8
|
||||
%104 = load ptr, ptr @_llgo_string, align 8
|
||||
%105 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %103, ptr %105, align 8
|
||||
%106 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%107 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %106, i32 0, i32 0
|
||||
store ptr %104, ptr %107, align 8
|
||||
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %106, i32 0, i32 1
|
||||
store ptr %105, ptr %108, align 8
|
||||
%109 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %106, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %109)
|
||||
%110 = load ptr, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
||||
%111 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
store { i8, i64, i64 } zeroinitializer, ptr %111, align 4
|
||||
%112 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%113 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %112, i32 0, i32 0
|
||||
store ptr %110, ptr %113, align 8
|
||||
%114 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %112, i32 0, i32 1
|
||||
store ptr %111, ptr %114, align 8
|
||||
%115 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %112, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %115)
|
||||
%116 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%117 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %116, i32 0, i32 0
|
||||
store ptr @13, ptr %117, align 8
|
||||
%118 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %116, i32 0, i32 1
|
||||
store i64 0, ptr %118, align 4
|
||||
%119 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %116, align 8
|
||||
%120 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%121 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %119, ptr %121, align 8
|
||||
%122 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%123 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %122, i32 0, i32 0
|
||||
store ptr %120, ptr %123, align 8
|
||||
%124 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %122, i32 0, i32 1
|
||||
store ptr %121, ptr %124, align 8
|
||||
%125 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %122, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %125)
|
||||
%42 = load ptr, ptr @_llgo_int64, align 8
|
||||
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %42, i32 0, i32 6
|
||||
%44 = load i8, ptr %43, align 1
|
||||
%45 = or i8 %44, 32
|
||||
store i8 %45, ptr %43, align 1
|
||||
%46 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%47 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %46, i32 0, i32 0
|
||||
store ptr %42, ptr %47, align 8
|
||||
%48 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %46, i32 0, i32 1
|
||||
store ptr null, ptr %48, align 8
|
||||
%49 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %46, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %49)
|
||||
%50 = load ptr, ptr @_llgo_uint, align 8
|
||||
%51 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %50, i32 0, i32 6
|
||||
%52 = load i8, ptr %51, align 1
|
||||
%53 = or i8 %52, 32
|
||||
store i8 %53, ptr %51, align 1
|
||||
%54 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %54, i32 0, i32 0
|
||||
store ptr %50, ptr %55, align 8
|
||||
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %54, i32 0, i32 1
|
||||
store ptr null, ptr %56, align 8
|
||||
%57 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %54, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %57)
|
||||
%58 = load ptr, ptr @_llgo_uint8, align 8
|
||||
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %58, i32 0, i32 6
|
||||
%60 = load i8, ptr %59, align 1
|
||||
%61 = or i8 %60, 32
|
||||
store i8 %61, ptr %59, align 1
|
||||
%62 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %62, i32 0, i32 0
|
||||
store ptr %58, ptr %63, align 8
|
||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %62, i32 0, i32 1
|
||||
store ptr null, ptr %64, align 8
|
||||
%65 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %62, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %65)
|
||||
%66 = load ptr, ptr @_llgo_uint16, align 8
|
||||
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %66, i32 0, i32 6
|
||||
%68 = load i8, ptr %67, align 1
|
||||
%69 = or i8 %68, 32
|
||||
store i8 %69, ptr %67, align 1
|
||||
%70 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%71 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %70, i32 0, i32 0
|
||||
store ptr %66, ptr %71, align 8
|
||||
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %70, i32 0, i32 1
|
||||
store ptr null, ptr %72, align 8
|
||||
%73 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %70, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %73)
|
||||
%74 = load ptr, ptr @_llgo_uint32, align 8
|
||||
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %74, i32 0, i32 6
|
||||
%76 = load i8, ptr %75, align 1
|
||||
%77 = or i8 %76, 32
|
||||
store i8 %77, ptr %75, align 1
|
||||
%78 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%79 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %78, i32 0, i32 0
|
||||
store ptr %74, ptr %79, align 8
|
||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %78, i32 0, i32 1
|
||||
store ptr null, ptr %80, align 8
|
||||
%81 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %78, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %81)
|
||||
%82 = load ptr, ptr @_llgo_uint64, align 8
|
||||
%83 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %82, i32 0, i32 6
|
||||
%84 = load i8, ptr %83, align 1
|
||||
%85 = or i8 %84, 32
|
||||
store i8 %85, ptr %83, align 1
|
||||
%86 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%87 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %86, i32 0, i32 0
|
||||
store ptr %82, ptr %87, align 8
|
||||
%88 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %86, i32 0, i32 1
|
||||
store ptr null, ptr %88, align 8
|
||||
%89 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %86, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %89)
|
||||
%90 = load ptr, ptr @_llgo_uintptr, align 8
|
||||
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %90, i32 0, i32 6
|
||||
%92 = load i8, ptr %91, align 1
|
||||
%93 = or i8 %92, 32
|
||||
store i8 %93, ptr %91, align 1
|
||||
%94 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %94, i32 0, i32 0
|
||||
store ptr %90, ptr %95, align 8
|
||||
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %94, i32 0, i32 1
|
||||
store ptr null, ptr %96, align 8
|
||||
%97 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %94, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %97)
|
||||
%98 = load ptr, ptr @_llgo_float32, align 8
|
||||
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %98, i32 0, i32 6
|
||||
%100 = load i8, ptr %99, align 1
|
||||
%101 = or i8 %100, 32
|
||||
store i8 %101, ptr %99, align 1
|
||||
%102 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %102, i32 0, i32 0
|
||||
store ptr %98, ptr %103, align 8
|
||||
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %102, i32 0, i32 1
|
||||
store ptr null, ptr %104, align 8
|
||||
%105 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %102, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %105)
|
||||
%106 = load ptr, ptr @_llgo_float64, align 8
|
||||
%107 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %106, i32 0, i32 6
|
||||
%108 = load i8, ptr %107, align 1
|
||||
%109 = or i8 %108, 32
|
||||
store i8 %109, ptr %107, align 1
|
||||
%110 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%111 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %110, i32 0, i32 0
|
||||
store ptr %106, ptr %111, align 8
|
||||
%112 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %110, i32 0, i32 1
|
||||
store ptr null, ptr %112, align 8
|
||||
%113 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %110, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %113)
|
||||
%114 = load ptr, ptr @"[10]_llgo_int", align 8
|
||||
%115 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 80)
|
||||
store [10 x i64] zeroinitializer, ptr %115, align 4
|
||||
%116 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%117 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %116, i32 0, i32 0
|
||||
store ptr %114, ptr %117, align 8
|
||||
%118 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %116, i32 0, i32 1
|
||||
store ptr %115, ptr %118, align 8
|
||||
%119 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %116, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %119)
|
||||
%120 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
|
||||
%121 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%122 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %121, i32 0, i32 0
|
||||
store ptr %120, ptr %122, align 8
|
||||
%123 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %121, i32 0, i32 1
|
||||
store ptr @"main.main$1", ptr %123, align 8
|
||||
%124 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %121, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %124)
|
||||
%125 = load ptr, ptr @"*_llgo_int", align 8
|
||||
%126 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %126, i32 0, i32 0
|
||||
store ptr %125, ptr %127, align 8
|
||||
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %126, i32 0, i32 1
|
||||
store ptr null, ptr %128, align 8
|
||||
%129 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %126, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %129)
|
||||
%130 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 0)
|
||||
%131 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
||||
%132 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %131, i32 0, i32 0
|
||||
store ptr %130, ptr %132, align 8
|
||||
%133 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %131, i32 0, i32 1
|
||||
store i64 0, ptr %133, align 4
|
||||
%134 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %131, i32 0, i32 2
|
||||
store i64 0, ptr %134, align 4
|
||||
%135 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %131, align 8
|
||||
%136 = load ptr, ptr @"[]_llgo_int", align 8
|
||||
%137 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
store %"github.com/goplus/llgo/internal/runtime.Slice" %135, ptr %137, align 8
|
||||
%138 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %138, i32 0, i32 0
|
||||
store ptr %136, ptr %139, align 8
|
||||
%140 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %138, i32 0, i32 1
|
||||
store ptr %137, ptr %140, align 8
|
||||
%141 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %138, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %141)
|
||||
%142 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %142, i32 0, i32 0
|
||||
store ptr @5, ptr %143, align 8
|
||||
%144 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %142, i32 0, i32 1
|
||||
store i64 5, ptr %144, align 4
|
||||
%145 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %142, align 8
|
||||
%146 = load ptr, ptr @_llgo_string, align 8
|
||||
%147 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %145, ptr %147, align 8
|
||||
%148 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%149 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %148, i32 0, i32 0
|
||||
store ptr %146, ptr %149, align 8
|
||||
%150 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %148, i32 0, i32 1
|
||||
store ptr %147, ptr %150, align 8
|
||||
%151 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %148, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %151)
|
||||
%152 = load ptr, ptr @"main.struct$RKbUG45GE4henGMAdmt0Rju0JptyR8NsX7IZLsOI0OM", align 8
|
||||
%153 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
||||
store { i8, i64, i64 } zeroinitializer, ptr %153, align 4
|
||||
%154 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%155 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %154, i32 0, i32 0
|
||||
store ptr %152, ptr %155, align 8
|
||||
%156 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %154, i32 0, i32 1
|
||||
store ptr %153, ptr %156, align 8
|
||||
%157 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %154, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %157)
|
||||
%158 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
||||
%159 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %158, i32 0, i32 0
|
||||
store ptr @13, ptr %159, align 8
|
||||
%160 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %158, i32 0, i32 1
|
||||
store i64 0, ptr %160, align 4
|
||||
%161 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %158, align 8
|
||||
%162 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%163 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
||||
store %"github.com/goplus/llgo/internal/runtime.String" %161, ptr %163, align 8
|
||||
%164 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
||||
%165 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %164, i32 0, i32 0
|
||||
store ptr %162, ptr %165, align 8
|
||||
%166 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %164, i32 0, i32 1
|
||||
store ptr %163, ptr %166, align 8
|
||||
%167 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %164, align 8
|
||||
call void @main.dump(%"github.com/goplus/llgo/internal/runtime.eface" %167)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
@@ -41,7 +41,7 @@ func Zeroinit(p unsafe.Pointer, size uintptr) unsafe.Pointer {
|
||||
|
||||
// TracePanic prints panic message.
|
||||
func TracePanic(v Eface) {
|
||||
kind := abi.Kind(v._type.Kind_)
|
||||
kind := v._type.Kind()
|
||||
switch {
|
||||
case kind == abi.String:
|
||||
stringTracef(c.Stderr, c.Str("panic: %s\n"), *(*String)(v.data))
|
||||
|
||||
@@ -132,7 +132,7 @@ func doInitNamed(ret *Type, pkgPath, name string, underlying *Type, methods []Me
|
||||
panic("runtime: underlying type is already named")
|
||||
}
|
||||
|
||||
kind := abi.Kind(ret.Kind_)
|
||||
kind := ret.Kind()
|
||||
if ret.TFlag != abi.TFlagUninited || kind != underlying.Kind() {
|
||||
panic("initNamed: unexpected named type")
|
||||
}
|
||||
@@ -246,4 +246,11 @@ func methods(u *abi.UncommonType, from string) []abi.Method {
|
||||
return u.ExportedMethods()
|
||||
}
|
||||
|
||||
func IfaceData(i iface) unsafe.Pointer {
|
||||
if i.tab._type.Kind_&abi.KindDirectIface != 0 {
|
||||
return unsafe.Pointer(&i.data)
|
||||
}
|
||||
return i.data
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
@@ -73,7 +73,8 @@ func (b Builder) Imethod(intf Expr, method *types.Func) Expr {
|
||||
itab := Expr{b.faceItab(impl), prog.VoidPtrPtr()}
|
||||
pfn := b.Advance(itab, prog.IntVal(uint64(i+3), prog.Int()))
|
||||
fn := b.Load(pfn)
|
||||
ret := b.aggregateValue(tclosure, fn.impl, b.faceData(impl))
|
||||
data := b.InlineCall(b.Pkg.rtFunc("IfaceData"), intf)
|
||||
ret := b.aggregateValue(tclosure, fn.impl, data.impl)
|
||||
return ret
|
||||
}
|
||||
|
||||
@@ -125,10 +126,16 @@ func (b Builder) MakeInterface(tinter Type, x Expr) (ret Expr) {
|
||||
default:
|
||||
panic("todo")
|
||||
}
|
||||
// abi.Type.Kind_ |= abi.KindDirectIface
|
||||
pkind := b.FieldAddr(tabi, 6)
|
||||
b.Store(pkind, b.BinOp(token.OR, b.Load(pkind), Expr{prog.IntVal(kindDirectIface, prog.Byte()).impl, prog.Byte()}))
|
||||
data := llvm.CreateIntToPtr(b.impl, u, prog.tyVoidPtr())
|
||||
return Expr{b.unsafeInterface(rawIntf, tabi, data), tinter}
|
||||
}
|
||||
|
||||
// abi.KindDirectIface
|
||||
const kindDirectIface = 1 << 5
|
||||
|
||||
func (b Builder) valFromData(typ Type, data llvm.Value) Expr {
|
||||
prog := b.Prog
|
||||
kind, real, lvl := abi.DataKindOf(typ.raw.Type, 0, prog.is32Bits)
|
||||
|
||||
Reference in New Issue
Block a user