[all-commits] [llvm/llvm-project] 8a880d: [libomptarget] Make omp_target_is_present checks s...

Ye Luo via All-commits all-commits at lists.llvm.org
Fri Apr 22 15:37:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a880db5192970e80f77130b9e61e548966d96c1
      https://github.com/llvm/llvm-project/commit/8a880db5192970e80f77130b9e61e548966d96c1
  Author: Ye Luo <yeluo at anl.gov>
  Date:   2022-04-22 (Fri, 22 Apr 2022)

  Changed paths:
    M openmp/libomptarget/src/api.cpp
    M openmp/libomptarget/test/mapping/target_implicit_partial_map.c

  Log Message:
  -----------
  [libomptarget] Make omp_target_is_present checks storage instead of zero length array.

Consider checking whether a pointer has been mapped can be achieved via omp_get_mapped_ptr.
omp_target_is_present is more needed to check whether the storage being pointed is mapped.
This restore the old behavior of omp_target_is_present before D123093
Fixes https://github.com/llvm/llvm-project/issues/54899

Reviewed By: jdenny

Differential Revision: https://reviews.llvm.org/D123891




More information about the All-commits mailing list