Commit ab04989
authored
[flang][OpenMP] Reorganize ALLOCATE-related semantic checks (llvm#165719)
For ALLOCATORS and executable ALLOCATE first perform list item checks in
the context of an individual ALLOCATE clause or directive respectively,
then perform "global" checks, e.g. whether all list items are present on
the ALLOCATE statement.
These changes allowed to simplify the checks for presence on ALLOCATE
statement and the use of a predefined allocator.
Additionally, allow variable list item lists to be empty, add a test for
the related spec restriction.
This is a first step towards unifying OpenMPDeclarativeAllocate and
OpenMPExecutableAllocate into a single directive.1 parent ca19ab9 commit ab04989
File tree
17 files changed
+327
-258
lines changed- flang
- include/flang
- Parser
- Semantics
- lib
- Parser
- Semantics
- test
- Parser/OpenMP
- Semantics/OpenMP
17 files changed
+327
-258
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5155 | 5155 | | |
5156 | 5156 | | |
5157 | 5157 | | |
5158 | | - | |
| 5158 | + | |
5159 | 5159 | | |
5160 | 5160 | | |
5161 | 5161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2045 | 2045 | | |
2046 | 2046 | | |
2047 | 2047 | | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
2052 | | - | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
2053 | 2054 | | |
2054 | 2055 | | |
2055 | 2056 | | |
| |||
2079 | 2080 | | |
2080 | 2081 | | |
2081 | 2082 | | |
2082 | | - | |
| 2083 | + | |
| 2084 | + | |
2083 | 2085 | | |
2084 | 2086 | | |
2085 | 2087 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2502 | 2502 | | |
2503 | 2503 | | |
2504 | 2504 | | |
2505 | | - | |
2506 | | - | |
2507 | | - | |
| 2505 | + | |
2508 | 2506 | | |
2509 | 2507 | | |
2510 | 2508 | | |
| |||
0 commit comments