[llvm] [OpenMP] Adds omp_target_is_accessible routine (PR #138294)
Michael Klemm via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 24 06:42:35 PDT 2025
================
@@ -280,6 +280,7 @@ int omp_get_initial_device(void);
void *omp_target_alloc(size_t Size, int DeviceNum);
void omp_target_free(void *DevicePtr, int DeviceNum);
int omp_target_is_present(const void *Ptr, int DeviceNum);
+int omp_target_is_accessible(const void *Ptr, size_t Size, int DeviceNum);
----------------
mjklemm wrote:
Yep. I think there need to be entries in `omp_lib.h.var`, `omp.h.var`, `omp_lib.F90.var`. You may also need to add something in `kmp_ftn_os.h` and `dllexports` (but that's only for stubs).
https://github.com/llvm/llvm-project/pull/138294
More information about the llvm-commits
mailing list