Lines Matching full:blocks
5 // RUN: %clang_cc1 -verify -fopenmp -x c++ -fblocks -DBLOCKS -triple %itanium_abi_triple -emit-llvm %s -o - | FileCheck -check-prefix=BLOCKS %s
33 #elif defined(BLOCKS)
60 #elif defined(BLOCKS)
76 // BLOCKS: [[SS_TY:%.+]] = type { i{{[0-9]+}}, i8
171 #elif defined(BLOCKS)
172 // BLOCKS: [[G:@.+]] = global i{{[0-9]+}} 1212,
173 // BLOCKS-LABEL: @main
174 // BLOCKS: call
175 // BLOCKS: call{{.*}} void {{%.+}}(i8
177 // BLOCKS: define{{.*}} internal{{.*}} void {{.+}}(i8*
178 // BLOCKS-NOT: = getelementptr inbounds %{{.+}},
179 // BLOCKS: call{{.*}} void {{.+}} @__kmpc_fork_call({{.+}}, i32 0, {{.+}}* [[OMP_REGION:@.+]] to {{.+}})
182 // BLOCKS: define{{.*}} internal{{.*}} void [[OMP_REGION]](i32* noalias %{{.+}}, i32* noalias %{{.+}})
183 // BLOCKS: [[G_PRIVATE_ADDR:%.+]] = alloca i{{[0-9]+}},
184 // BLOCKS: [[SIVAR_PRIVATE_ADDR:%.+]] = alloca i{{[0-9]+}},
187 // BLOCKS: store i{{[0-9]+}} 1, i{{[0-9]+}}* [[G_PRIVATE_ADDR]],
188 // BLOCKS: store i{{[0-9]+}} 20, i{{[0-9]+}}* [[SIVAR_PRIVATE_ADDR]],
189 // BLOCKS-NOT: [[G]]{{[[^:word:]]}}
190 // BLOCKS: i{{[0-9]+}}* [[G_PRIVATE_ADDR]]
191 // BLOCKS-NOT: [[G]]{{[[^:word:]]}}
192 // BLOCKS-NOT: [[SIVAR]]{{[[^:word:]]}}
193 // BLOCKS: i{{[0-9]+}}* [[SIVAR_PRIVATE_ADDR]]
194 // BLOCKS-NOT: [[SIVAR]]{{[[^:word:]]}}
195 // BLOCKS: call{{.*}} void {{%.+}}(i8
197 // BLOCKS: define {{.+}} void {{@.+}}(i8*
200 // BLOCKS-NOT: [[G]]{{[[^:word:]]}}
201 // BLOCKS: store i{{[0-9]+}} 2, i{{[0-9]+}}*
202 // BLOCKS-NOT: [[G]]{{[[^:word:]]}}
203 // BLOCKS-NOT: [[SIVAR]]{{[[^:word:]]}}
204 // BLOCKS: store i{{[0-9]+}} 40, i{{[0-9]+}}*
205 // BLOCKS-NOT: [[SIVAR]]{{[[^:word:]]}}
206 // BLOCKS: ret
211 // BLOCKS: define {{.+}} @{{.+}}([[SS_TY]]*
212 // BLOCKS: store i{{[0-9]+}} 0, i{{[0-9]+}}* %
213 // BLOCKS: store i8
214 // BLOCKS: call void (%{{.+}}*, i{{[0-9]+}}, void (i{{[0-9]+}}*, i{{[0-9]+}}*, ...)*, ...) @__kmpc_fork_call(%{{.+}}* @{{.+}}, i{{[0-9]+}} 1, void (i{{[0-9]+}}*, i{{[0-9]+}}*, ...)* bitcast (void (i{{[0-9]+}}*, i{{[0-9]+}}*, [[SS_TY]]*)* [[SS_MICROTASK:@.+]] to void
215 // BLOCKS: ret
217 // BLOCKS: define internal void [[SS_MICROTASK]](i{{[0-9]+}}* noalias [[GTID_ADDR:%.+]], i{{[0-9]+}}* noalias %{{.+}}, [[SS_TY]]* %{{.+}})
218 // BLOCKS-NOT: getelementptr {{.*}}[[SS_TY]], [[SS_TY]]* %
219 // BLOCKS: call{{.*}} void
220 // BLOCKS: ret void
222 // BLOCKS: define internal void @{{.+}}(i{{[0-9]+}}* noalias [[GTID_ADDR:%.+]], i{{[0-9]+}}* noalias %{{.+}}, [[SS_TY]]* %{{.+}})
223 // BLOCKS: [[A_PRIV:%.+]] = alloca i{{[0-9]+}},
224 // BLOCKS: [[B_PRIV:%.+]] = alloca i{{[0-9]+}},
225 // BLOCKS: [[C_PRIV:%.+]] = alloca i{{[0-9]+}},
226 // BLOCKS: store i{{[0-9]+}}* [[A_PRIV]], i{{[0-9]+}}** [[REFA:%.+]],
227 // BLOCKS: store i{{[0-9]+}}* [[C_PRIV]], i{{[0-9]+}}** [[REFC:%.+]],
228 // BLOCKS-NEXT: [[A_PRIV:%.+]] = load i{{[0-9]+}}*, i{{[0-9]+}}** [[REFA]],
229 // BLOCKS-NEXT: [[A_VAL:%.+]] = load i{{[0-9]+}}, i{{[0-9]+}}* [[A_PRIV]],
230 // BLOCKS-NEXT: [[INC:%.+]] = add nsw i{{[0-9]+}} [[A_VAL]], 1
231 // BLOCKS-NEXT: store i{{[0-9]+}} [[INC]], i{{[0-9]+}}* [[A_PRIV]],
232 // BLOCKS-NEXT: [[B_VAL:%.+]] = load i{{[0-9]+}}, i{{[0-9]+}}* [[B_PRIV]],
233 // BLOCKS-NEXT: [[DEC:%.+]] = add nsw i{{[0-9]+}} [[B_VAL]], -1
234 // BLOCKS-NEXT: store i{{[0-9]+}} [[DEC]], i{{[0-9]+}}* [[B_PRIV]],
235 // BLOCKS-NEXT: [[C_PRIV:%.+]] = load i{{[0-9]+}}*, i{{[0-9]+}}** [[REFC]],
236 // BLOCKS-NEXT: [[C_VAL:%.+]] = load i{{[0-9]+}}, i{{[0-9]+}}* [[C_PRIV]],
237 // BLOCKS-NEXT: [[DIV:%.+]] = sdiv i{{[0-9]+}} [[C_VAL]], 1
238 // BLOCKS-NEXT: store i{{[0-9]+}} [[DIV]], i{{[0-9]+}}* [[C_PRIV]],
239 // BLOCKS-NEXT: ret void