Lines Matching refs:LP64
2 // RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
25 // CHECK-LP64-LABEL: define void @test0(
26 // CHECK-LP64: [[ARRAY:%.*]] = alloca [[ARRAY_T:%.*]]*,
27 // CHECK-LP64-NEXT: [[X:%.*]] = alloca i8*,
28 // CHECK-LP64-NEXT: [[STATE:%.*]] = alloca [[STATE_T:%.*]],
29 // CHECK-LP64-NEXT: [[BUFFER:%.*]] = alloca [16 x i8*], align 8
30 // CHECK-LP64-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]],
33 // CHECK-LP64-NEXT: store [[ARRAY_T]]* null, [[ARRAY_T]]** [[ARRAY]]
34 // CHECK-LP64-NEXT: [[ZERO:%.*]] = bitcast [[ARRAY_T]]** [[ARRAY]] to i8**
35 // CHECK-LP64-NEXT: [[ONE:%.*]] = bitcast [[ARRAY_T]]* {{%.*}} to i8*
36 // CHECK-LP64-NEXT: call void @objc_storeStrong(i8** [[ZERO]], i8* [[ONE]]) [[NUW:#[0-9]+]]
39 // CHECK-LP64-NEXT: [[T0:%.*]] = bitcast [[STATE_T]]* [[STATE]] to i8*
40 // CHECK-LP64-NEXT: call void @llvm.memset.p0i8.i64(i8* [[T0]], i8 0, i64 64, i32 8, i1 false)
43 // CHECK-LP64-NEXT: [[T0:%.*]] = load [[ARRAY_T]]*, [[ARRAY_T]]** [[ARRAY]], align 8
44 // CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[ARRAY_T]]* [[T0]] to i8*
45 // CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])
46 // CHECK-LP64-NEXT: [[SAVED_ARRAY:%.*]] = bitcast i8* [[T2]] to [[ARRAY_T]]*
49 // CHECK-LP64-NEXT: [[T0:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_
50 // CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[ARRAY_T]]* [[SAVED_ARRAY]] to i8*
51 // CHECK-LP64-NEXT: [[SIZE:%.*]] = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*…
54 // CHECK-LP64-NEXT: [[T0:%.*]] = icmp eq i64 [[SIZE]], 0
55 // CHECK-LP64-NEXT: br i1 [[T0]]
57 // CHECK-LP64: [[T0:%.*]] = getelementptr inbounds [[STATE_T]], [[STATE_T]]* [[STATE]], i32 0,…
58 // CHECK-LP64-NEXT: [[T1:%.*]] = load i8**, i8*** [[T0]]
59 // CHECK-LP64-NEXT: [[T2:%.*]] = getelementptr i8*, i8** [[T1]], i64
60 // CHECK-LP64-NEXT: [[T3:%.*]] = load i8*, i8** [[T2]]
61 // CHECK-LP64-NEXT: store i8* [[T3]], i8** [[X]]
63 // CHECK-LP64: [[D0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0,…
64 // CHECK-LP64: [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0,…
65 // CHECK-LP64-NEXT: [[T1:%.*]] = load i8*, i8** [[X]]
66 // CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])
67 // CHECK-LP64-NEXT: store i8* [[T2]], i8** [[T0]]
68 // CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]]
69 // CHECK-LP64: call void @use_block(
70 // CHECK-LP64-NEXT: call void @objc_storeStrong(i8** [[D0]], i8* null)
72 // CHECK-LP64: [[T0:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_
73 // CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[ARRAY_T]]* [[SAVED_ARRAY]] to i8*
74 // CHECK-LP64-NEXT: [[SIZE:%.*]] = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*…
77 // CHECK-LP64: [[T0:%.*]] = bitcast [[ARRAY_T]]* [[SAVED_ARRAY]] to i8*
78 // CHECK-LP64-NEXT: call void @objc_release(i8* [[T0]])
81 // CHECK-LP64: [[T0:%.*]] = bitcast [[ARRAY_T]]** [[ARRAY]] to i8**
82 // CHECK-LP64-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null)
83 // CHECK-LP64-NEXT: ret void
85 // CHECK-LP64-LABEL: define internal void @__test0_block_invoke
86 // CHECK-LP64: [[BLOCK:%.*]] = bitcast i8* {{%.*}} to [[BLOCK_T]]*
87 // CHECK-LP64-NOT: ret
88 // CHECK-LP64: [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0,…
89 // CHECK-LP64-NEXT: [[T2:%.*]] = load i8*, i8** [[T0]], align 8
90 // CHECK-LP64-NEXT: call void @use(i8* [[T2]])
98 // CHECK-LP64-LABEL: define void @test1(
99 // CHECK-LP64: alloca [[ARRAY_T:%.*]]*,
100 // CHECK-LP64-NEXT: [[X:%.*]] = alloca i8*,
101 // CHECK-LP64-NEXT: [[STATE:%.*]] = alloca [[STATE_T:%.*]],
102 // CHECK-LP64-NEXT: alloca [16 x i8*], align 8
103 // CHECK-LP64-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]],
105 // CHECK-LP64: [[T0:%.*]] = getelementptr inbounds [[STATE_T]], [[STATE_T]]* [[STATE]], i32 0,…
106 // CHECK-LP64-NEXT: [[T1:%.*]] = load i8**, i8*** [[T0]]
107 // CHECK-LP64-NEXT: [[T2:%.*]] = getelementptr i8*, i8** [[T1]], i64
108 // CHECK-LP64-NEXT: [[T3:%.*]] = load i8*, i8** [[T2]]
109 // CHECK-LP64-NEXT: call i8* @objc_initWeak(i8** [[X]], i8* [[T3]])
111 // CHECK-LP64: [[D0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0,…
112 // CHECK-LP64: [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0,…
113 // CHECK-LP64-NEXT: call void @objc_copyWeak(i8** [[T0]], i8** [[X]])
114 // CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to
115 // CHECK-LP64: call void @use_block
116 // CHECK-LP64-NEXT: call void @objc_destroyWeak(i8** [[D0]])
117 // CHECK-LP64-NEXT: call void @objc_destroyWeak(i8** [[X]])
129 // CHECK-LP64-LABEL: define void @test2(
130 // CHECK-LP64: [[T0:%.*]] = call [[ARRAY_T]]* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to […
131 // CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[ARRAY_T]]* [[T0]] to i8*
132 // CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])
133 // CHECK-LP64-NEXT: [[COLL:%.*]] = bitcast i8* [[T2]] to [[ARRAY_T]]*
136 // CHECK-LP64-NEXT: load i8*, i8** @OBJC_SELECTOR_REFERENCES_
137 // CHECK-LP64-NEXT: [[T0:%.*]] = bitcast [[ARRAY_T]]* [[COLL]] to i8*
138 // CHECK-LP64-NEXT: @objc_msgSend
141 // CHECK-LP64: [[T0:%.*]] = bitcast [[ARRAY_T]]* [[COLL]] to i8*
142 // CHECK-LP64-NEXT: @objc_enumerationMutation
145 // CHECK-LP64: [[T0:%.*]] = bitcast [[ARRAY_T]]* [[COLL]] to i8*
146 // CHECK-LP64-NEXT: @objc_msgSend
149 // CHECK-LP64: [[T0:%.*]] = bitcast [[ARRAY_T]]* [[COLL]] to i8*
150 // CHECK-LP64-NEXT: call void @objc_release(i8* [[T0]])
161 // CHECK-LP64-LABEL: define void @test3(
162 // CHECK-LP64: [[ARRAY:%.*]] = alloca [[ARRAY_T]]*, align 8
163 // CHECK-LP64-NEXT: [[X:%.*]] = alloca i8*, align 8
164 // CHECK-LP64: [[T0:%.*]] = load i8*, i8** [[X]], align 8
165 // CHECK-LP64-NEXT: [[T1:%.*]] = icmp ne i8* [[T0]], null
166 // CHECK-LP64-NEXT: br i1 [[T1]],
167 // CHECK-LP64: br label [[L:%[^ ]+]]
168 // CHECK-LP64: [[T0:%.*]] = load i8*, i8** [[X]], align 8
169 // CHECK-LP64-NEXT: call void @use(i8* [[T0]])
170 // CHECK-LP64-NEXT: br label [[L]]
173 // CHECK-LP64: attributes [[NUW]] = { nounwind }