Lines Matching refs:ARC
1 …c++11 -fblocks -fobjc-arc -fobjc-runtime-has-weak -DWEAK_SUPPORTED | FileCheck -check-prefix=ARC %s
7 // ARC: %[[LAMBDACLASS:.*]] = type { i32 }
19 // ARC-LABEL: define i32 ()* @_Z1fv(
20 // ARC-LABEL: define internal i32 ()* @"_ZZ1fvENK3$_0cvU13block_pointerFivEEv"
21 // ARC: store i8* bitcast (i8** @_NSConcreteStackBlock to i8*)
22 // ARC: store i8* bitcast (i32 (i8*)* @"___ZZ1fvENK3$_0cvU13block_pointerFivEEv_block_invoke" to i8…
23 // ARC: call i8* @llvm.objc.retainBlock
24 // ARC: call i8* @llvm.objc.autoreleaseReturnValue
36 // ARC: define void @_Z2f2v() [[NUW:#[0-9]+]] {
37 // ARC: store i8* bitcast (i32 (i8*)* @___Z2f2v_block_invoke to i8*),
38 // ARC: call i8* @llvm.objc.retainBlock
39 // ARC: call void @llvm.objc.release
40 // ARC-LABEL: define internal i32 @___Z2f2v_block_invoke
41 // ARC: call i32 @"_ZZ2f2vENK3$_1clEv
65 // ARC: define void @_ZN13LambdaCapture4foo1ERi(i32* nonnull align 4 dereferenceable(4) %{{.*}})
66 // ARC: %[[CAPTURE0:.*]] = getelementptr inbounds %[[LAMBDACLASS]], %[[LAMBDACLASS]]* %{{.*}}, i3…
67 // ARC: store i32 %{{.*}}, i32* %[[CAPTURE0]]
69 // ARC: define internal void @"_ZZN13LambdaCapture4foo1ERiENK3$_3clEv"(%[[LAMBDACLASS]]* {{[^,]*}} …
70 // ARC: %[[BLOCK:.*]] = alloca <{ i8*, i32, i32, i8*, %struct.__block_descriptor*, i32 }>
71 // ARC: %[[CAPTURE1:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %struct.__block_descript…
72 // ARC: store i32 %{{.*}}, i32* %[[CAPTURE1]]
74 // ARC-LABEL: define internal void @"_ZZ10-[Foo foo]ENK3$_4clEv"(
75 // ARC-NOT: @llvm.objc.storeStrong(
76 // ARC: ret void
78 // ARC: define internal void @"___ZZN13LambdaCapture4foo1ERiENK3$_3clEv_block_invoke"
79 // ARC: %[[CAPTURE2:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %struct.__block_descript…
80 // ARC: store i32 %{{.*}}, i32* %[[CAPTURE2]]
82 // ARC: define internal void @"___ZZN13LambdaCapture4foo1ERiENK3$_3clEv_block_invoke_2"(i8* %{{.*}})
83 // ARC: %[[CAPTURE3:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %struct.__block_descript…
84 // ARC: %[[V1:.*]] = load i32, i32* %[[CAPTURE3]]
85 // ARC: store i32 %[[V1]], i32* @_ZN13LambdaCapture1iE
103 // ARC-LABEL: define linkonce_odr i32 ()* @_ZZNK13StaticMembersIfE1fMUlvE_clEvENKUlvE_cvU13block_po…
106 // ARC-LABEL: define internal i32 @___ZZN13BlockInLambda1X1fEvENKUlvE_clEv_block_invoke
107 // ARC: [[Y:%.*]] = getelementptr inbounds %"struct.BlockInLambda::X", %"struct.BlockInLambda::X"* …
108 // ARC-NEXT: [[YVAL:%.*]] = load i32, i32* [[Y]], align 4
109 // ARC-NEXT: ret i32 [[YVAL]]
144 // ARC-LABEL: define internal void @"_ZZN14LambdaDelegate4testEvEN3$_58__invokeENS_4WeakE"(
145 // ARC: call void @"_ZZN14LambdaDelegate4testEvENK3$_5clENS_4WeakE"(
146 // ARC-NEXT: ret void
148 // ARC-LABEL: define internal void @"_ZZN14LambdaDelegate4testEvENK3$_5clENS_4WeakE"(
149 // ARC: call void @_ZN14LambdaDelegate4WeakD1Ev(
167 // ARC: attributes [[NUW]] = { noinline nounwind{{.*}} }