Commit be99c61
committed
[OPENMP50]Codegen for iterator construct.
Implemented codegen for the iterator expression in the depend clauses.
Iterator construct is emitted the following way:
iterator(cnt1, cnt2, ...), in : <dep>
<TotalNumDeps> = <cnt1_size> * <cnt2_size> * ...;
kmp_depend_t deps[<TotalNumDeps>];
deps_counter = 0;
for (cnt1) {
for (cnt2) {
...
deps[deps_counter].base_addr = &<dep>;
deps[deps_counter].size = sizeof(<dep>);
deps[deps_counter].flags = in;
deps_counter += 1;
...
}
}
For depobj construct the codegen is very similar, but the memory is
allocated dynamically and added extra first item reserved for internal use.1 parent e3ba652 commit be99c61
File tree
25 files changed
+1204
-504
lines changed- clang
- include/clang/AST
- lib
- AST
- CodeGen
- Sema
- Serialization
- test/OpenMP
25 files changed
+1204
-504
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
209 | 224 | | |
210 | 225 | | |
211 | 226 | | |
| |||
233 | 248 | | |
234 | 249 | | |
235 | 250 | | |
236 | | - | |
| 251 | + | |
237 | 252 | | |
238 | 253 | | |
239 | 254 | | |
| |||
280 | 295 | | |
281 | 296 | | |
282 | 297 | | |
283 | | - | |
| 298 | + | |
| 299 | + | |
284 | 300 | | |
285 | 301 | | |
286 | 302 | | |
| |||
298 | 314 | | |
299 | 315 | | |
300 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
301 | 320 | | |
302 | 321 | | |
303 | 322 | | |
| |||
306 | 325 | | |
307 | 326 | | |
308 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
309 | 332 | | |
310 | 333 | | |
311 | 334 | | |
312 | 335 | | |
313 | | - | |
| 336 | + | |
| 337 | + | |
314 | 338 | | |
315 | 339 | | |
316 | 340 | | |
| |||
350 | 374 | | |
351 | 375 | | |
352 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
353 | 381 | | |
354 | 382 | | |
355 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4695 | 4695 | | |
4696 | 4696 | | |
4697 | 4697 | | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
4698 | 4710 | | |
4699 | 4711 | | |
4700 | | - | |
| 4712 | + | |
| 4713 | + | |
4701 | 4714 | | |
4702 | 4715 | | |
4703 | 4716 | | |
| |||
4707 | 4720 | | |
4708 | 4721 | | |
4709 | 4722 | | |
| 4723 | + | |
4710 | 4724 | | |
4711 | 4725 | | |
4712 | 4726 | | |
| |||
4715 | 4729 | | |
4716 | 4730 | | |
4717 | 4731 | | |
4718 | | - | |
| 4732 | + | |
| 4733 | + | |
| 4734 | + | |
| 4735 | + | |
4719 | 4736 | | |
4720 | | - | |
| 4737 | + | |
4721 | 4738 | | |
4722 | | - | |
| 4739 | + | |
| 4740 | + | |
4723 | 4741 | | |
4724 | | - | |
| 4742 | + | |
4725 | 4743 | | |
4726 | 4744 | | |
4727 | 4745 | | |
4728 | 4746 | | |
4729 | 4747 | | |
4730 | | - | |
| 4748 | + | |
4731 | 4749 | | |
4732 | | - | |
| 4750 | + | |
4733 | 4751 | | |
4734 | 4752 | | |
4735 | 4753 | | |
0 commit comments