Implement the following semantic check:
"A list item may not appear in a linear clause, unless it is the loop iteration variable."
Differential D100224
[flang][OpenMP] Add semantic check for occurrence of variables other than loop iteration variable in a `linear` clause associated with a `distribute` construct. arnamoy10 on Apr 9 2021, 12:17 PM. Authored by
Details Implement the following semantic check: "A list item may not appear in a linear clause, unless it is the loop iteration variable."
Diff Detail Event Timeline
Comment Actions Update as per reviewers' comments to check "association" of loops with the distribute construct based on the value in the collapse clause. Also added a test case. Comment Actions Looks mostly OK. One change request and a few nits.
Comment Actions Updating the algorithm as per suggestion, to skip collection of loop induction variable if no linear clause is found
Comment Actions LGTM. I have a nit suggestion.
|
Nit: Are these two fors required? Do these apply for Fortran?