Commit 2a89a65
committed
[flang][OpenMP] Ignore target-data operations with no offload targets
When no offload targets are specified flang will ignore "target"
constructs, but not "target data" constructs. This patch makes the
behavior consistent across all offload-related operations.
While ignoring "target" may produce semantically incorrect code, it
may still be a useful debugging tool.1 parent 9fed480 commit 2a89a65
File tree
5 files changed
+240
-183
lines changed- flang/test/Lower
- mlir
- lib/Target/LLVMIR/Dialect/OpenMP
- test/Target/LLVMIR
5 files changed
+240
-183
lines changed| 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 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4378 | 4378 | | |
4379 | 4379 | | |
4380 | 4380 | | |
| 4381 | + | |
| 4382 | + | |
| 4383 | + | |
4381 | 4384 | | |
4382 | 4385 | | |
4383 | 4386 | | |
| |||
4402 | 4405 | | |
4403 | 4406 | | |
4404 | 4407 | | |
| 4408 | + | |
| 4409 | + | |
4405 | 4410 | | |
4406 | 4411 | | |
4407 | 4412 | | |
| |||
4422 | 4427 | | |
4423 | 4428 | | |
4424 | 4429 | | |
| 4430 | + | |
| 4431 | + | |
4425 | 4432 | | |
4426 | 4433 | | |
4427 | 4434 | | |
| |||
4442 | 4449 | | |
4443 | 4450 | | |
4444 | 4451 | | |
| 4452 | + | |
| 4453 | + | |
4445 | 4454 | | |
4446 | 4455 | | |
4447 | 4456 | | |
| |||
4467 | 4476 | | |
4468 | 4477 | | |
4469 | 4478 | | |
| 4479 | + | |
| 4480 | + | |
4470 | 4481 | | |
4471 | 4482 | | |
4472 | 4483 | | |
| |||
0 commit comments