Lines Matching refs:AllocationInfo
5745 struct AllocationInfo { struct
5793 It.getSecond()->~AllocationInfo(); in ~AAHeapToStackFunction()
5819 IsMalloc ? AllocationInfo::AllocationKind::MALLOC in initialize()
5820 : (IsCalloc ? AllocationInfo::AllocationKind::CALLOC in initialize()
5821 : AllocationInfo::AllocationKind::ALIGNED_ALLOC); in initialize()
5823 AllocationInfo *AI = new (A.Allocator) AllocationInfo{CB, Kind}; in initialize()
5841 if (It.second->Status == AllocationInfo::INVALID) in getAsStr()
5856 if (It.second->Status != AllocationInfo::INVALID) in trackStatistics()
5862 if (AllocationInfo *AI = AllocationInfos.lookup(&CB)) in isAssumedHeapToStack()
5863 return AI->Status != AllocationInfo::INVALID; in isAssumedHeapToStack()
5872 AllocationInfo &AI = *It.second; in isAssumedHeapToStackRemovedFree()
5873 if (AI.Status == AllocationInfo::INVALID) in isAssumedHeapToStackRemovedFree()
5892 AllocationInfo &AI = *It.second; in manifest()
5893 if (AI.Status == AllocationInfo::INVALID) in manifest()
5921 } else if (AI.Kind == AllocationInfo::AllocationKind::CALLOC) { in manifest()
5926 } else if (AI.Kind == AllocationInfo::AllocationKind::ALIGNED_ALLOC) { in manifest()
5933 if (AI.Kind == AllocationInfo::AllocationKind::ALIGNED_ALLOC) { in manifest()
5962 if (AI.Kind == AllocationInfo::AllocationKind::CALLOC) { in manifest()
5993 AllocationInfo &AI) { in getSize()
5995 if (AI.Kind == AllocationInfo::AllocationKind::MALLOC) in getSize()
5998 if (AI.Kind == AllocationInfo::AllocationKind::ALIGNED_ALLOC) in getSize()
6004 assert(AI.Kind == AllocationInfo::AllocationKind::CALLOC && in getSize()
6017 DenseMap<CallBase *, AllocationInfo *> AllocationInfos;
6086 AllocationInfo *AI = AllocationInfos.lookup(ObjCB); in updateImpl()
6099 auto FreeCheck = [&](AllocationInfo &AI) { in updateImpl()
6159 auto UsesCheck = [&](AllocationInfo &AI) { in updateImpl()
6239 AllocationInfo &AI = *It.second; in updateImpl()
6240 if (AI.Status == AllocationInfo::INVALID) in updateImpl()
6244 if (AI.Kind == AllocationInfo::AllocationKind::ALIGNED_ALLOC) in updateImpl()
6248 AI.Status = AllocationInfo::INVALID; in updateImpl()
6264 AI.Status = AllocationInfo::INVALID; in updateImpl()
6271 case AllocationInfo::STACK_DUE_TO_USE: in updateImpl()
6274 AI.Status = AllocationInfo::STACK_DUE_TO_FREE; in updateImpl()
6276 case AllocationInfo::STACK_DUE_TO_FREE: in updateImpl()
6279 AI.Status = AllocationInfo::INVALID; in updateImpl()
6282 case AllocationInfo::INVALID: in updateImpl()