[llvm] [libsycl] Implement memcpy API (PR #205369)

Sergey Semenov via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 2 08:47:39 PDT 2026


================
@@ -331,6 +331,36 @@ class _LIBSYCL_EXPORT queue {
                                        std::forward<Rest>(rest)...);
   }
 
+  /// Submits a memory copy operation from one USM or host pointer to another.
+  ///
+  /// \param dest is the pointer to copy to.
+  /// \param src is the pointer to copy from.
+  /// \param numBytes is the number of bytes to copy.
+  /// \return an event that represents the status of the operation.
+  event memcpy(void *dest, const void *src, std::size_t numBytes);
----------------
sergey-semenov wrote:

I believe Kseniya was referring to exported ABI symbols here. Changed to inline definitions for the non-vector functions.

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


More information about the llvm-commits mailing list