[flang][openacc] Add parsing tests and semantic check for set directive
authorValentin Clement <clementval@gmail.com>
Fri, 6 Nov 2020 03:19:21 +0000 (22:19 -0500)
committerclementval <clementval@gmail.com>
Fri, 6 Nov 2020 03:57:58 +0000 (22:57 -0500)
commit9914a8737f527bd065e3ac9b119c5bdb1762ac3a
tree67760392738affbd2732dfdc97b2ed0efeda2625
parentcfd96f057ba4256fef49518cad43d0a7f591da12
[flang][openacc] Add parsing tests and semantic check for set directive

This patch add some parsing and clause validity tests for the set directive.
It makes use of the possibility introduces in patch D90770 to check the restriction
were one of the default_async, device_num and device_type clauses is required but also
not more than once on the set directive.

Reviewed By: sameeranjoshi

Differential Revision: https://reviews.llvm.org/D90771
flang/test/Semantics/acc-clause-validity.f90
llvm/include/llvm/Frontend/OpenACC/ACC.td
llvm/include/llvm/TableGen/DirectiveEmitter.h
llvm/utils/TableGen/DirectiveEmitter.cpp