cl: regenerate test snapshots
This commit is contained in:
@@ -1,396 +1 @@
|
|||||||
; ModuleID = 'github.com/goplus/llgo/compiler/cl/_testgo/cgobasic'
|
;
|
||||||
source_filename = "github.com/goplus/llgo/compiler/cl/_testgo/cgobasic"
|
|
||||||
|
|
||||||
%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr }
|
|
||||||
%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 }
|
|
||||||
%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 }
|
|
||||||
%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr }
|
|
||||||
|
|
||||||
@"github.com/goplus/llgo/runtime/internal/runtime.cgoAlwaysFalse" = external global i1, align 1
|
|
||||||
@_cgo_217b74f897b2_Cfunc__Cmalloc = external global i8, align 1
|
|
||||||
@_cgo_217b74f897b2_Cfunc_cos = external global i8, align 1
|
|
||||||
@_cgo_217b74f897b2_Cfunc_free = external global i8, align 1
|
|
||||||
@_cgo_217b74f897b2_Cfunc_log = external global i8, align 1
|
|
||||||
@_cgo_217b74f897b2_Cfunc_puts = external global i8, align 1
|
|
||||||
@_cgo_217b74f897b2_Cfunc_sin = external global i8, align 1
|
|
||||||
@_cgo_217b74f897b2_Cfunc_sqrt = external global i8, align 1
|
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc__Cmalloc" = global ptr null, align 8
|
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_cos" = global ptr null, align 8
|
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_free" = global ptr null, align 8
|
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_log" = global ptr null, align 8
|
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_puts" = global ptr null, align 8
|
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_sin" = global ptr null, align 8
|
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_sqrt" = global ptr null, align 8
|
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.init$guard" = global i1 false, align 1
|
|
||||||
@0 = private unnamed_addr constant [13 x i8] c"Hello, World!", align 1
|
|
||||||
@1 = private unnamed_addr constant [29 x i8] c"Converted back to Go string: ", align 1
|
|
||||||
@2 = private unnamed_addr constant [23 x i8] c"Length-limited string: ", align 1
|
|
||||||
@3 = private unnamed_addr constant [33 x i8] c"Converted back to Go byte slice: ", align 1
|
|
||||||
@_llgo_float64 = linkonce global ptr null, align 8
|
|
||||||
@4 = private unnamed_addr constant [14 x i8] c"sqrt(%v) = %v\0A", align 1
|
|
||||||
@5 = private unnamed_addr constant [13 x i8] c"sin(%v) = %v\0A", align 1
|
|
||||||
@6 = private unnamed_addr constant [13 x i8] c"cos(%v) = %v\0A", align 1
|
|
||||||
@7 = private unnamed_addr constant [13 x i8] c"log(%v) = %v\0A", align 1
|
|
||||||
@_llgo_byte = linkonce global ptr null, align 8
|
|
||||||
@"[]_llgo_byte" = linkonce global ptr null, align 8
|
|
||||||
@_llgo_Pointer = linkonce global ptr null, align 8
|
|
||||||
|
|
||||||
define double @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_cos"(double %0) {
|
|
||||||
_llgo_0:
|
|
||||||
%1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
|
||||||
%2 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_cos", align 8
|
|
||||||
%3 = load ptr, ptr %2, align 8
|
|
||||||
%4 = call double %3(double %0)
|
|
||||||
ret double %4
|
|
||||||
}
|
|
||||||
|
|
||||||
define [0 x i8] @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_free"(ptr %0) {
|
|
||||||
_llgo_0:
|
|
||||||
%1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
|
||||||
%2 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_free", align 8
|
|
||||||
%3 = load ptr, ptr %2, align 8
|
|
||||||
%4 = call [0 x i8] %3(ptr %0)
|
|
||||||
ret [0 x i8] %4
|
|
||||||
}
|
|
||||||
|
|
||||||
define double @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_log"(double %0) {
|
|
||||||
_llgo_0:
|
|
||||||
%1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
|
||||||
%2 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_log", align 8
|
|
||||||
%3 = load ptr, ptr %2, align 8
|
|
||||||
%4 = call double %3(double %0)
|
|
||||||
ret double %4
|
|
||||||
}
|
|
||||||
|
|
||||||
define i32 @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_puts"(ptr %0) {
|
|
||||||
_llgo_0:
|
|
||||||
%1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
|
||||||
%2 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_puts", align 8
|
|
||||||
%3 = load ptr, ptr %2, align 8
|
|
||||||
%4 = call i32 %3(ptr %0)
|
|
||||||
ret i32 %4
|
|
||||||
}
|
|
||||||
|
|
||||||
define double @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_sin"(double %0) {
|
|
||||||
_llgo_0:
|
|
||||||
%1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
|
||||||
%2 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_sin", align 8
|
|
||||||
%3 = load ptr, ptr %2, align 8
|
|
||||||
%4 = call double %3(double %0)
|
|
||||||
ret double %4
|
|
||||||
}
|
|
||||||
|
|
||||||
define double @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_sqrt"(double %0) {
|
|
||||||
_llgo_0:
|
|
||||||
%1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
|
||||||
%2 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_sqrt", align 8
|
|
||||||
%3 = load ptr, ptr %2, align 8
|
|
||||||
%4 = call double %3(double %0)
|
|
||||||
ret double %4
|
|
||||||
}
|
|
||||||
|
|
||||||
define ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cgo_ptr"(ptr %0) {
|
|
||||||
_llgo_0:
|
|
||||||
ret ptr %0
|
|
||||||
}
|
|
||||||
|
|
||||||
declare void @runtime.cgoUse(%"github.com/goplus/llgo/runtime/internal/runtime.eface")
|
|
||||||
|
|
||||||
declare void @runtime.cgoCheckResult(%"github.com/goplus/llgo/runtime/internal/runtime.eface")
|
|
||||||
|
|
||||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.init"() {
|
|
||||||
_llgo_0:
|
|
||||||
%0 = load i1, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.init$guard", align 1
|
|
||||||
br i1 %0, label %_llgo_2, label %_llgo_1
|
|
||||||
|
|
||||||
_llgo_1: ; preds = %_llgo_0
|
|
||||||
store i1 true, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.init$guard", align 1
|
|
||||||
call void @syscall.init()
|
|
||||||
call void @fmt.init()
|
|
||||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.init$after"()
|
|
||||||
store ptr @_cgo_217b74f897b2_Cfunc_cos, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_cos", align 8
|
|
||||||
store ptr @_cgo_217b74f897b2_Cfunc_free, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_free", align 8
|
|
||||||
store ptr @_cgo_217b74f897b2_Cfunc_log, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_log", align 8
|
|
||||||
store ptr @_cgo_217b74f897b2_Cfunc_puts, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_puts", align 8
|
|
||||||
store ptr @_cgo_217b74f897b2_Cfunc_sin, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_sin", align 8
|
|
||||||
store ptr @_cgo_217b74f897b2_Cfunc_sqrt, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc_sqrt", align 8
|
|
||||||
store ptr @_cgo_217b74f897b2_Cfunc__Cmalloc, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._cgo_217b74f897b2_Cfunc__Cmalloc", align 8
|
|
||||||
br label %_llgo_2
|
|
||||||
|
|
||||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
|
||||||
ret void
|
|
||||||
}
|
|
||||||
|
|
||||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.main"() {
|
|
||||||
_llgo_0:
|
|
||||||
%0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
|
||||||
%1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.CString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 13 })
|
|
||||||
store ptr %1, ptr %0, align 8
|
|
||||||
%2 = load ptr, ptr %0, align 8
|
|
||||||
%3 = call i32 @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_puts"(ptr %2)
|
|
||||||
%4 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24)
|
|
||||||
%5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 4)
|
|
||||||
%6 = getelementptr inbounds i8, ptr %5, i64 0
|
|
||||||
store i8 65, ptr %6, align 1
|
|
||||||
%7 = getelementptr inbounds i8, ptr %5, i64 1
|
|
||||||
store i8 66, ptr %7, align 1
|
|
||||||
%8 = getelementptr inbounds i8, ptr %5, i64 2
|
|
||||||
store i8 67, ptr %8, align 1
|
|
||||||
%9 = getelementptr inbounds i8, ptr %5, i64 3
|
|
||||||
store i8 68, ptr %9, align 1
|
|
||||||
%10 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %5, 0
|
|
||||||
%11 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10, i64 4, 1
|
|
||||||
%12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %11, i64 4, 2
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %12, ptr %4, align 8
|
|
||||||
%13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
|
||||||
%14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8)
|
|
||||||
%15 = getelementptr inbounds { ptr }, ptr %14, i32 0, i32 0
|
|
||||||
store ptr %4, ptr %15, align 8
|
|
||||||
%16 = insertvalue { ptr, ptr } { ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.main$1", ptr undef }, ptr %14, 1
|
|
||||||
%17 = extractvalue { ptr, ptr } %16, 1
|
|
||||||
%18 = extractvalue { ptr, ptr } %16, 0
|
|
||||||
%19 = call ptr %18(ptr %17)
|
|
||||||
store ptr %19, ptr %13, align 8
|
|
||||||
%20 = load ptr, ptr %0, align 8
|
|
||||||
%21 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.GoString"(ptr %20)
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 29 })
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %21)
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
|
||||||
%22 = load ptr, ptr %0, align 8
|
|
||||||
%23 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.GoStringN"(ptr %22, i32 5)
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 23 })
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %23)
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
|
||||||
%24 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8)
|
|
||||||
%25 = getelementptr inbounds { ptr }, ptr %24, i32 0, i32 0
|
|
||||||
store ptr %13, ptr %25, align 8
|
|
||||||
%26 = insertvalue { ptr, ptr } { ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.main$2", ptr undef }, ptr %24, 1
|
|
||||||
%27 = extractvalue { ptr, ptr } %26, 1
|
|
||||||
%28 = extractvalue { ptr, ptr } %26, 0
|
|
||||||
%29 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %28(ptr %27)
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 33 })
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29)
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
|
||||||
%30 = call double @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_sqrt"(double 2.000000e+00)
|
|
||||||
%31 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32)
|
|
||||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %31, i64 0
|
|
||||||
%33 = load ptr, ptr @_llgo_float64, align 8
|
|
||||||
%34 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %33, 0
|
|
||||||
%35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %34, ptr inttoptr (i64 4611686018427387904 to ptr), 1
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %35, ptr %32, align 8
|
|
||||||
%36 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %31, i64 1
|
|
||||||
%37 = load ptr, ptr @_llgo_float64, align 8
|
|
||||||
%38 = bitcast double %30 to i64
|
|
||||||
%39 = inttoptr i64 %38 to ptr
|
|
||||||
%40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %37, 0
|
|
||||||
%41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %40, ptr %39, 1
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %41, ptr %36, align 8
|
|
||||||
%42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %31, 0
|
|
||||||
%43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %42, i64 2, 1
|
|
||||||
%44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %43, i64 2, 2
|
|
||||||
%45 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 14 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %44)
|
|
||||||
%46 = call double @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_sin"(double 2.000000e+00)
|
|
||||||
%47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32)
|
|
||||||
%48 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %47, i64 0
|
|
||||||
%49 = load ptr, ptr @_llgo_float64, align 8
|
|
||||||
%50 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %49, 0
|
|
||||||
%51 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %50, ptr inttoptr (i64 4611686018427387904 to ptr), 1
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %51, ptr %48, align 8
|
|
||||||
%52 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %47, i64 1
|
|
||||||
%53 = load ptr, ptr @_llgo_float64, align 8
|
|
||||||
%54 = bitcast double %46 to i64
|
|
||||||
%55 = inttoptr i64 %54 to ptr
|
|
||||||
%56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %53, 0
|
|
||||||
%57 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %56, ptr %55, 1
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %57, ptr %52, align 8
|
|
||||||
%58 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %47, 0
|
|
||||||
%59 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %58, i64 2, 1
|
|
||||||
%60 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %59, i64 2, 2
|
|
||||||
%61 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 13 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60)
|
|
||||||
%62 = call double @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_cos"(double 2.000000e+00)
|
|
||||||
%63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32)
|
|
||||||
%64 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %63, i64 0
|
|
||||||
%65 = load ptr, ptr @_llgo_float64, align 8
|
|
||||||
%66 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %65, 0
|
|
||||||
%67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %66, ptr inttoptr (i64 4611686018427387904 to ptr), 1
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %67, ptr %64, align 8
|
|
||||||
%68 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %63, i64 1
|
|
||||||
%69 = load ptr, ptr @_llgo_float64, align 8
|
|
||||||
%70 = bitcast double %62 to i64
|
|
||||||
%71 = inttoptr i64 %70 to ptr
|
|
||||||
%72 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %69, 0
|
|
||||||
%73 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %72, ptr %71, 1
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %73, ptr %68, align 8
|
|
||||||
%74 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %63, 0
|
|
||||||
%75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %74, i64 2, 1
|
|
||||||
%76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %75, i64 2, 2
|
|
||||||
%77 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 13 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %76)
|
|
||||||
%78 = call double @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_log"(double 2.000000e+00)
|
|
||||||
%79 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32)
|
|
||||||
%80 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %79, i64 0
|
|
||||||
%81 = load ptr, ptr @_llgo_float64, align 8
|
|
||||||
%82 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %81, 0
|
|
||||||
%83 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %82, ptr inttoptr (i64 4611686018427387904 to ptr), 1
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %83, ptr %80, align 8
|
|
||||||
%84 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %79, i64 1
|
|
||||||
%85 = load ptr, ptr @_llgo_float64, align 8
|
|
||||||
%86 = bitcast double %78 to i64
|
|
||||||
%87 = inttoptr i64 %86 to ptr
|
|
||||||
%88 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %85, 0
|
|
||||||
%89 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %88, ptr %87, 1
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %89, ptr %84, align 8
|
|
||||||
%90 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %79, 0
|
|
||||||
%91 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %90, i64 2, 1
|
|
||||||
%92 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %91, i64 2, 2
|
|
||||||
%93 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 13 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %92)
|
|
||||||
%94 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8)
|
|
||||||
%95 = getelementptr inbounds { ptr }, ptr %94, i32 0, i32 0
|
|
||||||
store ptr %0, ptr %95, align 8
|
|
||||||
%96 = insertvalue { ptr, ptr } { ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.main$3", ptr undef }, ptr %94, 1
|
|
||||||
%97 = extractvalue { ptr, ptr } %96, 1
|
|
||||||
%98 = extractvalue { ptr, ptr } %96, 0
|
|
||||||
call void %98(ptr %97)
|
|
||||||
%99 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8)
|
|
||||||
%100 = getelementptr inbounds { ptr }, ptr %99, i32 0, i32 0
|
|
||||||
store ptr %13, ptr %100, align 8
|
|
||||||
%101 = insertvalue { ptr, ptr } { ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.main$4", ptr undef }, ptr %99, 1
|
|
||||||
%102 = extractvalue { ptr, ptr } %101, 1
|
|
||||||
%103 = extractvalue { ptr, ptr } %101, 0
|
|
||||||
call void %103(ptr %102)
|
|
||||||
ret void
|
|
||||||
}
|
|
||||||
|
|
||||||
define ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.main$1"(ptr %0) {
|
|
||||||
_llgo_0:
|
|
||||||
%1 = load { ptr }, ptr %0, align 8
|
|
||||||
%2 = extractvalue { ptr } %1, 0
|
|
||||||
%3 = load %"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr %2, align 8
|
|
||||||
%4 = load ptr, ptr @_llgo_byte, align 8
|
|
||||||
%5 = load ptr, ptr @"[]_llgo_byte", align 8
|
|
||||||
%6 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24)
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3, ptr %6, align 8
|
|
||||||
%7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %5, 0
|
|
||||||
%8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %7, ptr %6, 1
|
|
||||||
%9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.CBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %3)
|
|
||||||
ret ptr %9
|
|
||||||
}
|
|
||||||
|
|
||||||
define %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.main$2"(ptr %0) {
|
|
||||||
_llgo_0:
|
|
||||||
%1 = load { ptr }, ptr %0, align 8
|
|
||||||
%2 = extractvalue { ptr } %1, 0
|
|
||||||
%3 = load ptr, ptr %2, align 8
|
|
||||||
%4 = load ptr, ptr @_llgo_Pointer, align 8
|
|
||||||
%5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0
|
|
||||||
%6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %3, 1
|
|
||||||
%7 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.GoBytes"(ptr %3, i32 4)
|
|
||||||
ret %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7
|
|
||||||
}
|
|
||||||
|
|
||||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.main$3"(ptr %0) {
|
|
||||||
_llgo_0:
|
|
||||||
%1 = load { ptr }, ptr %0, align 8
|
|
||||||
%2 = extractvalue { ptr } %1, 0
|
|
||||||
%3 = load ptr, ptr %2, align 8
|
|
||||||
%4 = load ptr, ptr @_llgo_Pointer, align 8
|
|
||||||
%5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0
|
|
||||||
%6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %3, 1
|
|
||||||
%7 = call [0 x i8] @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_free"(ptr %3)
|
|
||||||
ret void
|
|
||||||
}
|
|
||||||
|
|
||||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.main$4"(ptr %0) {
|
|
||||||
_llgo_0:
|
|
||||||
%1 = load { ptr }, ptr %0, align 8
|
|
||||||
%2 = extractvalue { ptr } %1, 0
|
|
||||||
%3 = load ptr, ptr %2, align 8
|
|
||||||
%4 = load ptr, ptr @_llgo_Pointer, align 8
|
|
||||||
%5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0
|
|
||||||
%6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %3, 1
|
|
||||||
%7 = call [0 x i8] @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic._Cfunc_free"(ptr %3)
|
|
||||||
ret void
|
|
||||||
}
|
|
||||||
|
|
||||||
declare void @runtime.throw(%"github.com/goplus/llgo/runtime/internal/runtime.String")
|
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64)
|
|
||||||
|
|
||||||
declare void @syscall.init()
|
|
||||||
|
|
||||||
declare void @fmt.init()
|
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.CString"(%"github.com/goplus/llgo/runtime/internal/runtime.String")
|
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64)
|
|
||||||
|
|
||||||
declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.GoString"(ptr)
|
|
||||||
|
|
||||||
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String")
|
|
||||||
|
|
||||||
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8)
|
|
||||||
|
|
||||||
declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.GoStringN"(ptr, i64)
|
|
||||||
|
|
||||||
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice")
|
|
||||||
|
|
||||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/cgobasic.init$after"() {
|
|
||||||
_llgo_0:
|
|
||||||
%0 = load ptr, ptr @_llgo_float64, 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/runtime/internal/runtime.Basic"(i64 46)
|
|
||||||
store ptr %2, ptr @_llgo_float64, align 8
|
|
||||||
br label %_llgo_2
|
|
||||||
|
|
||||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
|
||||||
%3 = load ptr, ptr @_llgo_byte, align 8
|
|
||||||
%4 = icmp eq ptr %3, null
|
|
||||||
br i1 %4, label %_llgo_3, label %_llgo_4
|
|
||||||
|
|
||||||
_llgo_3: ; preds = %_llgo_2
|
|
||||||
%5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
|
||||||
store ptr %5, ptr @_llgo_byte, align 8
|
|
||||||
br label %_llgo_4
|
|
||||||
|
|
||||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
|
||||||
%6 = load ptr, ptr @"[]_llgo_byte", align 8
|
|
||||||
%7 = icmp eq ptr %6, null
|
|
||||||
br i1 %7, label %_llgo_5, label %_llgo_6
|
|
||||||
|
|
||||||
_llgo_5: ; preds = %_llgo_4
|
|
||||||
%8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
|
||||||
%9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %8)
|
|
||||||
store ptr %9, ptr @"[]_llgo_byte", align 8
|
|
||||||
br label %_llgo_6
|
|
||||||
|
|
||||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
|
||||||
%10 = load ptr, ptr @_llgo_Pointer, align 8
|
|
||||||
%11 = icmp eq ptr %10, null
|
|
||||||
br i1 %11, label %_llgo_7, label %_llgo_8
|
|
||||||
|
|
||||||
_llgo_7: ; preds = %_llgo_6
|
|
||||||
%12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 58)
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %12)
|
|
||||||
store ptr %12, ptr @_llgo_Pointer, align 8
|
|
||||||
br label %_llgo_8
|
|
||||||
|
|
||||||
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
|
||||||
ret void
|
|
||||||
}
|
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64)
|
|
||||||
|
|
||||||
declare { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Printf(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.Slice")
|
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr)
|
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.CBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice")
|
|
||||||
|
|
||||||
declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr)
|
|
||||||
|
|
||||||
declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.GoBytes"(ptr, i64)
|
|
||||||
@@ -1,171 +1 @@
|
|||||||
; ModuleID = 'github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles'
|
;
|
||||||
source_filename = "github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles"
|
|
||||||
|
|
||||||
%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr }
|
|
||||||
%"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___3" = type { i32 }
|
|
||||||
%"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___4" = type { i32, i32 }
|
|
||||||
%"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___0" = type { i32, i32, i32 }
|
|
||||||
%"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___1" = type { i32, i32, i32, i32 }
|
|
||||||
%"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___2" = type { i32, i32, i32, i32, i32 }
|
|
||||||
%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 }
|
|
||||||
%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr }
|
|
||||||
%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 }
|
|
||||||
|
|
||||||
@"github.com/goplus/llgo/runtime/internal/runtime.cgoAlwaysFalse" = external global i1, align 1
|
|
||||||
@_cgo_023ff89410ef_Cfunc_test_structs = external global i8, align 1
|
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._cgo_023ff89410ef_Cfunc_test_structs" = global ptr null, align 8
|
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles.init$guard" = global i1 false, align 1
|
|
||||||
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_int" = linkonce global ptr null, align 8
|
|
||||||
@0 = private unnamed_addr constant [52 x i8] c"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles", align 1
|
|
||||||
@1 = private unnamed_addr constant [10 x i8] c"_Ctype_int", align 1
|
|
||||||
@_llgo_int32 = linkonce global ptr null, align 8
|
|
||||||
@2 = private unnamed_addr constant [19 x i8] c"test_structs failed", align 1
|
|
||||||
@_llgo_string = linkonce global ptr null, align 8
|
|
||||||
|
|
||||||
define i32 @"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Cfunc_test_structs"(ptr %0, ptr %1, ptr %2, ptr %3, ptr %4) {
|
|
||||||
_llgo_0:
|
|
||||||
%5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
|
||||||
%6 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._cgo_023ff89410ef_Cfunc_test_structs", align 8
|
|
||||||
%7 = load ptr, ptr %6, align 8
|
|
||||||
%8 = call i32 %7(ptr %0, ptr %1, ptr %2, ptr %3, ptr %4)
|
|
||||||
ret i32 %8
|
|
||||||
}
|
|
||||||
|
|
||||||
define ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Cgo_ptr"(ptr %0) {
|
|
||||||
_llgo_0:
|
|
||||||
ret ptr %0
|
|
||||||
}
|
|
||||||
|
|
||||||
declare void @runtime.cgoUse(%"github.com/goplus/llgo/runtime/internal/runtime.eface")
|
|
||||||
|
|
||||||
declare void @runtime.cgoCheckResult(%"github.com/goplus/llgo/runtime/internal/runtime.eface")
|
|
||||||
|
|
||||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles.init"() {
|
|
||||||
_llgo_0:
|
|
||||||
%0 = load i1, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles.init$guard", align 1
|
|
||||||
br i1 %0, label %_llgo_2, label %_llgo_1
|
|
||||||
|
|
||||||
_llgo_1: ; preds = %_llgo_0
|
|
||||||
store i1 true, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles.init$guard", align 1
|
|
||||||
call void @syscall.init()
|
|
||||||
call void @fmt.init()
|
|
||||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles.init$after"()
|
|
||||||
store ptr @_cgo_023ff89410ef_Cfunc_test_structs, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._cgo_023ff89410ef_Cfunc_test_structs", align 8
|
|
||||||
br label %_llgo_2
|
|
||||||
|
|
||||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
|
||||||
ret void
|
|
||||||
}
|
|
||||||
|
|
||||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles.main"() {
|
|
||||||
_llgo_0:
|
|
||||||
%0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 4)
|
|
||||||
%1 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___3", ptr %0, i32 0, i32 0
|
|
||||||
store i32 1, ptr %1, align 4
|
|
||||||
%2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
|
||||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___4", ptr %2, i32 0, i32 0
|
|
||||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___4", ptr %2, i32 0, i32 1
|
|
||||||
store i32 1, ptr %3, align 4
|
|
||||||
store i32 2, ptr %4, align 4
|
|
||||||
%5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 12)
|
|
||||||
%6 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___0", ptr %5, i32 0, i32 0
|
|
||||||
%7 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___0", ptr %5, i32 0, i32 1
|
|
||||||
%8 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___0", ptr %5, i32 0, i32 2
|
|
||||||
store i32 1, ptr %6, align 4
|
|
||||||
store i32 2, ptr %7, align 4
|
|
||||||
store i32 3, ptr %8, align 4
|
|
||||||
%9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16)
|
|
||||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___1", ptr %9, i32 0, i32 0
|
|
||||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___1", ptr %9, i32 0, i32 1
|
|
||||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___1", ptr %9, i32 0, i32 2
|
|
||||||
%13 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___1", ptr %9, i32 0, i32 3
|
|
||||||
store i32 1, ptr %10, align 4
|
|
||||||
store i32 2, ptr %11, align 4
|
|
||||||
store i32 3, ptr %12, align 4
|
|
||||||
store i32 4, ptr %13, align 4
|
|
||||||
%14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 20)
|
|
||||||
%15 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___2", ptr %14, i32 0, i32 0
|
|
||||||
%16 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___2", ptr %14, i32 0, i32 1
|
|
||||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___2", ptr %14, i32 0, i32 2
|
|
||||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___2", ptr %14, i32 0, i32 3
|
|
||||||
%19 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_struct___2", ptr %14, i32 0, i32 4
|
|
||||||
store i32 1, ptr %15, align 4
|
|
||||||
store i32 2, ptr %16, align 4
|
|
||||||
store i32 3, ptr %17, align 4
|
|
||||||
store i32 4, ptr %18, align 4
|
|
||||||
store i32 5, ptr %19, align 4
|
|
||||||
%20 = call i32 @"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Cfunc_test_structs"(ptr %0, ptr %2, ptr %5, ptr %9, ptr %14)
|
|
||||||
%21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16)
|
|
||||||
%22 = getelementptr inbounds %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %21, i64 0
|
|
||||||
%23 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_int", align 8
|
|
||||||
%24 = sext i32 %20 to i64
|
|
||||||
%25 = inttoptr i64 %24 to ptr
|
|
||||||
%26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %23, 0
|
|
||||||
%27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %26, ptr %25, 1
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %27, ptr %22, align 8
|
|
||||||
%28 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %21, 0
|
|
||||||
%29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %28, i64 1, 1
|
|
||||||
%30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, i64 1, 2
|
|
||||||
%31 = call { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Println(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30)
|
|
||||||
%32 = icmp ne i32 %20, 35
|
|
||||||
br i1 %32, label %_llgo_1, label %_llgo_2
|
|
||||||
|
|
||||||
_llgo_1: ; preds = %_llgo_0
|
|
||||||
%33 = load ptr, ptr @_llgo_string, align 8
|
|
||||||
%34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16)
|
|
||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 19 }, ptr %34, align 8
|
|
||||||
%35 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %33, 0
|
|
||||||
%36 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %35, ptr %34, 1
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %36)
|
|
||||||
unreachable
|
|
||||||
|
|
||||||
_llgo_2: ; preds = %_llgo_0
|
|
||||||
ret void
|
|
||||||
}
|
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64)
|
|
||||||
|
|
||||||
declare void @syscall.init()
|
|
||||||
|
|
||||||
declare void @fmt.init()
|
|
||||||
|
|
||||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles.init$after"() {
|
|
||||||
_llgo_0:
|
|
||||||
%0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 52 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 10 }, i64 5, i64 4, i64 0, i64 0)
|
|
||||||
store ptr %0, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/cgocfiles._Ctype_int", align 8
|
|
||||||
%1 = load ptr, ptr @_llgo_int32, align 8
|
|
||||||
%2 = icmp eq ptr %1, null
|
|
||||||
br i1 %2, label %_llgo_1, label %_llgo_2
|
|
||||||
|
|
||||||
_llgo_1: ; preds = %_llgo_0
|
|
||||||
%3 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 37)
|
|
||||||
store ptr %3, ptr @_llgo_int32, align 8
|
|
||||||
br label %_llgo_2
|
|
||||||
|
|
||||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
|
||||||
%4 = load ptr, ptr @_llgo_int32, align 8
|
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %0, ptr %4, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
|
||||||
%5 = load ptr, ptr @_llgo_string, align 8
|
|
||||||
%6 = icmp eq ptr %5, null
|
|
||||||
br i1 %6, label %_llgo_3, label %_llgo_4
|
|
||||||
|
|
||||||
_llgo_3: ; preds = %_llgo_2
|
|
||||||
%7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 24)
|
|
||||||
store ptr %7, ptr @_llgo_string, align 8
|
|
||||||
br label %_llgo_4
|
|
||||||
|
|
||||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
|
||||||
ret void
|
|
||||||
}
|
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64, i64, i64)
|
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64)
|
|
||||||
|
|
||||||
declare void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr, ptr, %"github.com/goplus/llgo/runtime/internal/runtime.Slice", %"github.com/goplus/llgo/runtime/internal/runtime.Slice")
|
|
||||||
|
|
||||||
declare { i64, %"github.com/goplus/llgo/runtime/internal/runtime.iface" } @fmt.Println(%"github.com/goplus/llgo/runtime/internal/runtime.Slice")
|
|
||||||
|
|
||||||
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64)
|
|
||||||
|
|
||||||
declare void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface")
|
|
||||||
@@ -21,15 +21,15 @@ source_filename = "github.com/goplus/llgo/compiler/cl/_testgo/reader"
|
|||||||
@1 = private unnamed_addr constant [8 x i8] c"WriterTo", align 1
|
@1 = private unnamed_addr constant [8 x i8] c"WriterTo", align 1
|
||||||
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.Writer" = linkonce global ptr null, align 8
|
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.Writer" = linkonce global ptr null, align 8
|
||||||
@2 = private unnamed_addr constant [6 x i8] c"Writer", align 1
|
@2 = private unnamed_addr constant [6 x i8] c"Writer", align 1
|
||||||
@_llgo_byte = linkonce global ptr null, align 8
|
@_llgo_uint8 = linkonce global ptr null, align 8
|
||||||
@"[]_llgo_byte" = linkonce global ptr null, align 8
|
@"[]_llgo_uint8" = linkonce global ptr null, align 8
|
||||||
@_llgo_int = linkonce global ptr null, align 8
|
@_llgo_int = linkonce global ptr null, align 8
|
||||||
@_llgo_error = linkonce global ptr null, align 8
|
@_llgo_error = linkonce global ptr null, align 8
|
||||||
@3 = private unnamed_addr constant [5 x i8] c"error", align 1
|
@3 = private unnamed_addr constant [5 x i8] c"error", align 1
|
||||||
@_llgo_string = linkonce global ptr null, align 8
|
@_llgo_string = linkonce global ptr null, align 8
|
||||||
@"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to" = linkonce global ptr null, align 8
|
@"_llgo_func$zNDVRsWTIpUPKouNUS805RGX--IV9qVK8B31IZbg5to" = linkonce global ptr null, align 8
|
||||||
@4 = private unnamed_addr constant [5 x i8] c"Error", align 1
|
@4 = private unnamed_addr constant [5 x i8] c"Error", align 1
|
||||||
@"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY" = linkonce global ptr null, align 8
|
@"_llgo_func$G2hch9Iy9DrhKKsg70PbL54bK-XSl-1IUUORN17J2Dk" = linkonce global ptr null, align 8
|
||||||
@5 = private unnamed_addr constant [5 x i8] c"Write", align 1
|
@5 = private unnamed_addr constant [5 x i8] c"Write", align 1
|
||||||
@_llgo_int64 = linkonce global ptr null, align 8
|
@_llgo_int64 = linkonce global ptr null, align 8
|
||||||
@"_llgo_func$-AbPruiRubbHNU-z4sJm4RCuzmjax87Xu2vXpjP2-tg" = linkonce global ptr null, align 8
|
@"_llgo_func$-AbPruiRubbHNU-z4sJm4RCuzmjax87Xu2vXpjP2-tg" = linkonce global ptr null, align 8
|
||||||
@@ -43,7 +43,7 @@ source_filename = "github.com/goplus/llgo/compiler/cl/_testgo/reader"
|
|||||||
@"_llgo_struct$zCmlqK6oRFYpWtMvv6Pe6GqaMY8pH8Js9Fj6dqbrNYo" = linkonce global ptr null, align 8
|
@"_llgo_struct$zCmlqK6oRFYpWtMvv6Pe6GqaMY8pH8Js9Fj6dqbrNYo" = linkonce global ptr null, align 8
|
||||||
@10 = private unnamed_addr constant [5 x i8] c"Close", align 1
|
@10 = private unnamed_addr constant [5 x i8] c"Close", align 1
|
||||||
@"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w" = linkonce global ptr null, align 8
|
@"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w" = linkonce global ptr null, align 8
|
||||||
@"_llgo_iface$L2Ik-AJcd0jsoBw5fQ07pQpfUM-kh78Wn2bOeak6M3I" = linkonce global ptr null, align 8
|
@"_llgo_iface$2bmbYDBStAIdmbXPPn7qIaCcpVcj2I5k6AqgqwAfh84" = linkonce global ptr null, align 8
|
||||||
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloser" = linkonce global ptr null, align 8
|
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloser" = linkonce global ptr null, align 8
|
||||||
@11 = private unnamed_addr constant [9 x i8] c"nopCloser", align 1
|
@11 = private unnamed_addr constant [9 x i8] c"nopCloser", align 1
|
||||||
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.StringWriter" = linkonce global ptr null, align 8
|
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.StringWriter" = linkonce global ptr null, align 8
|
||||||
@@ -63,9 +63,9 @@ source_filename = "github.com/goplus/llgo/compiler/cl/_testgo/reader"
|
|||||||
@21 = private unnamed_addr constant [3 x i8] c"Len", align 1
|
@21 = private unnamed_addr constant [3 x i8] c"Len", align 1
|
||||||
@"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA" = linkonce global ptr null, align 8
|
@"_llgo_func$ETeB8WwW04JEq0ztcm-XPTJtuYvtpkjIsAc0-2NT9zA" = linkonce global ptr null, align 8
|
||||||
@22 = private unnamed_addr constant [6 x i8] c"ReadAt", align 1
|
@22 = private unnamed_addr constant [6 x i8] c"ReadAt", align 1
|
||||||
@"_llgo_func$TY5Etv7VBKM_-2um1BDEeQEE2lP06Pt6G54EuKiNC3c" = linkonce global ptr null, align 8
|
@"_llgo_func$QoHVzMQ4PMXOd5kbZvdARJn-o_00R6hNyf6LoVk3X_4" = linkonce global ptr null, align 8
|
||||||
@23 = private unnamed_addr constant [8 x i8] c"ReadByte", align 1
|
@23 = private unnamed_addr constant [8 x i8] c"ReadByte", align 1
|
||||||
@"_llgo_func$6bvVpCcGPUc3z_EmsQTHB0AVT1hP5-NNLVRgm43teCM" = linkonce global ptr null, align 8
|
@"_llgo_func$lukqSsfDYBoIp_R8GMojGkZnrYDqaq2iHn8RkCjW7iQ" = linkonce global ptr null, align 8
|
||||||
@24 = private unnamed_addr constant [8 x i8] c"ReadRune", align 1
|
@24 = private unnamed_addr constant [8 x i8] c"ReadRune", align 1
|
||||||
@_llgo_rune = linkonce global ptr null, align 8
|
@_llgo_rune = linkonce global ptr null, align 8
|
||||||
@"_llgo_func$CB0CO6hV_feSzhi4pz1P4omza2fKNK930wvOR1T33fU" = linkonce global ptr null, align 8
|
@"_llgo_func$CB0CO6hV_feSzhi4pz1P4omza2fKNK930wvOR1T33fU" = linkonce global ptr null, align 8
|
||||||
@@ -76,7 +76,7 @@ source_filename = "github.com/goplus/llgo/compiler/cl/_testgo/reader"
|
|||||||
@27 = private unnamed_addr constant [10 x i8] c"UnreadByte", align 1
|
@27 = private unnamed_addr constant [10 x i8] c"UnreadByte", align 1
|
||||||
@28 = private unnamed_addr constant [10 x i8] c"UnreadRune", align 1
|
@28 = private unnamed_addr constant [10 x i8] c"UnreadRune", align 1
|
||||||
@"*_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.stringReader" = linkonce global ptr null, align 8
|
@"*_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.stringReader" = linkonce global ptr null, align 8
|
||||||
@"_llgo_iface$OFO8Us9n8ajWCabGedeuoJ-Za2zAMk4Jh0FunAcUCFE" = linkonce global ptr null, align 8
|
@"_llgo_iface$uycIKA3bbxRhudEjW1hHKWKdLqHQsCVy8NdW1bkQmNw" = linkonce global ptr null, align 8
|
||||||
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.errorString" = linkonce global ptr null, align 8
|
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.errorString" = linkonce global ptr null, align 8
|
||||||
@29 = private unnamed_addr constant [11 x i8] c"errorString", align 1
|
@29 = private unnamed_addr constant [11 x i8] c"errorString", align 1
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/reader.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ" = linkonce global ptr null, align 8
|
@"github.com/goplus/llgo/compiler/cl/_testgo/reader.struct$QTufDJA9wEDzuzgkA-ZSrLqW-B6lWN8O25mTSglAoLQ" = linkonce global ptr null, align 8
|
||||||
@@ -108,7 +108,7 @@ _llgo_1: ; preds = %_llgo_5
|
|||||||
%8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16)
|
%8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16)
|
||||||
store %"github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloserWriterTo" %6, ptr %8, align 8
|
store %"github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloserWriterTo" %6, ptr %8, align 8
|
||||||
%9 = load ptr, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8
|
%9 = load ptr, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8
|
||||||
%10 = load ptr, ptr @"_llgo_iface$L2Ik-AJcd0jsoBw5fQ07pQpfUM-kh78Wn2bOeak6M3I", align 8
|
%10 = load ptr, ptr @"_llgo_iface$2bmbYDBStAIdmbXPPn7qIaCcpVcj2I5k6AqgqwAfh84", align 8
|
||||||
%11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %10, ptr %7)
|
%11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %10, ptr %7)
|
||||||
%12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %11, 0
|
%12 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %11, 0
|
||||||
%13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %12, ptr %8, 1
|
%13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %12, ptr %8, 1
|
||||||
@@ -123,7 +123,7 @@ _llgo_2: ; preds = %_llgo_5
|
|||||||
%17 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloser", align 8
|
%17 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloser", align 8
|
||||||
%18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16)
|
%18 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16)
|
||||||
store %"github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloser" %16, ptr %18, align 8
|
store %"github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloser" %16, ptr %18, align 8
|
||||||
%19 = load ptr, ptr @"_llgo_iface$L2Ik-AJcd0jsoBw5fQ07pQpfUM-kh78Wn2bOeak6M3I", align 8
|
%19 = load ptr, ptr @"_llgo_iface$2bmbYDBStAIdmbXPPn7qIaCcpVcj2I5k6AqgqwAfh84", align 8
|
||||||
%20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %19, ptr %17)
|
%20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %19, ptr %17)
|
||||||
%21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %20, 0
|
%21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %20, 0
|
||||||
%22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %21, ptr %18, 1
|
%22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %21, ptr %18, 1
|
||||||
@@ -327,7 +327,7 @@ _llgo_0:
|
|||||||
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @16, i64 11 }, ptr %1, align 8
|
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @16, i64 11 }, ptr %1, align 8
|
||||||
%2 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.stringReader", align 8
|
%2 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.stringReader", align 8
|
||||||
%3 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.stringReader", align 8
|
%3 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.stringReader", align 8
|
||||||
%4 = load ptr, ptr @"_llgo_iface$OFO8Us9n8ajWCabGedeuoJ-Za2zAMk4Jh0FunAcUCFE", align 8
|
%4 = load ptr, ptr @"_llgo_iface$uycIKA3bbxRhudEjW1hHKWKdLqHQsCVy8NdW1bkQmNw", align 8
|
||||||
%5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %4, ptr %3)
|
%5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %4, ptr %3)
|
||||||
%6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %5, 0
|
%6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %5, 0
|
||||||
%7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %6, ptr %0, 1
|
%7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %6, ptr %0, 1
|
||||||
@@ -944,29 +944,29 @@ _llgo_3: ; preds = %_llgo_2
|
|||||||
br label %_llgo_4
|
br label %_llgo_4
|
||||||
|
|
||||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||||
%6 = load ptr, ptr @_llgo_byte, align 8
|
%6 = load ptr, ptr @_llgo_uint8, align 8
|
||||||
%7 = icmp eq ptr %6, null
|
%7 = icmp eq ptr %6, null
|
||||||
br i1 %7, label %_llgo_5, label %_llgo_6
|
br i1 %7, label %_llgo_5, label %_llgo_6
|
||||||
|
|
||||||
_llgo_5: ; preds = %_llgo_4
|
_llgo_5: ; preds = %_llgo_4
|
||||||
%8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
%8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
||||||
store ptr %8, ptr @_llgo_byte, align 8
|
store ptr %8, ptr @_llgo_uint8, align 8
|
||||||
br label %_llgo_6
|
br label %_llgo_6
|
||||||
|
|
||||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||||
%9 = load ptr, ptr @_llgo_byte, align 8
|
%9 = load ptr, ptr @_llgo_uint8, align 8
|
||||||
%10 = load ptr, ptr @"[]_llgo_byte", align 8
|
%10 = load ptr, ptr @"[]_llgo_uint8", align 8
|
||||||
%11 = icmp eq ptr %10, null
|
%11 = icmp eq ptr %10, null
|
||||||
br i1 %11, label %_llgo_7, label %_llgo_8
|
br i1 %11, label %_llgo_7, label %_llgo_8
|
||||||
|
|
||||||
_llgo_7: ; preds = %_llgo_6
|
_llgo_7: ; preds = %_llgo_6
|
||||||
%12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
%12 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
||||||
%13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %12)
|
%13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %12)
|
||||||
store ptr %13, ptr @"[]_llgo_byte", align 8
|
store ptr %13, ptr @"[]_llgo_uint8", align 8
|
||||||
br label %_llgo_8
|
br label %_llgo_8
|
||||||
|
|
||||||
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||||
%14 = load ptr, ptr @"[]_llgo_byte", align 8
|
%14 = load ptr, ptr @"[]_llgo_uint8", align 8
|
||||||
%15 = load ptr, ptr @_llgo_int, align 8
|
%15 = load ptr, ptr @_llgo_int, align 8
|
||||||
%16 = icmp eq ptr %15, null
|
%16 = icmp eq ptr %15, null
|
||||||
br i1 %16, label %_llgo_9, label %_llgo_10
|
br i1 %16, label %_llgo_9, label %_llgo_10
|
||||||
@@ -1037,10 +1037,10 @@ _llgo_17: ; preds = %_llgo_16
|
|||||||
|
|
||||||
_llgo_18: ; preds = %_llgo_17, %_llgo_16
|
_llgo_18: ; preds = %_llgo_17, %_llgo_16
|
||||||
%46 = load ptr, ptr @_llgo_error, align 8
|
%46 = load ptr, ptr @_llgo_error, align 8
|
||||||
%47 = load ptr, ptr @"[]_llgo_byte", align 8
|
%47 = load ptr, ptr @"[]_llgo_uint8", align 8
|
||||||
%48 = load ptr, ptr @_llgo_int, align 8
|
%48 = load ptr, ptr @_llgo_int, align 8
|
||||||
%49 = load ptr, ptr @_llgo_error, align 8
|
%49 = load ptr, ptr @_llgo_error, align 8
|
||||||
%50 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8
|
%50 = load ptr, ptr @"_llgo_func$G2hch9Iy9DrhKKsg70PbL54bK-XSl-1IUUORN17J2Dk", align 8
|
||||||
%51 = icmp eq ptr %50, null
|
%51 = icmp eq ptr %50, null
|
||||||
br i1 %51, label %_llgo_19, label %_llgo_20
|
br i1 %51, label %_llgo_19, label %_llgo_20
|
||||||
|
|
||||||
@@ -1061,11 +1061,11 @@ _llgo_19: ; preds = %_llgo_18
|
|||||||
%62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, i64 2, 2
|
%62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %61, i64 2, 2
|
||||||
%63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, i1 false)
|
%63 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, i1 false)
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %63)
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %63)
|
||||||
store ptr %63, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8
|
store ptr %63, ptr @"_llgo_func$G2hch9Iy9DrhKKsg70PbL54bK-XSl-1IUUORN17J2Dk", align 8
|
||||||
br label %_llgo_20
|
br label %_llgo_20
|
||||||
|
|
||||||
_llgo_20: ; preds = %_llgo_19, %_llgo_18
|
_llgo_20: ; preds = %_llgo_19, %_llgo_18
|
||||||
%64 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8
|
%64 = load ptr, ptr @"_llgo_func$G2hch9Iy9DrhKKsg70PbL54bK-XSl-1IUUORN17J2Dk", align 8
|
||||||
br i1 %5, label %_llgo_21, label %_llgo_22
|
br i1 %5, label %_llgo_21, label %_llgo_22
|
||||||
|
|
||||||
_llgo_21: ; preds = %_llgo_20
|
_llgo_21: ; preds = %_llgo_20
|
||||||
@@ -1165,8 +1165,8 @@ _llgo_31: ; preds = %_llgo_30
|
|||||||
br label %_llgo_32
|
br label %_llgo_32
|
||||||
|
|
||||||
_llgo_32: ; preds = %_llgo_31, %_llgo_30
|
_llgo_32: ; preds = %_llgo_31, %_llgo_30
|
||||||
%114 = load ptr, ptr @"[]_llgo_byte", align 8
|
%114 = load ptr, ptr @"[]_llgo_uint8", align 8
|
||||||
%115 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8
|
%115 = load ptr, ptr @"_llgo_func$G2hch9Iy9DrhKKsg70PbL54bK-XSl-1IUUORN17J2Dk", align 8
|
||||||
br i1 %113, label %_llgo_33, label %_llgo_34
|
br i1 %113, label %_llgo_33, label %_llgo_34
|
||||||
|
|
||||||
_llgo_33: ; preds = %_llgo_32
|
_llgo_33: ; preds = %_llgo_32
|
||||||
@@ -1222,7 +1222,7 @@ _llgo_36: ; preds = %_llgo_35, %_llgo_34
|
|||||||
%149 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %145, 1
|
%149 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %145, 1
|
||||||
%150 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %149, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloserWriterTo).Close", 2
|
%150 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %149, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloserWriterTo).Close", 2
|
||||||
%151 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %150, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloserWriterTo.Close", 3
|
%151 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %150, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloserWriterTo.Close", 3
|
||||||
%152 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8
|
%152 = load ptr, ptr @"_llgo_func$G2hch9Iy9DrhKKsg70PbL54bK-XSl-1IUUORN17J2Dk", align 8
|
||||||
%153 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %152, 1
|
%153 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %152, 1
|
||||||
%154 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %153, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloserWriterTo).Read", 2
|
%154 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %153, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloserWriterTo).Read", 2
|
||||||
%155 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %154, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloserWriterTo).Read", 3
|
%155 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %154, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloserWriterTo).Read", 3
|
||||||
@@ -1258,8 +1258,8 @@ _llgo_36: ; preds = %_llgo_35, %_llgo_34
|
|||||||
%179 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %178, i64 3, 2
|
%179 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %178, i64 3, 2
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %110, ptr %131, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %172, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %179)
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %110, ptr %131, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %172, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %179)
|
||||||
%180 = load ptr, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8
|
%180 = load ptr, ptr @"_llgo_func$8rsrSd_r3UHd_2DiYTyaOKR7BYkei4zw5ysG35KF38w", align 8
|
||||||
%181 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8
|
%181 = load ptr, ptr @"_llgo_func$G2hch9Iy9DrhKKsg70PbL54bK-XSl-1IUUORN17J2Dk", align 8
|
||||||
%182 = load ptr, ptr @"_llgo_iface$L2Ik-AJcd0jsoBw5fQ07pQpfUM-kh78Wn2bOeak6M3I", align 8
|
%182 = load ptr, ptr @"_llgo_iface$2bmbYDBStAIdmbXPPn7qIaCcpVcj2I5k6AqgqwAfh84", align 8
|
||||||
%183 = icmp eq ptr %182, null
|
%183 = icmp eq ptr %182, null
|
||||||
br i1 %183, label %_llgo_37, label %_llgo_38
|
br i1 %183, label %_llgo_37, label %_llgo_38
|
||||||
|
|
||||||
@@ -1275,7 +1275,7 @@ _llgo_37: ; preds = %_llgo_36
|
|||||||
%190 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %189, i64 2, 1
|
%190 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %189, i64 2, 1
|
||||||
%191 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %190, i64 2, 2
|
%191 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %190, i64 2, 2
|
||||||
%192 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 49 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %191)
|
%192 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 49 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %191)
|
||||||
store ptr %192, ptr @"_llgo_iface$L2Ik-AJcd0jsoBw5fQ07pQpfUM-kh78Wn2bOeak6M3I", align 8
|
store ptr %192, ptr @"_llgo_iface$2bmbYDBStAIdmbXPPn7qIaCcpVcj2I5k6AqgqwAfh84", align 8
|
||||||
br label %_llgo_38
|
br label %_llgo_38
|
||||||
|
|
||||||
_llgo_38: ; preds = %_llgo_37, %_llgo_36
|
_llgo_38: ; preds = %_llgo_37, %_llgo_36
|
||||||
@@ -1289,7 +1289,7 @@ _llgo_38: ; preds = %_llgo_37, %_llgo_36
|
|||||||
%199 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %195, 1
|
%199 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @10, i64 5 }, ptr undef, ptr undef, ptr undef }, ptr %195, 1
|
||||||
%200 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %199, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloser).Close", 2
|
%200 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %199, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloser).Close", 2
|
||||||
%201 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %200, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloser.Close", 3
|
%201 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %200, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.nopCloser.Close", 3
|
||||||
%202 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8
|
%202 = load ptr, ptr @"_llgo_func$G2hch9Iy9DrhKKsg70PbL54bK-XSl-1IUUORN17J2Dk", align 8
|
||||||
%203 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %202, 1
|
%203 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %202, 1
|
||||||
%204 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %203, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloser).Read", 2
|
%204 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %203, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloser).Read", 2
|
||||||
%205 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %204, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloser).Read", 3
|
%205 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %204, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*nopCloser).Read", 3
|
||||||
@@ -1431,17 +1431,17 @@ _llgo_48: ; preds = %_llgo_47, %_llgo_46
|
|||||||
%288 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %287, 1
|
%288 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @21, i64 3 }, ptr undef, ptr undef, ptr undef }, ptr %287, 1
|
||||||
%289 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %288, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).Len", 2
|
%289 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %288, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).Len", 2
|
||||||
%290 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %289, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).Len", 3
|
%290 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %289, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).Len", 3
|
||||||
%291 = load ptr, ptr @"[]_llgo_byte", align 8
|
%291 = load ptr, ptr @"[]_llgo_uint8", align 8
|
||||||
%292 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8
|
%292 = load ptr, ptr @"_llgo_func$G2hch9Iy9DrhKKsg70PbL54bK-XSl-1IUUORN17J2Dk", align 8
|
||||||
%293 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %292, 1
|
%293 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %292, 1
|
||||||
%294 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %293, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).Read", 2
|
%294 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %293, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).Read", 2
|
||||||
%295 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %294, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).Read", 3
|
%295 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %294, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).Read", 3
|
||||||
%296 = load ptr, ptr @"[]_llgo_byte", align 8
|
%296 = load ptr, ptr @"[]_llgo_uint8", align 8
|
||||||
%297 = load ptr, ptr @"[]_llgo_byte", align 8
|
%297 = load ptr, ptr @"[]_llgo_uint8", align 8
|
||||||
%298 = load ptr, ptr @_llgo_int64, align 8
|
%298 = load ptr, ptr @_llgo_int64, align 8
|
||||||
%299 = load ptr, ptr @_llgo_int, align 8
|
%299 = load ptr, ptr @_llgo_int, align 8
|
||||||
%300 = load ptr, ptr @_llgo_error, align 8
|
%300 = load ptr, ptr @_llgo_error, align 8
|
||||||
%301 = load ptr, ptr @"_llgo_func$TY5Etv7VBKM_-2um1BDEeQEE2lP06Pt6G54EuKiNC3c", align 8
|
%301 = load ptr, ptr @"_llgo_func$QoHVzMQ4PMXOd5kbZvdARJn-o_00R6hNyf6LoVk3X_4", align 8
|
||||||
%302 = icmp eq ptr %301, null
|
%302 = icmp eq ptr %301, null
|
||||||
br i1 %302, label %_llgo_49, label %_llgo_50
|
br i1 %302, label %_llgo_49, label %_llgo_50
|
||||||
|
|
||||||
@@ -1464,17 +1464,17 @@ _llgo_49: ; preds = %_llgo_48
|
|||||||
%314 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %313, i64 2, 2
|
%314 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %313, i64 2, 2
|
||||||
%315 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %308, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %314, i1 false)
|
%315 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %308, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %314, i1 false)
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %315)
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %315)
|
||||||
store ptr %315, ptr @"_llgo_func$TY5Etv7VBKM_-2um1BDEeQEE2lP06Pt6G54EuKiNC3c", align 8
|
store ptr %315, ptr @"_llgo_func$QoHVzMQ4PMXOd5kbZvdARJn-o_00R6hNyf6LoVk3X_4", align 8
|
||||||
br label %_llgo_50
|
br label %_llgo_50
|
||||||
|
|
||||||
_llgo_50: ; preds = %_llgo_49, %_llgo_48
|
_llgo_50: ; preds = %_llgo_49, %_llgo_48
|
||||||
%316 = load ptr, ptr @"_llgo_func$TY5Etv7VBKM_-2um1BDEeQEE2lP06Pt6G54EuKiNC3c", align 8
|
%316 = load ptr, ptr @"_llgo_func$QoHVzMQ4PMXOd5kbZvdARJn-o_00R6hNyf6LoVk3X_4", align 8
|
||||||
%317 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %316, 1
|
%317 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @22, i64 6 }, ptr undef, ptr undef, ptr undef }, ptr %316, 1
|
||||||
%318 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %317, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).ReadAt", 2
|
%318 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %317, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).ReadAt", 2
|
||||||
%319 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %318, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).ReadAt", 3
|
%319 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %318, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).ReadAt", 3
|
||||||
%320 = load ptr, ptr @_llgo_byte, align 8
|
%320 = load ptr, ptr @_llgo_uint8, align 8
|
||||||
%321 = load ptr, ptr @_llgo_error, align 8
|
%321 = load ptr, ptr @_llgo_error, align 8
|
||||||
%322 = load ptr, ptr @"_llgo_func$6bvVpCcGPUc3z_EmsQTHB0AVT1hP5-NNLVRgm43teCM", align 8
|
%322 = load ptr, ptr @"_llgo_func$lukqSsfDYBoIp_R8GMojGkZnrYDqaq2iHn8RkCjW7iQ", align 8
|
||||||
%323 = icmp eq ptr %322, null
|
%323 = icmp eq ptr %322, null
|
||||||
br i1 %323, label %_llgo_51, label %_llgo_52
|
br i1 %323, label %_llgo_51, label %_llgo_52
|
||||||
|
|
||||||
@@ -1493,11 +1493,11 @@ _llgo_51: ; preds = %_llgo_50
|
|||||||
%333 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %332, i64 2, 2
|
%333 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %332, i64 2, 2
|
||||||
%334 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %327, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %333, i1 false)
|
%334 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %327, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %333, i1 false)
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %334)
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %334)
|
||||||
store ptr %334, ptr @"_llgo_func$6bvVpCcGPUc3z_EmsQTHB0AVT1hP5-NNLVRgm43teCM", align 8
|
store ptr %334, ptr @"_llgo_func$lukqSsfDYBoIp_R8GMojGkZnrYDqaq2iHn8RkCjW7iQ", align 8
|
||||||
br label %_llgo_52
|
br label %_llgo_52
|
||||||
|
|
||||||
_llgo_52: ; preds = %_llgo_51, %_llgo_50
|
_llgo_52: ; preds = %_llgo_51, %_llgo_50
|
||||||
%335 = load ptr, ptr @"_llgo_func$6bvVpCcGPUc3z_EmsQTHB0AVT1hP5-NNLVRgm43teCM", align 8
|
%335 = load ptr, ptr @"_llgo_func$lukqSsfDYBoIp_R8GMojGkZnrYDqaq2iHn8RkCjW7iQ", align 8
|
||||||
%336 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %335, 1
|
%336 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @23, i64 8 }, ptr undef, ptr undef, ptr undef }, ptr %335, 1
|
||||||
%337 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %336, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).ReadByte", 2
|
%337 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %336, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).ReadByte", 2
|
||||||
%338 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %337, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).ReadByte", 3
|
%338 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %337, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/reader.(*stringReader).ReadByte", 3
|
||||||
@@ -1646,8 +1646,8 @@ _llgo_60: ; preds = %_llgo_59, %_llgo_58
|
|||||||
%431 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %430)
|
%431 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %430)
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %431)
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %431)
|
||||||
store ptr %431, ptr @"*_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.stringReader", align 8
|
store ptr %431, ptr @"*_llgo_github.com/goplus/llgo/compiler/cl/_testgo/reader.stringReader", align 8
|
||||||
%432 = load ptr, ptr @"_llgo_func$06yPPin-fnDnxFKkLLcJ1GEUhIobjPimde7T_Id_hmY", align 8
|
%432 = load ptr, ptr @"_llgo_func$G2hch9Iy9DrhKKsg70PbL54bK-XSl-1IUUORN17J2Dk", align 8
|
||||||
%433 = load ptr, ptr @"_llgo_iface$OFO8Us9n8ajWCabGedeuoJ-Za2zAMk4Jh0FunAcUCFE", align 8
|
%433 = load ptr, ptr @"_llgo_iface$uycIKA3bbxRhudEjW1hHKWKdLqHQsCVy8NdW1bkQmNw", align 8
|
||||||
%434 = icmp eq ptr %433, null
|
%434 = icmp eq ptr %433, null
|
||||||
br i1 %434, label %_llgo_61, label %_llgo_62
|
br i1 %434, label %_llgo_61, label %_llgo_62
|
||||||
|
|
||||||
@@ -1660,7 +1660,7 @@ _llgo_61: ; preds = %_llgo_60
|
|||||||
%439 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %438, i64 1, 1
|
%439 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %438, i64 1, 1
|
||||||
%440 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %439, i64 1, 2
|
%440 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %439, i64 1, 2
|
||||||
%441 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 49 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %440)
|
%441 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 49 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %440)
|
||||||
store ptr %441, ptr @"_llgo_iface$OFO8Us9n8ajWCabGedeuoJ-Za2zAMk4Jh0FunAcUCFE", align 8
|
store ptr %441, ptr @"_llgo_iface$uycIKA3bbxRhudEjW1hHKWKdLqHQsCVy8NdW1bkQmNw", align 8
|
||||||
br label %_llgo_62
|
br label %_llgo_62
|
||||||
|
|
||||||
_llgo_62: ; preds = %_llgo_61, %_llgo_60
|
_llgo_62: ; preds = %_llgo_61, %_llgo_60
|
||||||
|
|||||||
@@ -13,18 +13,18 @@ source_filename = "github.com/goplus/llgo/compiler/cl/_testgo/struczero"
|
|||||||
@"_llgo_github.com/goplus/llgo/compiler/cl/_testdata/foo.Foo" = linkonce global ptr null, align 8
|
@"_llgo_github.com/goplus/llgo/compiler/cl/_testdata/foo.Foo" = linkonce global ptr null, align 8
|
||||||
@0 = private unnamed_addr constant [48 x i8] c"github.com/goplus/llgo/compiler/cl/_testdata/foo", align 1
|
@0 = private unnamed_addr constant [48 x i8] c"github.com/goplus/llgo/compiler/cl/_testdata/foo", align 1
|
||||||
@1 = private unnamed_addr constant [3 x i8] c"Foo", align 1
|
@1 = private unnamed_addr constant [3 x i8] c"Foo", align 1
|
||||||
@_llgo_byte = linkonce global ptr null, align 8
|
@_llgo_uint8 = linkonce global ptr null, align 8
|
||||||
@"*_llgo_byte" = linkonce global ptr null, align 8
|
@"*_llgo_uint8" = linkonce global ptr null, align 8
|
||||||
@_llgo_float32 = linkonce global ptr null, align 8
|
@_llgo_float32 = linkonce global ptr null, align 8
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs" = linkonce global ptr null, align 8
|
@"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$gB-6lDCpZ0V7ma2GTPMARivfSutm75zh84uE5OqxsI4" = linkonce global ptr null, align 8
|
||||||
@2 = private unnamed_addr constant [2 x i8] c"pb", align 1
|
@2 = private unnamed_addr constant [2 x i8] c"pb", align 1
|
||||||
@3 = private unnamed_addr constant [1 x i8] c"F", align 1
|
@3 = private unnamed_addr constant [1 x i8] c"F", align 1
|
||||||
@4 = private unnamed_addr constant [52 x i8] c"github.com/goplus/llgo/compiler/cl/_testgo/struczero", align 1
|
@4 = private unnamed_addr constant [52 x i8] c"github.com/goplus/llgo/compiler/cl/_testgo/struczero", align 1
|
||||||
@5 = private unnamed_addr constant [2 x i8] c"Pb", align 1
|
@5 = private unnamed_addr constant [2 x i8] c"Pb", align 1
|
||||||
@"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE" = linkonce global ptr null, align 8
|
@"_llgo_func$bbS9EKnYgxbrRntc_6WJN6WLF9IKQADblvN_cLtKCqY" = linkonce global ptr null, align 8
|
||||||
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/struczero.bar" = linkonce global ptr null, align 8
|
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/struczero.bar" = linkonce global ptr null, align 8
|
||||||
@6 = private unnamed_addr constant [3 x i8] c"bar", align 1
|
@6 = private unnamed_addr constant [3 x i8] c"bar", align 1
|
||||||
@"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo" = linkonce global ptr null, align 8
|
@"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$2215Oa2lkpk-YZ2pdVVs2mMqzhx1jppOCrAxbrX70ko" = linkonce global ptr null, align 8
|
||||||
@7 = private unnamed_addr constant [1 x i8] c"f", align 1
|
@7 = private unnamed_addr constant [1 x i8] c"f", align 1
|
||||||
@8 = private unnamed_addr constant [6 x i8] c"notOk:", align 1
|
@8 = private unnamed_addr constant [6 x i8] c"notOk:", align 1
|
||||||
|
|
||||||
@@ -154,18 +154,18 @@ _llgo_1: ; preds = %_llgo_0
|
|||||||
br label %_llgo_2
|
br label %_llgo_2
|
||||||
|
|
||||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||||
%3 = load ptr, ptr @_llgo_byte, align 8
|
%3 = load ptr, ptr @_llgo_uint8, align 8
|
||||||
%4 = icmp eq ptr %3, null
|
%4 = icmp eq ptr %3, null
|
||||||
br i1 %4, label %_llgo_3, label %_llgo_4
|
br i1 %4, label %_llgo_3, label %_llgo_4
|
||||||
|
|
||||||
_llgo_3: ; preds = %_llgo_2
|
_llgo_3: ; preds = %_llgo_2
|
||||||
%5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
%5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
||||||
store ptr %5, ptr @_llgo_byte, align 8
|
store ptr %5, ptr @_llgo_uint8, align 8
|
||||||
br label %_llgo_4
|
br label %_llgo_4
|
||||||
|
|
||||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||||
%6 = load ptr, ptr @_llgo_byte, align 8
|
%6 = load ptr, ptr @_llgo_uint8, align 8
|
||||||
%7 = load ptr, ptr @"*_llgo_byte", align 8
|
%7 = load ptr, ptr @"*_llgo_uint8", align 8
|
||||||
%8 = icmp eq ptr %7, null
|
%8 = icmp eq ptr %7, null
|
||||||
br i1 %8, label %_llgo_5, label %_llgo_6
|
br i1 %8, label %_llgo_5, label %_llgo_6
|
||||||
|
|
||||||
@@ -173,11 +173,11 @@ _llgo_5: ; preds = %_llgo_4
|
|||||||
%9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
%9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
||||||
%10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %9)
|
%10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %9)
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %10)
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %10)
|
||||||
store ptr %10, ptr @"*_llgo_byte", align 8
|
store ptr %10, ptr @"*_llgo_uint8", align 8
|
||||||
br label %_llgo_6
|
br label %_llgo_6
|
||||||
|
|
||||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||||
%11 = load ptr, ptr @"*_llgo_byte", align 8
|
%11 = load ptr, ptr @"*_llgo_uint8", align 8
|
||||||
%12 = load ptr, ptr @_llgo_float32, align 8
|
%12 = load ptr, ptr @_llgo_float32, align 8
|
||||||
%13 = icmp eq ptr %12, null
|
%13 = icmp eq ptr %12, null
|
||||||
br i1 %13, label %_llgo_7, label %_llgo_8
|
br i1 %13, label %_llgo_7, label %_llgo_8
|
||||||
@@ -203,21 +203,21 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6
|
|||||||
%25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, i64 2, 1
|
%25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, i64 2, 1
|
||||||
%26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, i64 2, 2
|
%26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, i64 2, 2
|
||||||
%27 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 52 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26)
|
%27 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 52 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26)
|
||||||
store ptr %27, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
store ptr %27, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$gB-6lDCpZ0V7ma2GTPMARivfSutm75zh84uE5OqxsI4", align 8
|
||||||
%28 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$qQwZyFy_4JRalRxVVsVD8R09X5t58tWjTrtJPtHbEjs", align 8
|
%28 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$gB-6lDCpZ0V7ma2GTPMARivfSutm75zh84uE5OqxsI4", align 8
|
||||||
br i1 %2, label %_llgo_9, label %_llgo_10
|
br i1 %2, label %_llgo_9, label %_llgo_10
|
||||||
|
|
||||||
_llgo_9: ; preds = %_llgo_8
|
_llgo_9: ; preds = %_llgo_8
|
||||||
%29 = load ptr, ptr @"*_llgo_byte", align 8
|
%29 = load ptr, ptr @"*_llgo_uint8", align 8
|
||||||
%30 = load ptr, ptr @"*_llgo_byte", align 8
|
%30 = load ptr, ptr @"*_llgo_uint8", align 8
|
||||||
%31 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
%31 = load ptr, ptr @"_llgo_func$bbS9EKnYgxbrRntc_6WJN6WLF9IKQADblvN_cLtKCqY", align 8
|
||||||
%32 = icmp eq ptr %31, null
|
%32 = icmp eq ptr %31, null
|
||||||
br i1 %32, label %_llgo_11, label %_llgo_12
|
br i1 %32, label %_llgo_11, label %_llgo_12
|
||||||
|
|
||||||
_llgo_10: ; preds = %_llgo_12, %_llgo_8
|
_llgo_10: ; preds = %_llgo_12, %_llgo_8
|
||||||
%33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 52 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 3 }, i64 25, i64 16, i64 0, i64 0)
|
%33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 52 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 3 }, i64 25, i64 16, i64 0, i64 0)
|
||||||
store ptr %33, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/struczero.bar", align 8
|
store ptr %33, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/struczero.bar", align 8
|
||||||
%34 = load ptr, ptr @"*_llgo_byte", align 8
|
%34 = load ptr, ptr @"*_llgo_uint8", align 8
|
||||||
%35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
%35 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
||||||
%36 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %35)
|
%36 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %35)
|
||||||
%37 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }, ptr %36, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false)
|
%37 = call %"github.com/goplus/llgo/runtime/abi.StructField" @"github.com/goplus/llgo/runtime/internal/runtime.StructField"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 2 }, ptr %36, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false)
|
||||||
@@ -232,8 +232,8 @@ _llgo_10: ; preds = %_llgo_12, %_llgo_8
|
|||||||
%44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %43, i64 2, 1
|
%44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %43, i64 2, 1
|
||||||
%45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %44, i64 2, 2
|
%45 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %44, i64 2, 2
|
||||||
%46 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 52 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %45)
|
%46 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 52 }, i64 16, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %45)
|
||||||
store ptr %46, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8
|
store ptr %46, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$2215Oa2lkpk-YZ2pdVVs2mMqzhx1jppOCrAxbrX70ko", align 8
|
||||||
%47 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$Ci43nzKYkRLddRL_N4mkykxLXfJlqJGS5n04LKThPNo", align 8
|
%47 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/struczero.struct$2215Oa2lkpk-YZ2pdVVs2mMqzhx1jppOCrAxbrX70ko", align 8
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %33, ptr %47, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.InitNamed"(ptr %33, ptr %47, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
||||||
ret void
|
ret void
|
||||||
|
|
||||||
@@ -250,11 +250,11 @@ _llgo_11: ; preds = %_llgo_9
|
|||||||
%56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %55, i64 1, 2
|
%56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %55, i64 1, 2
|
||||||
%57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %51, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, i1 false)
|
%57 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Func"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %51, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, i1 false)
|
||||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %57)
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %57)
|
||||||
store ptr %57, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
store ptr %57, ptr @"_llgo_func$bbS9EKnYgxbrRntc_6WJN6WLF9IKQADblvN_cLtKCqY", align 8
|
||||||
br label %_llgo_12
|
br label %_llgo_12
|
||||||
|
|
||||||
_llgo_12: ; preds = %_llgo_11, %_llgo_9
|
_llgo_12: ; preds = %_llgo_11, %_llgo_9
|
||||||
%58 = load ptr, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
|
%58 = load ptr, ptr @"_llgo_func$bbS9EKnYgxbrRntc_6WJN6WLF9IKQADblvN_cLtKCqY", align 8
|
||||||
%59 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1
|
%59 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 2 }, ptr undef, ptr undef, ptr undef }, ptr %58, 1
|
||||||
%60 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %59, ptr @"github.com/goplus/llgo/compiler/cl/_testdata/foo.(*Foo).Pb", 2
|
%60 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %59, ptr @"github.com/goplus/llgo/compiler/cl/_testdata/foo.(*Foo).Pb", 2
|
||||||
%61 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %60, ptr @"github.com/goplus/llgo/compiler/cl/_testdata/foo.(*Foo).Pb", 3
|
%61 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %60, ptr @"github.com/goplus/llgo/compiler/cl/_testdata/foo.(*Foo).Pb", 3
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -9,8 +9,8 @@ source_filename = "github.com/goplus/llgo/compiler/cl/_testrt/namedslice"
|
|||||||
@"_llgo_github.com/goplus/llgo/compiler/cl/_testrt/namedslice.MyBytes" = linkonce global ptr null, align 8
|
@"_llgo_github.com/goplus/llgo/compiler/cl/_testrt/namedslice.MyBytes" = linkonce global ptr null, align 8
|
||||||
@0 = private unnamed_addr constant [53 x i8] c"github.com/goplus/llgo/compiler/cl/_testrt/namedslice", align 1
|
@0 = private unnamed_addr constant [53 x i8] c"github.com/goplus/llgo/compiler/cl/_testrt/namedslice", align 1
|
||||||
@1 = private unnamed_addr constant [7 x i8] c"MyBytes", align 1
|
@1 = private unnamed_addr constant [7 x i8] c"MyBytes", align 1
|
||||||
@_llgo_byte = linkonce global ptr null, align 8
|
@_llgo_uint8 = linkonce global ptr null, align 8
|
||||||
@"[]_llgo_byte" = linkonce global ptr null, align 8
|
@"[]_llgo_uint8" = linkonce global ptr null, align 8
|
||||||
@2 = private unnamed_addr constant [9 x i8] c"bad slice", align 1
|
@2 = private unnamed_addr constant [9 x i8] c"bad slice", align 1
|
||||||
@_llgo_string = linkonce global ptr null, align 8
|
@_llgo_string = linkonce global ptr null, align 8
|
||||||
|
|
||||||
@@ -87,29 +87,29 @@ _llgo_1: ; preds = %_llgo_0
|
|||||||
br label %_llgo_2
|
br label %_llgo_2
|
||||||
|
|
||||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||||
%3 = load ptr, ptr @_llgo_byte, align 8
|
%3 = load ptr, ptr @_llgo_uint8, align 8
|
||||||
%4 = icmp eq ptr %3, null
|
%4 = icmp eq ptr %3, null
|
||||||
br i1 %4, label %_llgo_3, label %_llgo_4
|
br i1 %4, label %_llgo_3, label %_llgo_4
|
||||||
|
|
||||||
_llgo_3: ; preds = %_llgo_2
|
_llgo_3: ; preds = %_llgo_2
|
||||||
%5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
%5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
||||||
store ptr %5, ptr @_llgo_byte, align 8
|
store ptr %5, ptr @_llgo_uint8, align 8
|
||||||
br label %_llgo_4
|
br label %_llgo_4
|
||||||
|
|
||||||
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||||
%6 = load ptr, ptr @_llgo_byte, align 8
|
%6 = load ptr, ptr @_llgo_uint8, align 8
|
||||||
%7 = load ptr, ptr @"[]_llgo_byte", align 8
|
%7 = load ptr, ptr @"[]_llgo_uint8", align 8
|
||||||
%8 = icmp eq ptr %7, null
|
%8 = icmp eq ptr %7, null
|
||||||
br i1 %8, label %_llgo_5, label %_llgo_6
|
br i1 %8, label %_llgo_5, label %_llgo_6
|
||||||
|
|
||||||
_llgo_5: ; preds = %_llgo_4
|
_llgo_5: ; preds = %_llgo_4
|
||||||
%9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
%9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 40)
|
||||||
%10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %9)
|
%10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.SliceOf"(ptr %9)
|
||||||
store ptr %10, ptr @"[]_llgo_byte", align 8
|
store ptr %10, ptr @"[]_llgo_uint8", align 8
|
||||||
br label %_llgo_6
|
br label %_llgo_6
|
||||||
|
|
||||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||||
%11 = load ptr, ptr @"[]_llgo_byte", align 8
|
%11 = load ptr, ptr @"[]_llgo_uint8", align 8
|
||||||
br i1 %2, label %_llgo_7, label %_llgo_8
|
br i1 %2, label %_llgo_7, label %_llgo_8
|
||||||
|
|
||||||
_llgo_7: ; preds = %_llgo_6
|
_llgo_7: ; preds = %_llgo_6
|
||||||
|
|||||||
Reference in New Issue
Block a user