[all-commits] [llvm/llvm-project] 990222: [flang][openacc] Fix ambiguity in the self clause ...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Oct 27 18:10:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 990222931ba2c87803f8b0381a2088b0e2969848
      https://github.com/llvm/llvm-project/commit/990222931ba2c87803f8b0381a2088b0e2969848
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2020-10-27 (Tue, 27 Oct 2020)

  Changed paths:
    M flang/lib/Parser/openacc-parsers.cpp
    M flang/test/Semantics/acc-clause-validity.f90

  Log Message:
  -----------
  [flang][openacc] Fix ambiguity in the self clause parsing

In the OpenACC specification, there are two different self clause. One for the
update directive with a var-list argument. This clause is a synonym of the host clause.
The second self clause is present for most of the compute construct and takes an optional
condition. To solve this ambiguity, the self clause for the update directive is directly
translated to a host clause during the parsing. The self clause in AccClause refers always
to the compute construct clause.

Reviewed By: kiranktp

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




More information about the All-commits mailing list