Lines Matching defs:HostDataToTargetTy

66 struct HostDataToTargetTy {  struct
67 const uintptr_t HstPtrBase; // host info.
68 const uintptr_t HstPtrBegin;
69 const uintptr_t HstPtrEnd; // non-inclusive.
70 const map_var_info_t HstPtrName; // Optional source name of mapped variable.
72 const uintptr_t TgtAllocBegin; // allocated target memory
73 const uintptr_t TgtPtrBegin; // mapped target memory = TgtAllocBegin + padding
77 static std::string refCountToStr(uint64_t RefCount) { in refCountToStr()
81 struct StatesTy {
125 HostDataToTargetTy(uintptr_t BP, uintptr_t B, uintptr_t E, argument
129 : HstPtrBase(BP), HstPtrBegin(B), HstPtrEnd(E), HstPtrName(Name), in HstPtrBase()
141 uint64_t getTotalRefCount() const { in getTotalRefCount()
149 uint64_t getDynRefCount() const { return States->DynRefCount; } in getDynRefCount()
152 uint64_t getHoldRefCount() const { return States->HoldRefCount; } in getHoldRefCount()
155 void *getEvent() const { return States->Event; } in getEvent()
163 void incDataEndThreadCount() { ++States->DataEndThreadCount; } in incDataEndThreadCount()
165 [[nodiscard]] int32_t decDataEndThreadCount() { in decDataEndThreadCount()
169 [[nodiscard]] int32_t getDataEndThreadCount() const { in getDataEndThreadCount()
174 void setEvent(void *Event) const { States->Event = Event; } in setEvent()
178 void resetRefCount(bool UseHoldRefCount) const { in resetRefCount()
186 void incRefCount(bool UseHoldRefCount) const { in incRefCount()
197 uint64_t decRefCount(bool UseHoldRefCount) const { in decRefCount()
213 bool isDynRefCountInf() const { return States->DynRefCount == INFRefCount; } in isDynRefCountInf()
216 std::string dynRefCountToStr() const { in dynRefCountToStr()
221 std::string holdRefCountToStr() const { in holdRefCountToStr()
228 uint64_t ThisRefCount =
230 uint64_t OtherRefCount =
242 bool addShadowPointer(const ShadowPtrInfoTy &ShadowPtrInfo) const { in addShadowPointer()
276 /// Wrapper around the HostDataToTargetTy to be used in the HDTT map. In argument