Lines Matching refs:CurVNode
148 ValueProfNode *CurVNode = ValueCounters[CounterIndex]; in __llvm_profile_instrument_target() local
152 while (CurVNode) { in __llvm_profile_instrument_target()
153 if (TargetValue == CurVNode->Value) { in __llvm_profile_instrument_target()
154 CurVNode->Count++; in __llvm_profile_instrument_target()
157 if (CurVNode->Count < MinCount) { in __llvm_profile_instrument_target()
158 MinCount = CurVNode->Count; in __llvm_profile_instrument_target()
159 MinCountVNode = CurVNode; in __llvm_profile_instrument_target()
161 PrevVNode = CurVNode; in __llvm_profile_instrument_target()
162 CurVNode = CurVNode->Next; in __llvm_profile_instrument_target()
196 CurVNode = MinCountVNode; in __llvm_profile_instrument_target()
197 CurVNode->Value = TargetValue; in __llvm_profile_instrument_target()
198 CurVNode->Count++; in __llvm_profile_instrument_target()
203 CurVNode = allocateOneNode(PData, CounterIndex, TargetValue); in __llvm_profile_instrument_target()
204 if (!CurVNode) in __llvm_profile_instrument_target()
206 CurVNode->Value = TargetValue; in __llvm_profile_instrument_target()
207 CurVNode->Count++; in __llvm_profile_instrument_target()
212 COMPILER_RT_BOOL_CMPXCHG(&ValueCounters[CounterIndex], 0, CurVNode); in __llvm_profile_instrument_target()
214 Success = COMPILER_RT_BOOL_CMPXCHG(&(PrevVNode->Next), 0, CurVNode); in __llvm_profile_instrument_target()
217 free(CurVNode); in __llvm_profile_instrument_target()