| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | LexicalScopes.h | 44 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 …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | LexicalScopes.cpp | 159 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 D | LiveDebugVariables.cpp | 1180 LexicalScope *Scope = LS.findLexicalScope(dl); in computeIntervals()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DwarfFile.h | 31 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 D | DwarfCompileUnit.h | 196 void constructScopeDIE(LexicalScope *Scope, DIE &ParentScopeDIE); 209 DIE *constructInlinedScopeDIE(LexicalScope *Scope); 213 DIE *constructLexicalScopeDIE(LexicalScope *Scope); 218 DIE *constructVariableDIE(DbgVariable &DV, const LexicalScope &Scope, 222 DIE *constructLabelDIE(DbgLabel &DL, const LexicalScope &Scope); 228 LexicalScope *Scope); 230 DIE *createAndAddScopeChildren(LexicalScope *Scope, DIE &ScopeDIE); 232 void constructAbstractSubprogramScopeDIE(LexicalScope *Scope); 273 void createAbstractEntity(const DINode *Node, LexicalScope *Scope);
|
| H A D | DwarfFile.cpp | 105 bool DwarfFile::addScopeVariable(LexicalScope *LS, DbgVariable *Var) { in addScopeVariable() 122 void DwarfFile::addScopeLabel(LexicalScope *LS, DbgLabel *Label) { in addScopeLabel()
|
| H A D | CodeViewDebug.h | 207 DenseMap<const LexicalScope *, SmallVector<LocalVariable, 1>> ScopeVariables; 367 void collectLexicalBlockInfo(SmallVectorImpl<LexicalScope *> &Scopes, 371 void collectLexicalBlockInfo(LexicalScope &Scope, 378 void recordLocalVariable(LocalVariable &&Var, const LexicalScope *LS);
|
| H A D | DwarfDebug.h | 55 class LexicalScope; variable 465 LexicalScope &Scope, 471 void constructAbstractSubprogramScopeDIE(DwarfCompileUnit &SrcCU, LexicalScope *Scope); 805 bool isLexicalScopeDIENull(LexicalScope *Scope);
|
| H A D | DebugHandlerBase.cpp | 113 SmallVector<LexicalScope *, 4> WorkList; in identifyScopeMarkers() 116 LexicalScope *S = WorkList.pop_back_val(); in identifyScopeMarkers() 118 const SmallVectorImpl<LexicalScope *> &Children = S->getChildren(); in identifyScopeMarkers()
|
| H A D | DwarfCompileUnit.cpp | 536 void DwarfCompileUnit::constructScopeDIE(LexicalScope *Scope, in constructScopeDIE() 655 DIE *DwarfCompileUnit::constructInlinedScopeDIE(LexicalScope *Scope) { in constructInlinedScopeDIE() 689 DIE *DwarfCompileUnit::constructLexicalScopeDIE(LexicalScope *Scope) { in constructLexicalScopeDIE() 710 const LexicalScope &Scope) { in constructLabelDIE() 907 const LexicalScope &Scope, in constructVariableDIE() 1019 LexicalScope *Scope) { in constructSubprogramScopeDIE() 1046 DIE *DwarfCompileUnit::createAndAddScopeChildren(LexicalScope *Scope, in createAndAddScopeChildren() 1071 auto needToEmitLexicalScope = [this](LexicalScope *LS) { in createAndAddScopeChildren() 1082 for (LexicalScope *LS : Scope->getChildren()) { in createAndAddScopeChildren() 1095 LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE() [all …]
|
| H A D | DwarfDebug.cpp | 534 bool DwarfDebug::isLexicalScopeDIENull(LexicalScope *Scope) { in isLexicalScopeDIENull() 563 LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE() 1503 if (LexicalScope *Scope = in ensureAbstractEntityIsCreatedIfScoped() 1521 LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc); in collectVariableInfoFromMFTable() 1808 LexicalScope &Scope, in createConcreteEntity() 1849 LexicalScope *Scope = nullptr; in collectEntityInfo() 1919 LexicalScope *Scope = nullptr; in collectEntityInfo() 1945 LexicalScope *Scope = nullptr; in collectEntityInfo() 2204 LexicalScope *FnScope = LScopes.getCurrentFunctionScope(); in endFunctionImpl() 2237 for (LexicalScope *AScope : LScopes.getAbstractScopesList()) { in endFunctionImpl()
|
| H A D | CodeViewDebug.cpp | 488 const LexicalScope *LS) { in recordLocalVariable() 1271 LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc); in collectVariableInfoFromMFTable() 1423 LexicalScope *Scope = nullptr; in collectVariableInfo() 2908 SmallVectorImpl<LexicalScope *> &Scopes, in collectLexicalBlockInfo() 2912 for (LexicalScope *Scope : Scopes) in collectLexicalBlockInfo() 2919 LexicalScope &Scope, in collectLexicalBlockInfo() 3012 if (LexicalScope *CFS = LScopes.getCurrentFunctionScope()) in endFunctionImpl()
|
| H A D | DbgEntityHistoryCalculator.cpp | 149 LexicalScope *Scope = nullptr; in trimLocationRanges()
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | LexicalScopesTest.cpp | 143 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F() 185 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F() 220 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F() 255 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F() 276 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); in TEST_F() 290 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F() 309 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F() 310 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); in TEST_F() 347 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F() 389 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | debug-nodebug-crash.ll | 3 ; LexicalScope objects were not cleared when a nodebug function is handled in 4 ; LiveDebugValues. This may lead to an assertion in the constructor for LexicalScope,
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/LiveDebugValues/ |
| H A D | InstrRefBasedImpl.h | 807 using ScopeToDILocT = DenseMap<const LexicalScope *, const DILocation *>; 810 using ScopeToVarsT = DenseMap<const LexicalScope *, SmallSet<DebugVariable, 4>>; 815 using ScopeToAssignBlocksT = DenseMap<const LexicalScope *, SmallPtrSet<MachineBasicBlock *, 4>>;
|
| H A D | InstrRefBasedImpl.cpp | 2967 SmallVector<std::pair<LexicalScope *, ssize_t>, 4> WorkStack; in makeDepthFirstEjectionMap() 2976 LexicalScope *WS = ScopePosition.first; in makeDepthFirstEjectionMap() 2979 const SmallVectorImpl<LexicalScope *> &Children = WS->getChildren(); in makeDepthFirstEjectionMap() 3059 SmallVector<std::pair<LexicalScope *, ssize_t>, 4> WorkStack; in depthFirstVLocAndEmit() 3066 LexicalScope *WS = ScopePosition.first; in depthFirstVLocAndEmit() 3087 const SmallVectorImpl<LexicalScope *> &Children = WS->getChildren(); in depthFirstVLocAndEmit()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGStmt.cpp | 480 LexicalScope Scope(*this, S.getSourceRange()); in EmitCompoundStmt() 663 void CodeGenFunction::LexicalScope::rescopeLabels() { in rescopeLabels() 775 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt() 1019 LexicalScope ForScope(*this, S.getSourceRange()); in EmitForStmt() 1043 LexicalScope ConditionScope(*this, S.getSourceRange()); in EmitForStmt() 1136 LexicalScope ForScope(*this, S.getSourceRange()); in EmitCXXForRangeStmt() 1191 LexicalScope BodyScope(*this, S.getSourceRange()); in EmitCXXForRangeStmt()
|
| H A D | CodeGenFunction.h | 931 class LexicalScope : public RunCleanupsScope { 934 LexicalScope *ParentScope; 936 LexicalScope(const LexicalScope &) = delete; 937 void operator=(const LexicalScope &) = delete; 941 explicit LexicalScope(CodeGenFunction &CGF, SourceRange Range) 955 ~LexicalScope() { 1932 LexicalScope *CurLexicalScope = nullptr;
|
| H A D | CGObjCRuntime.cpp | 244 CodeGenFunction::LexicalScope cleanups(CGF, Handler.Body->getSourceRange()); in EmitTryCatchStmt()
|
| H A D | CGStmtOpenMP.cpp | 2005 LexicalScope ForScope(*this, S->getSourceRange()); in EmitOMPCanonicalLoop() 4149 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPSectionDirective() 4155 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPSectionDirective() 4230 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPMasterDirective() 4236 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPMasterDirective() 4276 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPMaskedDirective() 4283 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPMaskedDirective() 4316 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPCriticalDirective() 4332 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPCriticalDirective() 5372 LexicalScope Scope(*this, S.getSourceRange()); in EmitOMPScanDirective() [all …]
|
| H A D | CGClass.cpp | 1557 LexicalScope Scope(*this, RootCS->getSourceRange()); in emitImplicitAssignmentOperatorBody()
|
| H A D | CGOpenMPRuntime.cpp | 2003 CodeGenFunction::LexicalScope ConditionScope(CGF, Cond->getSourceRange()); in emitIfClause() 6753 CodeGenFunction::LexicalScope Scope(CGF, Cond->getSourceRange()); in getNumThreads() 6777 CodeGenFunction::LexicalScope Scope( in getNumThreads() 6963 CodeGenFunction::LexicalScope Scope( in emitNumThreadsForTargetDirective()
|