[clang] [llvm] [OpenMP] Adds omp_target_is_accessible routine (PR #138294)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 24 07:07:35 PDT 2025


================
@@ -1069,6 +1069,13 @@ struct GenericDeviceTy : public DeviceAllocatorTy {
   bool useAutoZeroCopy();
   virtual bool useAutoZeroCopyImpl() { return false; }
 
+  /// Returns true if the plugin can guarantee that the associated
+  /// storage is accessible
+  bool isAccessiblePtr(const void *Ptr, size_t Size);
+  virtual bool isAccessiblePtrImpl(const void *Ptr, size_t Size) {
----------------
shiltian wrote:

If this impl function is only for internal use, can we make them private?

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


More information about the cfe-commits mailing list