Lines Matching refs:Scope
36 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) {
37 if (auto *LocalScope = dyn_cast_or_null<DILocalScope>(Scope))
51 const MDNode *Scope = DLoc.getInlinedAtScope();
52 auto *Subprogram = getDISubprogram(Scope);
172 void DebugInfoFinder::processScope(DIScope *Scope) {
173 if (!Scope)
175 if (auto *Ty = dyn_cast<DIType>(Scope)) {
179 if (auto *CU = dyn_cast<DICompileUnit>(Scope)) {
183 if (auto *SP = dyn_cast<DISubprogram>(Scope)) {
187 if (!addScope(Scope))
189 if (auto *LB = dyn_cast<DILexicalBlockBase>(Scope)) {
191 } else if (auto *NS = dyn_cast<DINamespace>(Scope)) {
193 } else if (auto *M = dyn_cast<DIModule>(Scope)) {
288 bool DebugInfoFinder::addScope(DIScope *Scope) {
289 if (!Scope)
293 if (Scope->getNumOperands() == 0)
295 if (!NodesSeen.insert(Scope).second)
297 Scopes.push_back(Scope);