diff options
author | Kiran Chandramohan <kiran.chandramohan@arm.com> | 2023-02-27 16:42:42 +0000 |
---|---|---|
committer | Kiran Chandramohan <kiran.chandramohan@arm.com> | 2023-02-27 16:52:50 +0000 |
commit | 7d7633bdf489eff66a56984a4cf3d6a21cf36f2b (patch) | |
tree | 9619293729d220a4bbbd2fa8dd007b19120079a9 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 853d4059135bdadf74d67f59215b21026b6f939e (diff) | |
download | llvm-7d7633bdf489eff66a56984a4cf3d6a21cf36f2b.zip llvm-7d7633bdf489eff66a56984a4cf3d6a21cf36f2b.tar.gz llvm-7d7633bdf489eff66a56984a4cf3d6a21cf36f2b.tar.bz2 |
[Flang][OpenMP][OpenACC] Error for loop with no control
Issue error if a DO construct associated with a loop does not have
loop control. Currently, it is issued only for the loop immediately
following the loop construct. This patch extends it to cases like
collapse where there is more than one loop associated. It also fixes
a crash since the existing code always expects loop control.
This is covered in OpenMP 4.5 standard, Section 2.7.1.
"The do-loop cannot be a DO WHILE or a DO loop without loop control."
OpenACC 3.3 covers this indirectly in Section 2.9.1.
The trip count for all loops associated with the collapse clause must
be computable and invariant in all the loops".
Reviewed By: clementval
Differential Revision: https://reviews.llvm.org/D144290
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions