/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DIBuilder.h | 80 getImportTrackingVector(const DIScope *S) { in getImportTrackingVector() 86 getSubprogramNodesTrackingVector(const DIScope *S) { in getSubprogramNodesTrackingVector() 308 unsigned LineNo, DIScope *Context, 325 unsigned LineNo, DIScope *Context, 357 DIDerivedType *createMemberType(DIScope *Scope, StringRef Name, 377 DIDerivedType *createVariantMemberType(DIScope *Scope, StringRef Name, 396 DIDerivedType *createBitFieldMemberType(DIScope *Scope, StringRef Name, 415 DIDerivedType *createStaticMemberType(DIScope *Scope, StringRef Name, 470 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNumber, 488 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNumber, [all …]
|
H A D | DebugInfoMetadata.h | 519 class DIScope : public DINode { 521 DIScope(LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag, in DIScope() function 524 ~DIScope() = default; 534 DIScope *getScope() const; 543 return isa<DIFile>(this) ? const_cast<DIScope *>(this) in getRawFile() 573 class DIFile : public DIScope { 685 StringRef DIScope::getFilename() const { in getFilename() 691 StringRef DIScope::getDirectory() const { in getDirectory() 697 std::optional<StringRef> DIScope::getSource() const { in getSource() 710 class DIType : public DIScope { [all …]
|
H A D | DebugInfo.h | 126 void processScope(DIScope *Scope); 130 bool addScope(DIScope *Scope); 141 using scope_iterator = SmallVectorImpl<DIScope *>::const_iterator; 174 SmallVector<DIScope *, 8> Scopes;
|
H A D | Metadata.def | 90 HANDLE_SPECIALIZED_MDNODE_BRANCH(DIScope)
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | DIBuilder.cpp | 129 static DIScope *getNonCompileUnitScope(DIScope *N) { in getNonCompileUnitScope() 132 return cast<DIScope>(N); in getNonCompileUnitScope() 162 createImportedModule(LLVMContext &C, dwarf::Tag Tag, DIScope *Context, in createImportedModule() 178 DIImportedEntity *DIBuilder::createImportedModule(DIScope *Context, in createImportedModule() 187 DIImportedEntity *DIBuilder::createImportedModule(DIScope *Context, in createImportedModule() 196 DIImportedEntity *DIBuilder::createImportedModule(DIScope *Context, DIModule *M, in createImportedModule() 205 DIBuilder::createImportedDeclaration(DIScope *Context, DINode *Decl, in createImportedDeclaration() 350 DIScope *Context, uint32_t AlignInBits, in createTypedef() 361 unsigned LineNo, DIScope *Context, in createTemplateAlias() 391 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNumber, in createMemberType() [all …]
|
H A D | DebugInfo.cpp | 288 void DebugInfoFinder::processScope(DIScope *Scope) { in processScope() 385 bool DebugInfoFinder::addScope(DIScope *Scope) { in addScope() 1104 unwrapDI<DIScope>(ParentScope), StringRef(Name, NameLen), in LLVMDIBuilderCreateModule() 1115 unwrapDI<DIScope>(ParentScope), StringRef(Name, NameLen), ExportSymbols)); in LLVMDIBuilderCreateNameSpace() 1125 unwrapDI<DIScope>(Scope), {Name, NameLen}, {LinkageName, LinkageNameLen}, in LLVMDIBuilderCreateFunction() 1136 return wrap(unwrap(Builder)->createLexicalBlock(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlock() 1146 return wrap(unwrap(Builder)->createLexicalBlockFile(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlockFile() 1157 return wrap(unwrap(Builder)->createImportedModule(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedModuleFromNamespace() 1172 unwrapDI<DIScope>(Scope), unwrapDI<DIImportedEntity>(ImportedEntity), in LLVMDIBuilderCreateImportedModuleFromAlias() 1185 unwrapDI<DIScope>(Scope), unwrapDI<DIModule>(M), unwrapDI<DIFile>(File), in LLVMDIBuilderCreateImportedModuleFromModule() [all …]
|
H A D | DebugInfoMetadata.cpp | 191 auto GetNearestCommonScope = [](DIScope *S1, DIScope *S2) -> DIScope * { in getMergedLocation() 192 SmallPtrSet<DIScope *, 8> Scopes; in getMergedLocation() 344 DIScope *DIScope::getScope() const { in getScope() 368 StringRef DIScope::getName() const { in getName() 885 : DIScope(C, DIFileKind, Storage, dwarf::DW_TAG_file_type, Ops), in DIFile() 933 : DIScope(C, DICompileUnitKind, Storage, dwarf::DW_TAG_compile_unit, Ops), in DICompileUnit() 1062 SmallVector<DIScope *> ScopeChain; in cloneScopeForSubprogram() 1063 DIScope *CachedResult = nullptr; in cloneScopeForSubprogram() 1065 for (DIScope *Scope = &RootScope; !isa<DISubprogram>(Scope); in cloneScopeForSubprogram() 1068 CachedResult = cast<DIScope>(It->second); in cloneScopeForSubprogram() [all …]
|
H A D | DebugLoc.cpp | 91 DIScope *NewScope = DILocalScope::cloneScopeForSubprogram( in replaceInlinedAtSubprogram() 148 auto *Scope = cast<DIScope>(getScope()); in print()
|
H A D | Verifier.cpp | 535 void visitDIScope(const DIScope &N); 1126 static bool isScope(const Metadata *MD) { return !MD || isa<DIScope>(MD); } in isScope() 1142 void Verifier::visitDIScope(const DIScope &N) { in visitDIScope() 1530 CheckDI(isa<DIScope>(S), "invalid scope ref", &N, S); in visitDICommonBlock() 1538 CheckDI(isa<DIScope>(S), "invalid scope ref", &N, S); in visitDINamespace() 1593 CheckDI(isa<DIScope>(S), "invalid scope", &N, S); in visitDIVariable() 1632 CheckDI(isa<DIScope>(S), "invalid scope", &N, S); in visitDILabel() 1670 CheckDI(isa<DIScope>(S), "invalid scope for imported entity", &N, S); in visitDIImportedEntity()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | DwarfUnit.h | 124 std::string getParentContextString(const DIScope *Context) const; 128 const DIScope *Context) = 0; 132 const DIScope *Context) = 0; 134 void addGlobalType(const DIType *Ty, const DIE &Die, const DIScope *Context); 259 DIE *createTypeDIE(const DIScope *Context, DIE &ContextDIE, const DIType *Ty); 265 virtual DIE *getOrCreateContextDIE(const DIScope *Context); 362 void updateAcceleratorTables(const DIScope *Context, const DIType *Ty, 401 const DIScope *Context) override; 403 const DIScope *Context) override;
|
H A D | DwarfCompileUnit.h | 254 DIE *getOrCreateContextDIE(const DIScope *Ty) override; 332 const DIScope *Context) override; 335 void addGlobalNameForTypeUnit(StringRef Name, const DIScope *Context); 339 const DIScope *Context) override; 342 void addGlobalTypeUnitType(const DIType *Ty, const DIScope *Context);
|
H A D | CodeViewDebug.h | 232 DenseMap<const DIScope*, std::unique_ptr<GlobalVariableList> > ScopeGlobals; 430 codeview::TypeIndex getScopeIndex(const DIScope *Scope); 492 collectParentScopeNames(const DIScope *Scope, 494 std::string getFullyQualifiedName(const DIScope *Scope, StringRef Name); 495 std::string getFullyQualifiedName(const DIScope *Scope);
|
H A D | CodeViewDebug.cpp | 260 static StringRef getPrettyScopeName(const DIScope *Scope) { in getPrettyScopeName() 279 const DIScope *Scope, SmallVectorImpl<StringRef> &QualifiedNameComponents) { in collectParentScopeNames() 323 std::string CodeViewDebug::getFullyQualifiedName(const DIScope *Scope, in getFullyQualifiedName() 334 std::string CodeViewDebug::getFullyQualifiedName(const DIScope *Ty) { 335 const DIScope *Scope = Ty->getScope(); in getScopeIndex() 339 TypeIndex CodeViewDebug::getScopeIndex(const DIScope *Scope) { in getScopeIndex() 399 const DIScope *Scope = SP->getScope(); in getFuncIdForSubprogram() 514 const DIScope *Scope = DL->getScope(); in maybeRecordLocation() 1607 if (DIScope *Scope = T->getScope()) { in shouldEmitUdt() 2220 const DIScope *ImmediateScop in getCommonClassOptions() [all...] |
H A D | DwarfUnit.cpp | 546 DIE *DwarfUnit::getOrCreateContextDIE(const DIScope *Context) { in getOrCreateContextDIE() 576 DIE *DwarfUnit::createTypeDIE(const DIScope *Context, DIE &ContextDIE, in createTypeDIE() 639 void DwarfUnit::updateAcceleratorTables(const DIScope *Context, in updateAcceleratorTables() 662 const DIScope *Context) { in addGlobalType() 674 std::string DwarfUnit::getParentContextString(const DIScope *Context) const { in getParentContextString() 683 SmallVector<const DIScope *, 1> Parents; in getParentContextString() 686 if (const DIScope *S = Context->getScope()) in getParentContextString() 696 for (const DIScope *Ctx : llvm::reverse(Parents)) { in getParentContextString() 1858 const DIScope *Context) { in addGlobalName() 1863 const DIScope *Context) { in addGlobalTypeImpl()
|
H A D | DwarfCompileUnit.cpp | 169 DIScope *DeclContext; in getOrCreateGlobalVariableDIE() 1522 const DIScope *Context) { in addGlobalName() 1530 const DIScope *Context) { in addGlobalNameForTypeUnit() 1543 const DIScope *Context) { in addGlobalTypeImpl() 1551 const DIScope *Context) { in addGlobalTypeUnitType() 1733 DIE *DwarfCompileUnit::getOrCreateContextDIE(const DIScope *Context) { in getOrCreateContextDIE()
|
H A D | DwarfDebug.cpp | 1513 const DIScope *S; in getRetainedNodeScope() 2176 if (auto *Scope = cast_or_null<DIScope>(S)) { in recordSourceLine()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGDebugInfo.h | 144 std::vector<llvm::TypedTrackingMDRef<llvm::DIScope>> LexicalBlockStack; 327 llvm::DIFile *tunit, llvm::DIScope *scope, 334 llvm::DIScope *scope, 342 llvm::DIScope *RecordTy, 665 llvm::DIScope *getDeclContextDescriptor(const Decl *D); 667 llvm::DIScope *getContextDescriptor(const Decl *Context, 668 llvm::DIScope *Default); 670 llvm::DIScope *getCurrentContextDescriptor(const Decl *Decl); 674 llvm::DIScope *); 773 llvm::GlobalVariable *Var, llvm::DIScope *DContext); [all …]
|
H A D | CGDebugInfo.cpp | 198 auto *Scope = cast<llvm::DIScope>(LexicalBlockStack.back()); in setLocation() 215 llvm::DIScope *CGDebugInfo::getDeclContextDescriptor(const Decl *D) { in getDeclContextDescriptor() 216 llvm::DIScope *Mod = getParentModuleOrNull(D); in getDeclContextDescriptor() 221 llvm::DIScope *CGDebugInfo::getContextDescriptor(const Decl *Context, in getContextDescriptor() 222 llvm::DIScope *Default) { in getContextDescriptor() 229 return dyn_cast_or_null<llvm::DIScope>(V); in getContextDescriptor() 1163 llvm::DIScope *Ctx) { in getOrCreateRecordFwdDecl() 1606 llvm::DIScope *RecordTy, const RecordDecl *RD) { in createBitFieldType() 1693 llvm::DIScope *RecordTy = BitFieldDI->getScope(); in createBitFieldSeparatorIfNeeded() 1714 llvm::DIScope *scope, const RecordDecl *RD, llvm::DINodeArray Annotations) { in createFieldType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CloneFunction.cpp | 244 for (DIScope *S : DIFinder->scopes()) { in CloneFunctionInto()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LiveDebugVariables.cpp | 682 auto *Scope = cast<DIScope>(DL.getScope()); in printDebugLoc()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LowerMatrixIntrinsics.cpp | 94 static DISubprogram *getSubprogram(DIScope *Scope) { in getSubprogram()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroFrame.cpp | 1022 const DataLayout &Layout, DIScope *Scope, in solveDIType()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/ |
H A D | MIParser.cpp | 2362 if (!isa<DIScope>(Scope)) in parseDILocation()
|