[Openmp-commits] [openmp] [Libomptarget] Remove extra cache for offloading entries (PR #77012)

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Fri Jan 5 10:34:36 PST 2024


================
@@ -159,7 +159,7 @@ struct DeviceTy {
   /// }
 
   /// Register \p Entry as an offload entry that is avalable on this device.
-  void addOffloadEntry(OffloadEntryTy &Entry);
+  void addOffloadEntry(OffloadEntryTy Entry);
----------------
jdoerfert wrote:

It's only 2 ptrs now but why would we not want (const) references here?

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


More information about the Openmp-commits mailing list