================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits