2025-01-13 10:38:46 +08:00
|
|
|
; ModuleID = 'github.com/goplus/llgo/compiler/cl/_testrt/builtin'
|
|
|
|
|
source_filename = "github.com/goplus/llgo/compiler/cl/_testrt/builtin"
|
2024-04-30 13:53:04 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
%"github.com/goplus/llgo/runtime/internal/runtime.Slice" = type { ptr, i64, i64 }
|
|
|
|
|
%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 }
|
|
|
|
|
%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr }
|
2024-04-30 13:53:04 +08:00
|
|
|
|
2025-01-13 10:38:46 +08:00
|
|
|
@"github.com/goplus/llgo/compiler/cl/_testrt/builtin.a" = global i64 0, align 8
|
|
|
|
|
@"github.com/goplus/llgo/compiler/cl/_testrt/builtin.b" = global i64 0, align 8
|
|
|
|
|
@"github.com/goplus/llgo/compiler/cl/_testrt/builtin.init$guard" = global i1 false, align 1
|
|
|
|
|
@"github.com/goplus/llgo/compiler/cl/_testrt/builtin.n" = global i64 0, align 8
|
2024-06-13 09:40:41 +08:00
|
|
|
@0 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
|
|
|
|
@1 = private unnamed_addr constant [3 x i8] c"def", align 1
|
2024-06-14 09:57:23 +08:00
|
|
|
@_llgo_int = linkonce global ptr null, align 8
|
2024-06-13 09:40:41 +08:00
|
|
|
@2 = private unnamed_addr constant [4 x i8] c"ABCD", align 1
|
|
|
|
|
@3 = private unnamed_addr constant [7 x i8] c"\E4\B8\ADabcd", align 1
|
|
|
|
|
@4 = private unnamed_addr constant [3 x i8] c"abc", align 1
|
|
|
|
|
@5 = private unnamed_addr constant [3 x i8] c"abd", align 1
|
|
|
|
|
@6 = private unnamed_addr constant [2 x i8] c"fn", align 1
|
2024-05-21 22:22:39 +08:00
|
|
|
|
2025-01-13 10:38:46 +08:00
|
|
|
define double @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.Float64frombits"(i64 %0) {
|
2024-05-21 22:22:39 +08:00
|
|
|
_llgo_0:
|
2025-01-08 15:19:38 +08:00
|
|
|
%1 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
2024-05-21 22:22:39 +08:00
|
|
|
store i64 %0, ptr %1, align 4
|
|
|
|
|
%2 = load double, ptr %1, align 8
|
|
|
|
|
ret double %2
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-13 10:38:46 +08:00
|
|
|
define double @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.Inf"(i64 %0) {
|
2024-05-21 22:22:39 +08:00
|
|
|
_llgo_0:
|
|
|
|
|
%1 = icmp sge i64 %0, 0
|
|
|
|
|
br i1 %1, label %_llgo_1, label %_llgo_3
|
|
|
|
|
|
|
|
|
|
_llgo_1: ; preds = %_llgo_0
|
|
|
|
|
br label %_llgo_2
|
|
|
|
|
|
|
|
|
|
_llgo_2: ; preds = %_llgo_3, %_llgo_1
|
|
|
|
|
%2 = phi i64 [ 9218868437227405312, %_llgo_1 ], [ -4503599627370496, %_llgo_3 ]
|
2025-01-13 10:38:46 +08:00
|
|
|
%3 = call double @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.Float64frombits"(i64 %2)
|
2024-05-21 22:22:39 +08:00
|
|
|
ret double %3
|
|
|
|
|
|
|
|
|
|
_llgo_3: ; preds = %_llgo_0
|
|
|
|
|
br label %_llgo_2
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-13 10:38:46 +08:00
|
|
|
define i1 @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.IsNaN"(double %0) {
|
2024-05-21 22:22:39 +08:00
|
|
|
_llgo_0:
|
|
|
|
|
%1 = fcmp une double %0, %0
|
|
|
|
|
ret i1 %1
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-13 10:38:46 +08:00
|
|
|
define double @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.NaN"() {
|
2024-05-21 22:22:39 +08:00
|
|
|
_llgo_0:
|
2025-01-13 10:38:46 +08:00
|
|
|
%0 = call double @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.Float64frombits"(i64 9221120237041090561)
|
2024-05-21 22:22:39 +08:00
|
|
|
ret double %0
|
|
|
|
|
}
|
2024-05-20 12:42:37 +08:00
|
|
|
|
2025-01-13 10:38:46 +08:00
|
|
|
define void @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.demo"() {
|
2024-05-20 12:42:37 +08:00
|
|
|
_llgo_0:
|
|
|
|
|
ret void
|
|
|
|
|
}
|
2024-04-30 13:53:04 +08:00
|
|
|
|
2025-01-13 10:38:46 +08:00
|
|
|
define void @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.init"() {
|
2024-04-30 13:53:04 +08:00
|
|
|
_llgo_0:
|
2025-01-13 10:38:46 +08:00
|
|
|
%0 = load i1, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.init$guard", align 1
|
2024-04-30 13:53:04 +08:00
|
|
|
br i1 %0, label %_llgo_2, label %_llgo_1
|
|
|
|
|
|
|
|
|
|
_llgo_1: ; preds = %_llgo_0
|
2025-01-13 10:38:46 +08:00
|
|
|
store i1 true, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.init$guard", align 1
|
|
|
|
|
call void @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.init$after"()
|
|
|
|
|
store i64 9223372036854775807, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.a", align 4
|
|
|
|
|
store i64 -9223372036854775808, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.b", align 4
|
|
|
|
|
store i64 -1, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.n", align 4
|
2024-04-30 13:53:04 +08:00
|
|
|
br label %_llgo_2
|
|
|
|
|
|
|
|
|
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-13 10:38:46 +08:00
|
|
|
define void @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.main"() {
|
2024-04-30 13:53:04 +08:00
|
|
|
_llgo_0:
|
2025-01-13 10:38:46 +08:00
|
|
|
%0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32)
|
|
|
|
|
%1 = getelementptr inbounds i64, ptr %0, i64 0
|
|
|
|
|
store i64 1, ptr %1, align 4
|
|
|
|
|
%2 = getelementptr inbounds i64, ptr %0, i64 1
|
|
|
|
|
store i64 2, ptr %2, align 4
|
|
|
|
|
%3 = getelementptr inbounds i64, ptr %0, i64 2
|
|
|
|
|
store i64 3, ptr %3, align 4
|
|
|
|
|
%4 = getelementptr inbounds i64, ptr %0, i64 3
|
|
|
|
|
store i64 4, ptr %4, align 4
|
|
|
|
|
%5 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %0, 0
|
|
|
|
|
%6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %5, i64 4, 1
|
|
|
|
|
%7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %6, i64 4, 2
|
|
|
|
|
%8 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32)
|
|
|
|
|
%9 = getelementptr inbounds i64, ptr %8, i64 0
|
|
|
|
|
%10 = getelementptr inbounds i64, ptr %8, i64 1
|
|
|
|
|
%11 = getelementptr inbounds i64, ptr %8, i64 2
|
|
|
|
|
%12 = getelementptr inbounds i64, ptr %8, i64 3
|
|
|
|
|
store i64 1, ptr %9, align 4
|
|
|
|
|
store i64 2, ptr %10, align 4
|
|
|
|
|
store i64 3, ptr %11, align 4
|
|
|
|
|
store i64 4, ptr %12, align 4
|
|
|
|
|
%13 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 10)
|
|
|
|
|
%14 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %13, i64 1, i64 10, i64 0, i64 4, i64 10)
|
|
|
|
|
%15 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 1
|
|
|
|
|
%16 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 2
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %15)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %16)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
|
|
|
|
%17 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %14, 1
|
|
|
|
|
%18 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %14, 2
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %14)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %17)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %18)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 4)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 4)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 4)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 4)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%19 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32)
|
|
|
|
|
%20 = getelementptr inbounds i64, ptr %19, i64 0
|
|
|
|
|
store i64 1, ptr %20, align 4
|
|
|
|
|
%21 = getelementptr inbounds i64, ptr %19, i64 1
|
|
|
|
|
store i64 2, ptr %21, align 4
|
|
|
|
|
%22 = getelementptr inbounds i64, ptr %19, i64 2
|
|
|
|
|
store i64 3, ptr %22, align 4
|
|
|
|
|
%23 = getelementptr inbounds i64, ptr %19, i64 3
|
|
|
|
|
store i64 4, ptr %23, align 4
|
|
|
|
|
%24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %19, 0
|
|
|
|
|
%25 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %24, i64 4, 1
|
|
|
|
|
%26 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %25, i64 4, 2
|
|
|
|
|
%27 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %26, 1
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %27)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 4)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%28 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 2
|
|
|
|
|
%29 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 1
|
|
|
|
|
%30 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 0
|
|
|
|
|
%31 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %30, i64 8, i64 %28, i64 1, i64 %29, i64 %28)
|
|
|
|
|
%32 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %31, 1
|
|
|
|
|
%33 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 2
|
|
|
|
|
%34 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 1
|
|
|
|
|
%35 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 0
|
|
|
|
|
%36 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %35, i64 8, i64 %33, i64 1, i64 %34, i64 %33)
|
|
|
|
|
%37 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %36, 2
|
|
|
|
|
%38 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 2
|
|
|
|
|
%39 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 0
|
|
|
|
|
%40 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %39, i64 8, i64 %38, i64 1, i64 2, i64 %38)
|
|
|
|
|
%41 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %40, 1
|
|
|
|
|
%42 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 2
|
|
|
|
|
%43 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 0
|
|
|
|
|
%44 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %43, i64 8, i64 %42, i64 1, i64 2, i64 %42)
|
|
|
|
|
%45 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %44, 2
|
|
|
|
|
%46 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 2
|
|
|
|
|
%47 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 0
|
|
|
|
|
%48 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %47, i64 8, i64 %46, i64 1, i64 2, i64 2)
|
|
|
|
|
%49 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %48, 1
|
|
|
|
|
%50 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 2
|
|
|
|
|
%51 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, 0
|
|
|
|
|
%52 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %51, i64 8, i64 %50, i64 1, i64 2, i64 2)
|
|
|
|
|
%53 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %52, 2
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %37)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %41)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %45)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %49)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %53)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%54 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %8, i64 8, i64 4, i64 1, i64 4, i64 4)
|
|
|
|
|
%55 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %54, 1
|
|
|
|
|
%56 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %8, i64 8, i64 4, i64 1, i64 4, i64 4)
|
|
|
|
|
%57 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %56, 2
|
|
|
|
|
%58 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %8, i64 8, i64 4, i64 1, i64 2, i64 4)
|
|
|
|
|
%59 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %58, 1
|
|
|
|
|
%60 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %8, i64 8, i64 4, i64 1, i64 2, i64 4)
|
|
|
|
|
%61 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %60, 2
|
|
|
|
|
%62 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %8, i64 8, i64 4, i64 1, i64 2, i64 2)
|
|
|
|
|
%63 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %62, 1
|
|
|
|
|
%64 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %8, i64 8, i64 4, i64 1, i64 2, i64 2)
|
|
|
|
|
%65 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %64, 2
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %55)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %57)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %59)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %61)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %63)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %65)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%66 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, i64 1, i64 5)
|
|
|
|
|
%67 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, i64 1, i64 2)
|
|
|
|
|
%68 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 }, i64 5, i64 5)
|
|
|
|
|
%69 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.String" %68, 1
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 5 })
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %66)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %67)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %69)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%70 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32)
|
|
|
|
|
%71 = getelementptr inbounds i64, ptr %70, i64 0
|
|
|
|
|
store i64 5, ptr %71, align 4
|
|
|
|
|
%72 = getelementptr inbounds i64, ptr %70, i64 1
|
|
|
|
|
store i64 6, ptr %72, align 4
|
|
|
|
|
%73 = getelementptr inbounds i64, ptr %70, i64 2
|
|
|
|
|
store i64 7, ptr %73, align 4
|
|
|
|
|
%74 = getelementptr inbounds i64, ptr %70, i64 3
|
|
|
|
|
store i64 8, ptr %74, align 4
|
|
|
|
|
%75 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %70, 0
|
|
|
|
|
%76 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %75, i64 4, 1
|
|
|
|
|
%77 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %76, i64 4, 2
|
|
|
|
|
%78 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %77, 0
|
|
|
|
|
%79 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %77, 1
|
|
|
|
|
%80 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %7, ptr %78, i64 %79, i64 8)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %80)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%81 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 3)
|
|
|
|
|
%82 = getelementptr inbounds i8, ptr %81, i64 0
|
|
|
|
|
store i8 97, ptr %82, align 1
|
|
|
|
|
%83 = getelementptr inbounds i8, ptr %81, i64 1
|
|
|
|
|
store i8 98, ptr %83, align 1
|
|
|
|
|
%84 = getelementptr inbounds i8, ptr %81, i64 2
|
|
|
|
|
store i8 99, ptr %84, align 1
|
|
|
|
|
%85 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %81, 0
|
|
|
|
|
%86 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %85, i64 3, 1
|
|
|
|
|
%87 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %86, i64 3, 2
|
|
|
|
|
%88 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %87, ptr @1, i64 3, i64 1)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %88)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%89 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 16)
|
|
|
|
|
%90 = load ptr, ptr @_llgo_int, align 8
|
|
|
|
|
%91 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %90, 0
|
|
|
|
|
%92 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %91, ptr inttoptr (i64 100 to ptr), 1
|
|
|
|
|
store %"github.com/goplus/llgo/runtime/internal/runtime.eface" %92, ptr %89, align 8
|
|
|
|
|
%93 = load %"github.com/goplus/llgo/runtime/internal/runtime.eface", ptr %89, align 8
|
|
|
|
|
%94 = ptrtoint ptr %89 to i64
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 true)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 0)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 100)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 -100)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 255)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 -100)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double 0.000000e+00)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double 1.005000e+02)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintEface"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %93)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %89)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %94)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%95 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 3)
|
|
|
|
|
%96 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 8)
|
|
|
|
|
%97 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %95, 0
|
|
|
|
|
%98 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %97, i64 3, 1
|
|
|
|
|
%99 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %98, i64 3, 2
|
|
|
|
|
%100 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %88, 0
|
|
|
|
|
%101 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %88, 1
|
|
|
|
|
%102 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %99, ptr %100, i64 %101, i64 1)
|
|
|
|
|
store i64 %102, ptr %96, align 4
|
|
|
|
|
%103 = load i64, ptr %96, align 4
|
|
|
|
|
%104 = getelementptr inbounds i8, ptr %95, i64 0
|
|
|
|
|
%105 = load i8, ptr %104, align 1
|
|
|
|
|
%106 = getelementptr inbounds i8, ptr %95, i64 1
|
2024-11-24 15:19:16 +08:00
|
|
|
%107 = load i8, ptr %106, align 1
|
2025-01-13 10:38:46 +08:00
|
|
|
%108 = getelementptr inbounds i8, ptr %95, i64 2
|
2024-11-24 15:19:16 +08:00
|
|
|
%109 = load i8, ptr %108, align 1
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %103)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
%110 = zext i8 %105 to i64
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %110)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
%111 = zext i8 %107 to i64
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %111)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
%112 = zext i8 %109 to i64
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %112)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%113 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr %95, i64 1, i64 3, i64 1, i64 3, i64 3)
|
|
|
|
|
%114 = call i64 @"github.com/goplus/llgo/runtime/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %113, ptr @2, i64 4, i64 1)
|
|
|
|
|
store i64 %114, ptr %96, align 4
|
|
|
|
|
%115 = load i64, ptr %96, align 4
|
|
|
|
|
%116 = getelementptr inbounds i8, ptr %95, i64 0
|
|
|
|
|
%117 = load i8, ptr %116, align 1
|
|
|
|
|
%118 = getelementptr inbounds i8, ptr %95, i64 1
|
2024-11-24 15:19:16 +08:00
|
|
|
%119 = load i8, ptr %118, align 1
|
2025-01-13 10:38:46 +08:00
|
|
|
%120 = getelementptr inbounds i8, ptr %95, i64 2
|
2024-11-24 15:19:16 +08:00
|
|
|
%121 = load i8, ptr %120, align 1
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %115)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
%122 = zext i8 %117 to i64
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %122)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
%123 = zext i8 %119 to i64
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %123)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
%124 = zext i8 %121 to i64
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64 %124)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%125 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 8)
|
|
|
|
|
%126 = getelementptr inbounds { ptr }, ptr %125, i32 0, i32 0
|
|
|
|
|
store ptr %96, ptr %126, align 8
|
|
|
|
|
%127 = insertvalue { ptr, ptr } { ptr @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.main$2", ptr undef }, ptr %125, 1
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.demo")
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.demo")
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.main$1")
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
%128 = extractvalue { ptr, ptr } %127, 0
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %128)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%129 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewStringIter"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 7 })
|
2024-05-21 22:22:39 +08:00
|
|
|
br label %_llgo_1
|
|
|
|
|
|
|
|
|
|
_llgo_1: ; preds = %_llgo_2, %_llgo_0
|
2025-01-13 10:38:46 +08:00
|
|
|
%130 = call { i1, i64, i32 } @"github.com/goplus/llgo/runtime/internal/runtime.StringIterNext"(ptr %129)
|
|
|
|
|
%131 = extractvalue { i1, i64, i32 } %130, 0
|
|
|
|
|
br i1 %131, label %_llgo_2, label %_llgo_3
|
2024-05-21 22:22:39 +08:00
|
|
|
|
|
|
|
|
_llgo_2: ; preds = %_llgo_1
|
2025-01-13 10:38:46 +08:00
|
|
|
%132 = extractvalue { i1, i64, i32 } %130, 1
|
|
|
|
|
%133 = extractvalue { i1, i64, i32 } %130, 2
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %132)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
%134 = sext i32 %133 to i64
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %134)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2024-05-21 22:22:39 +08:00
|
|
|
br label %_llgo_1
|
|
|
|
|
|
|
|
|
|
_llgo_3: ; preds = %_llgo_1
|
2025-01-13 10:38:46 +08:00
|
|
|
%135 = call double @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.Inf"(i64 1)
|
|
|
|
|
%136 = call double @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.Inf"(i64 -1)
|
|
|
|
|
%137 = call double @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.NaN"()
|
|
|
|
|
%138 = call double @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.NaN"()
|
|
|
|
|
%139 = call i1 @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.IsNaN"(double %138)
|
|
|
|
|
%140 = call i1 @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.IsNaN"(double 1.000000e+00)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %135)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %136)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double %137)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %139)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %140)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%141 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 7 })
|
|
|
|
|
%142 = call %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToRunes"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @3, i64 7 })
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %141)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %142)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%143 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %141)
|
|
|
|
|
%144 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRunes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice" %142)
|
|
|
|
|
%145 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %141, 0
|
|
|
|
|
%146 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %141, 1
|
|
|
|
|
%147 = icmp sge i64 3, %146
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %147)
|
|
|
|
|
%148 = getelementptr inbounds i8, ptr %145, i64 3
|
|
|
|
|
%149 = load i8, ptr %148, align 1
|
|
|
|
|
%150 = sext i8 %149 to i32
|
|
|
|
|
%151 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRune"(i32 %150)
|
|
|
|
|
%152 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %142, 0
|
|
|
|
|
%153 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %142, 1
|
|
|
|
|
%154 = icmp sge i64 0, %153
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1 %154)
|
|
|
|
|
%155 = getelementptr inbounds i32, ptr %152, i64 0
|
|
|
|
|
%156 = load i32, ptr %155, align 4
|
|
|
|
|
%157 = call %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRune"(i32 %156)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %143)
|
|
|
|
|
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" %144)
|
|
|
|
|
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" %151)
|
|
|
|
|
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" %157)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
%158 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 })
|
|
|
|
|
%159 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 })
|
|
|
|
|
%160 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 })
|
|
|
|
|
%161 = xor i1 %160, true
|
|
|
|
|
%162 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringLess"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 })
|
|
|
|
|
%163 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringLess"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 })
|
|
|
|
|
%164 = xor i1 %163, true
|
2025-01-08 15:19:38 +08:00
|
|
|
%165 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringLess"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 })
|
2025-01-13 10:38:46 +08:00
|
|
|
%166 = call i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringLess"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @4, i64 3 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 3 })
|
|
|
|
|
%167 = xor i1 %166, true
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %158)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %159)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %161)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %162)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %164)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
2025-01-13 10:38:46 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %165)
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1 %167)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2025-01-13 10:38:46 +08:00
|
|
|
ret void
|
2024-04-30 13:53:04 +08:00
|
|
|
}
|
|
|
|
|
|
2025-01-13 10:38:46 +08:00
|
|
|
define void @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.main$1"() {
|
2024-06-17 19:30:59 +08:00
|
|
|
_llgo_0:
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 2 })
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2024-06-17 19:30:59 +08:00
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-13 10:38:46 +08:00
|
|
|
define void @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.main$2"(ptr %0) {
|
2024-06-17 19:30:59 +08:00
|
|
|
_llgo_0:
|
|
|
|
|
%1 = load { ptr }, ptr %0, align 8
|
|
|
|
|
%2 = extractvalue { ptr } %1, 0
|
|
|
|
|
%3 = load i64, ptr %2, align 4
|
2025-01-08 15:19:38 +08:00
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64 %3)
|
|
|
|
|
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
|
2024-06-17 19:30:59 +08:00
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64)
|
2024-04-30 13:53:04 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.NewSlice3"(ptr, i64, i64, i64, i64, i64)
|
2024-04-30 13:53:04 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice")
|
2024-05-15 21:26:53 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8)
|
2024-05-02 15:49:32 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt"(i64)
|
2024-05-15 21:26:53 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringSlice"(%"github.com/goplus/llgo/runtime/internal/runtime.String", i64, i64)
|
2024-05-03 10:30:07 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String")
|
2024-05-20 12:42:37 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.SliceAppend"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr, i64, i64)
|
2024-05-15 10:29:06 +08:00
|
|
|
|
2025-01-13 10:38:46 +08:00
|
|
|
define void @"github.com/goplus/llgo/compiler/cl/_testrt/builtin.init$after"() {
|
2024-05-31 08:12:27 +08:00
|
|
|
_llgo_0:
|
|
|
|
|
%0 = load ptr, ptr @_llgo_int, align 8
|
|
|
|
|
%1 = icmp eq ptr %0, null
|
|
|
|
|
br i1 %1, label %_llgo_1, label %_llgo_2
|
|
|
|
|
|
|
|
|
|
_llgo_1: ; preds = %_llgo_0
|
2025-01-08 15:19:38 +08:00
|
|
|
%2 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64 34)
|
2024-05-31 08:12:27 +08:00
|
|
|
store ptr %2, ptr @_llgo_int, align 8
|
|
|
|
|
br label %_llgo_2
|
|
|
|
|
|
|
|
|
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic"(i64)
|
2024-05-15 21:26:53 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintBool"(i1)
|
2024-05-15 21:26:53 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintUint"(i64)
|
2024-05-15 21:26:53 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintFloat"(double)
|
2024-05-15 21:26:53 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintEface"(%"github.com/goplus/llgo/runtime/internal/runtime.eface")
|
2024-05-15 21:26:53 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr)
|
2024-05-19 19:33:41 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare i64 @"github.com/goplus/llgo/runtime/internal/runtime.SliceCopy"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice", ptr, i64, i64)
|
2024-05-20 12:42:37 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64)
|
2024-05-20 12:42:37 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewStringIter"(%"github.com/goplus/llgo/runtime/internal/runtime.String")
|
2024-05-21 22:22:39 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare { i1, i64, i32 } @"github.com/goplus/llgo/runtime/internal/runtime.StringIterNext"(ptr)
|
2024-05-21 22:22:39 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.String")
|
2024-05-21 22:22:39 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare %"github.com/goplus/llgo/runtime/internal/runtime.Slice" @"github.com/goplus/llgo/runtime/internal/runtime.StringToRunes"(%"github.com/goplus/llgo/runtime/internal/runtime.String")
|
2024-05-21 22:22:39 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromBytes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice")
|
2024-05-21 22:22:39 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRunes"(%"github.com/goplus/llgo/runtime/internal/runtime.Slice")
|
2024-05-21 22:22:39 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare void @"github.com/goplus/llgo/runtime/internal/runtime.AssertIndexRange"(i1)
|
2024-06-17 21:00:05 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare %"github.com/goplus/llgo/runtime/internal/runtime.String" @"github.com/goplus/llgo/runtime/internal/runtime.StringFromRune"(i32)
|
2024-05-21 22:22:39 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringEqual"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String")
|
2024-05-21 22:22:39 +08:00
|
|
|
|
2025-01-08 15:19:38 +08:00
|
|
|
declare i1 @"github.com/goplus/llgo/runtime/internal/runtime.StringLess"(%"github.com/goplus/llgo/runtime/internal/runtime.String", %"github.com/goplus/llgo/runtime/internal/runtime.String")
|