[Openmp-commits] [PATCH] D123443: [OpenMP][NFCI] Cleanup APIs and improve object encapsulation
Ye Luo via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Apr 11 16:59:50 PDT 2022
ye-luo added inline comments.
================
Comment at: openmp/libomptarget/src/device.cpp:219
// It might have been allocated with the parent, but it's still new.
- IsNew = HT.getTotalRefCount() == 1;
+ TPR.setIsNew(HT.getTotalRefCount() == 1);
RefCountAction = " (update suppressed)";
----------------
jdoerfert wrote:
> ye-luo wrote:
> > Can we avoid all the setXXX functions?
> > I feel better keep the local IsNew and then return by calling TPR::TPR(Entry, TargetPointer, IsNew...)
> But then I need to do manual locking again and I would like us to avoid that.
Do you have a patch with locking added? Try to understand better your intention.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123443/new/
https://reviews.llvm.org/D123443
More information about the Openmp-commits
mailing list