[Openmp-commits] [openmp] [Libomptarget] Remove extra cache for offloading entries (PR #77012)
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jan 5 10:36:57 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);
----------------
jhuber6 wrote:
With the current usage, it's passed in as an r-value and then stored inside of some other struct. I wanted explicitly ownership by forcing the copy. It could probably be done another way.
https://github.com/llvm/llvm-project/pull/77012
More information about the Openmp-commits
mailing list