[flang][openacc] Relax rule for end directive on combined construct
authorValentin Clement <clementval@gmail.com>
Tue, 13 Jun 2023 20:57:43 +0000 (13:57 -0700)
committerValentin Clement <clementval@gmail.com>
Tue, 13 Jun 2023 20:58:20 +0000 (13:58 -0700)
commit561a3697099aa74fcbaf426e6d0ebeb783b57a1e
treee3f6f9a128213342631445c4d831a26deeaf74d4
parent88c2c2eff77b521a5c6ed5f412438f094c14c17d
[flang][openacc] Relax rule for end directive on combined construct

Make the keyword `loop` optional for the end driective on combined
construct. This done to extend compatibility with other compiler that
allow this.

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D151856
flang/docs/OpenACC.md [new file with mode: 0644]
flang/lib/Parser/executable-parsers.cpp
flang/lib/Parser/openacc-parsers.cpp
flang/lib/Parser/type-parsers.h
flang/lib/Semantics/canonicalize-acc.cpp
flang/test/Semantics/OpenACC/acc-canonicalization-validity.f90
flang/test/Semantics/OpenACC/acc-combined-loop.f90 [new file with mode: 0644]
flang/test/Semantics/OpenACC/acc-kernels-loop.f90
flang/test/Semantics/OpenACC/acc-parallel-loop-validity.f90
flang/test/Semantics/OpenACC/acc-serial-loop.f90