[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 13:48:48 PDT 2022
ye-luo added inline comments.
================
Comment at: openmp/libomptarget/include/device.h:288
+ unsigned IsLast : 1;
} Flags = {0, 0};
----------------
three 0?
================
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)";
----------------
Can we avoid all the setXXX functions?
I feel better keep the local IsNew and then return by calling TPR::TPR(Entry, TargetPointer, IsNew...)
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