[flang][openacc] Relax clause rule on routine directive
authorValentin Clement <clementval@gmail.com>
Wed, 28 Jun 2023 16:07:04 +0000 (09:07 -0700)
committerValentin Clement <clementval@gmail.com>
Wed, 28 Jun 2023 16:07:38 +0000 (09:07 -0700)
commit9ed76f3958bba8abb0e40fa51f9ff54961332f18
tree4f5d4d94febc0fa4bf94bd5c3a81dcfdee273d9c
parent25b51191ff4f0377ecee1943578e59149e415eab
[flang][openacc] Relax clause rule on routine directive

Some compiler treat `acc routine` without a parallelism clause as
if seq is present. Relax the parser rule to allow acc routine
without clause. The default clause will be handled in lowering.

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D153896
flang/docs/OpenACC.md
flang/test/Semantics/OpenACC/acc-routine-validity.f90
llvm/include/llvm/Frontend/OpenACC/ACC.td