1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[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
This commit is contained in:
Valentin Clement 2021-01-27 10:07:06 -05:00 committed by clementval
parent 202f767031
commit 1973b57fb0

View File

@ -492,9 +492,11 @@ def ACC_EnterData : Directive<"enter data"> {
// 2.14.7
def ACC_ExitData : Directive<"exit data"> {
let allowedClauses = [
VersionedClause<ACCC_Wait>
];
let allowedOnceClauses = [
VersionedClause<ACCC_Async>,
VersionedClause<ACCC_If>,
VersionedClause<ACCC_Wait>,
VersionedClause<ACCC_Finalize>
];
let requiredClauses = [