[flang][openacc] Lower data clause on compute construct to data operand ops
authorValentin Clement <clementval@gmail.com>
Thu, 4 May 2023 18:15:04 +0000 (11:15 -0700)
committerValentin Clement <clementval@gmail.com>
Thu, 4 May 2023 18:15:25 +0000 (11:15 -0700)
commitac8c032c85fc9cd063bd44a6dbaee8e4f9ae745c
tree777531c730cd8a81538dc4abf2fdc79f667bd28e
parentc2bef381fae95c40a8f8af0fa5674fd5640c582f
[flang][openacc] Lower data clause on compute construct to data operand ops

This patch lowers the data clause on the OpenACC compute construct
to their corresponding acc data operand operation.
The decomposition is the same as in D149673.

Note that `private` and `firstprivate` are not lowered to data operand operation as they do not have one and will likely have dedicated design/process.

Depends on D149673

Reviewed By: razvanlupusoru, jeanPerier

Differential Revision: https://reviews.llvm.org/D149785
flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/acc-kernels-loop.f90
flang/test/Lower/OpenACC/acc-kernels.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