Lines Matching refs:Scope
453 bool DwarfDebug::isLexicalScopeDIENull(LexicalScope *Scope) { in isLexicalScopeDIENull() argument
454 if (Scope->isAbstractScope()) in isLexicalScopeDIENull()
458 const SmallVectorImpl<InsnRange> &Ranges = Scope->getRanges(); in isLexicalScopeDIENull()
482 LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE() argument
483 assert(Scope && Scope->getScopeNode()); in constructAbstractSubprogramScopeDIE()
484 assert(Scope->isAbstractScope()); in constructAbstractSubprogramScopeDIE()
485 assert(!Scope->getInlinedAt()); in constructAbstractSubprogramScopeDIE()
487 auto *SP = cast<DISubprogram>(Scope->getScopeNode()); in constructAbstractSubprogramScopeDIE()
493 SrcCU.constructAbstractSubprogramScopeDIE(Scope); in constructAbstractSubprogramScopeDIE()
498 .constructAbstractSubprogramScopeDIE(Scope); in constructAbstractSubprogramScopeDIE()
500 SkelCU->constructAbstractSubprogramScopeDIE(Scope); in constructAbstractSubprogramScopeDIE()
502 CU.constructAbstractSubprogramScopeDIE(Scope); in constructAbstractSubprogramScopeDIE()
1026 if (LexicalScope *Scope = in ensureAbstractEntityIsCreatedIfScoped() local
1028 CU.createAbstractEntity(Node, Scope); in ensureAbstractEntityIsCreatedIfScoped()
1043 LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc); in collectVariableInfoFromMFTable() local
1046 if (!Scope) in collectVariableInfoFromMFTable()
1049 ensureAbstractEntityIsCreatedIfScoped(TheCU, Var.first, Scope->getScopeNode()); in collectVariableInfoFromMFTable()
1055 else if (InfoHolder.addScopeVariable(Scope, RegVar.get())) { in collectVariableInfoFromMFTable()
1235 LexicalScope &Scope, in createConcreteEntity() argument
1239 ensureAbstractEntityIsCreatedIfScoped(TheCU, Node, Scope.getScopeNode()); in createConcreteEntity()
1244 InfoHolder.addScopeVariable(&Scope, in createConcreteEntity()
1250 InfoHolder.addScopeLabel(&Scope, in createConcreteEntity()
1331 LexicalScope *Scope = nullptr; in collectEntityInfo() local
1334 Scope = LScopes.findInlinedScope(LocalVar->getScope(), IA); in collectEntityInfo()
1336 Scope = LScopes.findLexicalScope(LocalVar->getScope()); in collectEntityInfo()
1338 if (!Scope) in collectEntityInfo()
1343 *Scope, LocalVar, IV.second)); in collectEntityInfo()
1384 LexicalScope *Scope = nullptr; in collectEntityInfo() local
1388 Scope = LScopes.findInlinedScope(Label->getScope(), IA); in collectEntityInfo()
1390 Scope = LScopes.findLexicalScope(Label->getScope()); in collectEntityInfo()
1392 if (!Scope) in collectEntityInfo()
1400 createConcreteEntity(TheCU, *Scope, Label, IL.second, Sym); in collectEntityInfo()
1407 LexicalScope *Scope = nullptr; in collectEntityInfo() local
1409 Scope = LScopes.findLexicalScope(DV->getScope()); in collectEntityInfo()
1411 Scope = LScopes.findLexicalScope(DL->getScope()); in collectEntityInfo()
1414 if (Scope) in collectEntityInfo()
1415 createConcreteEntity(TheCU, *Scope, DN, nullptr); in collectEntityInfo()
1452 const MDNode *Scope = DL.getScope(); in beginInstruction() local
1453 recordSourceLine(DL.getLine(), DL.getCol(), Scope, /*Flags=*/0); in beginInstruction()
1478 const MDNode *Scope = nullptr; in beginInstruction() local
1481 Scope = PrevInstLoc.getScope(); in beginInstruction()
1484 recordSourceLine(/*Line=*/0, Column, Scope, /*Flags=*/0); in beginInstruction()
1505 const MDNode *Scope = DL.getScope(); in beginInstruction() local
1506 recordSourceLine(DL.getLine(), DL.getCol(), Scope, Flags); in beginInstruction()
1610 const MDNode *Scope = nullptr; in endFunctionImpl() local
1612 Scope = DV->getScope(); in endFunctionImpl()
1614 Scope = DL->getScope(); in endFunctionImpl()
1619 ensureAbstractEntityIsCreated(TheCU, DN, Scope); in endFunctionImpl()
1653 if (auto *Scope = cast_or_null<DIScope>(S)) { in recordSourceLine() local
1654 Fn = Scope->getFilename(); in recordSourceLine()
1656 if (auto *LBF = dyn_cast<DILexicalBlockFile>(Scope)) in recordSourceLine()
1661 .getOrCreateSourceID(Scope->getFile()); in recordSourceLine()