Commit 5dbfe27
committed
Allow do concurrent with LOOP construct
There's some obscure language in OpenMP 6.0:
> If the collapsed loop is a DO CONCURRENT loop, neither the
> data-sharing attribute clauses nor the collapse clause may be specified.
From the surrounding context, I think "collapsed loop" just means the
loop that the LOOP construct applies to. So I will interpret this to
mean that DO CONCURRENT can only be used with the LOOP construct if it
does not contain the COLLAPSE clause.
This also fixes a bug where the associated clause was never cleared
after it was set.1 parent eed0acb commit 5dbfe27
File tree
2 files changed
+50
-10
lines changed- flang
- lib/Semantics
- test/Semantics/OpenMP
2 files changed
+50
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
737 | 738 | | |
738 | 739 | | |
739 | 740 | | |
740 | | - | |
741 | | - | |
742 | | - | |
| 741 | + | |
743 | 742 | | |
744 | 743 | | |
745 | 744 | | |
| |||
1916 | 1915 | | |
1917 | 1916 | | |
1918 | 1917 | | |
1919 | | - | |
| 1918 | + | |
1920 | 1919 | | |
1921 | 1920 | | |
1922 | | - | |
| 1921 | + | |
1923 | 1922 | | |
1924 | | - | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
1925 | 1929 | | |
1926 | 1930 | | |
1927 | 1931 | | |
| |||
1949 | 1953 | | |
1950 | 1954 | | |
1951 | 1955 | | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
1952 | 1962 | | |
1953 | 1963 | | |
1954 | 1964 | | |
1955 | 1965 | | |
1956 | | - | |
1957 | | - | |
1958 | | - | |
1959 | | - | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
1960 | 1980 | | |
1961 | 1981 | | |
1962 | 1982 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
19 | 39 | | |
0 commit comments