318 lines
20 KiB
LLVM
318 lines
20 KiB
LLVM
; ModuleID = 'main'
|
|
source_filename = "main"
|
|
|
|
%"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr }
|
|
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
|
%main.errorString = type { %"github.com/goplus/llgo/internal/runtime.String" }
|
|
%"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 i1 false, align 1
|
|
@_llgo_main.errorString = linkonce global ptr null, align 8
|
|
@0 = private unnamed_addr constant [16 x i8] c"main.errorString", align 1
|
|
@"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ" = linkonce global ptr null, align 8
|
|
@1 = private unnamed_addr constant [1 x i8] c"s", align 1
|
|
@2 = private unnamed_addr constant [4 x i8] c"main", align 1
|
|
@3 = private unnamed_addr constant [5 x i8] c"Error", align 1
|
|
@"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to" = linkonce global ptr null, align 8
|
|
@_llgo_string = linkonce global ptr null, align 8
|
|
@4 = private unnamed_addr constant [11 x i8] c"errorString", align 1
|
|
@"*_llgo_main.errorString" = linkonce global ptr null, align 8
|
|
@"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU" = linkonce global ptr null, align 8
|
|
@__llgo_argc = global i32 0, align 4
|
|
@__llgo_argv = global ptr null, align 8
|
|
@5 = private unnamed_addr constant [8 x i8] c"an error", align 1
|
|
|
|
define %"github.com/goplus/llgo/internal/runtime.iface" @main.New(%"github.com/goplus/llgo/internal/runtime.String" %0) {
|
|
_llgo_0:
|
|
%1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16)
|
|
%2 = getelementptr inbounds %main.errorString, ptr %1, i32 0, i32 0
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %0, ptr %2, align 8
|
|
%3 = load ptr, ptr @"*_llgo_main.errorString", align 8
|
|
%4 = load ptr, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8
|
|
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.NewItab"(ptr %4, ptr %3)
|
|
%6 = alloca %"github.com/goplus/llgo/internal/runtime.iface", align 8
|
|
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %6, i32 0, i32 0
|
|
store ptr %5, ptr %7, align 8
|
|
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %6, i32 0, i32 1
|
|
store ptr %1, ptr %8, align 8
|
|
%9 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %6, align 8
|
|
ret %"github.com/goplus/llgo/internal/runtime.iface" %9
|
|
}
|
|
|
|
define %"github.com/goplus/llgo/internal/runtime.String" @"main.(*errorString).Error"(ptr %0) {
|
|
_llgo_0:
|
|
%1 = getelementptr inbounds %main.errorString, ptr %0, i32 0, i32 0
|
|
%2 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %1, align 8
|
|
ret %"github.com/goplus/llgo/internal/runtime.String" %2
|
|
}
|
|
|
|
define void @main.init() {
|
|
_llgo_0:
|
|
%0 = load i1, ptr @"main.init$guard", align 1
|
|
br i1 %0, label %_llgo_2, label %_llgo_1
|
|
|
|
_llgo_1: ; preds = %_llgo_0
|
|
store i1 true, ptr @"main.init$guard", align 1
|
|
call void @"main.init$after"()
|
|
br label %_llgo_2
|
|
|
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
|
ret void
|
|
}
|
|
|
|
define i32 @main(i32 %0, ptr %1) {
|
|
_llgo_0:
|
|
store i32 %0, ptr @__llgo_argc, align 4
|
|
store ptr %1, ptr @__llgo_argv, align 8
|
|
call void @"github.com/goplus/llgo/internal/runtime.init"()
|
|
call void @main.init()
|
|
%2 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 0
|
|
store ptr @5, ptr %3, align 8
|
|
%4 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %2, i32 0, i32 1
|
|
store i64 8, ptr %4, align 4
|
|
%5 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %2, align 8
|
|
%6 = call %"github.com/goplus/llgo/internal/runtime.iface" @main.New(%"github.com/goplus/llgo/internal/runtime.String" %5)
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface" %6)
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
|
%7 = call ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface" %6)
|
|
%8 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %6, 0
|
|
%9 = getelementptr ptr, ptr %8, i64 3
|
|
%10 = load ptr, ptr %9, align 8
|
|
%11 = alloca { ptr, ptr }, align 8
|
|
%12 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
|
|
store ptr %10, ptr %12, align 8
|
|
%13 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
|
|
store ptr %7, ptr %13, align 8
|
|
%14 = load { ptr, ptr }, ptr %11, align 8
|
|
%15 = extractvalue { ptr, ptr } %14, 1
|
|
%16 = extractvalue { ptr, ptr } %14, 0
|
|
%17 = call %"github.com/goplus/llgo/internal/runtime.String" %16(ptr %15)
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String" %17)
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
|
ret i32 0
|
|
}
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64)
|
|
|
|
define void @"main.init$after"() {
|
|
_llgo_0:
|
|
%0 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
%1 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 0
|
|
store ptr @0, ptr %1, align 8
|
|
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %0, i32 0, i32 1
|
|
store i64 16, ptr %2, align 4
|
|
%3 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %0, align 8
|
|
%4 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %3, i64 25, i64 16, i64 0, i64 1)
|
|
store ptr %4, ptr @_llgo_main.errorString, align 8
|
|
%5 = 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 @1, ptr %6, align 8
|
|
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %5, i32 0, i32 1
|
|
store i64 1, ptr %7, align 4
|
|
%8 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %5, align 8
|
|
%9 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %9, i32 0, i32 0
|
|
store ptr null, ptr %10, align 8
|
|
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %9, i32 0, i32 1
|
|
store i64 0, ptr %11, align 4
|
|
%12 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %9, align 8
|
|
%13 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
|
%14 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %8, ptr %13, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %12, i1 false)
|
|
%15 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %15, i32 0, i32 0
|
|
store ptr @2, ptr %16, align 8
|
|
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %15, i32 0, i32 1
|
|
store i64 4, ptr %17, align 4
|
|
%18 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %15, align 8
|
|
%19 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 56)
|
|
%20 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %19, i64 0
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %14, ptr %20, 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 %19, ptr %22, align 8
|
|
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %21, i32 0, i32 1
|
|
store i64 1, ptr %23, align 4
|
|
%24 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %21, i32 0, i32 2
|
|
store i64 1, ptr %24, align 4
|
|
%25 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %21, align 8
|
|
%26 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %18, i64 16, %"github.com/goplus/llgo/internal/runtime.Slice" %25)
|
|
store ptr %26, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8
|
|
%27 = load ptr, ptr @"main.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ", align 8
|
|
%28 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %28, i32 0, i32 0
|
|
store ptr @3, ptr %29, align 8
|
|
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %28, i32 0, i32 1
|
|
store i64 5, ptr %30, align 4
|
|
%31 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %28, align 8
|
|
%32 = load ptr, ptr @_llgo_string, align 8
|
|
%33 = icmp eq ptr %32, null
|
|
br i1 %33, label %_llgo_1, label %_llgo_2
|
|
|
|
_llgo_1: ; preds = %_llgo_0
|
|
%34 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
|
store ptr %34, ptr @_llgo_string, align 8
|
|
br label %_llgo_2
|
|
|
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
|
%35 = load ptr, ptr @_llgo_string, align 8
|
|
%36 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
|
%37 = icmp eq ptr %36, null
|
|
br i1 %37, label %_llgo_3, label %_llgo_4
|
|
|
|
_llgo_3: ; preds = %_llgo_2
|
|
%38 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
|
%39 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
%40 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %39, i32 0, i32 0
|
|
store ptr %38, ptr %40, align 8
|
|
%41 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %39, i32 0, i32 1
|
|
store i64 0, ptr %41, align 4
|
|
%42 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %39, i32 0, i32 2
|
|
store i64 0, ptr %42, align 4
|
|
%43 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %39, align 8
|
|
%44 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
|
%45 = getelementptr ptr, ptr %44, i64 0
|
|
store ptr %35, ptr %45, align 8
|
|
%46 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
%47 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %46, i32 0, i32 0
|
|
store ptr %44, ptr %47, align 8
|
|
%48 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %46, i32 0, i32 1
|
|
store i64 1, ptr %48, align 4
|
|
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %46, i32 0, i32 2
|
|
store i64 1, ptr %49, align 4
|
|
%50 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %46, align 8
|
|
%51 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %43, %"github.com/goplus/llgo/internal/runtime.Slice" %50, i1 false)
|
|
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %51)
|
|
store ptr %51, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
|
br label %_llgo_4
|
|
|
|
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
|
%52 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
|
%53 = alloca %"github.com/goplus/llgo/internal/abi.Method", align 8
|
|
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %53, i32 0, i32 0
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %31, ptr %54, align 8
|
|
%55 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %53, i32 0, i32 1
|
|
store ptr %52, ptr %55, align 8
|
|
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %53, i32 0, i32 2
|
|
store ptr @"main.(*errorString).Error", ptr %56, align 8
|
|
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Method", ptr %53, i32 0, i32 3
|
|
store ptr @"main.(*errorString).Error", ptr %57, align 8
|
|
%58 = load %"github.com/goplus/llgo/internal/abi.Method", ptr %53, align 8
|
|
%59 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 40)
|
|
%60 = getelementptr %"github.com/goplus/llgo/internal/abi.Method", ptr %59, i64 0
|
|
store %"github.com/goplus/llgo/internal/abi.Method" %58, ptr %60, align 8
|
|
%61 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
%62 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %61, i32 0, i32 0
|
|
store ptr %59, ptr %62, align 8
|
|
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %61, i32 0, i32 1
|
|
store i64 1, ptr %63, align 4
|
|
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %61, i32 0, i32 2
|
|
store i64 1, ptr %64, align 4
|
|
%65 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %61, align 8
|
|
%66 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %66, i32 0, i32 0
|
|
store ptr @2, ptr %67, align 8
|
|
%68 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %66, i32 0, i32 1
|
|
store i64 4, ptr %68, align 4
|
|
%69 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %66, align 8
|
|
%70 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
%71 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %70, i32 0, i32 0
|
|
store ptr @4, ptr %71, align 8
|
|
%72 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %70, i32 0, i32 1
|
|
store i64 11, ptr %72, align 4
|
|
%73 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %70, align 8
|
|
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %4, %"github.com/goplus/llgo/internal/runtime.String" %69, %"github.com/goplus/llgo/internal/runtime.String" %73, ptr %27, { ptr, i64, i64 } zeroinitializer, %"github.com/goplus/llgo/internal/runtime.Slice" %65)
|
|
%74 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %74, i32 0, i32 0
|
|
store ptr @0, ptr %75, align 8
|
|
%76 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %74, i32 0, i32 1
|
|
store i64 16, ptr %76, align 4
|
|
%77 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %74, align 8
|
|
%78 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %77, i64 25, i64 16, i64 0, i64 1)
|
|
%79 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %78)
|
|
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %79)
|
|
store ptr %79, ptr @"*_llgo_main.errorString", align 8
|
|
%80 = load ptr, ptr @"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to", align 8
|
|
%81 = load ptr, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8
|
|
%82 = icmp eq ptr %81, null
|
|
br i1 %82, label %_llgo_5, label %_llgo_6
|
|
|
|
_llgo_5: ; preds = %_llgo_4
|
|
%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 @3, ptr %84, align 8
|
|
%85 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %83, i32 0, i32 1
|
|
store i64 5, ptr %85, align 4
|
|
%86 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %83, align 8
|
|
%87 = alloca %"github.com/goplus/llgo/internal/abi.Imethod", align 8
|
|
%88 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %87, i32 0, i32 0
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %86, ptr %88, align 8
|
|
%89 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Imethod", ptr %87, i32 0, i32 1
|
|
store ptr %80, ptr %89, align 8
|
|
%90 = load %"github.com/goplus/llgo/internal/abi.Imethod", ptr %87, align 8
|
|
%91 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 24)
|
|
%92 = getelementptr %"github.com/goplus/llgo/internal/abi.Imethod", ptr %91, i64 0
|
|
store %"github.com/goplus/llgo/internal/abi.Imethod" %90, ptr %92, align 8
|
|
%93 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
%94 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %93, i32 0, i32 0
|
|
store ptr %91, ptr %94, align 8
|
|
%95 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %93, i32 0, i32 1
|
|
store i64 1, ptr %95, align 4
|
|
%96 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %93, i32 0, i32 2
|
|
store i64 1, ptr %96, align 4
|
|
%97 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %93, align 8
|
|
%98 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %98, i32 0, i32 0
|
|
store ptr @2, ptr %99, align 8
|
|
%100 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %98, i32 0, i32 1
|
|
store i64 4, ptr %100, align 4
|
|
%101 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %98, align 8
|
|
%102 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %102, i32 0, i32 0
|
|
store ptr null, ptr %103, align 8
|
|
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %102, i32 0, i32 1
|
|
store i64 0, ptr %104, align 4
|
|
%105 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %102, align 8
|
|
%106 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %101, %"github.com/goplus/llgo/internal/runtime.String" %105, %"github.com/goplus/llgo/internal/runtime.Slice" %97)
|
|
store ptr %106, ptr @"_llgo_iface$Fh8eUJ-Gw4e6TYuajcFIOSCuqSPKAt5nS4ow7xeGXEU", align 8
|
|
br label %_llgo_6
|
|
|
|
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
|
ret void
|
|
}
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64)
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice")
|
|
|
|
declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1)
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64)
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64)
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice")
|
|
|
|
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 void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr)
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr)
|
|
|
|
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 void @"github.com/goplus/llgo/internal/runtime.init"()
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/goplus/llgo/internal/runtime.iface")
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8)
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/internal/runtime.iface")
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String")
|