Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DLexicalScopes.h44 class LexicalScope {
46 LexicalScope(LexicalScope *P, const DILocalScope *D, const DILocation *I, in LexicalScope() function
60 LexicalScope *getParent() const { return Parent; } in getParent()
92 void closeInsnRange(LexicalScope *NewScope = nullptr) {
104 bool dominates(const LexicalScope *S) const { in dominates()
156 LexicalScope *getCurrentFunctionScope() const { in getCurrentFunctionScope()
172 LexicalScope *findLexicalScope(const DILocation *DL);
221 void constructScopeNest(LexicalScope *Scope);
235 LexicalScope,
245 SmallVector<LexicalScope *, 4> AbstractScopesList;
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DLexicalScopes.cpp159 LexicalScope *
169 LexicalScope *Parent = nullptr; in getOrCreateRegularScope()
187 LexicalScope *
197 LexicalScope *Parent; in getOrCreateInlinedScope()
211 LexicalScope *
220 LexicalScope *Parent = nullptr; in getOrCreateAbstractScope()
243 LexicalScope *WS = ScopePosition.first; in constructScopeNest()
262 LexicalScope *PrevLexicalScope = nullptr; in assignInstructionRanges()
264 LexicalScope *S = MI2ScopeMap.lookup(R.first); in assignInstructionRanges()
285 LexicalScope *Scope = getOrCreateLexicalScope(DL); in getMachineBasicBlocks()
[all …]
H A DLiveDebugVariables.cpp1185 LexicalScope *Scope = LS.findLexicalScope(dl); in computeIntervals()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfFile.h32 class LexicalScope; variable
84 DenseMap<LexicalScope *, ScopeVars> ScopeVariables;
88 DenseMap<LexicalScope *, LabelList> ScopeLabels;
153 void addScopeVariable(LexicalScope *LS, DbgVariable *Var);
155 void addScopeLabel(LexicalScope *LS, DbgLabel *Label);
157 DenseMap<LexicalScope *, ScopeVars> &getScopeVariables() { in getScopeVariables()
161 DenseMap<LexicalScope *, LabelList> &getScopeLabels() { in getScopeLabels()
H A DDwarfCompileUnit.h215 void constructScopeDIE(LexicalScope *Scope, DIE &ParentScopeDIE);
228 DIE *constructInlinedScopeDIE(LexicalScope *Scope, DIE &ParentScopeDIE);
232 DIE *constructLexicalScopeDIE(LexicalScope *Scope);
244 DIE *constructVariableDIE(DbgVariable &DV, const LexicalScope &Scope,
248 DIE *constructLabelDIE(DbgLabel &DL, const LexicalScope &Scope);
258 LexicalScope *Scope);
260 DIE *createAndAddScopeChildren(LexicalScope *Scope, DIE &ScopeDIE);
262 void constructAbstractSubprogramScopeDIE(LexicalScope *Scope);
304 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.h227 DenseMap<const LexicalScope *, SmallVector<LocalVariable, 1>> ScopeVariables;
389 void collectLexicalBlockInfo(SmallVectorImpl<LexicalScope *> &Scopes,
393 void collectLexicalBlockInfo(LexicalScope &Scope,
400 void recordLocalVariable(LocalVariable &&Var, const LexicalScope *LS);
H A DDebugHandlerBase.cpp112 SmallVector<LexicalScope *, 4> WorkList; in identifyScopeMarkers()
115 LexicalScope *S = WorkList.pop_back_val(); in identifyScopeMarkers()
117 const SmallVectorImpl<LexicalScope *> &Children = S->getChildren(); in identifyScopeMarkers()
H A DDwarfDebug.h55 class LexicalScope; variable
537 LexicalScope &Scope,
543 void constructAbstractSubprogramScopeDIE(DwarfCompileUnit &SrcCU, LexicalScope *Scope);
883 bool isLexicalScopeDIENull(LexicalScope *Scope);
H A DDwarfCompileUnit.cpp572 void DwarfCompileUnit::constructScopeDIE(LexicalScope *Scope, in constructScopeDIE()
686 DIE *DwarfCompileUnit::constructInlinedScopeDIE(LexicalScope *Scope, in constructInlinedScopeDIE()
723 DIE *DwarfCompileUnit::constructLexicalScopeDIE(LexicalScope *Scope) { in constructLexicalScopeDIE()
953 const LexicalScope &Scope, in constructVariableDIE()
962 const LexicalScope &Scope) { in constructLabelDIE()
1077 LexicalScope *Scope) { in constructSubprogramScopeDIE()
1104 DIE *DwarfCompileUnit::createAndAddScopeChildren(LexicalScope *Scope, in createAndAddScopeChildren()
1131 auto skipLexicalScope = [this](LexicalScope *S) -> bool { in createAndAddScopeChildren()
1140 for (LexicalScope *LS : Scope->getChildren()) { in createAndAddScopeChildren()
1153 LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE()
[all …]
H A DDwarfDebug.cpp513 bool DwarfDebug::isLexicalScopeDIENull(LexicalScope *Scope) { in isLexicalScopeDIENull()
542 LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE()
1507 if (LexicalScope *Scope = in ensureAbstractEntityIsCreatedIfScoped()
1540 LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc); in collectVariableInfoFromMFTable()
1851 LexicalScope &Scope, in createConcreteEntity()
1892 LexicalScope *Scope = nullptr; in collectEntityInfo()
1962 LexicalScope *Scope = nullptr; in collectEntityInfo()
1990 LexicalScope *LexS = LScopes.findLexicalScope(LS); in collectEntityInfo()
2277 LexicalScope *FnScope = LScopes.getCurrentFunctionScope(); in endFunctionImpl()
2312 for (LexicalScope *AScope : LScopes.getAbstractScopesList()) { in endFunctionImpl()
H A DCodeViewDebug.cpp490 const LexicalScope *LS) { in recordLocalVariable()
1289 LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc); in collectVariableInfoFromMFTable()
1458 LexicalScope *Scope = nullptr; in collectVariableInfo()
2970 SmallVectorImpl<LexicalScope *> &Scopes, in collectLexicalBlockInfo()
2974 for (LexicalScope *Scope : Scopes) in collectLexicalBlockInfo()
2981 LexicalScope &Scope, in collectLexicalBlockInfo()
3074 if (LexicalScope *CFS = LScopes.getCurrentFunctionScope()) in endFunctionImpl()
H A DDbgEntityHistoryCalculator.cpp152 LexicalScope *Scope = nullptr; in trimLocationRanges()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.h1106 using ScopeToDILocT = DenseMap<const LexicalScope *, const DILocation *>;
1109 using ScopeToVarsT = DenseMap<const LexicalScope *, SmallSet<DebugVariable, 4>>;
1114 using ScopeToAssignBlocksT = DenseMap<const LexicalScope *, SmallPtrSet<MachineBasicBlock *, 4>>;
H A DInstrRefBasedImpl.cpp3442 SmallVector<std::pair<LexicalScope *, ssize_t>, 4> WorkStack; in makeDepthFirstEjectionMap()
3451 LexicalScope *WS = ScopePosition.first; in makeDepthFirstEjectionMap()
3454 const SmallVectorImpl<LexicalScope *> &Children = WS->getChildren(); in makeDepthFirstEjectionMap()
3534 SmallVector<std::pair<LexicalScope *, ssize_t>, 4> WorkStack; in depthFirstVLocAndEmit()
3541 LexicalScope *WS = ScopePosition.first; in depthFirstVLocAndEmit()
3562 const SmallVectorImpl<LexicalScope *> &Children = WS->getChildren(); in depthFirstVLocAndEmit()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmt.cpp491 LexicalScope Scope(*this, S.getSourceRange()); in EmitCompoundStmt()
673 void CodeGenFunction::LexicalScope::rescopeLabels() { in rescopeLabels()
784 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt()
1049 LexicalScope ForScope(*this, S.getSourceRange()); in EmitForStmt()
1073 LexicalScope ConditionScope(*this, S.getSourceRange()); in EmitForStmt()
1166 LexicalScope ForScope(*this, S.getSourceRange()); in EmitCXXForRangeStmt()
1221 LexicalScope BodyScope(*this, S.getSourceRange()); in EmitCXXForRangeStmt()
H A DCodeGenFunction.h940 class LexicalScope : public RunCleanupsScope {
943 LexicalScope *ParentScope;
945 LexicalScope(const LexicalScope &) = delete;
946 void operator=(const LexicalScope &) = delete;
950 explicit LexicalScope(CodeGenFunction &CGF, SourceRange Range)
964 ~LexicalScope() {
1991 LexicalScope *CurLexicalScope = nullptr;
H A DCGObjCRuntime.cpp230 CodeGenFunction::LexicalScope Cleanups(CGF, Handler.Body->getSourceRange()); in EmitTryCatchStmt()
H A DCGStmtOpenMP.cpp2013 LexicalScope ForScope(*this, S->getSourceRange()); in EmitOMPCanonicalLoop()
4207 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPSectionDirective()
4213 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPSectionDirective()
4288 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPMasterDirective()
4294 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPMasterDirective()
4334 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPMaskedDirective()
4341 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPMaskedDirective()
4374 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPCriticalDirective()
4390 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPCriticalDirective()
5470 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPScanDirective()
[all …]
H A DCGClass.cpp1551 LexicalScope Scope(*this, RootCS->getSourceRange()); in emitImplicitAssignmentOperatorBody()
H A DCGOpenMPRuntime.cpp1829 CodeGenFunction::LexicalScope ConditionScope(CGF, Cond->getSourceRange()); in emitIfClause()
6216 CodeGenFunction::LexicalScope Scope(CGF, CondExpr->getSourceRange()); in getNumThreads()
6254 CodeGenFunction::LexicalScope Scope(CGF, NTExpr->getSourceRange()); in getNumThreads()
6323 CodeGenFunction::LexicalScope Scope( in getNumThreadsExprForTargetDirective()