[openmp][openacc] Check for duplicate clauses for directive
authorValentin Clement <clementval@gmail.com>
Wed, 28 Oct 2020 19:11:47 +0000 (15:11 -0400)
committerclementval <clementval@gmail.com>
Wed, 28 Oct 2020 19:12:38 +0000 (15:12 -0400)
commitc89b645755418ad22ffae8e347f7e495943367f0
tree9cbfb551a64d0080f52a91dcdf0508004cf84a6d
parentfcd54b82e8cd5ef03d94c52971da955d02d07fdf
[openmp][openacc] Check for duplicate clauses for directive

Check for duplicate clauses associated with directive. Clauses can appear only once
in the 4 lists associated with each directive (allowedClauses, allowedOnceClauses,
allowedExclusiveClauses, requiredClauses). Duplicates were already present (removed with this
patch) or were introduce in new patches by mistake (D89861).

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D90241
llvm/include/llvm/Frontend/OpenACC/ACC.td
llvm/include/llvm/TableGen/DirectiveEmitter.h
llvm/test/TableGen/directive3.td [new file with mode: 0644]
llvm/utils/TableGen/DirectiveEmitter.cpp