Lines Matching full:blocks
5 // RUN: %clang_cc1 -verify -fopenmp -x c++ -fblocks -DBLOCKS -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck -check-prefix=BLOCKS %s
126 #elif defined(BLOCKS)
127 // BLOCKS: [[G:@.+]] = global i{{[0-9]+}} 1212,
128 // BLOCKS-LABEL: @main
129 // BLOCKS: call void {{%.+}}(i8
131 // BLOCKS: define{{.*}} internal{{.*}} void {{.+}}(i8*
132 // BLOCKS: call void {{.+}} @__kmpc_fork_call({{.+}}, i32 1, {{.+}}* [[OMP_REGION:@.+]] to {{.+}})
136 // BLOCKS: define{{.*}} internal{{.*}} void [[OMP_REGION]](i32* noalias [[GTID:%.+]], i32* noalias %{{.+}}, i32* dereferenceable(4) [[SIVAR:%.+]])
137 // BLOCKS: alloca i{{[0-9]+}},
138 // BLOCKS: alloca i{{[0-9]+}},
139 // BLOCKS: alloca i{{[0-9]+}},
140 // BLOCKS: alloca i{{[0-9]+}},
141 // BLOCKS: alloca i{{[0-9]+}},
142 // BLOCKS: [[G_PRIVATE_ADDR:%.+]] = alloca i{{[0-9]+}},
143 // BLOCKS: [[SIVAR1_PRIVATE_ADDR:%.+]] = alloca i{{[0-9]+}},
145 // BLOCKS: store i{{[0-9]+}}* [[SIVAR]], i{{[0-9]+}}** [[SIVAR_ADDR:%.+]],
146 // BLOCKS: [[SIVAR_REF_ADDR:%.+]] = load i{{[0-9]+}}*, i{{[0-9]+}}** [[SIVAR_ADDR]],
148 // BLOCKS: [[GTID_ADDR:%.+]] = load i32*, i32** [[GTID:%.+]], align 8
149 // BLOCKS: [[GTID_ADDR_REF:%.+]] = load i32, i32* [[GTID_ADDR]], align 4
150 // BLOCKS: call {{.+}} @__kmpc_for_static_init_4(%{{.+}}* @{{.+}}, i32 [[GTID_ADDR_REF]], i32 34, i32* [[IS_LAST_ADDR:%.+]], i32* %{{.+}}, i32* %{{.+}}, i32* %{{.+}}, i32 1, i32 1)
151 // BLOCKS: store i{{[0-9]+}} 1, i{{[0-9]+}}* [[G_PRIVATE_ADDR]],
152 // BLOCKS: store i{{[0-9]+}} 17, i{{[0-9]+}}* [[SIVAR1_PRIVATE_ADDR]],
153 // BLOCKS-NOT: [[G]]{{[[^:word:]]}}
154 // BLOCKS: i{{[0-9]+}}* [[G_PRIVATE_ADDR]]
155 // BLOCKS-NOT: [[G]]{{[[^:word:]]}}
156 // BLOCKS-NOT: [[SIVAR]]{{[[^:word:]]}}
157 // BLOCKS: i{{[0-9]+}}* [[SIVAR1_PRIVATE_ADDR]]
158 // BLOCKS-NOT: [[SIVAR]]{{[[^:word:]]}}
159 // BLOCKS: call void {{%.+}}(i8
160 // BLOCKS: call void @__kmpc_for_static_fini(%{{.+}}* @{{.+}}, i32 [[GTID_ADDR_REF]])
166 // BLOCKS: [[IS_LAST_VAL:%.+]] = load i32, i32* [[IS_LAST_ADDR]],
167 // BLOCKS: [[IS_LAST_ITER:%.+]] = icmp ne i32 [[IS_LAST_VAL]], 0
168 // BLOCKS: br i1 [[IS_LAST_ITER:%.+]], label %[[LAST_THEN:.+]], label %[[LAST_DONE:.+]]
169 // BLOCKS: [[LAST_THEN]]
173 // BLOCKS: [[G_VAL:%.+]] = load i{{[0-9]+}}, i{{[0-9]+}}* [[G_PRIVATE_ADDR]],
174 // BLOCKS: store volatile i{{[0-9]+}} [[G_VAL]], i{{[0-9]+}}* [[G]],
177 // BLOCKS: [[SIVAR1_VAL:%.+]] = load i{{[0-9]+}}, i{{[0-9]+}}* [[SIVAR1_PRIVATE_ADDR]],
178 // BLOCKS: store i{{[0-9]+}} [[SIVAR1_VAL]], i{{[0-9]+}}* [[SIVAR_REF_ADDR]],
179 // BLOCKS: br label %[[LAST_DONE]]
180 // BLOCKS: [[LAST_DONE]]
181 // BLOCKS: call void @__kmpc_barrier(%{{.+}}* @{{.+}}, i{{[0-9]+}} [[GTID_ADDR_REF]])
184 // BLOCKS: define {{.+}} void {{@.+}}(i8*
187 // BLOCKS-NOT: [[G]]{{[[^:word:]]}}
188 // BLOCKS: store i{{[0-9]+}} 2, i{{[0-9]+}}*
189 // BLOCKS-NOT: [[G]]{{[[^:word:]]}}
190 // BLOCKS-NOT: [[SIVAR]]{{[[^:word:]]}}
191 // BLOCKS: store i{{[0-9]+}} 29, i{{[0-9]+}}*
192 // BLOCKS-NOT: [[SIVAR]]{{[[^:word:]]}}
193 // BLOCKS: ret