@@ -32,14 +32,14 @@ struct A {
32
32
}
33
33
34
34
// CHECK-LABEL: sil hidden @_T010addressors1AV9subscripts5Int32VAFcflu : $@convention(method) (Int32, A) -> UnsafePointer<Int32>
35
- // CHECK: bb0([[INDEX:%.*]] : @trivial $Int32, [[SELF:%.*]] : @trivial $A):
35
+ // CHECK: bb0([[INDEX:%.*]] : $Int32, [[SELF:%.*]] : $A):
36
36
// CHECK: [[BASE:%.*]] = struct_extract [[SELF]] : $A, #A.base
37
37
// CHECK: [[T0:%.*]] = struct_extract [[BASE]] : $UnsafeMutablePointer<Int32>, #UnsafeMutablePointer._rawValue
38
38
// CHECK: [[T1:%.*]] = struct $UnsafePointer<Int32> ([[T0]] : $Builtin.RawPointer)
39
39
// CHECK: return [[T1]] : $UnsafePointer<Int32>
40
40
41
41
// CHECK-LABEL: sil hidden @_T010addressors1AV9subscripts5Int32VAFcfau : $@convention(method) (Int32, @inout A) -> UnsafeMutablePointer<Int32>
42
- // CHECK: bb0([[INDEX:%.*]] : @trivial $Int32, [[SELF:%.*]] : @trivial $*A):
42
+ // CHECK: bb0([[INDEX:%.*]] : $Int32, [[SELF:%.*]] : $*A):
43
43
// CHECK: [[READ:%.*]] = begin_access [read] [static] [[SELF]] : $*A
44
44
// CHECK: [[T0:%.*]] = struct_element_addr [[READ]] : $*A, #A.base
45
45
// CHECK: [[BASE:%.*]] = load [[T0]] : $*UnsafeMutablePointer<Int32>
@@ -132,7 +132,7 @@ struct B : Subscriptable {
132
132
}
133
133
134
134
// CHECK-LABEL: sil hidden @_T010addressors6test_ByAA1BVzF : $@convention(thin) (@inout B) -> () {
135
- // CHECK: bb0([[B:%.*]] : @trivial $*B):
135
+ // CHECK: bb0([[B:%.*]] : $*B):
136
136
// CHECK: [[T0:%.*]] = integer_literal $Builtin.Int32, 0
137
137
// CHECK: [[INDEX:%.*]] = struct $Int32 ([[T0]] : $Builtin.Int32)
138
138
// CHECK: [[RHS:%.*]] = integer_literal $Builtin.Int32, 7
@@ -162,7 +162,7 @@ struct CArray<T> {
162
162
func id_int( _ i: Int32 ) -> Int32 { return i }
163
163
164
164
// CHECK-LABEL: sil hidden @_T010addressors11test_carrays5Int32VAA6CArrayVyA2DcGzF : $@convention(thin) (@inout CArray<(Int32) -> Int32>) -> Int32 {
165
- // CHECK: bb0([[ARRAY:%.*]] : @trivial $*CArray<(Int32) -> Int32>):
165
+ // CHECK: bb0([[ARRAY:%.*]] : $*CArray<(Int32) -> Int32>):
166
166
func test_carray( _ array: inout CArray < ( Int32 ) -> Int32 > ) -> Int32 {
167
167
// CHECK: [[WRITE:%.*]] = begin_access [modify] [static] [[ARRAY]] : $*CArray<(Int32) -> Int32>
168
168
// CHECK: [[T0:%.*]] = function_ref @_T010addressors6CArrayV9subscriptxSicfau :
@@ -218,7 +218,7 @@ func make_int() -> Int32 { return 0 }
218
218
func take_int_inout( _ value: inout Int32 ) { }
219
219
220
220
// CHECK-LABEL: sil hidden @_T010addressors6test_ds5Int32VAA1DVzF : $@convention(thin) (@inout D) -> Int32
221
- // CHECK: bb0([[ARRAY:%.*]] : @trivial $*D):
221
+ // CHECK: bb0([[ARRAY:%.*]] : $*D):
222
222
func test_d( _ array: inout D ) -> Int32 {
223
223
// CHECK: [[T0:%.*]] = function_ref @_T010addressors8make_ints5Int32VyF
224
224
// CHECK: [[V:%.*]] = apply [[T0]]()
@@ -255,7 +255,7 @@ struct E {
255
255
}
256
256
257
257
// CHECK-LABEL: sil hidden @_T010addressors6test_eyAA1EVF
258
- // CHECK: bb0([[E:%.*]] : @trivial $E):
258
+ // CHECK: bb0([[E:%.*]] : $E):
259
259
// CHECK: [[T0:%.*]] = function_ref @_T010addressors1EV5values5Int32Vfau
260
260
// CHECK: [[T1:%.*]] = apply [[T0]]([[E]])
261
261
// CHECK: [[T2:%.*]] = struct_extract [[T1]]
@@ -285,7 +285,7 @@ func test_f0(_ f: F) -> Int32 {
285
285
return f. value
286
286
}
287
287
// CHECK-LABEL: sil hidden @_T010addressors7test_f0s5Int32VAA1FCF : $@convention(thin) (@owned F) -> Int32 {
288
- // CHECK: bb0([[SELF:%0]] : @owned $F):
288
+ // CHECK: bb0([[SELF:%0]] : $F):
289
289
// CHECK: [[ADDRESSOR:%.*]] = function_ref @_T010addressors1FC5values5Int32Vflo : $@convention(method) (@guaranteed F) -> (UnsafePointer<Int32>, @owned Builtin.NativeObject)
290
290
// CHECK: [[T0:%.*]] = apply [[ADDRESSOR]]([[SELF]])
291
291
// CHECK: [[PTR:%.*]] = tuple_extract [[T0]] : $(UnsafePointer<Int32>, Builtin.NativeObject), 0
@@ -302,7 +302,7 @@ func test_f1(_ f: F) {
302
302
f. value = 14
303
303
}
304
304
// CHECK-LABEL: sil hidden @_T010addressors7test_f1yAA1FCF : $@convention(thin) (@owned F) -> () {
305
- // CHECK: bb0([[SELF:%0]] : @owned $F):
305
+ // CHECK: bb0([[SELF:%0]] : $F):
306
306
// CHECK: [[T0:%.*]] = integer_literal $Builtin.Int32, 14
307
307
// CHECK: [[VALUE:%.*]] = struct $Int32 ([[T0]] : $Builtin.Int32)
308
308
// CHECK: [[ADDRESSOR:%.*]] = function_ref @_T010addressors1FC5values5Int32Vfao : $@convention(method) (@guaranteed F) -> (UnsafeMutablePointer<Int32>, @owned Builtin.NativeObject)
@@ -329,7 +329,7 @@ class G {
329
329
}
330
330
}
331
331
// CHECK-LABEL: sil hidden [transparent] @_T010addressors1GC5values5Int32Vfg : $@convention(method) (@guaranteed G) -> Int32 {
332
- // CHECK: bb0([[SELF:%0]] : @guaranteed $G):
332
+ // CHECK: bb0([[SELF:%0]] : $G):
333
333
// CHECK: [[ADDRESSOR:%.*]] = function_ref @_T010addressors1GC5values5Int32Vflo : $@convention(method) (@guaranteed G) -> (UnsafePointer<Int32>, @owned Builtin.NativeObject)
334
334
// CHECK: [[T0:%.*]] = apply [[ADDRESSOR]]([[SELF]])
335
335
// CHECK: [[PTR:%.*]] = tuple_extract [[T0]] : $(UnsafePointer<Int32>, Builtin.NativeObject), 0
@@ -342,7 +342,7 @@ class G {
342
342
// CHECK: return [[VALUE]] : $Int32
343
343
344
344
// CHECK-LABEL: sil hidden [transparent] @_T010addressors1GC5values5Int32Vfs : $@convention(method) (Int32, @guaranteed G) -> () {
345
- // CHECK: bb0([[VALUE:%0]] : @trivial $Int32, [[SELF:%1]] : @guaranteed $G):
345
+ // CHECK: bb0([[VALUE:%0]] : $Int32, [[SELF:%1]] : $G):
346
346
// CHECK: [[ADDRESSOR:%.*]] = function_ref @_T010addressors1GC5values5Int32Vfao : $@convention(method) (@guaranteed G) -> (UnsafeMutablePointer<Int32>, @owned Builtin.NativeObject)
347
347
// CHECK: [[T0:%.*]] = apply [[ADDRESSOR]]([[SELF]])
348
348
// CHECK: [[PTR:%.*]] = tuple_extract [[T0]] : $(UnsafeMutablePointer<Int32>, Builtin.NativeObject), 0
@@ -355,15 +355,15 @@ class G {
355
355
356
356
// materializeForSet callback for G.value
357
357
// CHECK-LABEL: sil private [transparent] @_T010addressors1GC5values5Int32VfmytfU_ : $@convention(method) (Builtin.RawPointer, @inout Builtin.UnsafeValueBuffer, @inout G, @thick G.Type) -> () {
358
- // CHECK: bb0([[BUFFER:%0]] : @trivial $Builtin.RawPointer, [[STORAGE:%1]] : @trivial $*Builtin.UnsafeValueBuffer, [[SELF:%2]] : @trivial $*G, [[SELFTYPE:%3]] : @trivial $@thick G.Type):
358
+ // CHECK: bb0([[BUFFER:%0]] : $Builtin.RawPointer, [[STORAGE:%1]] : $*Builtin.UnsafeValueBuffer, [[SELF:%2]] : $*G, [[SELFTYPE:%3]] : $@thick G.Type):
359
359
// CHECK: [[T0:%.*]] = project_value_buffer $Builtin.NativeObject in [[STORAGE]] : $*Builtin.UnsafeValueBuffer
360
360
// CHECK: [[OWNER:%.*]] = load [[T0]]
361
361
// CHECK: strong_release [[OWNER]] : $Builtin.NativeObject
362
362
// CHECK: dealloc_value_buffer $Builtin.NativeObject in [[STORAGE]] : $*Builtin.UnsafeValueBuffer
363
363
364
364
// materializeForSet for G.value
365
365
// CHECK-LABEL: sil hidden [transparent] @_T010addressors1GC5values5Int32Vfm : $@convention(method) (Builtin.RawPointer, @inout Builtin.UnsafeValueBuffer, @guaranteed G) -> (Builtin.RawPointer, Optional<Builtin.RawPointer>) {
366
- // CHECK: bb0([[BUFFER:%0]] : @trivial $Builtin.RawPointer, [[STORAGE:%1]] : @trivial $*Builtin.UnsafeValueBuffer, [[SELF:%2]] : @guaranteed $G):
366
+ // CHECK: bb0([[BUFFER:%0]] : $Builtin.RawPointer, [[STORAGE:%1]] : $*Builtin.UnsafeValueBuffer, [[SELF:%2]] : $G):
367
367
// Call the addressor.
368
368
// CHECK: [[ADDRESSOR:%.*]] = function_ref @_T010addressors1GC5values5Int32Vfao : $@convention(method) (@guaranteed G) -> (UnsafeMutablePointer<Int32>, @owned Builtin.NativeObject)
369
369
// CHECK: [[T0:%.*]] = apply [[ADDRESSOR]]([[SELF]])
@@ -405,7 +405,7 @@ func test_h0(_ f: H) -> Int32 {
405
405
return f. value
406
406
}
407
407
// CHECK-LABEL: sil hidden @_T010addressors7test_h0s5Int32VAA1HCF : $@convention(thin) (@owned H) -> Int32 {
408
- // CHECK: bb0([[SELF:%0]] : @owned $H):
408
+ // CHECK: bb0([[SELF:%0]] : $H):
409
409
// CHECK: [[ADDRESSOR:%.*]] = function_ref @_T010addressors1HC5values5Int32Vflp : $@convention(method) (@guaranteed H) -> (UnsafePointer<Int32>, @owned Optional<Builtin.NativeObject>)
410
410
// CHECK: [[T0:%.*]] = apply [[ADDRESSOR]]([[SELF]])
411
411
// CHECK: [[PTR:%.*]] = tuple_extract [[T0]] : $(UnsafePointer<Int32>, Optional<Builtin.NativeObject>), 0
@@ -422,7 +422,7 @@ func test_h1(_ f: H) {
422
422
f. value = 14
423
423
}
424
424
// CHECK-LABEL: sil hidden @_T010addressors7test_h1yAA1HCF : $@convention(thin) (@owned H) -> () {
425
- // CHECK: bb0([[SELF:%0]] : @owned $H):
425
+ // CHECK: bb0([[SELF:%0]] : $H):
426
426
// CHECK: [[T0:%.*]] = integer_literal $Builtin.Int32, 14
427
427
// CHECK: [[VALUE:%.*]] = struct $Int32 ([[T0]] : $Builtin.Int32)
428
428
// CHECK: [[ADDRESSOR:%.*]] = function_ref @_T010addressors1HC5values5Int32VfaP : $@convention(method) (@guaranteed H) -> (UnsafeMutablePointer<Int32>, @owned Optional<Builtin.NativeObject>)
@@ -449,7 +449,7 @@ class I {
449
449
}
450
450
}
451
451
// CHECK-LABEL: sil hidden [transparent] @_T010addressors1IC5values5Int32Vfg : $@convention(method) (@guaranteed I) -> Int32 {
452
- // CHECK: bb0([[SELF:%0]] : @guaranteed $I):
452
+ // CHECK: bb0([[SELF:%0]] : $I):
453
453
// CHECK: [[ADDRESSOR:%.*]] = function_ref @_T010addressors1IC5values5Int32Vflp : $@convention(method) (@guaranteed I) -> (UnsafePointer<Int32>, @owned Optional<Builtin.NativeObject>)
454
454
// CHECK: [[T0:%.*]] = apply [[ADDRESSOR]]([[SELF]])
455
455
// CHECK: [[PTR:%.*]] = tuple_extract [[T0]] : $(UnsafePointer<Int32>, Optional<Builtin.NativeObject>), 0
@@ -462,7 +462,7 @@ class I {
462
462
// CHECK: return [[VALUE]] : $Int32
463
463
464
464
// CHECK-LABEL: sil hidden [transparent] @_T010addressors1IC5values5Int32Vfs : $@convention(method) (Int32, @guaranteed I) -> () {
465
- // CHECK: bb0([[VALUE:%0]] : @trivial $Int32, [[SELF:%1]] : @guaranteed $I):
465
+ // CHECK: bb0([[VALUE:%0]] : $Int32, [[SELF:%1]] : $I):
466
466
// CHECK: [[ADDRESSOR:%.*]] = function_ref @_T010addressors1IC5values5Int32VfaP : $@convention(method) (@guaranteed I) -> (UnsafeMutablePointer<Int32>, @owned Optional<Builtin.NativeObject>)
467
467
// CHECK: [[T0:%.*]] = apply [[ADDRESSOR]]([[SELF]])
468
468
// CHECK: [[PTR:%.*]] = tuple_extract [[T0]] : $(UnsafeMutablePointer<Int32>, Optional<Builtin.NativeObject>), 0
@@ -475,14 +475,14 @@ class I {
475
475
476
476
// materializeForSet callback for I.value
477
477
// CHECK-LABEL: sil private [transparent] @_T010addressors1IC5values5Int32VfmytfU_ : $@convention(method) (Builtin.RawPointer, @inout Builtin.UnsafeValueBuffer, @inout I, @thick I.Type) -> () {
478
- // CHECK: bb0([[BUFFER:%0]] : @trivial $Builtin.RawPointer, [[STORAGE:%1]] : @trivial $*Builtin.UnsafeValueBuffer, [[SELF:%2]] : @trivial $*I, [[SELFTYPE:%3]] : @trivial $@thick I.Type):
478
+ // CHECK: bb0([[BUFFER:%0]] : $Builtin.RawPointer, [[STORAGE:%1]] : $*Builtin.UnsafeValueBuffer, [[SELF:%2]] : $*I, [[SELFTYPE:%3]] : $@thick I.Type):
479
479
// CHECK: [[T0:%.*]] = project_value_buffer $Optional<Builtin.NativeObject> in [[STORAGE]] : $*Builtin.UnsafeValueBuffer
480
480
// CHECK: [[OWNER:%.*]] = load [[T0]]
481
481
// CHECK: strong_unpin [[OWNER]] : $Optional<Builtin.NativeObject>
482
482
// CHECK: dealloc_value_buffer $Optional<Builtin.NativeObject> in [[STORAGE]] : $*Builtin.UnsafeValueBuffer
483
483
484
484
// CHECK-LABEL: sil hidden [transparent] @_T010addressors1IC5values5Int32Vfm : $@convention(method) (Builtin.RawPointer, @inout Builtin.UnsafeValueBuffer, @guaranteed I) -> (Builtin.RawPointer, Optional<Builtin.RawPointer>) {
485
- // CHECK: bb0([[BUFFER:%0]] : @trivial $Builtin.RawPointer, [[STORAGE:%1]] : @trivial $*Builtin.UnsafeValueBuffer, [[SELF:%2]] : @guaranteed $I):
485
+ // CHECK: bb0([[BUFFER:%0]] : $Builtin.RawPointer, [[STORAGE:%1]] : $*Builtin.UnsafeValueBuffer, [[SELF:%2]] : $I):
486
486
// Call the addressor.
487
487
// CHECK: [[ADDRESSOR:%.*]] = function_ref @_T010addressors1IC5values5Int32VfaP : $@convention(method) (@guaranteed I) -> (UnsafeMutablePointer<Int32>, @owned Optional<Builtin.NativeObject>)
488
488
// CHECK: [[T0:%.*]] = apply [[ADDRESSOR]]([[SELF]])
0 commit comments