Commit db510b8
committed
[flang][OpenMP] Use new modifier infrastructure for MAP/FROM/TO clauses
This removes the specialized parsers and helper classes for these clauses,
namely ConcatSeparated, MapModifiers, and MotionModifiers. Map and the
motion clauses are now handled in the same way as all other clauses with
modifiers, with one exception: the commas separating their modifiers are
optional. This syntax is deprecated in OpenMP 5.2.
Implement version checks for modifiers: for a given modifier on a given
clause, check if that modifier is allowed on this clause in the specified
OpenMP version. This replaced several individual checks.
Add a testcase for handling map modifiers in a different order, and for
diagnosing an ultimate modifier out of position.1 parent 5f9db08 commit db510b8
File tree
25 files changed
+676
-657
lines changed- flang
- include/flang
- Parser
- Semantics
- lib
- Lower/OpenMP
- Parser
- Semantics
- test
- Lower/OpenMP/Todo
- Parser/OpenMP
- Semantics/OpenMP
25 files changed
+676
-657
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
479 | 484 | | |
480 | 485 | | |
481 | 486 | | |
| |||
536 | 541 | | |
537 | 542 | | |
538 | 543 | | |
539 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
540 | 547 | | |
541 | 548 | | |
542 | 549 | | |
| |||
548 | 555 | | |
549 | 556 | | |
550 | 557 | | |
551 | | - | |
552 | | - | |
553 | | - | |
| 558 | + | |
554 | 559 | | |
555 | 560 | | |
556 | 561 | | |
| |||
601 | 606 | | |
602 | 607 | | |
603 | 608 | | |
604 | | - | |
605 | | - | |
| 609 | + | |
606 | 610 | | |
607 | 611 | | |
608 | 612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3502 | 3502 | | |
3503 | 3503 | | |
3504 | 3504 | | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + | |
| 3508 | + | |
| 3509 | + | |
| 3510 | + | |
| 3511 | + | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
3505 | 3520 | | |
3506 | 3521 | | |
3507 | 3522 | | |
| |||
3519 | 3534 | | |
3520 | 3535 | | |
3521 | 3536 | | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
3522 | 3555 | | |
3523 | 3556 | | |
3524 | 3557 | | |
| |||
3723 | 3756 | | |
3724 | 3757 | | |
3725 | 3758 | | |
3726 | | - | |
3727 | 3759 | | |
3728 | | - | |
3729 | | - | |
3730 | | - | |
3731 | | - | |
3732 | | - | |
3733 | | - | |
3734 | | - | |
| 3760 | + | |
| 3761 | + | |
3735 | 3762 | | |
3736 | 3763 | | |
3737 | 3764 | | |
| |||
3794 | 3821 | | |
3795 | 3822 | | |
3796 | 3823 | | |
3797 | | - | |
3798 | | - | |
3799 | 3824 | | |
3800 | 3825 | | |
3801 | 3826 | | |
| |||
3804 | 3829 | | |
3805 | 3830 | | |
3806 | 3831 | | |
3807 | | - | |
3808 | | - | |
3809 | 3832 | | |
3810 | | - | |
3811 | | - | |
3812 | | - | |
3813 | | - | |
3814 | | - | |
3815 | | - | |
3816 | | - | |
3817 | | - | |
3818 | | - | |
3819 | | - | |
3820 | | - | |
3821 | | - | |
| 3833 | + | |
| 3834 | + | |
3822 | 3835 | | |
3823 | 3836 | | |
3824 | 3837 | | |
| |||
3877 | 3890 | | |
3878 | 3891 | | |
3879 | 3892 | | |
3880 | | - | |
3881 | 3893 | | |
3882 | | - | |
3883 | | - | |
3884 | | - | |
3885 | | - | |
3886 | | - | |
3887 | | - | |
3888 | | - | |
| 3894 | + | |
| 3895 | + | |
3889 | 3896 | | |
3890 | 3897 | | |
3891 | 3898 | | |
| |||
0 commit comments