[flang][openacc] Lower reduction for compute constructs
authorRazvan Lupusoru <rlupusoru@nvidia.com>
Wed, 7 Jun 2023 18:13:44 +0000 (11:13 -0700)
committerRazvan Lupusoru <rlupusoru@nvidia.com>
Wed, 7 Jun 2023 20:44:25 +0000 (13:44 -0700)
commit5e3faa05a0f15368fe3aa28380fa530a9a745c4a
tree80aca226d1125d5047fd4f348784ebbbe145c856
parentea63b395c0a75257224becd69c3d48ab4290c3b4
[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
flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/acc-kernels-loop.f90
flang/test/Lower/OpenACC/acc-loop.f90
flang/test/Lower/OpenACC/acc-parallel-loop.f90
flang/test/Lower/OpenACC/acc-parallel.f90
flang/test/Lower/OpenACC/acc-serial-loop.f90
flang/test/Lower/OpenACC/acc-serial.f90
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp