1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]" "pl_cond[.].+[.|,]" --prefix-filecheck-ir-name _
2 // RUN: %clang_cc1 -verify -fopenmp -x c++ -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK1
3 // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple x86_64-apple-darwin10 -emit-pch -o %t %s
4 // RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-apple-darwin10 -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s --check-prefix=CHECK1
5 // RUN: %clang_cc1 -verify -fopenmp -x c++ -std=c++11 -DLAMBDA -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK3
6 // RUN: %clang_cc1 -verify -fopenmp -x c++ -fblocks -DBLOCKS -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK4
8 // RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s --implicit-check-not="{{__kmpc|__tgt}}"
9 // RUN: %clang_cc1 -fopenmp-simd -x c++ -std=c++11 -triple x86_64-apple-darwin10 -emit-pch -o %t %s
10 // RUN: %clang_cc1 -fopenmp-simd -x c++ -triple x86_64-apple-darwin10 -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s --implicit-check-not="{{__kmpc|__tgt}}"
11 // RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -std=c++11 -DLAMBDA -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s --implicit-check-not="{{__kmpc|__tgt}}"
12 // RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -fblocks -DBLOCKS -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s --implicit-check-not="{{__kmpc|__tgt}}"
13 // expected-no-diagnostics
22 S
<T
> &operator=(const S
<T
> &);
23 operator T() { return T(); }
27 volatile int g
= 1212;
36 #pragma omp parallel for linear(pvar, lvar)
37 for (int i
= 0; i
< 2; ++i
) {
46 #pragma omp parallel for linear(g:5)
47 for (int i
= 0; i
< 2; ++i
) {
57 #pragma omp parallel for linear(g:5)
58 for (int i
= 0; i
< 2; ++i
) {
69 float *pvar
= &test
.f
;
71 #pragma omp parallel for linear(pvar, lvar : 3)
72 for (int i
= 0; i
< 2; ++i
) {
82 // Check for default initialization.
86 // Check for default initialization.
89 // CHECK1-LABEL: define {{[^@]+}}@main
90 // CHECK1-SAME: () #[[ATTR0:[0-9]+]] {
91 // CHECK1-NEXT: entry:
92 // CHECK1-NEXT: [[RETVAL:%.*]] = alloca i32, align 4
93 // CHECK1-NEXT: [[TEST:%.*]] = alloca [[STRUCT_S:%.*]], align 4
94 // CHECK1-NEXT: [[PVAR:%.*]] = alloca ptr, align 8
95 // CHECK1-NEXT: [[LVAR:%.*]] = alloca i64, align 8
96 // CHECK1-NEXT: store i32 0, ptr [[RETVAL]], align 4
97 // CHECK1-NEXT: call void @_ZN1SIfEC1Ev(ptr noundef nonnull align 4 dereferenceable(4) [[TEST]])
98 // CHECK1-NEXT: [[F:%.*]] = getelementptr inbounds [[STRUCT_S]], ptr [[TEST]], i32 0, i32 0
99 // CHECK1-NEXT: store ptr [[F]], ptr [[PVAR]], align 8
100 // CHECK1-NEXT: store i64 0, ptr [[LVAR]], align 8
101 // CHECK1-NEXT: call void (ptr, i32, ptr, ...) @__kmpc_fork_call(ptr @[[GLOB3:[0-9]+]], i32 2, ptr @main.omp_outlined, ptr [[PVAR]], ptr [[LVAR]])
102 // CHECK1-NEXT: [[CALL:%.*]] = call noundef i32 @_Z5tmainIiET_v()
103 // CHECK1-NEXT: store i32 [[CALL]], ptr [[RETVAL]], align 4
104 // CHECK1-NEXT: call void @_ZN1SIfED1Ev(ptr noundef nonnull align 4 dereferenceable(4) [[TEST]]) #[[ATTR4:[0-9]+]]
105 // CHECK1-NEXT: [[TMP0:%.*]] = load i32, ptr [[RETVAL]], align 4
106 // CHECK1-NEXT: ret i32 [[TMP0]]
109 // CHECK1-LABEL: define {{[^@]+}}@_ZN1SIfEC1Ev
110 // CHECK1-SAME: (ptr noundef nonnull align 4 dereferenceable(4) [[THIS:%.*]]) unnamed_addr #[[ATTR1:[0-9]+]] align 2 {
111 // CHECK1-NEXT: entry:
112 // CHECK1-NEXT: [[THIS_ADDR:%.*]] = alloca ptr, align 8
113 // CHECK1-NEXT: store ptr [[THIS]], ptr [[THIS_ADDR]], align 8
114 // CHECK1-NEXT: [[THIS1:%.*]] = load ptr, ptr [[THIS_ADDR]], align 8
115 // CHECK1-NEXT: call void @_ZN1SIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) [[THIS1]])
116 // CHECK1-NEXT: ret void
119 // CHECK1-LABEL: define {{[^@]+}}@main.omp_outlined
120 // CHECK1-SAME: (ptr noalias noundef [[DOTGLOBAL_TID_:%.*]], ptr noalias noundef [[DOTBOUND_TID_:%.*]], ptr noundef nonnull align 8 dereferenceable(8) [[PVAR:%.*]], ptr noundef nonnull align 8 dereferenceable(8) [[LVAR:%.*]]) #[[ATTR2:[0-9]+]] {
121 // CHECK1-NEXT: entry:
122 // CHECK1-NEXT: [[DOTGLOBAL_TID__ADDR:%.*]] = alloca ptr, align 8
123 // CHECK1-NEXT: [[DOTBOUND_TID__ADDR:%.*]] = alloca ptr, align 8
124 // CHECK1-NEXT: [[PVAR_ADDR:%.*]] = alloca ptr, align 8
125 // CHECK1-NEXT: [[LVAR_ADDR:%.*]] = alloca ptr, align 8
126 // CHECK1-NEXT: [[DOTOMP_IV:%.*]] = alloca i32, align 4
127 // CHECK1-NEXT: [[TMP:%.*]] = alloca i32, align 4
128 // CHECK1-NEXT: [[DOTLINEAR_START:%.*]] = alloca ptr, align 8
129 // CHECK1-NEXT: [[DOTLINEAR_START1:%.*]] = alloca i64, align 8
130 // CHECK1-NEXT: [[DOTOMP_LB:%.*]] = alloca i32, align 4
131 // CHECK1-NEXT: [[DOTOMP_UB:%.*]] = alloca i32, align 4
132 // CHECK1-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i32, align 4
133 // CHECK1-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4
134 // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4
135 // CHECK1-NEXT: [[PVAR2:%.*]] = alloca ptr, align 8
136 // CHECK1-NEXT: [[LVAR3:%.*]] = alloca i64, align 8
137 // CHECK1-NEXT: store ptr [[DOTGLOBAL_TID_]], ptr [[DOTGLOBAL_TID__ADDR]], align 8
138 // CHECK1-NEXT: store ptr [[DOTBOUND_TID_]], ptr [[DOTBOUND_TID__ADDR]], align 8
139 // CHECK1-NEXT: store ptr [[PVAR]], ptr [[PVAR_ADDR]], align 8
140 // CHECK1-NEXT: store ptr [[LVAR]], ptr [[LVAR_ADDR]], align 8
141 // CHECK1-NEXT: [[TMP0:%.*]] = load ptr, ptr [[PVAR_ADDR]], align 8
142 // CHECK1-NEXT: [[TMP1:%.*]] = load ptr, ptr [[LVAR_ADDR]], align 8
143 // CHECK1-NEXT: [[TMP2:%.*]] = load ptr, ptr [[TMP0]], align 8
144 // CHECK1-NEXT: store ptr [[TMP2]], ptr [[DOTLINEAR_START]], align 8
145 // CHECK1-NEXT: [[TMP3:%.*]] = load i64, ptr [[TMP1]], align 8
146 // CHECK1-NEXT: store i64 [[TMP3]], ptr [[DOTLINEAR_START1]], align 8
147 // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4
148 // CHECK1-NEXT: store i32 1, ptr [[DOTOMP_UB]], align 4
149 // CHECK1-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4
150 // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4
151 // CHECK1-NEXT: [[TMP4:%.*]] = load ptr, ptr [[DOTGLOBAL_TID__ADDR]], align 8
152 // CHECK1-NEXT: [[TMP5:%.*]] = load i32, ptr [[TMP4]], align 4
153 // CHECK1-NEXT: call void @__kmpc_barrier(ptr @[[GLOB1:[0-9]+]], i32 [[TMP5]])
154 // CHECK1-NEXT: call void @__kmpc_for_static_init_4(ptr @[[GLOB2:[0-9]+]], i32 [[TMP5]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i32 1, i32 1)
155 // CHECK1-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4
156 // CHECK1-NEXT: [[CMP:%.*]] = icmp sgt i32 [[TMP6]], 1
157 // CHECK1-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]]
158 // CHECK1: cond.true:
159 // CHECK1-NEXT: br label [[COND_END:%.*]]
160 // CHECK1: cond.false:
161 // CHECK1-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4
162 // CHECK1-NEXT: br label [[COND_END]]
164 // CHECK1-NEXT: [[COND:%.*]] = phi i32 [ 1, [[COND_TRUE]] ], [ [[TMP7]], [[COND_FALSE]] ]
165 // CHECK1-NEXT: store i32 [[COND]], ptr [[DOTOMP_UB]], align 4
166 // CHECK1-NEXT: [[TMP8:%.*]] = load i32, ptr [[DOTOMP_LB]], align 4
167 // CHECK1-NEXT: store i32 [[TMP8]], ptr [[DOTOMP_IV]], align 4
168 // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND:%.*]]
169 // CHECK1: omp.inner.for.cond:
170 // CHECK1-NEXT: [[TMP9:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
171 // CHECK1-NEXT: [[TMP10:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4
172 // CHECK1-NEXT: [[CMP4:%.*]] = icmp sle i32 [[TMP9]], [[TMP10]]
173 // CHECK1-NEXT: br i1 [[CMP4]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]]
174 // CHECK1: omp.inner.for.body:
175 // CHECK1-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
176 // CHECK1-NEXT: [[MUL:%.*]] = mul nsw i32 [[TMP11]], 1
177 // CHECK1-NEXT: [[ADD:%.*]] = add nsw i32 0, [[MUL]]
178 // CHECK1-NEXT: store i32 [[ADD]], ptr [[I]], align 4
179 // CHECK1-NEXT: [[TMP12:%.*]] = load ptr, ptr [[DOTLINEAR_START]], align 8
180 // CHECK1-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
181 // CHECK1-NEXT: [[MUL5:%.*]] = mul nsw i32 [[TMP13]], 3
182 // CHECK1-NEXT: [[IDX_EXT:%.*]] = sext i32 [[MUL5]] to i64
183 // CHECK1-NEXT: [[ADD_PTR:%.*]] = getelementptr inbounds float, ptr [[TMP12]], i64 [[IDX_EXT]]
184 // CHECK1-NEXT: store ptr [[ADD_PTR]], ptr [[PVAR2]], align 8
185 // CHECK1-NEXT: [[TMP14:%.*]] = load i64, ptr [[DOTLINEAR_START1]], align 8
186 // CHECK1-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
187 // CHECK1-NEXT: [[MUL6:%.*]] = mul nsw i32 [[TMP15]], 3
188 // CHECK1-NEXT: [[CONV:%.*]] = sext i32 [[MUL6]] to i64
189 // CHECK1-NEXT: [[ADD7:%.*]] = add nsw i64 [[TMP14]], [[CONV]]
190 // CHECK1-NEXT: store i64 [[ADD7]], ptr [[LVAR3]], align 8
191 // CHECK1-NEXT: [[TMP16:%.*]] = load ptr, ptr [[PVAR2]], align 8
192 // CHECK1-NEXT: [[ADD_PTR8:%.*]] = getelementptr inbounds float, ptr [[TMP16]], i64 3
193 // CHECK1-NEXT: store ptr [[ADD_PTR8]], ptr [[PVAR2]], align 8
194 // CHECK1-NEXT: [[TMP17:%.*]] = load i64, ptr [[LVAR3]], align 8
195 // CHECK1-NEXT: [[ADD9:%.*]] = add nsw i64 [[TMP17]], 3
196 // CHECK1-NEXT: store i64 [[ADD9]], ptr [[LVAR3]], align 8
197 // CHECK1-NEXT: br label [[OMP_BODY_CONTINUE:%.*]]
198 // CHECK1: omp.body.continue:
199 // CHECK1-NEXT: br label [[OMP_INNER_FOR_INC:%.*]]
200 // CHECK1: omp.inner.for.inc:
201 // CHECK1-NEXT: [[TMP18:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
202 // CHECK1-NEXT: [[ADD10:%.*]] = add nsw i32 [[TMP18]], 1
203 // CHECK1-NEXT: store i32 [[ADD10]], ptr [[DOTOMP_IV]], align 4
204 // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND]]
205 // CHECK1: omp.inner.for.end:
206 // CHECK1-NEXT: br label [[OMP_LOOP_EXIT:%.*]]
207 // CHECK1: omp.loop.exit:
208 // CHECK1-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB2]], i32 [[TMP5]])
209 // CHECK1-NEXT: [[TMP19:%.*]] = load i32, ptr [[DOTOMP_IS_LAST]], align 4
210 // CHECK1-NEXT: [[TMP20:%.*]] = icmp ne i32 [[TMP19]], 0
211 // CHECK1-NEXT: br i1 [[TMP20]], label [[DOTOMP_LINEAR_PU:%.*]], label [[DOTOMP_LINEAR_PU_DONE:%.*]]
212 // CHECK1: .omp.linear.pu:
213 // CHECK1-NEXT: [[TMP21:%.*]] = load ptr, ptr [[PVAR2]], align 8
214 // CHECK1-NEXT: store ptr [[TMP21]], ptr [[TMP0]], align 8
215 // CHECK1-NEXT: [[TMP22:%.*]] = load i64, ptr [[LVAR3]], align 8
216 // CHECK1-NEXT: store i64 [[TMP22]], ptr [[TMP1]], align 8
217 // CHECK1-NEXT: br label [[DOTOMP_LINEAR_PU_DONE]]
218 // CHECK1: .omp.linear.pu.done:
219 // CHECK1-NEXT: ret void
222 // CHECK1-LABEL: define {{[^@]+}}@_Z5tmainIiET_v
223 // CHECK1-SAME: () #[[ATTR5:[0-9]+]] {
224 // CHECK1-NEXT: entry:
225 // CHECK1-NEXT: [[TEST:%.*]] = alloca [[STRUCT_S_0:%.*]], align 4
226 // CHECK1-NEXT: [[PVAR:%.*]] = alloca ptr, align 8
227 // CHECK1-NEXT: [[LVAR:%.*]] = alloca i32, align 4
228 // CHECK1-NEXT: call void @_ZN1SIiEC1Ev(ptr noundef nonnull align 4 dereferenceable(4) [[TEST]])
229 // CHECK1-NEXT: [[F:%.*]] = getelementptr inbounds [[STRUCT_S_0]], ptr [[TEST]], i32 0, i32 0
230 // CHECK1-NEXT: store ptr [[F]], ptr [[PVAR]], align 8
231 // CHECK1-NEXT: store i32 0, ptr [[LVAR]], align 4
232 // CHECK1-NEXT: call void (ptr, i32, ptr, ...) @__kmpc_fork_call(ptr @[[GLOB3]], i32 2, ptr @_Z5tmainIiET_v.omp_outlined, ptr [[PVAR]], ptr [[LVAR]])
233 // CHECK1-NEXT: call void @_ZN1SIiED1Ev(ptr noundef nonnull align 4 dereferenceable(4) [[TEST]]) #[[ATTR4]]
234 // CHECK1-NEXT: ret i32 0
237 // CHECK1-LABEL: define {{[^@]+}}@_ZN1SIfED1Ev
238 // CHECK1-SAME: (ptr noundef nonnull align 4 dereferenceable(4) [[THIS:%.*]]) unnamed_addr #[[ATTR1]] align 2 {
239 // CHECK1-NEXT: entry:
240 // CHECK1-NEXT: [[THIS_ADDR:%.*]] = alloca ptr, align 8
241 // CHECK1-NEXT: store ptr [[THIS]], ptr [[THIS_ADDR]], align 8
242 // CHECK1-NEXT: [[THIS1:%.*]] = load ptr, ptr [[THIS_ADDR]], align 8
243 // CHECK1-NEXT: call void @_ZN1SIfED2Ev(ptr noundef nonnull align 4 dereferenceable(4) [[THIS1]]) #[[ATTR4]]
244 // CHECK1-NEXT: ret void
247 // CHECK1-LABEL: define {{[^@]+}}@_ZN1SIfEC2Ev
248 // CHECK1-SAME: (ptr noundef nonnull align 4 dereferenceable(4) [[THIS:%.*]]) unnamed_addr #[[ATTR1]] align 2 {
249 // CHECK1-NEXT: entry:
250 // CHECK1-NEXT: [[THIS_ADDR:%.*]] = alloca ptr, align 8
251 // CHECK1-NEXT: store ptr [[THIS]], ptr [[THIS_ADDR]], align 8
252 // CHECK1-NEXT: [[THIS1:%.*]] = load ptr, ptr [[THIS_ADDR]], align 8
253 // CHECK1-NEXT: [[F:%.*]] = getelementptr inbounds [[STRUCT_S:%.*]], ptr [[THIS1]], i32 0, i32 0
254 // CHECK1-NEXT: store float 0.000000e+00, ptr [[F]], align 4
255 // CHECK1-NEXT: ret void
258 // CHECK1-LABEL: define {{[^@]+}}@_ZN1SIiEC1Ev
259 // CHECK1-SAME: (ptr noundef nonnull align 4 dereferenceable(4) [[THIS:%.*]]) unnamed_addr #[[ATTR1]] align 2 {
260 // CHECK1-NEXT: entry:
261 // CHECK1-NEXT: [[THIS_ADDR:%.*]] = alloca ptr, align 8
262 // CHECK1-NEXT: store ptr [[THIS]], ptr [[THIS_ADDR]], align 8
263 // CHECK1-NEXT: [[THIS1:%.*]] = load ptr, ptr [[THIS_ADDR]], align 8
264 // CHECK1-NEXT: call void @_ZN1SIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) [[THIS1]])
265 // CHECK1-NEXT: ret void
268 // CHECK1-LABEL: define {{[^@]+}}@_Z5tmainIiET_v.omp_outlined
269 // CHECK1-SAME: (ptr noalias noundef [[DOTGLOBAL_TID_:%.*]], ptr noalias noundef [[DOTBOUND_TID_:%.*]], ptr noundef nonnull align 8 dereferenceable(8) [[PVAR:%.*]], ptr noundef nonnull align 4 dereferenceable(4) [[LVAR:%.*]]) #[[ATTR2]] {
270 // CHECK1-NEXT: entry:
271 // CHECK1-NEXT: [[DOTGLOBAL_TID__ADDR:%.*]] = alloca ptr, align 8
272 // CHECK1-NEXT: [[DOTBOUND_TID__ADDR:%.*]] = alloca ptr, align 8
273 // CHECK1-NEXT: [[PVAR_ADDR:%.*]] = alloca ptr, align 8
274 // CHECK1-NEXT: [[LVAR_ADDR:%.*]] = alloca ptr, align 8
275 // CHECK1-NEXT: [[DOTOMP_IV:%.*]] = alloca i32, align 4
276 // CHECK1-NEXT: [[TMP:%.*]] = alloca i32, align 4
277 // CHECK1-NEXT: [[DOTLINEAR_START:%.*]] = alloca ptr, align 8
278 // CHECK1-NEXT: [[DOTLINEAR_START1:%.*]] = alloca i32, align 4
279 // CHECK1-NEXT: [[DOTOMP_LB:%.*]] = alloca i32, align 4
280 // CHECK1-NEXT: [[DOTOMP_UB:%.*]] = alloca i32, align 4
281 // CHECK1-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i32, align 4
282 // CHECK1-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4
283 // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4
284 // CHECK1-NEXT: [[PVAR2:%.*]] = alloca ptr, align 8
285 // CHECK1-NEXT: [[LVAR3:%.*]] = alloca i32, align 4
286 // CHECK1-NEXT: store ptr [[DOTGLOBAL_TID_]], ptr [[DOTGLOBAL_TID__ADDR]], align 8
287 // CHECK1-NEXT: store ptr [[DOTBOUND_TID_]], ptr [[DOTBOUND_TID__ADDR]], align 8
288 // CHECK1-NEXT: store ptr [[PVAR]], ptr [[PVAR_ADDR]], align 8
289 // CHECK1-NEXT: store ptr [[LVAR]], ptr [[LVAR_ADDR]], align 8
290 // CHECK1-NEXT: [[TMP0:%.*]] = load ptr, ptr [[PVAR_ADDR]], align 8
291 // CHECK1-NEXT: [[TMP1:%.*]] = load ptr, ptr [[LVAR_ADDR]], align 8
292 // CHECK1-NEXT: [[TMP2:%.*]] = load ptr, ptr [[TMP0]], align 8
293 // CHECK1-NEXT: store ptr [[TMP2]], ptr [[DOTLINEAR_START]], align 8
294 // CHECK1-NEXT: [[TMP3:%.*]] = load i32, ptr [[TMP1]], align 4
295 // CHECK1-NEXT: store i32 [[TMP3]], ptr [[DOTLINEAR_START1]], align 4
296 // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4
297 // CHECK1-NEXT: store i32 1, ptr [[DOTOMP_UB]], align 4
298 // CHECK1-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4
299 // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4
300 // CHECK1-NEXT: [[TMP4:%.*]] = load ptr, ptr [[DOTGLOBAL_TID__ADDR]], align 8
301 // CHECK1-NEXT: [[TMP5:%.*]] = load i32, ptr [[TMP4]], align 4
302 // CHECK1-NEXT: call void @__kmpc_barrier(ptr @[[GLOB1]], i32 [[TMP5]])
303 // CHECK1-NEXT: call void @__kmpc_for_static_init_4(ptr @[[GLOB2]], i32 [[TMP5]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i32 1, i32 1)
304 // CHECK1-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4
305 // CHECK1-NEXT: [[CMP:%.*]] = icmp sgt i32 [[TMP6]], 1
306 // CHECK1-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]]
307 // CHECK1: cond.true:
308 // CHECK1-NEXT: br label [[COND_END:%.*]]
309 // CHECK1: cond.false:
310 // CHECK1-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4
311 // CHECK1-NEXT: br label [[COND_END]]
313 // CHECK1-NEXT: [[COND:%.*]] = phi i32 [ 1, [[COND_TRUE]] ], [ [[TMP7]], [[COND_FALSE]] ]
314 // CHECK1-NEXT: store i32 [[COND]], ptr [[DOTOMP_UB]], align 4
315 // CHECK1-NEXT: [[TMP8:%.*]] = load i32, ptr [[DOTOMP_LB]], align 4
316 // CHECK1-NEXT: store i32 [[TMP8]], ptr [[DOTOMP_IV]], align 4
317 // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND:%.*]]
318 // CHECK1: omp.inner.for.cond:
319 // CHECK1-NEXT: [[TMP9:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
320 // CHECK1-NEXT: [[TMP10:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4
321 // CHECK1-NEXT: [[CMP4:%.*]] = icmp sle i32 [[TMP9]], [[TMP10]]
322 // CHECK1-NEXT: br i1 [[CMP4]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]]
323 // CHECK1: omp.inner.for.body:
324 // CHECK1-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
325 // CHECK1-NEXT: [[MUL:%.*]] = mul nsw i32 [[TMP11]], 1
326 // CHECK1-NEXT: [[ADD:%.*]] = add nsw i32 0, [[MUL]]
327 // CHECK1-NEXT: store i32 [[ADD]], ptr [[I]], align 4
328 // CHECK1-NEXT: [[TMP12:%.*]] = load ptr, ptr [[DOTLINEAR_START]], align 8
329 // CHECK1-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
330 // CHECK1-NEXT: [[MUL5:%.*]] = mul nsw i32 [[TMP13]], 1
331 // CHECK1-NEXT: [[IDX_EXT:%.*]] = sext i32 [[MUL5]] to i64
332 // CHECK1-NEXT: [[ADD_PTR:%.*]] = getelementptr inbounds i32, ptr [[TMP12]], i64 [[IDX_EXT]]
333 // CHECK1-NEXT: store ptr [[ADD_PTR]], ptr [[PVAR2]], align 8
334 // CHECK1-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTLINEAR_START1]], align 4
335 // CHECK1-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
336 // CHECK1-NEXT: [[MUL6:%.*]] = mul nsw i32 [[TMP15]], 1
337 // CHECK1-NEXT: [[ADD7:%.*]] = add nsw i32 [[TMP14]], [[MUL6]]
338 // CHECK1-NEXT: store i32 [[ADD7]], ptr [[LVAR3]], align 4
339 // CHECK1-NEXT: [[TMP16:%.*]] = load ptr, ptr [[PVAR2]], align 8
340 // CHECK1-NEXT: [[INCDEC_PTR:%.*]] = getelementptr inbounds i32, ptr [[TMP16]], i32 1
341 // CHECK1-NEXT: store ptr [[INCDEC_PTR]], ptr [[PVAR2]], align 8
342 // CHECK1-NEXT: [[TMP17:%.*]] = load i32, ptr [[LVAR3]], align 4
343 // CHECK1-NEXT: [[INC:%.*]] = add nsw i32 [[TMP17]], 1
344 // CHECK1-NEXT: store i32 [[INC]], ptr [[LVAR3]], align 4
345 // CHECK1-NEXT: br label [[OMP_BODY_CONTINUE:%.*]]
346 // CHECK1: omp.body.continue:
347 // CHECK1-NEXT: br label [[OMP_INNER_FOR_INC:%.*]]
348 // CHECK1: omp.inner.for.inc:
349 // CHECK1-NEXT: [[TMP18:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
350 // CHECK1-NEXT: [[ADD8:%.*]] = add nsw i32 [[TMP18]], 1
351 // CHECK1-NEXT: store i32 [[ADD8]], ptr [[DOTOMP_IV]], align 4
352 // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND]]
353 // CHECK1: omp.inner.for.end:
354 // CHECK1-NEXT: br label [[OMP_LOOP_EXIT:%.*]]
355 // CHECK1: omp.loop.exit:
356 // CHECK1-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB2]], i32 [[TMP5]])
357 // CHECK1-NEXT: [[TMP19:%.*]] = load i32, ptr [[DOTOMP_IS_LAST]], align 4
358 // CHECK1-NEXT: [[TMP20:%.*]] = icmp ne i32 [[TMP19]], 0
359 // CHECK1-NEXT: br i1 [[TMP20]], label [[DOTOMP_LINEAR_PU:%.*]], label [[DOTOMP_LINEAR_PU_DONE:%.*]]
360 // CHECK1: .omp.linear.pu:
361 // CHECK1-NEXT: [[TMP21:%.*]] = load ptr, ptr [[PVAR2]], align 8
362 // CHECK1-NEXT: store ptr [[TMP21]], ptr [[TMP0]], align 8
363 // CHECK1-NEXT: [[TMP22:%.*]] = load i32, ptr [[LVAR3]], align 4
364 // CHECK1-NEXT: store i32 [[TMP22]], ptr [[TMP1]], align 4
365 // CHECK1-NEXT: br label [[DOTOMP_LINEAR_PU_DONE]]
366 // CHECK1: .omp.linear.pu.done:
367 // CHECK1-NEXT: ret void
370 // CHECK1-LABEL: define {{[^@]+}}@_ZN1SIiED1Ev
371 // CHECK1-SAME: (ptr noundef nonnull align 4 dereferenceable(4) [[THIS:%.*]]) unnamed_addr #[[ATTR1]] align 2 {
372 // CHECK1-NEXT: entry:
373 // CHECK1-NEXT: [[THIS_ADDR:%.*]] = alloca ptr, align 8
374 // CHECK1-NEXT: store ptr [[THIS]], ptr [[THIS_ADDR]], align 8
375 // CHECK1-NEXT: [[THIS1:%.*]] = load ptr, ptr [[THIS_ADDR]], align 8
376 // CHECK1-NEXT: call void @_ZN1SIiED2Ev(ptr noundef nonnull align 4 dereferenceable(4) [[THIS1]]) #[[ATTR4]]
377 // CHECK1-NEXT: ret void
380 // CHECK1-LABEL: define {{[^@]+}}@_ZN1SIiEC2Ev
381 // CHECK1-SAME: (ptr noundef nonnull align 4 dereferenceable(4) [[THIS:%.*]]) unnamed_addr #[[ATTR1]] align 2 {
382 // CHECK1-NEXT: entry:
383 // CHECK1-NEXT: [[THIS_ADDR:%.*]] = alloca ptr, align 8
384 // CHECK1-NEXT: store ptr [[THIS]], ptr [[THIS_ADDR]], align 8
385 // CHECK1-NEXT: [[THIS1:%.*]] = load ptr, ptr [[THIS_ADDR]], align 8
386 // CHECK1-NEXT: [[F:%.*]] = getelementptr inbounds [[STRUCT_S_0:%.*]], ptr [[THIS1]], i32 0, i32 0
387 // CHECK1-NEXT: store i32 0, ptr [[F]], align 4
388 // CHECK1-NEXT: ret void
391 // CHECK1-LABEL: define {{[^@]+}}@_ZN1SIiED2Ev
392 // CHECK1-SAME: (ptr noundef nonnull align 4 dereferenceable(4) [[THIS:%.*]]) unnamed_addr #[[ATTR1]] align 2 {
393 // CHECK1-NEXT: entry:
394 // CHECK1-NEXT: [[THIS_ADDR:%.*]] = alloca ptr, align 8
395 // CHECK1-NEXT: store ptr [[THIS]], ptr [[THIS_ADDR]], align 8
396 // CHECK1-NEXT: [[THIS1:%.*]] = load ptr, ptr [[THIS_ADDR]], align 8
397 // CHECK1-NEXT: ret void
400 // CHECK1-LABEL: define {{[^@]+}}@_ZN1SIfED2Ev
401 // CHECK1-SAME: (ptr noundef nonnull align 4 dereferenceable(4) [[THIS:%.*]]) unnamed_addr #[[ATTR1]] align 2 {
402 // CHECK1-NEXT: entry:
403 // CHECK1-NEXT: [[THIS_ADDR:%.*]] = alloca ptr, align 8
404 // CHECK1-NEXT: store ptr [[THIS]], ptr [[THIS_ADDR]], align 8
405 // CHECK1-NEXT: [[THIS1:%.*]] = load ptr, ptr [[THIS_ADDR]], align 8
406 // CHECK1-NEXT: ret void
409 // CHECK3-LABEL: define {{[^@]+}}@main
410 // CHECK3-SAME: () #[[ATTR0:[0-9]+]] {
411 // CHECK3-NEXT: entry:
412 // CHECK3-NEXT: [[RETVAL:%.*]] = alloca i32, align 4
413 // CHECK3-NEXT: [[REF_TMP:%.*]] = alloca [[CLASS_ANON:%.*]], align 1
414 // CHECK3-NEXT: store i32 0, ptr [[RETVAL]], align 4
415 // CHECK3-NEXT: call void @"_ZZ4mainENK3$_0clEv"(ptr noundef nonnull align 1 dereferenceable(1) [[REF_TMP]])
416 // CHECK3-NEXT: ret i32 0
419 // CHECK4-LABEL: define {{[^@]+}}@main
420 // CHECK4-SAME: () #[[ATTR1:[0-9]+]] {
421 // CHECK4-NEXT: entry:
422 // CHECK4-NEXT: [[RETVAL:%.*]] = alloca i32, align 4
423 // CHECK4-NEXT: store i32 0, ptr [[RETVAL]], align 4
424 // CHECK4-NEXT: [[TMP0:%.*]] = load ptr, ptr getelementptr inbounds ([[STRUCT___BLOCK_LITERAL_GENERIC:%.*]], ptr @__block_literal_global, i32 0, i32 3), align 8
425 // CHECK4-NEXT: call void [[TMP0]](ptr noundef @__block_literal_global)
426 // CHECK4-NEXT: ret i32 0
429 // CHECK4-LABEL: define {{[^@]+}}@__main_block_invoke
430 // CHECK4-SAME: (ptr noundef [[DOTBLOCK_DESCRIPTOR:%.*]]) #[[ATTR2:[0-9]+]] {
431 // CHECK4-NEXT: entry:
432 // CHECK4-NEXT: [[DOTBLOCK_DESCRIPTOR_ADDR:%.*]] = alloca ptr, align 8
433 // CHECK4-NEXT: [[BLOCK_ADDR:%.*]] = alloca ptr, align 8
434 // CHECK4-NEXT: store ptr [[DOTBLOCK_DESCRIPTOR]], ptr [[DOTBLOCK_DESCRIPTOR_ADDR]], align 8
435 // CHECK4-NEXT: store ptr [[DOTBLOCK_DESCRIPTOR]], ptr [[BLOCK_ADDR]], align 8
436 // CHECK4-NEXT: call void (ptr, i32, ptr, ...) @__kmpc_fork_call(ptr @[[GLOB3:[0-9]+]], i32 1, ptr @__main_block_invoke.omp_outlined, ptr @g)
437 // CHECK4-NEXT: ret void
440 // CHECK4-LABEL: define {{[^@]+}}@__main_block_invoke.omp_outlined
441 // CHECK4-SAME: (ptr noalias noundef [[DOTGLOBAL_TID_:%.*]], ptr noalias noundef [[DOTBOUND_TID_:%.*]], ptr noundef nonnull align 4 dereferenceable(4) [[G:%.*]]) #[[ATTR3:[0-9]+]] {
442 // CHECK4-NEXT: entry:
443 // CHECK4-NEXT: [[DOTGLOBAL_TID__ADDR:%.*]] = alloca ptr, align 8
444 // CHECK4-NEXT: [[DOTBOUND_TID__ADDR:%.*]] = alloca ptr, align 8
445 // CHECK4-NEXT: [[G_ADDR:%.*]] = alloca ptr, align 8
446 // CHECK4-NEXT: [[DOTOMP_IV:%.*]] = alloca i32, align 4
447 // CHECK4-NEXT: [[TMP:%.*]] = alloca i32, align 4
448 // CHECK4-NEXT: [[DOTLINEAR_START:%.*]] = alloca i32, align 4
449 // CHECK4-NEXT: [[DOTOMP_LB:%.*]] = alloca i32, align 4
450 // CHECK4-NEXT: [[DOTOMP_UB:%.*]] = alloca i32, align 4
451 // CHECK4-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i32, align 4
452 // CHECK4-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4
453 // CHECK4-NEXT: [[I:%.*]] = alloca i32, align 4
454 // CHECK4-NEXT: [[G1:%.*]] = alloca i32, align 4
455 // CHECK4-NEXT: [[BLOCK:%.*]] = alloca <{ ptr, i32, i32, ptr, ptr, i32 }>, align 8
456 // CHECK4-NEXT: store ptr [[DOTGLOBAL_TID_]], ptr [[DOTGLOBAL_TID__ADDR]], align 8
457 // CHECK4-NEXT: store ptr [[DOTBOUND_TID_]], ptr [[DOTBOUND_TID__ADDR]], align 8
458 // CHECK4-NEXT: store ptr [[G]], ptr [[G_ADDR]], align 8
459 // CHECK4-NEXT: [[TMP0:%.*]] = load ptr, ptr [[G_ADDR]], align 8
460 // CHECK4-NEXT: [[TMP1:%.*]] = load i32, ptr [[TMP0]], align 4
461 // CHECK4-NEXT: store i32 [[TMP1]], ptr [[DOTLINEAR_START]], align 4
462 // CHECK4-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4
463 // CHECK4-NEXT: store i32 1, ptr [[DOTOMP_UB]], align 4
464 // CHECK4-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4
465 // CHECK4-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4
466 // CHECK4-NEXT: [[TMP2:%.*]] = load ptr, ptr [[DOTGLOBAL_TID__ADDR]], align 8
467 // CHECK4-NEXT: [[TMP3:%.*]] = load i32, ptr [[TMP2]], align 4
468 // CHECK4-NEXT: call void @__kmpc_barrier(ptr @[[GLOB1:[0-9]+]], i32 [[TMP3]])
469 // CHECK4-NEXT: call void @__kmpc_for_static_init_4(ptr @[[GLOB2:[0-9]+]], i32 [[TMP3]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i32 1, i32 1)
470 // CHECK4-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4
471 // CHECK4-NEXT: [[CMP:%.*]] = icmp sgt i32 [[TMP4]], 1
472 // CHECK4-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]]
473 // CHECK4: cond.true:
474 // CHECK4-NEXT: br label [[COND_END:%.*]]
475 // CHECK4: cond.false:
476 // CHECK4-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4
477 // CHECK4-NEXT: br label [[COND_END]]
479 // CHECK4-NEXT: [[COND:%.*]] = phi i32 [ 1, [[COND_TRUE]] ], [ [[TMP5]], [[COND_FALSE]] ]
480 // CHECK4-NEXT: store i32 [[COND]], ptr [[DOTOMP_UB]], align 4
481 // CHECK4-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTOMP_LB]], align 4
482 // CHECK4-NEXT: store i32 [[TMP6]], ptr [[DOTOMP_IV]], align 4
483 // CHECK4-NEXT: br label [[OMP_INNER_FOR_COND:%.*]]
484 // CHECK4: omp.inner.for.cond:
485 // CHECK4-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
486 // CHECK4-NEXT: [[TMP8:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4
487 // CHECK4-NEXT: [[CMP2:%.*]] = icmp sle i32 [[TMP7]], [[TMP8]]
488 // CHECK4-NEXT: br i1 [[CMP2]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]]
489 // CHECK4: omp.inner.for.body:
490 // CHECK4-NEXT: [[TMP9:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
491 // CHECK4-NEXT: [[MUL:%.*]] = mul nsw i32 [[TMP9]], 1
492 // CHECK4-NEXT: [[ADD:%.*]] = add nsw i32 0, [[MUL]]
493 // CHECK4-NEXT: store i32 [[ADD]], ptr [[I]], align 4
494 // CHECK4-NEXT: [[TMP10:%.*]] = load i32, ptr [[DOTLINEAR_START]], align 4
495 // CHECK4-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
496 // CHECK4-NEXT: [[MUL3:%.*]] = mul nsw i32 [[TMP11]], 5
497 // CHECK4-NEXT: [[ADD4:%.*]] = add nsw i32 [[TMP10]], [[MUL3]]
498 // CHECK4-NEXT: store i32 [[ADD4]], ptr [[G1]], align 4
499 // CHECK4-NEXT: [[TMP12:%.*]] = load i32, ptr [[G1]], align 4
500 // CHECK4-NEXT: [[ADD5:%.*]] = add nsw i32 [[TMP12]], 5
501 // CHECK4-NEXT: store i32 [[ADD5]], ptr [[G1]], align 4
502 // CHECK4-NEXT: store i32 1, ptr [[G1]], align 4
503 // CHECK4-NEXT: [[BLOCK_ISA:%.*]] = getelementptr inbounds <{ ptr, i32, i32, ptr, ptr, i32 }>, ptr [[BLOCK]], i32 0, i32 0
504 // CHECK4-NEXT: store ptr @_NSConcreteStackBlock, ptr [[BLOCK_ISA]], align 8
505 // CHECK4-NEXT: [[BLOCK_FLAGS:%.*]] = getelementptr inbounds <{ ptr, i32, i32, ptr, ptr, i32 }>, ptr [[BLOCK]], i32 0, i32 1
506 // CHECK4-NEXT: store i32 1073741824, ptr [[BLOCK_FLAGS]], align 8
507 // CHECK4-NEXT: [[BLOCK_RESERVED:%.*]] = getelementptr inbounds <{ ptr, i32, i32, ptr, ptr, i32 }>, ptr [[BLOCK]], i32 0, i32 2
508 // CHECK4-NEXT: store i32 0, ptr [[BLOCK_RESERVED]], align 4
509 // CHECK4-NEXT: [[BLOCK_INVOKE:%.*]] = getelementptr inbounds <{ ptr, i32, i32, ptr, ptr, i32 }>, ptr [[BLOCK]], i32 0, i32 3
510 // CHECK4-NEXT: store ptr @g_block_invoke, ptr [[BLOCK_INVOKE]], align 8
511 // CHECK4-NEXT: [[BLOCK_DESCRIPTOR:%.*]] = getelementptr inbounds <{ ptr, i32, i32, ptr, ptr, i32 }>, ptr [[BLOCK]], i32 0, i32 4
512 // CHECK4-NEXT: store ptr @__block_descriptor_tmp.1, ptr [[BLOCK_DESCRIPTOR]], align 8
513 // CHECK4-NEXT: [[BLOCK_CAPTURED:%.*]] = getelementptr inbounds <{ ptr, i32, i32, ptr, ptr, i32 }>, ptr [[BLOCK]], i32 0, i32 5
514 // CHECK4-NEXT: [[TMP13:%.*]] = load volatile i32, ptr [[G1]], align 4
515 // CHECK4-NEXT: store volatile i32 [[TMP13]], ptr [[BLOCK_CAPTURED]], align 8
516 // CHECK4-NEXT: [[TMP14:%.*]] = getelementptr inbounds [[STRUCT___BLOCK_LITERAL_GENERIC:%.*]], ptr [[BLOCK]], i32 0, i32 3
517 // CHECK4-NEXT: [[TMP15:%.*]] = load ptr, ptr [[TMP14]], align 8
518 // CHECK4-NEXT: call void [[TMP15]](ptr noundef [[BLOCK]])
519 // CHECK4-NEXT: br label [[OMP_BODY_CONTINUE:%.*]]
520 // CHECK4: omp.body.continue:
521 // CHECK4-NEXT: br label [[OMP_INNER_FOR_INC:%.*]]
522 // CHECK4: omp.inner.for.inc:
523 // CHECK4-NEXT: [[TMP16:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4
524 // CHECK4-NEXT: [[ADD6:%.*]] = add nsw i32 [[TMP16]], 1
525 // CHECK4-NEXT: store i32 [[ADD6]], ptr [[DOTOMP_IV]], align 4
526 // CHECK4-NEXT: br label [[OMP_INNER_FOR_COND]]
527 // CHECK4: omp.inner.for.end:
528 // CHECK4-NEXT: br label [[OMP_LOOP_EXIT:%.*]]
529 // CHECK4: omp.loop.exit:
530 // CHECK4-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB2]], i32 [[TMP3]])
531 // CHECK4-NEXT: [[TMP17:%.*]] = load i32, ptr [[DOTOMP_IS_LAST]], align 4
532 // CHECK4-NEXT: [[TMP18:%.*]] = icmp ne i32 [[TMP17]], 0
533 // CHECK4-NEXT: br i1 [[TMP18]], label [[DOTOMP_LINEAR_PU:%.*]], label [[DOTOMP_LINEAR_PU_DONE:%.*]]
534 // CHECK4: .omp.linear.pu:
535 // CHECK4-NEXT: [[TMP19:%.*]] = load i32, ptr [[G1]], align 4
536 // CHECK4-NEXT: store i32 [[TMP19]], ptr [[TMP0]], align 4
537 // CHECK4-NEXT: br label [[DOTOMP_LINEAR_PU_DONE]]
538 // CHECK4: .omp.linear.pu.done:
539 // CHECK4-NEXT: ret void
542 // CHECK4-LABEL: define {{[^@]+}}@g_block_invoke
543 // CHECK4-SAME: (ptr noundef [[DOTBLOCK_DESCRIPTOR:%.*]]) #[[ATTR2]] {
544 // CHECK4-NEXT: entry:
545 // CHECK4-NEXT: [[DOTBLOCK_DESCRIPTOR_ADDR:%.*]] = alloca ptr, align 8
546 // CHECK4-NEXT: [[BLOCK_ADDR:%.*]] = alloca ptr, align 8
547 // CHECK4-NEXT: store ptr [[DOTBLOCK_DESCRIPTOR]], ptr [[DOTBLOCK_DESCRIPTOR_ADDR]], align 8
548 // CHECK4-NEXT: store ptr [[DOTBLOCK_DESCRIPTOR]], ptr [[BLOCK_ADDR]], align 8
549 // CHECK4-NEXT: [[BLOCK_CAPTURE_ADDR:%.*]] = getelementptr inbounds <{ ptr, i32, i32, ptr, ptr, i32 }>, ptr [[DOTBLOCK_DESCRIPTOR]], i32 0, i32 5
550 // CHECK4-NEXT: store i32 2, ptr [[BLOCK_CAPTURE_ADDR]], align 8
551 // CHECK4-NEXT: ret void