[all-commits] [llvm/llvm-project] 760eca: [flang][openacc] Accept !$acc end loop

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Aug 29 09:17:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 760eca1d1079d46e430722c8d8999b327b083240
      https://github.com/llvm/llvm-project/commit/760eca1d1079d46e430722c8d8999b327b083240
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M flang/docs/OpenACC.md
    M flang/include/flang/Parser/dump-parse-tree.h
    M flang/include/flang/Parser/parse-tree.h
    M flang/lib/Parser/openacc-parsers.cpp
    M flang/lib/Parser/unparse.cpp
    M flang/lib/Semantics/canonicalize-acc.cpp
    M flang/lib/Semantics/resolve-directives.cpp
    M flang/test/Semantics/OpenACC/acc-canonicalization-validity.f90
    A flang/test/Semantics/OpenACC/acc-loop-validity.f90
    M flang/test/Semantics/OpenACC/acc-loop.f90

  Log Message:
  -----------
  [flang][openacc] Accept !$acc end loop

Some compilers accept `!$acc end loop` associated with an `!$acc loop`
directive. This patch updates the acc loop parser to accept it as well.
The parser is also updated to be stricter on the following statement
to match the OpenACC combined construct parser.
The rewrite canonicalization is not a rewrite anymore and the naming
will be updated in a follow up patch for the Loop and Combined constructs.

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D159015




More information about the All-commits mailing list