@@ -90,7 +90,7 @@ public distributed actor MyOtherActor {
90
90
91
91
// CHECK: define hidden swifttailcc void @"$s27distributed_actor_accessors7MyActorC7simple1yySiFTE"
92
92
93
- // CHECK: define internal swifttailcc void @"$s27distributed_actor_accessors7MyActorC7simple1yySiFTETF"(%swift.context* swiftasync %0, i8* %1, i8* %2, % T27distributed_actor_accessors7MyActorC* %3 )
93
+ // CHECK: define internal swifttailcc void @"$s27distributed_actor_accessors7MyActorC7simple1yySiFTETF"(%swift.context* swiftasync %0, i8* %1, i8* %2, i8* %3, i8* %4, % T27distributed_actor_accessors7MyActorC* %5 )
94
94
95
95
/// Read the current offset and cast an element to `Int`
96
96
@@ -113,7 +113,7 @@ public distributed actor MyOtherActor {
113
113
// CHECK-SAME: i8* bitcast (void (%swift.context*, i64, %T27distributed_actor_accessors7MyActorC*)* @"$s27distributed_actor_accessors7MyActorC7simple1yySiFTE" to i8*),
114
114
// CHECK-SAME: %swift.context* [[THUNK_CONTEXT_PTR]],
115
115
// CHECK-SAME: i64 [[ARG_VAL]],
116
- // CHECK-SAME: %T27distributed_actor_accessors7MyActorC* %3 )
116
+ // CHECK-SAME: %T27distributed_actor_accessors7MyActorC* %5 )
117
117
118
118
// CHECK-NEXT: [[TASK_REF:%.*]] = extractvalue { i8*, %swift.error* } [[THUNK_RESULT]], 0
119
119
// CHECK-NEXT: {{.*}} = call i8* @__swift_async_resume_project_context(i8* [[TASK_REF]])
@@ -141,7 +141,7 @@ public distributed actor MyOtherActor {
141
141
// CHECK-SAME: i8* bitcast (void (%swift.context*, i64, %T27distributed_actor_accessors7MyActorC*)* @"$s27distributed_actor_accessors7MyActorC7simple2ySSSiFTE" to i8*),
142
142
// CHECK-SAME: %swift.context* [[THUNK_CONTEXT_PTR]],
143
143
// CHECK-SAME: i64 [[NATIVE_ARG_VAL]],
144
- // CHECK-SAME: %T27distributed_actor_accessors7MyActorC* %3 )
144
+ // CHECK-SAME: %T27distributed_actor_accessors7MyActorC* %5 )
145
145
146
146
// CHECK-NEXT: [[TASK_REF:%.*]] = extractvalue { i8*, i64, %swift.bridge*, %swift.error* } [[THUNK_RESULT]], 0
147
147
// CHECK-NEXT: {{.*}} = call i8* @__swift_async_resume_project_context(i8* [[TASK_REF]])
@@ -164,7 +164,7 @@ public distributed actor MyOtherActor {
164
164
// CHECK: define hidden swifttailcc void @"$s27distributed_actor_accessors7MyActorC7simple3ySiSSFTE"
165
165
166
166
/// !!! in `simple3` interesting bits are: argument value extraction (because string is exploded into N arguments) and call to distributed thunk
167
- // CHECK: define internal swifttailcc void @"$s27distributed_actor_accessors7MyActorC7simple3ySiSSFTETF"(%swift.context* swiftasync {{.*}}, i8* [[ARG_BUFF:%.*]], i8* [[RESULT_BUFF:%.*]], %T27distributed_actor_accessors7MyActorC* {{.*}})
167
+ // CHECK: define internal swifttailcc void @"$s27distributed_actor_accessors7MyActorC7simple3ySiSSFTETF"(%swift.context* swiftasync {{.*}}, i8* [[ARG_BUFF:%.*]], i8* [[ARG_TYPES:%.*]], i8* [[ RESULT_BUFF:%.*]], {{.*}} , %T27distributed_actor_accessors7MyActorC* {{.*}})
168
168
169
169
// CHECK: [[TYPED_RESULT_BUFF:%.*]] = bitcast i8* [[RESULT_BUFF]] to %TSi*
170
170
@@ -188,7 +188,7 @@ public distributed actor MyOtherActor {
188
188
// CHECK-SAME: %swift.context* [[THUNK_CONTEXT_PTR]],
189
189
// CHECK-SAME: i64 [[STR_SIZE]],
190
190
// CHECK-SAME: %swift.bridge* [[STR_VAL]],
191
- // CHECK-SAME: %T27distributed_actor_accessors7MyActorC* %3 )
191
+ // CHECK-SAME: %T27distributed_actor_accessors7MyActorC* %5 )
192
192
193
193
// CHECK-NEXT: [[TASK_REF:%.*]] = extractvalue { i8*, i64, %swift.error* } [[THUNK_RESULT]], 0
194
194
// CHECK-NEXT: {{.*}} = call i8* @__swift_async_resume_project_context(i8* [[TASK_REF]])
@@ -201,15 +201,14 @@ public distributed actor MyOtherActor {
201
201
202
202
// CHECK: define hidden swifttailcc void @"$s27distributed_actor_accessors7MyActorC16single_case_enumyAA7SimpleEOAFFTE"
203
203
204
- // CHECK: define internal swifttailcc void @"$s27distributed_actor_accessors7MyActorC16single_case_enumyAA7SimpleEOAFFTETF"(%swift.context* swiftasync %0, i8* [[BUFFER:%.*]], i8* [[RESULT_BUFF:%.*]], %T27distributed_actor_accessors7MyActorC* {{.*}})
204
+ // CHECK: define internal swifttailcc void @"$s27distributed_actor_accessors7MyActorC16single_case_enumyAA7SimpleEOAFFTETF"(%swift.context* swiftasync %0, i8* [[BUFFER:%.*]], i8* [[ARG_TYPES:%.*]], i8* [[ RESULT_BUFF:%.*]], {{.*}} , %T27distributed_actor_accessors7MyActorC* {{.*}})
205
205
206
206
/// First, let's check that there were no loads from the argument buffer and no stores to "current offset".
207
207
208
208
// CHECK: [[OFFSET:%.*]] = bitcast i8** %offset to i8*
209
209
// CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[OFFSET]])
210
210
// CHECK-NEXT: store i8* [[BUFFER]], i8** %offset
211
211
// CHECK-NEXT: %elt_offset = load i8*, i8** %offset
212
- // CHECK-NEXT: [[ELT_PTR:.*]] = bitcast i8* %elt_offset to %T27distributed_actor_accessors7SimpleEO*
213
212
// CHECK-NEXT: [[OFFSET:%.*]] = bitcast i8** %offset to i8*
214
213
// CHECK-NEXT call void @llvm.lifetime.end.p0i8(i64 8, i8* [[OFFSET]])
215
214
@@ -226,7 +225,7 @@ public distributed actor MyOtherActor {
226
225
227
226
/// First, Load both arguments from the buffer.
228
227
229
- // CHECK: [[TYPED_RESULT_BUFF:%.*]] = bitcast i8* %2 to %T27distributed_actor_accessors9IndirectEO*
228
+ // CHECK: [[TYPED_RESULT_BUFF:%.*]] = bitcast i8* [[RESULT_BUFF]] to %T27distributed_actor_accessors9IndirectEO*
230
229
// CHECK: store i8* %1, i8** %offset
231
230
// CHECK-NEXT: %elt_offset = load i8*, i8** %offset
232
231
@@ -257,7 +256,7 @@ public distributed actor MyOtherActor {
257
256
258
257
// CHECK: define hidden swifttailcc void @"$s27distributed_actor_accessors7MyActorC7complexyAA11LargeStructVSaySiG_AA3ObjCSSSgAFtFTE"
259
258
260
- // CHECK: define internal swifttailcc void @"$s27distributed_actor_accessors7MyActorC7complexyAA11LargeStructVSaySiG_AA3ObjCSSSgAFtFTETF"(%swift.context* swiftasync {{.*}}, i8* [[ARG_BUFF:%.*]], i8* [[RESULT_BUFF:%.*]], %T27distributed_actor_accessors7MyActorC* {{.*}})
259
+ // CHECK: define internal swifttailcc void @"$s27distributed_actor_accessors7MyActorC7complexyAA11LargeStructVSaySiG_AA3ObjCSSSgAFtFTETF"(%swift.context* swiftasync {{.*}}, i8* [[ARG_BUFF:%.*]], i8* [[ARG_TYPES:%.*]], i8* [[ RESULT_BUFF:%.*]], {{.*}} , %T27distributed_actor_accessors7MyActorC* {{.*}})
261
260
262
261
/// First, let's check that all of the different argument types here are loaded correctly.
263
262
@@ -318,7 +317,7 @@ public distributed actor MyOtherActor {
318
317
319
318
/// Let's check that there is no offset allocation here since parameter list is empty
320
319
321
- // CHECK: define internal swifttailcc void @"$s27distributed_actor_accessors12MyOtherActorC5emptyyyFTETF"(%swift.context* swiftasync {{.*}}, i8* [[ARG_BUFF:%.*]], i8* [[RESULT_BUFF:%.*]], %T27distributed_actor_accessors12MyOtherActorC* {{.*}})
320
+ // CHECK: define internal swifttailcc void @"$s27distributed_actor_accessors12MyOtherActorC5emptyyyFTETF"(%swift.context* swiftasync {{.*}}, i8* [[ARG_BUFF:%.*]], i8* [[ARG_TYPES:%.*]], i8* [[ RESULT_BUFF:%.*]], {{.*}} , %T27distributed_actor_accessors12MyOtherActorC* {{.*}})
322
321
// CHECK-NEXT: entry:
323
322
// CHECK-NEXT: {{.*}} = alloca %swift.context*
324
323
// CHECK-NEXT: %swifterror = alloca swifterror %swift.error*
0 commit comments