@@ -114,42 +114,6 @@ _llgo_2: ; preds = %_llgo_0
114114 unreachable
115115}
116116
117- define linkonce void @"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int].Info" (%"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" %0 ) {
118- _llgo_0:
119- %1 = alloca %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , align 8
120- call void @llvm.memset (ptr %1 , i8 0 , i64 24 , i1 false )
121- store %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" %0 , ptr %1 , align 8
122- %2 = getelementptr inbounds %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , ptr %1 , i32 0 , i32 0
123- %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.String" , ptr %2 , align 8
124- %4 = getelementptr inbounds %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , ptr %1 , i32 0 , i32 1
125- %5 = load i64 , ptr %4 , align 4
126- call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString" (%"github.com/goplus/llgo/runtime/internal/runtime.String" %3 )
127- call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte" (i8 32 )
128- call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt" (i64 %5 )
129- call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte" (i8 10 )
130- ret void
131- }
132-
133- define linkonce void @"github.com/goplus/llgo/cl/_testrt/tpabi.(*T[string,int]).Demo" (ptr %0 ) {
134- _llgo_0:
135- %1 = getelementptr inbounds %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , ptr %0 , i32 0 , i32 0
136- %2 = load %"github.com/goplus/llgo/runtime/internal/runtime.String" , ptr %1 , align 8
137- %3 = getelementptr inbounds %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , ptr %0 , i32 0 , i32 1
138- %4 = load i64 , ptr %3 , align 4
139- call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString" (%"github.com/goplus/llgo/runtime/internal/runtime.String" %2 )
140- call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte" (i8 32 )
141- call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt" (i64 %4 )
142- call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte" (i8 10 )
143- ret void
144- }
145-
146- define void @"github.com/goplus/llgo/cl/_testrt/tpabi.(*T[string,int]).Info" (ptr %0 ) {
147- _llgo_0:
148- %1 = load %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , ptr %0 , align 8
149- call void @"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int].Info" (%"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" %1 )
150- ret void
151- }
152-
153117; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
154118declare void @llvm.memset (ptr nocapture writeonly , i8 , i64 , i1 immarg) #0
155119
@@ -288,6 +252,42 @@ _llgo_14: ; preds = %_llgo_13, %_llgo_12
288252
289253declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed" (%"github.com/goplus/llgo/runtime/internal/runtime.String" , %"github.com/goplus/llgo/runtime/internal/runtime.String" , i64 , i64 , i64 , i64 )
290254
255+ define linkonce void @"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int].Info" (%"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" %0 ) {
256+ _llgo_0:
257+ %1 = alloca %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , align 8
258+ call void @llvm.memset (ptr %1 , i8 0 , i64 24 , i1 false )
259+ store %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" %0 , ptr %1 , align 8
260+ %2 = getelementptr inbounds %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , ptr %1 , i32 0 , i32 0
261+ %3 = load %"github.com/goplus/llgo/runtime/internal/runtime.String" , ptr %2 , align 8
262+ %4 = getelementptr inbounds %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , ptr %1 , i32 0 , i32 1
263+ %5 = load i64 , ptr %4 , align 4
264+ call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString" (%"github.com/goplus/llgo/runtime/internal/runtime.String" %3 )
265+ call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte" (i8 32 )
266+ call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt" (i64 %5 )
267+ call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte" (i8 10 )
268+ ret void
269+ }
270+
271+ define linkonce void @"github.com/goplus/llgo/cl/_testrt/tpabi.(*T[string,int]).Demo" (ptr %0 ) {
272+ _llgo_0:
273+ %1 = getelementptr inbounds %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , ptr %0 , i32 0 , i32 0
274+ %2 = load %"github.com/goplus/llgo/runtime/internal/runtime.String" , ptr %1 , align 8
275+ %3 = getelementptr inbounds %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , ptr %0 , i32 0 , i32 1
276+ %4 = load i64 , ptr %3 , align 4
277+ call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString" (%"github.com/goplus/llgo/runtime/internal/runtime.String" %2 )
278+ call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte" (i8 32 )
279+ call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintInt" (i64 %4 )
280+ call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte" (i8 10 )
281+ ret void
282+ }
283+
284+ define linkonce void @"github.com/goplus/llgo/cl/_testrt/tpabi.(*T[string,int]).Info" (ptr %0 ) {
285+ _llgo_0:
286+ %1 = load %"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" , ptr %0 , align 8
287+ call void @"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int].Info" (%"github.com/goplus/llgo/cl/_testrt/tpabi.T[string,int]" %1 )
288+ ret void
289+ }
290+
291291declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Basic" (i64 )
292292
293293declare ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct" (%"github.com/goplus/llgo/runtime/internal/runtime.String" , i64 , %"github.com/goplus/llgo/runtime/internal/runtime.Slice" )
0 commit comments