Lines Matching defs:Scope
36 DISubprogram llvm::getDISubprogram(const MDNode *Scope) {
37 if (auto *LocalScope = dyn_cast_or_null<MDLocalScope>(Scope))
51 const MDNode *Scope = DLoc.getInlinedAtScope();
52 DISubprogram Subprogram = getDISubprogram(Scope);
183 void DebugInfoFinder::processScope(DIScope Scope) {
184 if (!Scope)
186 if (DIType Ty = dyn_cast<MDType>(Scope)) {
190 if (DICompileUnit CU = dyn_cast<MDCompileUnit>(Scope)) {
194 if (DISubprogram SP = dyn_cast<MDSubprogram>(Scope)) {
198 if (!addScope(Scope))
200 if (auto *LB = dyn_cast<MDLexicalBlockBase>(Scope)) {
202 } else if (auto *NS = dyn_cast<MDNamespace>(Scope)) {
297 bool DebugInfoFinder::addScope(DIScope Scope) {
298 if (!Scope)
302 if (Scope->getNumOperands() == 0)
304 if (!NodesSeen.insert(Scope).second)
306 Scopes.push_back(Scope);