[all-commits] [llvm/llvm-project] ea63b3: [flang][openacc] Remove single reduction clause li...

Razvan Lupusoru via All-commits all-commits at lists.llvm.org
Wed Jun 7 13:45:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea63b395c0a75257224becd69c3d48ab4290c3b4
      https://github.com/llvm/llvm-project/commit/ea63b395c0a75257224becd69c3d48ab4290c3b4
  Author: Razvan Lupusoru <rlupusoru at nvidia.com>
  Date:   2023-06-07 (Wed, 07 Jun 2023)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenACC/ACC.td

  Log Message:
  -----------
  [flang][openacc] Remove single reduction clause limitation

The constraint that a single reduction clause is allowed is actually
not valid as per OpenACC specification. Multiple reduction clauses
are allowed, especially since reduction clauses can have different
reduction operators.

Reviewed By: vzakhari

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


  Commit: 5e3faa05a0f15368fe3aa28380fa530a9a745c4a
      https://github.com/llvm/llvm-project/commit/5e3faa05a0f15368fe3aa28380fa530a9a745c4a
  Author: Razvan Lupusoru <rlupusoru at nvidia.com>
  Date:   2023-06-07 (Wed, 07 Jun 2023)

  Changed paths:
    M flang/lib/Lower/OpenACC.cpp
    M flang/test/Lower/OpenACC/acc-kernels-loop.f90
    M flang/test/Lower/OpenACC/acc-loop.f90
    M flang/test/Lower/OpenACC/acc-parallel-loop.f90
    M flang/test/Lower/OpenACC/acc-parallel.f90
    M flang/test/Lower/OpenACC/acc-serial-loop.f90
    M flang/test/Lower/OpenACC/acc-serial.f90
    M mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp

  Log Message:
  -----------
  [flang][openacc] Lower reduction for compute constructs

Parallel and serial constructs support reduction clause. Extend
recent D151564 loop reduction clause support to also include these
compute constructs.

Reviewed By: clementval, vzakhari

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


Compare: https://github.com/llvm/llvm-project/compare/b38a913fc093...5e3faa05a0f1


More information about the All-commits mailing list