Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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()
65 SmallVectorImpl<LexicalScope *> &getChildren() { return Children; } in getChildren()
69 void addChild(LexicalScope *S) { Children.push_back(S); } in addChild()
92 void closeInsnRange(LexicalScope *NewScope = nullptr) {
104 bool dominates(const LexicalScope *S) const { in dominates()
122 LexicalScope *Parent; // Parent to this scope.
127 SmallVector<LexicalScope *, 4> Children; // Scopes defined in scope.
156 LexicalScope *getCurrentFunctionScope() const { in getCurrentFunctionScope()
[all …]
/openbsd-src/gnu/llvm/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 …]
H A DLiveDebugVariables.cpp1184 LexicalScope *Scope = LS.findLexicalScope(dl); in computeIntervals()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfFile.h31 class LexicalScope; variable
83 DenseMap<LexicalScope *, ScopeVars> ScopeVariables;
87 DenseMap<LexicalScope *, LabelList> ScopeLabels;
153 bool 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.h197 void constructScopeDIE(LexicalScope *Scope, DIE &ParentScopeDIE);
210 DIE *constructInlinedScopeDIE(LexicalScope *Scope, DIE &ParentScopeDIE);
214 DIE *constructLexicalScopeDIE(LexicalScope *Scope);
219 DIE *constructVariableDIE(DbgVariable &DV, const LexicalScope &Scope,
223 DIE *constructLabelDIE(DbgLabel &DL, const LexicalScope &Scope);
229 LexicalScope *Scope);
231 DIE *createAndAddScopeChildren(LexicalScope *Scope, DIE &ScopeDIE);
233 void constructAbstractSubprogramScopeDIE(LexicalScope *Scope);
274 void createAbstractEntity(const DINode *Node, LexicalScope *Scope);
H A DDwarfFile.cpp105 bool DwarfFile::addScopeVariable(LexicalScope *LS, DbgVariable *Var) { in addScopeVariable()
122 void DwarfFile::addScopeLabel(LexicalScope *LS, DbgLabel *Label) { in addScopeLabel()
H A DCodeViewDebug.h208 DenseMap<const LexicalScope *, SmallVector<LocalVariable, 1>> ScopeVariables;
368 void collectLexicalBlockInfo(SmallVectorImpl<LexicalScope *> &Scopes,
372 void collectLexicalBlockInfo(LexicalScope &Scope,
379 void recordLocalVariable(LocalVariable &&Var, const LexicalScope *LS);
H A DDwarfDebug.h55 class LexicalScope; variable
467 LexicalScope &Scope,
473 void constructAbstractSubprogramScopeDIE(DwarfCompileUnit &SrcCU, LexicalScope *Scope);
807 bool isLexicalScopeDIENull(LexicalScope *Scope);
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 DDwarfCompileUnit.cpp541 void DwarfCompileUnit::constructScopeDIE(LexicalScope *Scope, in constructScopeDIE()
655 DIE *DwarfCompileUnit::constructInlinedScopeDIE(LexicalScope *Scope, in constructInlinedScopeDIE()
691 DIE *DwarfCompileUnit::constructLexicalScopeDIE(LexicalScope *Scope) { in constructLexicalScopeDIE()
712 const LexicalScope &Scope) { in constructLabelDIE()
909 const LexicalScope &Scope, in constructVariableDIE()
1021 LexicalScope *Scope) { in constructSubprogramScopeDIE()
1051 DIE *DwarfCompileUnit::createAndAddScopeChildren(LexicalScope *Scope, in createAndAddScopeChildren()
1076 auto needToEmitLexicalScope = [this](LexicalScope *LS) { in createAndAddScopeChildren()
1087 for (LexicalScope *LS : Scope->getChildren()) { in createAndAddScopeChildren()
1100 LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE()
[all …]
H A DDwarfDebug.cpp534 bool DwarfDebug::isLexicalScopeDIENull(LexicalScope *Scope) { in isLexicalScopeDIENull()
563 LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE()
1529 if (LexicalScope *Scope = in ensureAbstractEntityIsCreatedIfScoped()
1547 LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc); in collectVariableInfoFromMFTable()
1834 LexicalScope &Scope, in createConcreteEntity()
1875 LexicalScope *Scope = nullptr; in collectEntityInfo()
1945 LexicalScope *Scope = nullptr; in collectEntityInfo()
1971 LexicalScope *Scope = nullptr; in collectEntityInfo()
2240 LexicalScope *FnScope = LScopes.getCurrentFunctionScope(); in endFunctionImpl()
2273 for (LexicalScope *AScope : LScopes.getAbstractScopesList()) { in endFunctionImpl()
H A DCodeViewDebug.cpp486 const LexicalScope *LS) { in recordLocalVariable()
1272 LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc); in collectVariableInfoFromMFTable()
1434 LexicalScope *Scope = nullptr; in collectVariableInfo()
2937 SmallVectorImpl<LexicalScope *> &Scopes, in collectLexicalBlockInfo()
2941 for (LexicalScope *Scope : Scopes) in collectLexicalBlockInfo()
2948 LexicalScope &Scope, in collectLexicalBlockInfo()
3041 if (LexicalScope *CFS = LScopes.getCurrentFunctionScope()) in endFunctionImpl()
H A DDbgEntityHistoryCalculator.cpp149 LexicalScope *Scope = nullptr; in trimLocationRanges()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.h1067 using ScopeToDILocT = DenseMap<const LexicalScope *, const DILocation *>;
1070 using ScopeToVarsT = DenseMap<const LexicalScope *, SmallSet<DebugVariable, 4>>;
1075 using ScopeToAssignBlocksT = DenseMap<const LexicalScope *, SmallPtrSet<MachineBasicBlock *, 4>>;
H A DInstrRefBasedImpl.cpp3441 SmallVector<std::pair<LexicalScope *, ssize_t>, 4> WorkStack; in makeDepthFirstEjectionMap()
3450 LexicalScope *WS = ScopePosition.first; in makeDepthFirstEjectionMap()
3453 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()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGStmt.cpp484 LexicalScope Scope(*this, S.getSourceRange()); in EmitCompoundStmt()
666 void CodeGenFunction::LexicalScope::rescopeLabels() { in rescopeLabels()
777 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt()
1030 LexicalScope ForScope(*this, S.getSourceRange()); in EmitForStmt()
1054 LexicalScope ConditionScope(*this, S.getSourceRange()); in EmitForStmt()
1147 LexicalScope ForScope(*this, S.getSourceRange()); in EmitCXXForRangeStmt()
1202 LexicalScope BodyScope(*this, S.getSourceRange()); in EmitCXXForRangeStmt()
H A DCodeGenFunction.h932 class LexicalScope : public RunCleanupsScope {
935 LexicalScope *ParentScope;
937 LexicalScope(const LexicalScope &) = delete;
938 void operator=(const LexicalScope &) = delete;
942 explicit LexicalScope(CodeGenFunction &CGF, SourceRange Range)
956 ~LexicalScope() {
1934 LexicalScope *CurLexicalScope = nullptr;
H A DCGObjCRuntime.cpp232 CodeGenFunction::LexicalScope Cleanups(CGF, Handler.Body->getSourceRange()); in EmitTryCatchStmt()
H A DCGStmtOpenMP.cpp47 class OMPLexicalScope : public CodeGenFunction::LexicalScope {
80 : CodeGenFunction::LexicalScope(CGF, S.getSourceRange()), in OMPLexicalScope()
203 class OMPSimdLexicalScope : public CodeGenFunction::LexicalScope {
215 : CodeGenFunction::LexicalScope(CGF, S.getSourceRange()), in OMPSimdLexicalScope()
1852 CodeGenFunction::LexicalScope Scope(CGF, S->getSourceRange()); in emitBody()
2013 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()
[all …]
H A DCGClass.cpp1558 LexicalScope Scope(*this, RootCS->getSourceRange()); in emitImplicitAssignmentOperatorBody()
H A DCGOpenMPRuntime.cpp2000 CodeGenFunction::LexicalScope ConditionScope(CGF, Cond->getSourceRange()); in emitIfClause()
6375 CodeGenFunction::LexicalScope Scope(CGF, Cond->getSourceRange()); in getNumThreads()
6399 CodeGenFunction::LexicalScope Scope( in getNumThreads()
6585 CodeGenFunction::LexicalScope Scope( in emitNumThreadsForTargetDirective()