test: regenerate test files with gentests
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
; ModuleID = 'main'
|
||||
source_filename = "main"
|
||||
; ModuleID = 'github.com/goplus/llgo/compiler/cl/_testgo/equal'
|
||||
source_filename = "github.com/goplus/llgo/compiler/cl/_testgo/equal"
|
||||
|
||||
%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 }
|
||||
%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr }
|
||||
%main.T = type { i64, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.eface" }
|
||||
%"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" = type { i64, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.eface" }
|
||||
%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 }
|
||||
%main.N = type {}
|
||||
%"github.com/goplus/llgo/compiler/cl/_testgo/equal.N" = type {}
|
||||
%"github.com/goplus/llgo/runtime/abi.StructField" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/runtime/internal/runtime.String", i1 }
|
||||
|
||||
@"main.init$guard" = global i1 false, align 1
|
||||
@"github.com/goplus/llgo/compiler/cl/_testgo/equal.init$guard" = global i1 false, align 1
|
||||
@0 = private unnamed_addr constant [6 x i8] c"failed", align 1
|
||||
@_llgo_string = linkonce global ptr null, align 8
|
||||
@1 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
||||
@_llgo_int = linkonce global ptr null, align 8
|
||||
@2 = private unnamed_addr constant [2 x i8] c"ok", align 1
|
||||
@"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw" = linkonce global ptr null, align 8
|
||||
@3 = private unnamed_addr constant [4 x i8] c"main", align 1
|
||||
@_llgo_main.T = linkonce global ptr null, align 8
|
||||
@3 = private unnamed_addr constant [48 x i8] c"github.com/goplus/llgo/compiler/cl/_testgo/equal", align 1
|
||||
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/equal.T" = linkonce global ptr null, align 8
|
||||
@4 = private unnamed_addr constant [1 x i8] c"T", align 1
|
||||
@_llgo_any = linkonce global ptr null, align 8
|
||||
@"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk" = linkonce global ptr null, align 8
|
||||
@@ -24,17 +24,15 @@ source_filename = "main"
|
||||
@6 = private unnamed_addr constant [1 x i8] c"Y", align 1
|
||||
@7 = private unnamed_addr constant [1 x i8] c"Z", align 1
|
||||
@8 = private unnamed_addr constant [1 x i8] c"V", align 1
|
||||
@_llgo_main.N = linkonce global ptr null, align 8
|
||||
@"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/equal.N" = linkonce global ptr null, align 8
|
||||
@9 = private unnamed_addr constant [1 x i8] c"N", align 1
|
||||
@"map[_llgo_int]_llgo_string" = linkonce global ptr null, align 8
|
||||
@10 = private unnamed_addr constant [7 x i8] c"topbits", align 1
|
||||
@11 = private unnamed_addr constant [4 x i8] c"keys", align 1
|
||||
@12 = private unnamed_addr constant [5 x i8] c"elems", align 1
|
||||
@13 = private unnamed_addr constant [8 x i8] c"overflow", align 1
|
||||
@__llgo_argc = global i32 0, align 4
|
||||
@__llgo_argv = global ptr null, align 8
|
||||
|
||||
define void @main.assert(i1 %0) {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %0) {
|
||||
_llgo_0:
|
||||
br i1 %0, label %_llgo_2, label %_llgo_1
|
||||
|
||||
@@ -51,58 +49,58 @@ _llgo_2: ; preds = %_llgo_0
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @main.init() {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init"() {
|
||||
_llgo_0:
|
||||
%0 = load i1, ptr @"main.init$guard", align 1
|
||||
%0 = load i1, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init$guard", align 1
|
||||
br i1 %0, label %_llgo_2, label %_llgo_1
|
||||
|
||||
_llgo_1: ; preds = %_llgo_0
|
||||
store i1 true, ptr @"main.init$guard", align 1
|
||||
call void @"main.init$after"()
|
||||
call void @"main.init#1"()
|
||||
call void @"main.init#2"()
|
||||
call void @"main.init#3"()
|
||||
call void @"main.init#4"()
|
||||
call void @"main.init#5"()
|
||||
call void @"main.init#6"()
|
||||
call void @"main.init#7"()
|
||||
store i1 true, ptr @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init$guard", align 1
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init$after"()
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#1"()
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#2"()
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#3"()
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#4"()
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#5"()
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#6"()
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#7"()
|
||||
br label %_llgo_2
|
||||
|
||||
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#1"() {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#1"() {
|
||||
_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.AllocU"(i64 8)
|
||||
%2 = getelementptr inbounds { ptr }, ptr %1, i32 0, i32 0
|
||||
store ptr %0, ptr %2, align 8
|
||||
%3 = insertvalue { ptr, ptr } { ptr @"main.init#1$2", ptr undef }, ptr %1, 1
|
||||
call void @main.assert(i1 true)
|
||||
call void @main.assert(i1 true)
|
||||
call void @main.assert(i1 true)
|
||||
call void @main.assert(i1 true)
|
||||
call void @main.assert(i1 true)
|
||||
call void @main.assert(i1 true)
|
||||
%3 = insertvalue { ptr, ptr } { ptr @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#1$2", ptr undef }, ptr %1, 1
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
%4 = extractvalue { ptr, ptr } %3, 0
|
||||
%5 = icmp ne ptr %4, null
|
||||
call void @main.assert(i1 %5)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %5)
|
||||
%6 = extractvalue { ptr, ptr } %3, 0
|
||||
%7 = icmp ne ptr null, %6
|
||||
call void @main.assert(i1 %7)
|
||||
call void @main.assert(i1 true)
|
||||
call void @main.assert(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %7)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
ret void
|
||||
}
|
||||
|
||||
define i64 @"main.init#1$1"(i64 %0, i64 %1) {
|
||||
define i64 @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#1$1"(i64 %0, i64 %1) {
|
||||
_llgo_0:
|
||||
%2 = add i64 %0, %1
|
||||
ret i64 %2
|
||||
}
|
||||
|
||||
define void @"main.init#1$2"(ptr %0) {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#1$2"(ptr %0) {
|
||||
_llgo_0:
|
||||
%1 = load { ptr }, ptr %0, align 8
|
||||
%2 = extractvalue { ptr } %1, 0
|
||||
@@ -112,9 +110,9 @@ _llgo_0:
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#2"() {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#2"() {
|
||||
_llgo_0:
|
||||
call void @main.assert(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
%0 = alloca [3 x i64], align 8
|
||||
call void @llvm.memset(ptr %0, i8 0, i64 24, i1 false)
|
||||
%1 = getelementptr inbounds i64, ptr %0, i64 0
|
||||
@@ -145,7 +143,7 @@ _llgo_0:
|
||||
%19 = extractvalue [3 x i64] %9, 2
|
||||
%20 = icmp eq i64 %18, %19
|
||||
%21 = and i1 %17, %20
|
||||
call void @main.assert(i1 %21)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %21)
|
||||
%22 = getelementptr inbounds i64, ptr %4, i64 1
|
||||
store i64 1, ptr %22, align 4
|
||||
%23 = load [3 x i64], ptr %0, align 4
|
||||
@@ -163,18 +161,18 @@ _llgo_0:
|
||||
%35 = icmp eq i64 %33, %34
|
||||
%36 = and i1 %32, %35
|
||||
%37 = xor i1 %36, true
|
||||
call void @main.assert(i1 %37)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %37)
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#3"() {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#3"() {
|
||||
_llgo_0:
|
||||
%0 = alloca %main.T, align 8
|
||||
%0 = alloca %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", align 8
|
||||
call void @llvm.memset(ptr %0, i8 0, i64 48, i1 false)
|
||||
%1 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 0
|
||||
%2 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 1
|
||||
%3 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 2
|
||||
%4 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 3
|
||||
%1 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %0, i32 0, i32 0
|
||||
%2 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %0, i32 0, i32 1
|
||||
%3 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %0, i32 0, i32 2
|
||||
%4 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %0, i32 0, i32 3
|
||||
store i64 10, ptr %1, align 4
|
||||
store i64 20, ptr %2, align 4
|
||||
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %3, align 8
|
||||
@@ -182,12 +180,12 @@ _llgo_0:
|
||||
%6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %5, 0
|
||||
%7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr inttoptr (i64 1 to ptr), 1
|
||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %7, ptr %4, align 8
|
||||
%8 = alloca %main.T, align 8
|
||||
%8 = alloca %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", align 8
|
||||
call void @llvm.memset(ptr %8, i8 0, i64 48, i1 false)
|
||||
%9 = getelementptr inbounds %main.T, ptr %8, i32 0, i32 0
|
||||
%10 = getelementptr inbounds %main.T, ptr %8, i32 0, i32 1
|
||||
%11 = getelementptr inbounds %main.T, ptr %8, i32 0, i32 2
|
||||
%12 = getelementptr inbounds %main.T, ptr %8, i32 0, i32 3
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %8, i32 0, i32 0
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %8, i32 0, i32 1
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %8, i32 0, i32 2
|
||||
%12 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %8, i32 0, i32 3
|
||||
store i64 10, ptr %9, align 4
|
||||
store i64 20, ptr %10, align 4
|
||||
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %11, align 8
|
||||
@@ -195,12 +193,12 @@ _llgo_0:
|
||||
%14 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %13, 0
|
||||
%15 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %14, ptr inttoptr (i64 1 to ptr), 1
|
||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %15, ptr %12, align 8
|
||||
%16 = alloca %main.T, align 8
|
||||
%16 = alloca %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", align 8
|
||||
call void @llvm.memset(ptr %16, i8 0, i64 48, i1 false)
|
||||
%17 = getelementptr inbounds %main.T, ptr %16, i32 0, i32 0
|
||||
%18 = getelementptr inbounds %main.T, ptr %16, i32 0, i32 1
|
||||
%19 = getelementptr inbounds %main.T, ptr %16, i32 0, i32 2
|
||||
%20 = getelementptr inbounds %main.T, ptr %16, i32 0, i32 3
|
||||
%17 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %16, i32 0, i32 0
|
||||
%18 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %16, i32 0, i32 1
|
||||
%19 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %16, i32 0, i32 2
|
||||
%20 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %16, i32 0, i32 3
|
||||
store i64 10, ptr %17, align 4
|
||||
store i64 20, ptr %18, align 4
|
||||
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %19, align 8
|
||||
@@ -210,75 +208,75 @@ _llgo_0:
|
||||
%23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %21, 0
|
||||
%24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %23, ptr %22, 1
|
||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %24, ptr %20, align 8
|
||||
call void @main.assert(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
%25 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer)
|
||||
%26 = and i1 true, %25
|
||||
%27 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" zeroinitializer, %"github.com/goplus/llgo/runtime/internal/runtime.eface" zeroinitializer)
|
||||
%28 = and i1 %26, %27
|
||||
call void @main.assert(i1 %28)
|
||||
%29 = load %main.T, ptr %0, align 8
|
||||
%30 = load %main.T, ptr %8, align 8
|
||||
%31 = extractvalue %main.T %29, 0
|
||||
%32 = extractvalue %main.T %30, 0
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %28)
|
||||
%29 = load %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %0, align 8
|
||||
%30 = load %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %8, align 8
|
||||
%31 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %29, 0
|
||||
%32 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %30, 0
|
||||
%33 = icmp eq i64 %31, %32
|
||||
%34 = and i1 true, %33
|
||||
%35 = extractvalue %main.T %29, 1
|
||||
%36 = extractvalue %main.T %30, 1
|
||||
%35 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %29, 1
|
||||
%36 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %30, 1
|
||||
%37 = icmp eq i64 %35, %36
|
||||
%38 = and i1 %34, %37
|
||||
%39 = extractvalue %main.T %29, 2
|
||||
%40 = extractvalue %main.T %30, 2
|
||||
%39 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %29, 2
|
||||
%40 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %30, 2
|
||||
%41 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %39, %"github.com/goplus/llgo/runtime/internal/runtime.String" %40)
|
||||
%42 = and i1 %38, %41
|
||||
%43 = extractvalue %main.T %29, 3
|
||||
%44 = extractvalue %main.T %30, 3
|
||||
%43 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %29, 3
|
||||
%44 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %30, 3
|
||||
%45 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %43, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %44)
|
||||
%46 = and i1 %42, %45
|
||||
call void @main.assert(i1 %46)
|
||||
%47 = load %main.T, ptr %0, align 8
|
||||
%48 = load %main.T, ptr %16, align 8
|
||||
%49 = extractvalue %main.T %47, 0
|
||||
%50 = extractvalue %main.T %48, 0
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %46)
|
||||
%47 = load %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %0, align 8
|
||||
%48 = load %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %16, align 8
|
||||
%49 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %47, 0
|
||||
%50 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %48, 0
|
||||
%51 = icmp eq i64 %49, %50
|
||||
%52 = and i1 true, %51
|
||||
%53 = extractvalue %main.T %47, 1
|
||||
%54 = extractvalue %main.T %48, 1
|
||||
%53 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %47, 1
|
||||
%54 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %48, 1
|
||||
%55 = icmp eq i64 %53, %54
|
||||
%56 = and i1 %52, %55
|
||||
%57 = extractvalue %main.T %47, 2
|
||||
%58 = extractvalue %main.T %48, 2
|
||||
%57 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %47, 2
|
||||
%58 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %48, 2
|
||||
%59 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %57, %"github.com/goplus/llgo/runtime/internal/runtime.String" %58)
|
||||
%60 = and i1 %56, %59
|
||||
%61 = extractvalue %main.T %47, 3
|
||||
%62 = extractvalue %main.T %48, 3
|
||||
%61 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %47, 3
|
||||
%62 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %48, 3
|
||||
%63 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %61, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %62)
|
||||
%64 = and i1 %60, %63
|
||||
%65 = xor i1 %64, true
|
||||
call void @main.assert(i1 %65)
|
||||
%66 = load %main.T, ptr %8, align 8
|
||||
%67 = load %main.T, ptr %16, align 8
|
||||
%68 = extractvalue %main.T %66, 0
|
||||
%69 = extractvalue %main.T %67, 0
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %65)
|
||||
%66 = load %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %8, align 8
|
||||
%67 = load %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %16, align 8
|
||||
%68 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %66, 0
|
||||
%69 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %67, 0
|
||||
%70 = icmp eq i64 %68, %69
|
||||
%71 = and i1 true, %70
|
||||
%72 = extractvalue %main.T %66, 1
|
||||
%73 = extractvalue %main.T %67, 1
|
||||
%72 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %66, 1
|
||||
%73 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %67, 1
|
||||
%74 = icmp eq i64 %72, %73
|
||||
%75 = and i1 %71, %74
|
||||
%76 = extractvalue %main.T %66, 2
|
||||
%77 = extractvalue %main.T %67, 2
|
||||
%76 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %66, 2
|
||||
%77 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %67, 2
|
||||
%78 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %76, %"github.com/goplus/llgo/runtime/internal/runtime.String" %77)
|
||||
%79 = and i1 %75, %78
|
||||
%80 = extractvalue %main.T %66, 3
|
||||
%81 = extractvalue %main.T %67, 3
|
||||
%80 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %66, 3
|
||||
%81 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %67, 3
|
||||
%82 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %80, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %81)
|
||||
%83 = and i1 %79, %82
|
||||
%84 = xor i1 %83, true
|
||||
call void @main.assert(i1 %84)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %84)
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#4"() {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#4"() {
|
||||
_llgo_0:
|
||||
%0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24)
|
||||
%1 = getelementptr inbounds i64, ptr %0, i64 0
|
||||
@@ -294,21 +292,21 @@ _llgo_0:
|
||||
%8 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %7, i64 8, i64 2, i64 0, i64 2, i64 2)
|
||||
%9 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16)
|
||||
%10 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %9, i64 8, i64 2, i64 0, i64 0, i64 2)
|
||||
call void @main.assert(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
%11 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6, 0
|
||||
%12 = icmp ne ptr %11, null
|
||||
call void @main.assert(i1 %12)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %12)
|
||||
%13 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, 0
|
||||
%14 = icmp ne ptr %13, null
|
||||
call void @main.assert(i1 %14)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %14)
|
||||
%15 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %10, 0
|
||||
%16 = icmp ne ptr %15, null
|
||||
call void @main.assert(i1 %16)
|
||||
call void @main.assert(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %16)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#5"() {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#5"() {
|
||||
_llgo_0:
|
||||
%0 = load ptr, ptr @_llgo_int, align 8
|
||||
%1 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %0, 0
|
||||
@@ -318,12 +316,12 @@ _llgo_0:
|
||||
store {} zeroinitializer, ptr %4, align 1
|
||||
%5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %3, 0
|
||||
%6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %5, ptr %4, 1
|
||||
%7 = alloca %main.T, align 8
|
||||
%7 = alloca %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", align 8
|
||||
call void @llvm.memset(ptr %7, i8 0, i64 48, i1 false)
|
||||
%8 = getelementptr inbounds %main.T, ptr %7, i32 0, i32 0
|
||||
%9 = getelementptr inbounds %main.T, ptr %7, i32 0, i32 1
|
||||
%10 = getelementptr inbounds %main.T, ptr %7, i32 0, i32 2
|
||||
%11 = getelementptr inbounds %main.T, ptr %7, i32 0, i32 3
|
||||
%8 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %7, i32 0, i32 0
|
||||
%9 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %7, i32 0, i32 1
|
||||
%10 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %7, i32 0, i32 2
|
||||
%11 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %7, i32 0, i32 3
|
||||
store i64 10, ptr %8, align 4
|
||||
store i64 20, ptr %9, align 4
|
||||
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %10, align 8
|
||||
@@ -331,18 +329,18 @@ _llgo_0:
|
||||
%13 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %12, 0
|
||||
%14 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %13, ptr inttoptr (i64 1 to ptr), 1
|
||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %14, ptr %11, align 8
|
||||
%15 = load %main.T, ptr %7, align 8
|
||||
%16 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%15 = load %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %7, align 8
|
||||
%16 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/equal.T", align 8
|
||||
%17 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48)
|
||||
store %main.T %15, ptr %17, align 8
|
||||
store %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %15, ptr %17, align 8
|
||||
%18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %16, 0
|
||||
%19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %18, ptr %17, 1
|
||||
%20 = alloca %main.T, align 8
|
||||
%20 = alloca %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", align 8
|
||||
call void @llvm.memset(ptr %20, i8 0, i64 48, i1 false)
|
||||
%21 = getelementptr inbounds %main.T, ptr %20, i32 0, i32 0
|
||||
%22 = getelementptr inbounds %main.T, ptr %20, i32 0, i32 1
|
||||
%23 = getelementptr inbounds %main.T, ptr %20, i32 0, i32 2
|
||||
%24 = getelementptr inbounds %main.T, ptr %20, i32 0, i32 3
|
||||
%21 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %20, i32 0, i32 0
|
||||
%22 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %20, i32 0, i32 1
|
||||
%23 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %20, i32 0, i32 2
|
||||
%24 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %20, i32 0, i32 3
|
||||
store i64 10, ptr %21, align 4
|
||||
store i64 20, ptr %22, align 4
|
||||
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %23, align 8
|
||||
@@ -350,12 +348,12 @@ _llgo_0:
|
||||
%26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %25, 0
|
||||
%27 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %26, ptr inttoptr (i64 1 to ptr), 1
|
||||
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %27, ptr %24, align 8
|
||||
%28 = alloca %main.T, align 8
|
||||
%28 = alloca %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", align 8
|
||||
call void @llvm.memset(ptr %28, i8 0, i64 48, i1 false)
|
||||
%29 = getelementptr inbounds %main.T, ptr %28, i32 0, i32 0
|
||||
%30 = getelementptr inbounds %main.T, ptr %28, i32 0, i32 1
|
||||
%31 = getelementptr inbounds %main.T, ptr %28, i32 0, i32 2
|
||||
%32 = getelementptr inbounds %main.T, ptr %28, i32 0, i32 3
|
||||
%29 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %28, i32 0, i32 0
|
||||
%30 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %28, i32 0, i32 1
|
||||
%31 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %28, i32 0, i32 2
|
||||
%32 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %28, i32 0, i32 3
|
||||
store i64 10, ptr %29, align 4
|
||||
store i64 20, ptr %30, align 4
|
||||
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 5 }, ptr %31, align 8
|
||||
@@ -369,80 +367,76 @@ _llgo_0:
|
||||
%38 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %37, 0
|
||||
%39 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %38, ptr inttoptr (i64 100 to ptr), 1
|
||||
%40 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %2, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %39)
|
||||
call void @main.assert(i1 %40)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %40)
|
||||
%41 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
%42 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0)
|
||||
store {} zeroinitializer, ptr %42, align 1
|
||||
%43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %41, 0
|
||||
%44 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %43, ptr %42, 1
|
||||
%45 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %44)
|
||||
call void @main.assert(i1 %45)
|
||||
%46 = load ptr, ptr @_llgo_main.N, align 8
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %45)
|
||||
%46 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/equal.N", align 8
|
||||
%47 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 0)
|
||||
store %main.N zeroinitializer, ptr %47, align 1
|
||||
store %"github.com/goplus/llgo/compiler/cl/_testgo/equal.N" zeroinitializer, ptr %47, align 1
|
||||
%48 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %46, 0
|
||||
%49 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %48, ptr %47, 1
|
||||
%50 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %49)
|
||||
%51 = xor i1 %50, true
|
||||
call void @main.assert(i1 %51)
|
||||
%52 = load %main.T, ptr %20, align 8
|
||||
%53 = load ptr, ptr @_llgo_main.T, align 8
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %51)
|
||||
%52 = load %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %20, align 8
|
||||
%53 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/equal.T", align 8
|
||||
%54 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48)
|
||||
store %main.T %52, ptr %54, align 8
|
||||
store %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %52, ptr %54, align 8
|
||||
%55 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %53, 0
|
||||
%56 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %55, ptr %54, 1
|
||||
%57 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %19, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %56)
|
||||
call void @main.assert(i1 %57)
|
||||
%58 = load %main.T, ptr %28, align 8
|
||||
%59 = load ptr, ptr @_llgo_main.T, align 8
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %57)
|
||||
%58 = load %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T", ptr %28, align 8
|
||||
%59 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/equal.T", align 8
|
||||
%60 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 48)
|
||||
store %main.T %58, ptr %60, align 8
|
||||
store %"github.com/goplus/llgo/compiler/cl/_testgo/equal.T" %58, ptr %60, align 8
|
||||
%61 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %59, 0
|
||||
%62 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %61, ptr %60, 1
|
||||
%63 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %19, %"github.com/goplus/llgo/runtime/internal/runtime.eface" %62)
|
||||
%64 = xor i1 %63, true
|
||||
call void @main.assert(i1 %64)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %64)
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#6"() {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#6"() {
|
||||
_llgo_0:
|
||||
%0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64 8, i64 0)
|
||||
%1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewChan"(i64 8, i64 0)
|
||||
%2 = icmp eq ptr %0, %0
|
||||
call void @main.assert(i1 %2)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %2)
|
||||
%3 = icmp ne ptr %0, %1
|
||||
call void @main.assert(i1 %3)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %3)
|
||||
%4 = icmp ne ptr %0, null
|
||||
call void @main.assert(i1 %4)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %4)
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init#7"() {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init#7"() {
|
||||
_llgo_0:
|
||||
%0 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8
|
||||
%1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr %0, i64 0)
|
||||
%2 = icmp ne ptr %1, null
|
||||
call void @main.assert(i1 %2)
|
||||
call void @main.assert(i1 true)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 %2)
|
||||
call void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.assert"(i1 true)
|
||||
ret void
|
||||
}
|
||||
|
||||
define i32 @main(i32 %0, ptr %1) {
|
||||
_llgo_0:
|
||||
store i32 %0, ptr @__llgo_argc, align 4
|
||||
store ptr %1, ptr @__llgo_argv, align 8
|
||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
|
||||
call void @main.init()
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define void @main.test() {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.main"() {
|
||||
_llgo_0:
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"main.init$after"() {
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.test"() {
|
||||
_llgo_0:
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @"github.com/goplus/llgo/compiler/cl/_testgo/equal.init$after"() {
|
||||
_llgo_0:
|
||||
%0 = load ptr, ptr @_llgo_string, align 8
|
||||
%1 = icmp eq ptr %0, null
|
||||
@@ -468,15 +462,15 @@ _llgo_4: ; preds = %_llgo_3, %_llgo_2
|
||||
%7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %6, 0
|
||||
%8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, i64 0, 1
|
||||
%9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %8, i64 0, 2
|
||||
%10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9)
|
||||
%10 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 48 }, i64 0, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %9)
|
||||
store ptr %10, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
||||
%11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 1 }, i64 25, i64 48, i64 0, i64 0)
|
||||
%12 = load ptr, ptr @_llgo_main.T, align 8
|
||||
%11 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 48 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 1 }, i64 25, i64 48, i64 0, i64 0)
|
||||
%12 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/equal.T", align 8
|
||||
%13 = icmp eq ptr %12, null
|
||||
br i1 %13, label %_llgo_5, label %_llgo_6
|
||||
|
||||
_llgo_5: ; preds = %_llgo_4
|
||||
store ptr %11, ptr @_llgo_main.T, align 8
|
||||
store ptr %11, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/equal.T", align 8
|
||||
br label %_llgo_6
|
||||
|
||||
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
||||
@@ -489,7 +483,7 @@ _llgo_7: ; preds = %_llgo_6
|
||||
%17 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %16, 0
|
||||
%18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %17, i64 0, 1
|
||||
%19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %18, i64 0, 2
|
||||
%20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19)
|
||||
%20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 48 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19)
|
||||
store ptr %20, ptr @_llgo_any, align 8
|
||||
br label %_llgo_8
|
||||
|
||||
@@ -505,7 +499,7 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%29 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %28, 0
|
||||
%30 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %29, i64 0, 1
|
||||
%31 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %30, i64 0, 2
|
||||
%32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %31)
|
||||
%32 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 48 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %31)
|
||||
%33 = 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 @8, i64 1 }, ptr %32, i64 32, %"github.com/goplus/llgo/runtime/internal/runtime.String" zeroinitializer, i1 false)
|
||||
%34 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 224)
|
||||
%35 = getelementptr %"github.com/goplus/llgo/runtime/abi.StructField", ptr %34, i64 0
|
||||
@@ -519,7 +513,7 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_6
|
||||
%39 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %34, 0
|
||||
%40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %39, i64 4, 1
|
||||
%41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %40, i64 4, 2
|
||||
%42 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 48, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %41)
|
||||
%42 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 48 }, i64 48, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %41)
|
||||
store ptr %42, ptr @"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk", align 8
|
||||
%43 = load ptr, ptr @"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk", align 8
|
||||
br i1 %13, label %_llgo_9, label %_llgo_10
|
||||
@@ -529,13 +523,13 @@ _llgo_9: ; preds = %_llgo_8
|
||||
br label %_llgo_10
|
||||
|
||||
_llgo_10: ; preds = %_llgo_9, %_llgo_8
|
||||
%44 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 0, i64 0, i64 0)
|
||||
%45 = load ptr, ptr @_llgo_main.N, align 8
|
||||
%44 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 48 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @9, i64 1 }, i64 25, i64 0, i64 0, i64 0)
|
||||
%45 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/equal.N", align 8
|
||||
%46 = icmp eq ptr %45, null
|
||||
br i1 %46, label %_llgo_11, label %_llgo_12
|
||||
|
||||
_llgo_11: ; preds = %_llgo_10
|
||||
store ptr %44, ptr @_llgo_main.N, align 8
|
||||
store ptr %44, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testgo/equal.N", align 8
|
||||
br label %_llgo_12
|
||||
|
||||
_llgo_12: ; preds = %_llgo_11, %_llgo_10
|
||||
@@ -577,7 +571,7 @@ _llgo_15: ; preds = %_llgo_14
|
||||
%68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %63, 0
|
||||
%69 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %68, i64 4, 1
|
||||
%70 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %69, i64 4, 2
|
||||
%71 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 4 }, i64 208, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %70)
|
||||
%71 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 48 }, i64 208, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %70)
|
||||
%72 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.MapOf"(ptr %50, ptr %51, ptr %71, i64 4)
|
||||
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %72)
|
||||
store ptr %72, ptr @"map[_llgo_int]_llgo_string", align 8
|
||||
@@ -628,6 +622,4 @@ declare void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(p
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.MakeMap"(ptr, i64)
|
||||
|
||||
declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
|
||||
|
||||
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
|
||||
|
||||
Reference in New Issue
Block a user