llvm-project/openmp/libomptarget/test/mapping
George Rokos 5adb3a6d86 [libomptarget] Fix copy-to motion for PTR_AND_OBJ entries where PTR is a struct member.
This patch fixes a problem whereby the pointee object of a PTR_AND_OBJ entry with a `map(to)` motion clause can be overwritten on the device even if its reference counter is >=1.

Currently, we check the reference counter of the parent struct in order to determine whether the motion clause should be respected, but since the pointee object is not part of the struct, it's got its own reference counter which should be used to enqueue the copy or discard it.

The same behavior has already been implemented in targetDataEnd (omptarget.cpp:539-540), but we somehow missed doing the same in targetDataBegin.

Differential Revision: https://reviews.llvm.org/D89597
2020-10-16 16:14:01 -07:00
..
present [OpenMP] Always emit debug messages that indicate offloading failure 2020-08-26 19:30:41 -04:00
alloc_fail.c [OpenMP] Always emit debug messages that indicate offloading failure 2020-08-26 19:30:41 -04:00
declare_mapper_api.cpp [OpenMP][Tests] Enable nvptx64 testing for most libomptarget tests 2020-07-28 11:08:24 +02:00
declare_mapper_target.cpp [OpenMP][Tests] Enable nvptx64 testing for most libomptarget tests 2020-07-28 11:08:24 +02:00
declare_mapper_target_data.cpp [OpenMP][Tests] Enable nvptx64 testing for most libomptarget tests 2020-07-28 11:08:24 +02:00
declare_mapper_target_data_enter_exit.cpp [OpenMP][Tests] Enable nvptx64 testing for most libomptarget tests 2020-07-28 11:08:24 +02:00
declare_mapper_target_update.cpp [OpenMP][Tests] Enable nvptx64 testing for most libomptarget tests 2020-07-28 11:08:24 +02:00
delete_inf_refcount.c [OpenMP][Tests] Enable nvptx64 testing for most libomptarget tests 2020-07-28 11:08:24 +02:00
lambda_mapping.cpp [LIBOMPTARGET]Do not try to optimize bases for the next parameters. 2020-08-28 15:46:31 -04:00
pr38704.c [OpenMP][Tests] Enable nvptx64 testing for most libomptarget tests 2020-07-28 11:08:24 +02:00
private_mapping.c [OpenMP] Fixed wrong test command in the test private_mapping.c 2020-08-28 12:19:46 -04:00
ptr_and_obj_motion.c [libomptarget] Fix copy-to motion for PTR_AND_OBJ entries where PTR is a struct member. 2020-10-16 16:14:01 -07:00
target_data_array_extension_at_exit.c [OpenMP] Fix `target data` exit for array extension 2020-08-05 16:51:25 -04:00
target_implicit_partial_map.c [OpenMP] Fix ref count dec for implicit map of partial data 2020-08-06 11:39:29 -04:00
target_update_array_extension.c [OpenMP] Fix `omp target update` for array extension 2020-08-05 10:03:31 -04:00