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

@@ -256,6 +256,7 @@ _llgo_0:
_llgo_1: ; preds = %_llgo_0
%2 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64 25, i64 2, i64 2)
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %2)
store ptr %2, ptr @_llgo_main.Game1, align 8
br label %_llgo_2
@@ -298,6 +299,7 @@ _llgo_3: ; preds = %_llgo_2
store i64 1, ptr %25, align 4
%26 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %22, align 8
%27 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %19, i64 8, %"github.com/goplus/llgo/internal/runtime.Slice" %26)
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %27)
store ptr %27, ptr @"_llgo_struct$cJmCzeVn0orHWafCrTGAnbbAF46F2A4Fms4bJBm8ITI", align 8
br label %_llgo_4
@@ -341,6 +343,7 @@ _llgo_7: ; preds = %_llgo_5
store i64 0, ptr %47, align 4
%48 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %44, align 8
%49 = call ptr @"github.com/goplus/llgo/internal/runtime.Func"(%"github.com/goplus/llgo/internal/runtime.Slice" %42, %"github.com/goplus/llgo/internal/runtime.Slice" %48, i1 false)
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %49)
store ptr %49, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
br label %_llgo_8
@@ -430,6 +433,7 @@ _llgo_8: ; preds = %_llgo_7, %_llgo_5
_llgo_9: ; preds = %_llgo_6
%101 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %2)
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %101)
store ptr %101, ptr @"*_llgo_main.Game1", align 8
br label %_llgo_10
@@ -529,6 +533,7 @@ _llgo_16: ; preds = %_llgo_15, %_llgo_14
_llgo_17: ; preds = %_llgo_16
%151 = call ptr @"github.com/goplus/llgo/internal/runtime.PointerTo"(ptr %104)
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %151)
store ptr %151, ptr @"*_llgo_main.Game2", align 8
br label %_llgo_18
@@ -652,6 +657,8 @@ _llgo_20: ; preds = %_llgo_19, %_llgo_18
declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(i64, i64, i64)
declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr)
declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice")
declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1)