[flang][openacc] Fix clause restriction for host_data directive
authorValentin Clement <clementval@gmail.com>
Wed, 27 Jan 2021 15:06:18 +0000 (10:06 -0500)
committerclementval <clementval@gmail.com>
Wed, 27 Jan 2021 15:06:33 +0000 (10:06 -0500)
commit5e09a025277c170cf864a86d8eea8b1adeb9fbd9
tree3845e41b69284ad4ecfeb11be61da5f17fb21157
parent1edb76cc91e795ab3ce0bbfc194f2f7967458c5f
[flang][openacc] Fix clause restriction for host_data directive

Restriction on clauses for the HOST_DATA directive were not fully correct.
This patch fixes the situation. The if and if_present clauses are allowed
only once.

Reviewed By: SouraVX

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