[libomptarget] Move HostDataToTargetTy states into StatesTy
authorYe Luo <yeluo@anl.gov>
Thu, 2 Sep 2021 04:36:05 +0000 (23:36 -0500)
committerYe Luo <yeluo@anl.gov>
Thu, 2 Sep 2021 04:36:05 +0000 (23:36 -0500)
commit289a1089cd1f109b44df7eebc66863b58e0b5258
treee5d6bc6bfc890678657cf224b5eb6e51317f813a
parent8671191d26d4dc46f061387fe7db863634124d97
[libomptarget] Move HostDataToTargetTy states into StatesTy

Use unique_ptr to achieve the effect of mutable.

Remove mutable keyword of DynRefCount and HoldRefCount
Remove std::shared_ptr from UpdateMtx

Reviewed By: tianshilei1992, grokos

Differential Revision: https://reviews.llvm.org/D109007
openmp/libomptarget/src/device.h