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

Sergey Semenov via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 24 07:57:47 PDT 2026


================
@@ -59,6 +60,28 @@ auto getSyclObjImpl(const SyclObject &Obj)
   return ImplUtils::getSyclObjImpl(Obj);
 }
 
+template <typename ObjT, typename FuncT>
+auto transformVec(const std::vector<ObjT> &Vec, FuncT Func) {
----------------
sergey-semenov wrote:

I'd err on the side of avoiding duplicating logic where possible, even if it's just reserve + iterate. I can see your side of it though, seems like a matter of preference to me (at least while we only have 2 places to reuse this function in). I'd welcome any other reviewers to chime in on this.

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


More information about the llvm-commits mailing list