[Openmp-commits] [openmp] [OpenMP][libomptarget][FIX] Fix mapping of struct to device (PR #70821)

Gheorghe-Teodor Bercea via Openmp-commits openmp-commits at lists.llvm.org
Thu Nov 2 05:59:21 PDT 2023


doru1004 wrote:

> For #pragma omp target enter data map(to: dat.datum[:10]) map(to: dat) Shouldn't frontend be allocating dat and doing a MAPTYPE_MEMBER_OF with MAPTTYPE_PTR_AND_OBJ to allocated datum[:10] and attach to dat and then a data transfer.

Right, dat.datum is mapped correctly no problem about that. The problem is dat. This patch makes sure that dat is mapped "to" without overwriting the pointer attachment of datum to dat.

https://github.com/llvm/llvm-project/pull/70821


More information about the Openmp-commits mailing list