[flang][openacc] Support array slices when creating private recipe
authorValentin Clement <clementval@gmail.com>
Thu, 6 Jul 2023 21:07:45 +0000 (14:07 -0700)
committerValentin Clement <clementval@gmail.com>
Thu, 6 Jul 2023 21:08:18 +0000 (14:08 -0700)
commit897e69dd83dee3e41da6edc30354cc95d3042700
treed4fee864fcc2a5ef00609d9d341dede36c827e44
parenta05ed478c8f54131f9cafc20f15847dd745f5116
[flang][openacc] Support array slices when creating private recipe

The return type of the recipe must match the array slice provided by
the user. This patch enhance the recipe creation to take into account
the constant slices.

Depends on D154259

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D154648
flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/acc-private.f90