@@ -23,13 +23,13 @@ - (int)getInt __attribute__((objc_direct));
2323@end
2424
2525@implementation Root
26- // CHECK-LABEL: define hidden i32 @"\01-[Root intProperty2]_inner "(ptr noundef nonnull %{{.*}}
26+ // CHECK-LABEL: define hidden i32 @"\01-[Root intProperty2]_nonnull "(ptr noundef nonnull %{{.*}}
2727// CHECK-LABEL: define hidden i32 @"\01-[Root intProperty2]"(ptr noundef %{{.*}}
2828- (int )intProperty2 {
2929 return 42 ;
3030}
3131
32- // CHECK-LABEL: define hidden i32 @"\01-[Root getInt]_inner "(ptr noundef nonnull %{{.*}}
32+ // CHECK-LABEL: define hidden i32 @"\01-[Root getInt]_nonnull "(ptr noundef nonnull %{{.*}}
3333// CHECK-NEXT: entry:
3434// CHECK-NEXT: [[SELFADDR:%.*]] = alloca ptr,
3535// CHECK-NEXT: store ptr %{{.*}}, ptr [[SELFADDR]],
@@ -54,7 +54,7 @@ - (int)getInt __attribute__((objc_direct)) {
5454
5555 // set value
5656 // CHECK-LABEL: objc_direct_method.cont:
57- // CHECK-NEXT: [[RET:%.*]] = call i32 @"\01-[Root getInt]_inner "(ptr noundef nonnull [[ARG0]]
57+ // CHECK-NEXT: [[RET:%.*]] = call i32 @"\01-[Root getInt]_nonnull "(ptr noundef nonnull [[ARG0]]
5858 // CHECK-NEXT: store i32 [[RET]], ptr [[RETVAL]]
5959 // CHECK-NEXT: br label %return
6060
@@ -65,7 +65,7 @@ - (int)getInt __attribute__((objc_direct)) {
6565 return 42 ;
6666}
6767
68- // CHECK-NOT: @"\01+[Root classGetInt]_inner "
68+ // CHECK-NOT: @"\01+[Root classGetInt]_nonnull "
6969+ (int )classGetInt __attribute__((objc_direct)) {
7070 // CHECK: define hidden i32 @"\01+[Root classGetInt]"(ptr noundef [[ARGSELF:%.*]])
7171 // [self self]
@@ -80,7 +80,7 @@ + (int)classGetInt __attribute__((objc_direct)) {
8080 return 42 ;
8181}
8282
83- // CHECK-LABEL: define hidden i64 @"\01-[Root getComplex]_inner "(ptr noundef nonnull %{{.*}}
83+ // CHECK-LABEL: define hidden i64 @"\01-[Root getComplex]_nonnull "(ptr noundef nonnull %{{.*}}
8484// CHECK-LABEL: entry:
8585// CHECK-NEXT: [[RETVAL:%.*]] = alloca
8686// CHECK-NEXT: [[SELFADDR:%.*]] = alloca ptr,
@@ -107,7 +107,7 @@ - (struct my_complex_struct)getComplex __attribute__((objc_direct)) {
107107
108108 // call the inner function set value
109109 // CHECK-LABEL: objc_direct_method.cont:
110- // CHECK-NEXT: [[CALL:%.*]] = call i64 @"\01-[Root getComplex]_inner "(ptr noundef nonnull [[ARGSELF]])
110+ // CHECK-NEXT: [[CALL:%.*]] = call i64 @"\01-[Root getComplex]_nonnull "(ptr noundef nonnull [[ARGSELF]])
111111 // CHECK-NEXT: store i64 [[CALL]], ptr [[RETVAL]]
112112 // CHECK-NEXT: br label
113113
@@ -119,14 +119,14 @@ - (struct my_complex_struct)getComplex __attribute__((objc_direct)) {
119119 return st;
120120}
121121
122- // CHECK-NOT: @"\01+[Root classGetComplex]_inner "
122+ // CHECK-NOT: @"\01+[Root classGetComplex]_nonnull "
123123+ (struct my_complex_struct)classGetComplex __attribute__((objc_direct)) {
124124 // CHECK-LABEL: define hidden i64 @"\01+[Root classGetComplex]"(ptr noundef
125125 struct my_complex_struct st = {.a = 42 };
126126 return st;
127127}
128128
129- // CHECK-LABEL: define hidden void @"\01-[Root getAggregate]_inner "(
129+ // CHECK-LABEL: define hidden void @"\01-[Root getAggregate]_nonnull "(
130130// CHECK: ptr {{.*}} sret(%struct.my_aggregate_struct) align 4 [[RETVAL:%[^,]*]], ptr noundef nonnull %self
131131// CHECK-LABEL: entry:
132132// CHECK-NEXT: [[SELFADDR:%.*]] = alloca ptr,
@@ -155,7 +155,7 @@ - (struct my_aggregate_struct)getAggregate __attribute__((objc_direct)) {
155155
156156 // set value
157157 // CHECK-LABEL: objc_direct_method.cont:
158- // CHECK-NEXT: call void @"\01-[Root getAggregate]_inner "(ptr dead_on_unwind noalias writable sret(%struct.my_aggregate_struct) align 4 [[RETVAL]], ptr noundef nonnull [[ARGSELF]])
158+ // CHECK-NEXT: call void @"\01-[Root getAggregate]_nonnull "(ptr dead_on_unwind noalias writable sret(%struct.my_aggregate_struct) align 4 [[RETVAL]], ptr noundef nonnull [[ARGSELF]])
159159 // CHECK-NEXT: br label
160160
161161 // return
@@ -166,13 +166,13 @@ - (struct my_aggregate_struct)getAggregate __attribute__((objc_direct)) {
166166}
167167
168168// CHECK-LABEL: define hidden void @"\01+[Root classGetAggregate]"({{.*}}, ptr noundef {{.*}})
169- // CHECK-NOT: @"\01+[Root classGetAggregate]_inner "
169+ // CHECK-NOT: @"\01+[Root classGetAggregate]_nonnull "
170170+ (struct my_aggregate_struct)classGetAggregate __attribute__((objc_direct)) {
171171 struct my_aggregate_struct st = {.a = 42 };
172172 return st;
173173}
174174
175- // CHECK-LABEL: define hidden void @"\01-[Root accessCmd]_inner "(ptr noundef nonnull
175+ // CHECK-LABEL: define hidden void @"\01-[Root accessCmd]_nonnull "(ptr noundef nonnull
176176// CHECK-LABEL: entry:
177177// CHECK-NEXT: [[SELFADDR:%.*]] = alloca ptr,
178178// CHECK-NEXT: [[CMDVAL:%_cmd]] = alloca ptr,
@@ -192,18 +192,18 @@ - (void)accessCmd __attribute__((objc_direct)) {
192192 // CHECK-NEXT: br label %return
193193
194194 // CHECK-LABEL: objc_direct_method.cont:
195- // CHECK-NEXT: call void @"\01-[Root accessCmd]_inner "(ptr noundef nonnull %{{.*}})
195+ // CHECK-NEXT: call void @"\01-[Root accessCmd]_nonnull "(ptr noundef nonnull %{{.*}})
196196 // CHECK-NEXT: br label %return
197197 SEL sel = _cmd;
198198}
199199
200200@end
201- // CHECK-LABEL: define hidden i32 @"\01-[Root intProperty]_inner "(ptr noundef nonnull %{{.*}})
201+ // CHECK-LABEL: define hidden i32 @"\01-[Root intProperty]_nonnull "(ptr noundef nonnull %{{.*}})
202202// CHECK-LABEL: define hidden i32 @"\01-[Root intProperty]"(ptr noundef %{{.*}})
203203
204204// Check the synthesized objectProperty calls objc_getProperty(); this also
205205// checks that the synthesized method passes undef for the `cmd` argument.
206- // CHECK-LABEL: define hidden ptr @"\01-[Root objectProperty]_inner "(ptr noundef nonnull {{%.*}})
206+ // CHECK-LABEL: define hidden ptr @"\01-[Root objectProperty]_nonnull "(ptr noundef nonnull {{%.*}})
207207// CHECK-NEXT: entry:
208208// CHECK-NEXT: [[SELFADDR:%.*]] = alloca ptr,
209209// CHECK-NEXT: store ptr %{{.*}}, ptr [[SELFADDR]],
@@ -215,7 +215,7 @@ - (void)accessCmd __attribute__((objc_direct)) {
215215// CHECK: [[RETADDR:%.*]] = alloca ptr,
216216
217217// CHECK-LABEL: objc_direct_method.cont:
218- // CHECK-NEXT: [[RETVAL:%.*]] = call ptr @"\01-[Root objectProperty]_inner "
218+ // CHECK-NEXT: [[RETVAL:%.*]] = call ptr @"\01-[Root objectProperty]_nonnull "
219219// CHECK-NEXT: [[RETAINED_RET:%.*]] = notail call ptr @llvm.objc.retainAutoreleasedReturnValue(ptr [[RETVAL]])
220220// CHECK-NEXT: store ptr [[RETAINED_RET]], ptr [[RETADDR]],
221221// CHECK-NEXT: br label %return
@@ -243,27 +243,27 @@ - (int)directMethodInCategory __attribute__((objc_direct));
243243
244244__attribute__ ((objc_direct_members))
245245@implementation Foo
246- // CHECK-LABEL: define hidden i32 @"\01-[Foo directMethodInExtension]_inner "(
246+ // CHECK-LABEL: define hidden i32 @"\01-[Foo directMethodInExtension]_nonnull "(
247247// CHECK-LABEL: define hidden i32 @"\01-[Foo directMethodInExtension]"(
248248- (int )directMethodInExtension {
249249 return 42 ;
250250}
251- // CHECK-LABEL: define hidden i32 @"\01-[Foo getDirect_setDynamic]_inner "(
251+ // CHECK-LABEL: define hidden i32 @"\01-[Foo getDirect_setDynamic]_nonnull "(
252252// CHECK-LABEL: define hidden i32 @"\01-[Foo getDirect_setDynamic]"(
253253// CHECK-LABEL: define internal void @"\01-[Foo setGetDirect_setDynamic:]"(
254254// CHECK-LABEL: define internal i32 @"\01-[Foo getDynamic_setDirect]"(
255- // CHECK-LABEL: define hidden void @"\01-[Foo setGetDynamic_setDirect:]_inner "(
255+ // CHECK-LABEL: define hidden void @"\01-[Foo setGetDynamic_setDirect:]_nonnull "(
256256// CHECK-LABEL: define hidden void @"\01-[Foo setGetDynamic_setDirect:]"(
257257// CHECK-LABEL: define internal void @"\01-[Foo .cxx_destruct]"(
258258@end
259259
260260@implementation Foo (Cat)
261- // CHECK-LABEL: define hidden i32 @"\01-[Foo directMethodInCategory]_inner "(
261+ // CHECK-LABEL: define hidden i32 @"\01-[Foo directMethodInCategory]_nonnull "(
262262// CHECK-LABEL: define hidden i32 @"\01-[Foo directMethodInCategory]"(
263263- (int )directMethodInCategory {
264264 return 42 ;
265265}
266- // CHECK-LABEL: define hidden i32 @"\01-[Foo directMethodInCategoryNoDecl]_inner "(
266+ // CHECK-LABEL: define hidden i32 @"\01-[Foo directMethodInCategoryNoDecl]_nonnull "(
267267// CHECK-LABEL: define hidden i32 @"\01-[Foo directMethodInCategoryNoDecl]"(
268268- (int )directMethodInCategoryNoDecl __attribute__((objc_direct)) {
269269 return 42 ;
0 commit comments