Commit 7f43bc7
committed
[flang][OpenMP] Make all block constructs share the same structure
The structure is
- OmpBeginDirective (aka OmpDirectiveSpecification)
- Block
- optional<OmpEndDirective> (aka optional<OmpDirectiveSpecification>)
The OmpBeginDirective and OmpEndDirective are effectively different
names for OmpDirectiveSpecification. They exist to allow the semantic
analyses to distinguish between the beginning and the ending of a block
construct without maintaining additional context.
The actual changes are in the parser: parse-tree.h and openmp-parser.cpp
in particular. The rest is simply changing the way the directive/clause
information is accessed (typically for the simpler).
All standalone and block constructs now use OmpDirectiveSpecification
to store the directive/clause information.1 parent a70f7da commit 7f43bc7
File tree
38 files changed
+478
-574
lines changed- flang
- include/flang/Parser
- lib
- Lower/OpenMP
- Parser
- Semantics
- test
- Parser/OpenMP
- Semantics/OpenMP
38 files changed
+478
-574
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
538 | 537 | | |
539 | 538 | | |
540 | | - | |
541 | 539 | | |
542 | 540 | | |
543 | 541 | | |
| |||
584 | 582 | | |
585 | 583 | | |
586 | 584 | | |
587 | | - | |
588 | 585 | | |
589 | 586 | | |
590 | 587 | | |
| |||
705 | 702 | | |
706 | 703 | | |
707 | 704 | | |
| 705 | + | |
| 706 | + | |
708 | 707 | | |
709 | 708 | | |
710 | 709 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 71 | | |
77 | 72 | | |
78 | 73 | | |
| |||
98 | 93 | | |
99 | 94 | | |
100 | 95 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 96 | + | |
| 97 | + | |
105 | 98 | | |
106 | 99 | | |
107 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4701 | 4701 | | |
4702 | 4702 | | |
4703 | 4703 | | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
4704 | 4711 | | |
4705 | 4712 | | |
4706 | 4713 | | |
| |||
4719 | 4726 | | |
4720 | 4727 | | |
4721 | 4728 | | |
| 4729 | + | |
| 4730 | + | |
| 4731 | + | |
| 4732 | + | |
| 4733 | + | |
| 4734 | + | |
| 4735 | + | |
| 4736 | + | |
| 4737 | + | |
| 4738 | + | |
| 4739 | + | |
| 4740 | + | |
| 4741 | + | |
| 4742 | + | |
| 4743 | + | |
| 4744 | + | |
| 4745 | + | |
| 4746 | + | |
| 4747 | + | |
| 4748 | + | |
| 4749 | + | |
| 4750 | + | |
| 4751 | + | |
| 4752 | + | |
| 4753 | + | |
| 4754 | + | |
| 4755 | + | |
4722 | 4756 | | |
4723 | 4757 | | |
4724 | 4758 | | |
| |||
4824 | 4858 | | |
4825 | 4859 | | |
4826 | 4860 | | |
4827 | | - | |
4828 | | - | |
4829 | | - | |
4830 | | - | |
4831 | | - | |
4832 | | - | |
4833 | 4861 | | |
4834 | 4862 | | |
4835 | 4863 | | |
| |||
4954 | 4982 | | |
4955 | 4983 | | |
4956 | 4984 | | |
4957 | | - | |
4958 | | - | |
4959 | | - | |
4960 | | - | |
4961 | | - | |
4962 | | - | |
| 4985 | + | |
| 4986 | + | |
| 4987 | + | |
4963 | 4988 | | |
4964 | 4989 | | |
4965 | 4990 | | |
| |||
4973 | 4998 | | |
4974 | 4999 | | |
4975 | 5000 | | |
4976 | | - | |
| 5001 | + | |
4977 | 5002 | | |
4978 | 5003 | | |
4979 | 5004 | | |
4980 | | - | |
4981 | | - | |
4982 | | - | |
4983 | | - | |
4984 | | - | |
| 5005 | + | |
4985 | 5006 | | |
4986 | 5007 | | |
4987 | 5008 | | |
| |||
5045 | 5066 | | |
5046 | 5067 | | |
5047 | 5068 | | |
5048 | | - | |
5049 | | - | |
5050 | | - | |
5051 | | - | |
5052 | | - | |
5053 | | - | |
| 5069 | + | |
| 5070 | + | |
5054 | 5071 | | |
5055 | 5072 | | |
5056 | 5073 | | |
| |||
5105 | 5122 | | |
5106 | 5123 | | |
5107 | 5124 | | |
5108 | | - | |
5109 | | - | |
5110 | | - | |
5111 | | - | |
5112 | | - | |
5113 | | - | |
5114 | | - | |
5115 | | - | |
5116 | | - | |
5117 | | - | |
5118 | | - | |
5119 | | - | |
5120 | | - | |
5121 | | - | |
5122 | | - | |
5123 | | - | |
| 5125 | + | |
| 5126 | + | |
5124 | 5127 | | |
5125 | 5128 | | |
5126 | 5129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | | - | |
| 709 | + | |
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
418 | 417 | | |
419 | 418 | | |
420 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
420 | 413 | | |
421 | 414 | | |
422 | 415 | | |
| |||
3716 | 3709 | | |
3717 | 3710 | | |
3718 | 3711 | | |
3719 | | - | |
3720 | | - | |
3721 | | - | |
3722 | | - | |
3723 | | - | |
3724 | | - | |
3725 | | - | |
3726 | | - | |
3727 | | - | |
3728 | | - | |
3729 | | - | |
3730 | | - | |
3731 | | - | |
3732 | | - | |
3733 | | - | |
3734 | | - | |
3735 | | - | |
| 3712 | + | |
| 3713 | + | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
| 3719 | + | |
3736 | 3720 | | |
3737 | | - | |
| 3721 | + | |
3738 | 3722 | | |
3739 | 3723 | | |
3740 | 3724 | | |
| |||
3777 | 3761 | | |
3778 | 3762 | | |
3779 | 3763 | | |
3780 | | - | |
3781 | | - | |
3782 | | - | |
3783 | | - | |
3784 | 3764 | | |
3785 | 3765 | | |
3786 | | - | |
| 3766 | + | |
3787 | 3767 | | |
3788 | 3768 | | |
3789 | 3769 | | |
| |||
4071 | 4051 | | |
4072 | 4052 | | |
4073 | 4053 | | |
4074 | | - | |
4075 | | - | |
| 4054 | + | |
4076 | 4055 | | |
4077 | 4056 | | |
4078 | 4057 | | |
| |||
0 commit comments