update llgo_autogen.ll

This commit is contained in:
xushiwei
2024-04-29 03:45:52 +08:00
parent 2986cb0c5f
commit 7979cfcb06
2 changed files with 13 additions and 13 deletions

View File

@@ -577,8 +577,8 @@ _llgo_0:
%1 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %0, i32 0, i32 6
%2 = load i8, ptr %1, align 1
%3 = and i8 %2, 31
%castInt = sext i8 %3 to i64
ret i64 %castInt
%4 = sext i8 %3 to i64
ret i64 %4
}
define i64 @"(*github.com/goplus/llgo/internal/abi.Type).Len"(ptr %0) {

View File

@@ -39,8 +39,8 @@ _llgo_0:
_llgo_1: ; preds = %_llgo_0
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %2, i32 0, i32 1
%9 = load ptr, ptr %8, align 8
%ptr2int = ptrtoint ptr %9 to i64
%mrv = insertvalue { i64, i1 } poison, i64 %ptr2int, 0
%10 = ptrtoint ptr %9 to i64
%mrv = insertvalue { i64, i1 } poison, i64 %10, 0
%mrv1 = insertvalue { i64, i1 } %mrv, i1 true, 1
ret { i64, i1 } %mrv1
@@ -73,11 +73,11 @@ _llgo_0:
_llgo_1: ; preds = %_llgo_0
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %2, i32 0, i32 1
%9 = load ptr, ptr %8, align 8
%ptr2int = ptrtoint ptr %9 to i64
ret i64 %ptr2int
%10 = ptrtoint ptr %9 to i64
ret i64 %10
_llgo_2: ; preds = %_llgo_0
%10 = call %"github.com/goplus/llgo/internal/runtime.iface" @"github.com/goplus/llgo/internal/runtime.MakeAnyString"([21 x i8] c"I2Int: type mismatch\00")
%11 = call %"github.com/goplus/llgo/internal/runtime.iface" @"github.com/goplus/llgo/internal/runtime.MakeAnyString"([21 x i8] c"I2Int: type mismatch\00")
unreachable
}
@@ -119,11 +119,11 @@ _llgo_0:
store i32 0, ptr %8, align 4
store i64 0, ptr %10, align 4
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.iface", ptr %2, i32 0, i32 1
%int2ptr = inttoptr i64 %1 to ptr
%12 = inttoptr i64 %1 to ptr
store ptr %4, ptr %3, align 8
store ptr %int2ptr, ptr %11, align 8
%12 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %2, align 8
ret %"github.com/goplus/llgo/internal/runtime.iface" %12
store ptr %12, ptr %11, align 8
%13 = load %"github.com/goplus/llgo/internal/runtime.iface", ptr %2, align 8
ret %"github.com/goplus/llgo/internal/runtime.iface" %13
}
define %"github.com/goplus/llgo/internal/runtime.iface" @"github.com/goplus/llgo/internal/runtime.MakeAnyString"(%"github.com/goplus/llgo/internal/runtime.String" %0) {
@@ -194,9 +194,9 @@ _llgo_0:
%3 = getelementptr inbounds i64, ptr @"github.com/goplus/llgo/internal/runtime.sizeBasicTypes", i64 %0
%4 = load i64, ptr %3, align 4
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %1, i32 0, i32 6
%truncInt = trunc i64 %0 to i8
%6 = trunc i64 %0 to i8
store i64 %4, ptr %2, align 4
store i8 %truncInt, ptr %5, align 1
store i8 %6, ptr %5, align 1
ret ptr %1
}