forked from OSchip/llvm-project
5adb3a6d86
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 |
||
---|---|---|
.. | ||
present | ||
alloc_fail.c | ||
declare_mapper_api.cpp | ||
declare_mapper_target.cpp | ||
declare_mapper_target_data.cpp | ||
declare_mapper_target_data_enter_exit.cpp | ||
declare_mapper_target_update.cpp | ||
delete_inf_refcount.c | ||
lambda_mapping.cpp | ||
pr38704.c | ||
private_mapping.c | ||
ptr_and_obj_motion.c | ||
target_data_array_extension_at_exit.c | ||
target_implicit_partial_map.c | ||
target_update_array_extension.c |