Commit 668cd1c
authored
[OpenACC] Implement 'return' branch-out of Compute Construct (llvm#82814)
Like with 'break'/'continue', returning out of a compute construct is
ill-formed, so this implements the diagnostic. However, unlike the
OpenMP implementation of this same diagnostic, OpenACC doesn't have a
concept of 'capture region', so this is implemented as just checking the
'scope'.1 parent 8ce81e5 commit 668cd1c
File tree
5 files changed
+65
-6
lines changed- clang
- include/clang
- Basic
- Sema
- lib/Sema
- test/SemaOpenACC
5 files changed
+65
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12210 | 12210 | | |
12211 | 12211 | | |
12212 | 12212 | | |
12213 | | - | |
12214 | | - | |
| 12213 | + | |
| 12214 | + | |
| 12215 | + | |
12215 | 12216 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
524 | 537 | | |
525 | 538 | | |
526 | 539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3361 | 3361 | | |
3362 | 3362 | | |
3363 | 3363 | | |
3364 | | - | |
3365 | | - | |
| 3364 | + | |
| 3365 | + | |
| 3366 | + | |
3366 | 3367 | | |
3367 | 3368 | | |
3368 | 3369 | | |
| |||
3390 | 3391 | | |
3391 | 3392 | | |
3392 | 3393 | | |
3393 | | - | |
3394 | | - | |
| 3394 | + | |
| 3395 | + | |
| 3396 | + | |
3395 | 3397 | | |
3396 | 3398 | | |
3397 | 3399 | | |
| |||
3947 | 3949 | | |
3948 | 3950 | | |
3949 | 3951 | | |
| 3952 | + | |
| 3953 | + | |
| 3954 | + | |
| 3955 | + | |
| 3956 | + | |
| 3957 | + | |
3950 | 3958 | | |
3951 | 3959 | | |
3952 | 3960 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments