Lines Matching refs:Ctx
19 MDNode *DebugLoc::getScope(const LLVMContext &Ctx) const { in getScope()
25 assert(unsigned(ScopeIdx) <= Ctx.pImpl->ScopeRecords.size() && in getScope()
27 return Ctx.pImpl->ScopeRecords[ScopeIdx-1].get(); in getScope()
31 assert(unsigned(-ScopeIdx) <= Ctx.pImpl->ScopeInlinedAtRecords.size() && in getScope()
33 return Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].first.get(); in getScope()
36 MDNode *DebugLoc::getInlinedAt(const LLVMContext &Ctx) const { in getInlinedAt()
42 assert(unsigned(-ScopeIdx) <= Ctx.pImpl->ScopeInlinedAtRecords.size() && in getInlinedAt()
44 return Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].second.get(); in getInlinedAt()
49 const LLVMContext &Ctx) const { in getScopeAndInlinedAt()
58 assert(unsigned(ScopeIdx) <= Ctx.pImpl->ScopeRecords.size() && in getScopeAndInlinedAt()
60 Scope = Ctx.pImpl->ScopeRecords[ScopeIdx-1].get(); in getScopeAndInlinedAt()
66 assert(unsigned(-ScopeIdx) <= Ctx.pImpl->ScopeInlinedAtRecords.size() && in getScopeAndInlinedAt()
68 Scope = Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].first.get(); in getScopeAndInlinedAt()
69 IA = Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].second.get(); in getScopeAndInlinedAt()
85 LLVMContext &Ctx = Scope->getContext(); in get() local
89 Result.ScopeIdx = Ctx.pImpl->getOrAddScopeRecordIdxEntry(Scope, 0); in get()
91 Result.ScopeIdx = Ctx.pImpl->getOrAddScopeInlinedAtIdxEntry(Scope, in get()
99 MDNode *DebugLoc::getAsMDNode(const LLVMContext &Ctx) const { in getAsMDNode()
103 getScopeAndInlinedAt(Scope, IA, Ctx); in getAsMDNode()
147 void DebugLoc::dump(const LLVMContext &Ctx) const { in dump()
153 DebugLoc InlinedAtDL = DebugLoc::getFromDILocation(getInlinedAt(Ctx)); in dump()
156 InlinedAtDL.dump(Ctx); in dump()
251 assert(Ctx->ScopeRecordIdx[Cur] == Idx && "Mapping out of date!"); in deleted()
252 Ctx->ScopeRecordIdx.erase(Cur); in deleted()
261 assert(unsigned(-Idx-1) < Ctx->ScopeInlinedAtRecords.size()); in deleted()
262 std::pair<DebugRecVH, DebugRecVH> &Entry = Ctx->ScopeInlinedAtRecords[-Idx-1]; in deleted()
272 assert(Ctx->ScopeInlinedAtIdx[std::make_pair(OldScope, OldInlinedAt)] == Idx&& in deleted()
274 Ctx->ScopeInlinedAtIdx.erase(std::make_pair(OldScope, OldInlinedAt)); in deleted()
300 assert(Ctx->ScopeRecordIdx[OldVal] == Idx && "Mapping out of date!"); in allUsesReplacedWith()
301 Ctx->ScopeRecordIdx.erase(OldVal); in allUsesReplacedWith()
304 int NewEntry = Ctx->getOrAddScopeRecordIdxEntry(NewVal, Idx); in allUsesReplacedWith()
315 assert(unsigned(-Idx-1) < Ctx->ScopeInlinedAtRecords.size()); in allUsesReplacedWith()
316 std::pair<DebugRecVH, DebugRecVH> &Entry = Ctx->ScopeInlinedAtRecords[-Idx-1]; in allUsesReplacedWith()
326 assert(Ctx->ScopeInlinedAtIdx[std::make_pair(OldScope, OldInlinedAt)] == Idx&& in allUsesReplacedWith()
328 Ctx->ScopeInlinedAtIdx.erase(std::make_pair(OldScope, OldInlinedAt)); in allUsesReplacedWith()
333 int NewIdx = Ctx->getOrAddScopeInlinedAtIdxEntry(Entry.first.get(), in allUsesReplacedWith()
338 std::pair<DebugRecVH, DebugRecVH> &Entry=Ctx->ScopeInlinedAtRecords[-Idx-1]; in allUsesReplacedWith()