ssa: fix setDirectIface

This commit is contained in:
visualfc
2024-07-08 20:19:25 +08:00
parent ccf915e798
commit 73b42f924d
15 changed files with 103 additions and 0 deletions

View File

@@ -335,6 +335,7 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_3
_llgo_7: ; preds = %_llgo_6
%91 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
%92 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %91)
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %92)
store ptr %92, ptr @"*_llgo_byte", align 8
br label %_llgo_8
@@ -366,6 +367,7 @@ _llgo_9: ; preds = %_llgo_8
store i64 1, ptr %107, align 4
%108 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %104, align 8
%109 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %101, %"github.com/goplus/llgo/internal/runtime.Slice" %108, i1 false)
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %109)
store ptr %109, ptr @"_llgo_func$NfGSLZ1QiKRoFkKeqYSXE5hUU5bpeteSJKrbMNUzYRE", align 8
br label %_llgo_10
@@ -443,6 +445,8 @@ declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64)
declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice")
declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr)
declare ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice", i1)
declare ptr @"github.com/goplus/llgo/cl/internal/foo.(*Foo).Pb"(ptr)