Slide 46
Slide 46 text
Allocations
sil hidden @SILInspector.test () -> () : $@convention(thin) () -> () {
bb0:
%0 = alloc_box ${ var Array }, var, name "arr", loc "":5:9, scope
2 // users: %59, %34, %33, %1
%1 = project_box %0 : ${ var Array }, 0, loc "":5:9, scope 2 // users:
%57, %12
%2 = metatype $@thin Array.Type, loc "":5:15, scope 2 // user: %11
%3 = integer_literal $Builtin.Int64, 0, loc "":5:37, scope 2 // user: %4
%4 = struct $Int (%3 : $Builtin.Int64), loc "":5:37, scope 2 // user: %6
%5 = alloc_stack $Int, loc "":5:37, scope 2 // users: %10, %6, %13
store %4 to %5 : $*Int, loc "":5:37, scope 2 // id: %6