[all-commits] [llvm/llvm-project] f2031a: [flang][openacc] Lower if_present clause correctly...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue May 9 09:00:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2031ac90e2790f741d1a5e0a0c7f779cd5a859d
      https://github.com/llvm/llvm-project/commit/f2031ac90e2790f741d1a5e0a0c7f779cd5a859d
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2023-05-09 (Tue, 09 May 2023)

  Changed paths:
    M flang/lib/Lower/OpenACC.cpp
    M flang/test/Lower/OpenACC/acc-update.f90

  Log Message:
  -----------
  [flang][openacc] Lower if_present clause correctly on acc update

The `if_present` clause is modeled as an attribute on the
acc.update operation. The lowering was not adding correctly the attribute
when the clause was present. This patch update the lowering to add
the attribute when needed.

Reviewed By: razvanlupusoru

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




More information about the All-commits mailing list