• Home
  • Raw
  • Download

Lines Matching refs:Idx

164   int &Idx = ScopeRecordIdx[Scope];  in getOrAddScopeRecordIdxEntry()  local
165 if (Idx) return Idx; in getOrAddScopeRecordIdxEntry()
169 return Idx = ExistingIdx; in getOrAddScopeRecordIdxEntry()
179 Idx = ScopeRecords.size()+1; in getOrAddScopeRecordIdxEntry()
180 ScopeRecords.push_back(DebugRecVH(Scope, this, Idx)); in getOrAddScopeRecordIdxEntry()
181 return Idx; in getOrAddScopeRecordIdxEntry()
187 int &Idx = ScopeInlinedAtIdx[std::make_pair(Scope, IA)]; in getOrAddScopeInlinedAtIdxEntry() local
188 if (Idx) return Idx; in getOrAddScopeInlinedAtIdxEntry()
192 return Idx = ExistingIdx; in getOrAddScopeInlinedAtIdxEntry()
200 Idx = -ScopeInlinedAtRecords.size()-1; in getOrAddScopeInlinedAtIdxEntry()
201 ScopeInlinedAtRecords.push_back(std::make_pair(DebugRecVH(Scope, this, Idx), in getOrAddScopeInlinedAtIdxEntry()
202 DebugRecVH(IA, this, Idx))); in getOrAddScopeInlinedAtIdxEntry()
203 return Idx; in getOrAddScopeInlinedAtIdxEntry()
216 if (Idx == 0) { in deleted()
224 if (Idx > 0) { in deleted()
225 assert(Ctx->ScopeRecordIdx[Cur] == Idx && "Mapping out of date!"); in deleted()
229 Idx = 0; in deleted()
235 assert(unsigned(-Idx-1) < Ctx->ScopeInlinedAtRecords.size()); in deleted()
236 std::pair<DebugRecVH, DebugRecVH> &Entry = Ctx->ScopeInlinedAtRecords[-Idx-1]; in deleted()
246 assert(Ctx->ScopeInlinedAtIdx[std::make_pair(OldScope, OldInlinedAt)] == Idx&& in deleted()
253 Entry.first.Idx = Entry.second.Idx = 0; in deleted()
264 if (Idx == 0) { in allUsesReplacedWith()
273 if (Idx > 0) { in allUsesReplacedWith()
274 assert(Ctx->ScopeRecordIdx[OldVal] == Idx && "Mapping out of date!"); in allUsesReplacedWith()
278 int NewEntry = Ctx->getOrAddScopeRecordIdxEntry(NewVal, Idx); in allUsesReplacedWith()
282 if (NewEntry != Idx) in allUsesReplacedWith()
283 Idx = 0; in allUsesReplacedWith()
289 assert(unsigned(-Idx-1) < Ctx->ScopeInlinedAtRecords.size()); in allUsesReplacedWith()
290 std::pair<DebugRecVH, DebugRecVH> &Entry = Ctx->ScopeInlinedAtRecords[-Idx-1]; in allUsesReplacedWith()
300 assert(Ctx->ScopeInlinedAtIdx[std::make_pair(OldScope, OldInlinedAt)] == Idx&& in allUsesReplacedWith()
308 Entry.second.get(), Idx); in allUsesReplacedWith()
311 if (NewIdx != Idx) { in allUsesReplacedWith()
312 std::pair<DebugRecVH, DebugRecVH> &Entry=Ctx->ScopeInlinedAtRecords[-Idx-1]; in allUsesReplacedWith()
313 Entry.first.Idx = Entry.second.Idx = 0; in allUsesReplacedWith()