Lines Matching refs:RSCurr
886 static inline bool isAllocated(const RefState *RSCurr, const RefState *RSPrev, in isAllocated() argument
889 (RSCurr && in isAllocated()
890 (RSCurr->isAllocated() || RSCurr->isAllocatedOfSizeZero())) && in isAllocated()
897 static inline bool isReleased(const RefState *RSCurr, const RefState *RSPrev, in isReleased() argument
900 (RSCurr && RSCurr->isReleased()) && (!RSPrev || !RSPrev->isReleased()); in isReleased()
902 (!Stmt && RSCurr->getAllocationFamily() == AF_InnerBuffer)); in isReleased()
907 static inline bool isRelinquished(const RefState *RSCurr, in isRelinquished() argument
911 (RSCurr && RSCurr->isRelinquished()) && in isRelinquished()
919 static inline bool hasReallocFailed(const RefState *RSCurr, in hasReallocFailed() argument
923 (RSCurr && in hasReallocFailed()
924 (RSCurr->isAllocated() || RSCurr->isAllocatedOfSizeZero())) && in hasReallocFailed()
3428 const RefState *RSCurr = state->get<RegionState>(Sym); in VisitNode() local
3434 if (!S && (!RSCurr || RSCurr->getAllocationFamily() != AF_InnerBuffer)) in VisitNode()
3480 if (isAllocated(RSCurr, RSPrev, S)) { in VisitNode()
3484 } else if (isReleased(RSCurr, RSPrev, S)) { in VisitNode()
3485 const auto Family = RSCurr->getAllocationFamily(); in VisitNode()
3509 const Stmt *S = RSCurr->getStmt(); in VisitNode()
3563 } else if (isRelinquished(RSCurr, RSPrev, S)) { in VisitNode()
3566 } else if (hasReallocFailed(RSCurr, RSPrev, S)) { in VisitNode()
3606 assert(RSCurr->getAllocationFamily() == AF_InnerBuffer); in VisitNode()