Home
last modified time | relevance | path

Searched refs:LexicalScope (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DLexicalScopes.h45 class LexicalScope {
47 LexicalScope(LexicalScope *P, const DILocalScope *D, const DILocation *I, in LexicalScope() function
61 LexicalScope *getParent() const { return Parent; } in getParent()
66 SmallVectorImpl<LexicalScope *> &getChildren() { return Children; } in getChildren()
70 void addChild(LexicalScope *S) { Children.push_back(S); } in addChild()
93 void closeInsnRange(LexicalScope *NewScope = nullptr) {
105 bool dominates(const LexicalScope *S) const { in dominates()
123 LexicalScope *Parent; // Parent to this scope.
128 SmallVector<LexicalScope *, 4> Children; // Scopes defined in scope.
157 LexicalScope *getCurrentFunctionScope() const { in getCurrentFunctionScope()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLexicalScopes.cpp59 DenseMap<const MachineInstr *, LexicalScope *> MI2ScopeMap; in initialize()
71 DenseMap<const MachineInstr *, LexicalScope *> &MI2ScopeMap) { in extractLexicalScopes()
124 LexicalScope *LexicalScopes::findLexicalScope(const DILocation *DL) { in findLexicalScope()
142 LexicalScope *LexicalScopes::getOrCreateLexicalScope(const DILocalScope *Scope, in getOrCreateLexicalScope()
159 LexicalScope *
169 LexicalScope *Parent = nullptr; in getOrCreateRegularScope()
187 LexicalScope *
197 LexicalScope *Parent; in getOrCreateInlinedScope()
211 LexicalScope *
220 LexicalScope *Parent = nullptr; in getOrCreateAbstractScope()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfFile.h32 class LexicalScope; variable
88 DenseMap<LexicalScope *, ScopeVars> ScopeVariables;
92 DenseMap<LexicalScope *, LabelList> ScopeLabels;
157 void addScopeVariable(LexicalScope *LS, DbgVariable *Var);
159 void addScopeLabel(LexicalScope *LS, DbgLabel *Label);
161 DenseMap<LexicalScope *, ScopeVars> &getScopeVariables() { in getScopeVariables()
165 DenseMap<LexicalScope *, LabelList> &getScopeLabels() { in getScopeLabels()
H A DDwarfCompileUnit.h221 void constructScopeDIE(LexicalScope *Scope, DIE &ParentScopeDIE);
234 DIE *constructInlinedScopeDIE(LexicalScope *Scope, DIE &ParentScopeDIE);
238 DIE *constructLexicalScopeDIE(LexicalScope *Scope);
250 DIE *constructVariableDIE(DbgVariable &DV, const LexicalScope &Scope,
254 DIE *constructLabelDIE(DbgLabel &DL, const LexicalScope &Scope);
263 DIE &constructSubprogramScopeDIE(const DISubprogram *Sub, LexicalScope *Scope,
266 DIE *createAndAddScopeChildren(LexicalScope *Scope, DIE &ScopeDIE);
268 void constructAbstractSubprogramScopeDIE(LexicalScope *Scope);
311 void createAbstractEntity(const DINode *Node, LexicalScope *Scope);
H A DDwarfFile.cpp105 void DwarfFile::addScopeVariable(LexicalScope *LS, DbgVariable *Var) { in addScopeVariable()
117 void DwarfFile::addScopeLabel(LexicalScope *LS, DbgLabel *Label) { in addScopeLabel()
H A DCodeViewDebug.h232 DenseMap<const LexicalScope *, SmallVector<LocalVariable, 1>> ScopeVariables;
396 void collectLexicalBlockInfo(SmallVectorImpl<LexicalScope *> &Scopes,
400 void collectLexicalBlockInfo(LexicalScope &Scope,
407 void recordLocalVariable(LocalVariable &&Var, const LexicalScope *LS);
H A DDebugHandlerBase.cpp115 SmallVector<LexicalScope *, 4> WorkList; in identifyScopeMarkers()
118 LexicalScope *S = WorkList.pop_back_val(); in identifyScopeMarkers()
120 const SmallVectorImpl<LexicalScope *> &Children = S->getChildren(); in identifyScopeMarkers()
H A DDwarfDebug.h55 class LexicalScope; variable
546 LexicalScope &Scope,
552 void constructAbstractSubprogramScopeDIE(DwarfCompileUnit &SrcCU, LexicalScope *Scope);
901 bool isLexicalScopeDIENull(LexicalScope *Scope);
H A DDwarfCompileUnit.cpp618 void DwarfCompileUnit::constructScopeDIE(LexicalScope *Scope, in constructScopeDIE()
732 DIE *DwarfCompileUnit::constructInlinedScopeDIE(LexicalScope *Scope, in constructInlinedScopeDIE()
769 DIE *DwarfCompileUnit::constructLexicalScopeDIE(LexicalScope *Scope) { in constructLexicalScopeDIE()
1000 const LexicalScope &Scope, in constructVariableDIE()
1009 const LexicalScope &Scope) { in constructLabelDIE()
1124 LexicalScope *Scope, in constructSubprogramScopeDIE()
1152 DIE *DwarfCompileUnit::createAndAddScopeChildren(LexicalScope *Scope, in createAndAddScopeChildren()
1179 auto skipLexicalScope = [this](LexicalScope *S) -> bool { in createAndAddScopeChildren()
1188 for (LexicalScope *LS : Scope->getChildren()) { in createAndAddScopeChildren()
1201 LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE()
[all …]
H A DDwarfDebug.cpp523 bool DwarfDebug::isLexicalScopeDIENull(LexicalScope *Scope) { in isLexicalScopeDIENull()
552 LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE()
1517 if (LexicalScope *Scope = in ensureAbstractEntityIsCreatedIfScoped()
1550 LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc); in collectVariableInfoFromMFTable()
1862 LexicalScope &Scope, in createConcreteEntity()
1903 LexicalScope *Scope = nullptr; in collectEntityInfo()
1969 LexicalScope *Scope = nullptr; in collectEntityInfo()
1997 LexicalScope *LexS = LScopes.findLexicalScope(LS); in collectEntityInfo()
2712 LexicalScope *FnScope = LScopes.getCurrentFunctionScope(); in endFunctionImpl()
2747 for (LexicalScope *AScope : LScopes.getAbstractScopesList()) { in endFunctionImpl()
H A DCodeViewDebug.cpp492 const LexicalScope *LS) { in recordLocalVariable()
1296 LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc); in collectVariableInfoFromMFTable()
1472 LexicalScope *Scope = nullptr; in collectVariableInfo()
2984 SmallVectorImpl<LexicalScope *> &Scopes, in collectLexicalBlockInfo()
2988 for (LexicalScope *Scope : Scopes) in collectLexicalBlockInfo()
2995 LexicalScope &Scope, in collectLexicalBlockInfo()
3088 if (LexicalScope *CFS = LScopes.getCurrentFunctionScope()) in endFunctionImpl()
H A DDbgEntityHistoryCalculator.cpp152 LexicalScope *Scope = nullptr; in trimLocationRanges()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenStmt.cpp45 LexicalScope lexScope(*this, scopeLoc, builder.getInsertionBlock()); in emitCompoundStmt()
356 LexicalScope lexScope{*this, scopeLoc, builder.getInsertionBlock()}; in emitIfStmt()
633 LexicalScope lexScope{ in emitCXXForRangeStmt()
705 LexicalScope lexScope{ in emitForStmt()
756 LexicalScope lexScope{ in emitDoStmt()
812 LexicalScope lexScope{ in emitWhileStmt()
907 LexicalScope lexScope{ in emitSwitchStmt()
H A DCIRGenFunction.cpp226 void CIRGenFunction::LexicalScope::cleanup() { in cleanup()
228 LexicalScope *localScope = cgf.curLexScope; in cleanup()
280 cir::ReturnOp CIRGenFunction::LexicalScope::emitReturn(mlir::Location loc) { in emitReturn()
307 void CIRGenFunction::LexicalScope::emitImplicitReturn() { in emitImplicitReturn()
309 LexicalScope *localScope = cgf.curLexScope; in emitImplicitReturn()
461 LexicalScope lexScope(*this, fusedLoc, entryBB); in generateCode()
H A DCIRGenStmtOpenACC.cpp42 LexicalScope ls{*this, start, builder.getInsertionBlock()}; in emitOpenACCOpAssociatedStmt()
87 LexicalScope ls{*this, start, builder.getInsertionBlock()}; in emitOpenACCOpCombinedConstruct()
97 LexicalScope ls{*this, start, builder.getInsertionBlock()}; in emitOpenACCOpCombinedConstruct()
H A DCIRGenStmtOpenACCLoop.cpp132 LexicalScope ls{*this, start, builder.getInsertionBlock()}; in emitOpenACCLoopConstruct()
H A DCIRGenFunction.h601 struct LexicalScope { struct
612 LexicalScope *parentScope = nullptr; argument
634 LexicalScope(CIRGenFunction &cgf, mlir::Location loc, mlir::Block *eb) in LexicalScope() argument
655 ~LexicalScope() { in ~LexicalScope() argument
722 LexicalScope *curLexScope = nullptr; argument
H A DCIRGenExprScalar.cpp1006 CIRGenFunction::LexicalScope lexScope{cgf, loc, in VisitBinLAnd()
1013 CIRGenFunction::LexicalScope lexScope{cgf, loc, in VisitBinLAnd()
1038 CIRGenFunction::LexicalScope lexScope{cgf, loc, in VisitBinLOr()
1046 CIRGenFunction::LexicalScope lexScope{cgf, loc, in VisitBinLOr()
2095 CIRGenFunction::LexicalScope lexScope{cgf, loc, b.getInsertionBlock()}; in VisitAbstractConditionalOperator()
H A DCIRGenExpr.cpp1413 LexicalScope lexScope{*this, thenLoc, builder.getInsertionBlock()}; in emitIfOnBoolExpr()
1420 LexicalScope lexScope{*this, *elseLoc, builder.getInsertionBlock()}; in emitIfOnBoolExpr()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.h1146 using ScopeToDILocT = DenseMap<const LexicalScope *, const DILocation *>;
1150 DenseMap<const LexicalScope *, SmallSet<DebugVariableID, 4>>;
1155 using ScopeToAssignBlocksT = DenseMap<const LexicalScope *, SmallPtrSet<MachineBasicBlock *, 4>>;
H A DInstrRefBasedImpl.cpp3517 SmallVector<std::pair<LexicalScope *, ssize_t>, 4> WorkStack; in makeDepthFirstEjectionMap()
3526 LexicalScope *WS = ScopePosition.first; in makeDepthFirstEjectionMap()
3529 const SmallVectorImpl<LexicalScope *> &Children = WS->getChildren(); in makeDepthFirstEjectionMap()
3609 SmallVector<std::pair<LexicalScope *, ssize_t>, 4> WorkStack; in depthFirstVLocAndEmit()
3616 LexicalScope *WS = ScopePosition.first; in depthFirstVLocAndEmit()
3637 const SmallVectorImpl<LexicalScope *> &Children = WS->getChildren(); in depthFirstVLocAndEmit()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmt.cpp572 LexicalScope Scope(*this, S.getSourceRange()); in EmitCompoundStmt()
754 void CodeGenFunction::LexicalScope::rescopeLabels() { in rescopeLabels()
894 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt()
1294 LexicalScope ForScope(*this, S.getSourceRange()); in EmitForStmt()
1317 LexicalScope ConditionScope(*this, S.getSourceRange()); in EmitForStmt()
1449 LexicalScope ForScope(*this, S.getSourceRange()); in EmitCXXForRangeStmt()
1517 LexicalScope BodyScope(*this, S.getSourceRange()); in EmitCXXForRangeStmt()
H A DCGObjCRuntime.cpp226 CodeGenFunction::LexicalScope Cleanups(CGF, Handler.Body->getSourceRange()); in EmitTryCatchStmt()
H A DCGStmtOpenMP.cpp55 class OMPLexicalScope : public CodeGenFunction::LexicalScope {
88 : CodeGenFunction::LexicalScope(CGF, S.getSourceRange()), in OMPLexicalScope()
235 class OMPSimdLexicalScope : public CodeGenFunction::LexicalScope {
247 : CodeGenFunction::LexicalScope(CGF, S.getSourceRange()), in OMPSimdLexicalScope()
1924 CodeGenFunction::LexicalScope Scope(CGF, S->getSourceRange()); in emitBody()
2086 LexicalScope ForScope(*this, S->getSourceRange()); in EmitOMPCanonicalLoop()
4439 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPSectionDirective()
4447 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPSectionDirective()
4524 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPMasterDirective()
4532 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPMasterDirective()
[all …]
H A DCodeGenFunction.h1086 class LexicalScope : public RunCleanupsScope {
1089 LexicalScope *ParentScope;
1091 LexicalScope(const LexicalScope &) = delete;
1092 void operator=(const LexicalScope &) = delete;
1096 explicit LexicalScope(CodeGenFunction &CGF, SourceRange Range);
1105 ~LexicalScope();
2091 LexicalScope *CurLexicalScope = nullptr;

12