[flang][openacc] Fix clause restriction for exit data directive
authorValentin Clement <clementval@gmail.com>
Wed, 27 Jan 2021 15:07:06 +0000 (10:07 -0500)
committerclementval <clementval@gmail.com>
Wed, 27 Jan 2021 15:07:19 +0000 (10:07 -0500)
commitb65896ef8b5a0c72f4f738356aba8e454ae340be
treec85fc6c5d772581a7047b18e6f0c7468d6abe9dd
parent5e09a025277c170cf864a86d8eea8b1adeb9fbd9
[flang][openacc] Fix clause restriction for exit data directive

Restriction on clauses for the EXIT DATA directive were not fully correct.
This patch fixes the situation. The async, if and finalize clauses are allowed
only once.

Reviewed By: SouraVX

Differential Revision: https://reviews.llvm.org/D95470
flang/test/Semantics/OpenACC/acc-data.f90
llvm/include/llvm/Frontend/OpenACC/ACC.td