ssa: MakeInterface check abi.KindDirectIface

This commit is contained in:
visualfc
2024-06-02 19:56:37 +08:00
parent 73d6bd8400
commit 7596658e6c
13 changed files with 1761 additions and 712 deletions

View File

@@ -85,7 +85,7 @@ _llgo_0:
%7 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %6, 0
%8 = getelementptr ptr, ptr %7, i64 3
%9 = load ptr, ptr %8, align 8
%10 = extractvalue %"github.com/goplus/llgo/internal/runtime.iface" %6, 1
%10 = call ptr @"github.com/goplus/llgo/internal/runtime.IfaceData"(%"github.com/goplus/llgo/internal/runtime.iface" %6)
%11 = alloca { ptr, ptr }, align 8
%12 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
store ptr %9, ptr %12, align 8
@@ -300,4 +300,6 @@ declare void @"github.com/goplus/llgo/internal/runtime.PrintIface"(%"github.com/
declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8)
declare ptr @"github.com/goplus/llgo/internal/runtime.IfaceData"(%"github.com/goplus/llgo/internal/runtime.iface")
declare void @"github.com/goplus/llgo/internal/runtime.PrintString"(%"github.com/goplus/llgo/internal/runtime.String")