Lines Matching refs:Scope

110   DILocalScope *Scope = DL->getScope();  in findLexicalScope()  local
111 if (!Scope) in findLexicalScope()
116 if (auto *File = dyn_cast<DILexicalBlockFile>(Scope)) in findLexicalScope()
117 Scope = File->getScope(); in findLexicalScope()
120 auto I = InlinedLexicalScopeMap.find(std::make_pair(Scope, IA)); in findLexicalScope()
123 return findLexicalScope(Scope); in findLexicalScope()
128 LexicalScope *LexicalScopes::getOrCreateLexicalScope(const DILocalScope *Scope, in getOrCreateLexicalScope() argument
132 getOrCreateAbstractScope(Scope); in getOrCreateLexicalScope()
134 return getOrCreateInlinedScope(Scope, IA); in getOrCreateLexicalScope()
137 return getOrCreateRegularScope(Scope); in getOrCreateLexicalScope()
142 LexicalScopes::getOrCreateRegularScope(const DILocalScope *Scope) { in getOrCreateRegularScope() argument
143 if (auto *File = dyn_cast<DILexicalBlockFile>(Scope)) in getOrCreateRegularScope()
144 Scope = File->getScope(); in getOrCreateRegularScope()
146 auto I = LexicalScopeMap.find(Scope); in getOrCreateRegularScope()
152 if (auto *Block = dyn_cast<DILexicalBlockBase>(Scope)) in getOrCreateRegularScope()
155 std::forward_as_tuple(Scope), in getOrCreateRegularScope()
156 std::forward_as_tuple(Parent, Scope, nullptr, in getOrCreateRegularScope()
160 assert(cast<DISubprogram>(Scope)->describes(MF->getFunction())); in getOrCreateRegularScope()
170 LexicalScopes::getOrCreateInlinedScope(const DILocalScope *Scope, in getOrCreateInlinedScope() argument
172 std::pair<const DILocalScope *, const DILocation *> P(Scope, InlinedAt); in getOrCreateInlinedScope()
178 if (auto *Block = dyn_cast<DILexicalBlockBase>(Scope)) in getOrCreateInlinedScope()
185 std::forward_as_tuple(Parent, Scope, in getOrCreateInlinedScope()
193 LexicalScopes::getOrCreateAbstractScope(const DILocalScope *Scope) { in getOrCreateAbstractScope() argument
194 assert(Scope && "Invalid Scope encoding!"); in getOrCreateAbstractScope()
196 if (auto *File = dyn_cast<DILexicalBlockFile>(Scope)) in getOrCreateAbstractScope()
197 Scope = File->getScope(); in getOrCreateAbstractScope()
198 auto I = AbstractScopeMap.find(Scope); in getOrCreateAbstractScope()
204 if (auto *Block = dyn_cast<DILexicalBlockBase>(Scope)) in getOrCreateAbstractScope()
208 std::forward_as_tuple(Scope), in getOrCreateAbstractScope()
209 std::forward_as_tuple(Parent, Scope, in getOrCreateAbstractScope()
211 if (isa<DISubprogram>(Scope)) in getOrCreateAbstractScope()
217 void LexicalScopes::constructScopeNest(LexicalScope *Scope) { in constructScopeNest() argument
218 assert(Scope && "Unable to calculate scope dominance graph!"); in constructScopeNest()
220 WorkStack.push_back(Scope); in constructScopeNest()
274 LexicalScope *Scope = getOrCreateLexicalScope(DL); in getMachineBasicBlocks() local
275 if (!Scope) in getMachineBasicBlocks()
278 if (Scope == CurrentFnLexicalScope) { in getMachineBasicBlocks()
284 SmallVectorImpl<InsnRange> &InsnRanges = Scope->getRanges(); in getMachineBasicBlocks()
296 LexicalScope *Scope = getOrCreateLexicalScope(DL); in dominates() local
297 if (!Scope) in dominates()
301 if (Scope == CurrentFnLexicalScope && MBB->getParent() == MF) in dominates()
309 if (Scope->dominates(IScope)) in dominates()