Home
last modified time | relevance | path

Searched refs:DISubprogram (Results 1 – 25 of 65) sorted by relevance

123

/freebsd-src/contrib/llvm-project/llvm/include/llvm/IR/
H A DDIBuilder.h58 SmallVector<DISubprogram *, 4> AllSubprograms;
76 DenseMap<DISubprogram *, SmallVector<TrackingMDNodeRef, 4>>
140 void finalizeSubprogram(DISubprogram *SP);
650 static DISubprogram *createArtificialSubprogram(DISubprogram *SP);
736 /// leads to a \a DISubprogram.
749 /// leads to a \a DISubprogram.
757 /// leads to a \a DISubprogram.
785 /// See comments in DISubprogram* for descriptions of these fields.
801 DISubprogram *
[all...]
H A DDebugInfo.h58 DISubprogram *getDISubprogram(const MDNode *Scope);
119 void processSubprogram(DISubprogram *SP);
131 bool addSubprogram(DISubprogram *SP);
137 using subprogram_iterator = SmallVectorImpl<DISubprogram *>::const_iterator;
171 SmallVector<DISubprogram *, 8> SPs;
H A DDebugLoc.h92 replaceInlinedAtSubprogram(const DebugLoc &DL, DISubprogram &NewSP,
H A DFunction.h52 class DISubprogram;
970 void setSubprogram(DISubprogram *SP);
975 /// to \a DISubprogram.
976 DISubprogram *getSubprogram() const;
50 class DISubprogram; global() variable
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.h121 const DISubprogram *Inlinee = nullptr;
260 const DISubprogram *Inlinee);
262 codeview::TypeIndex getFuncIdForSubprogram(const DISubprogram *SP);
276 SmallSetVector<const DISubprogram *, 4> InlinedSubprograms;
280 /// {DIType*, DIType*} and {DISubprogram*, DIType*}.
300 const DISubprogram *CurrentSubprogram = nullptr;
318 void setCurrentSubprogram(const DISubprogram *SP) { in setCurrentSubprogram()
383 void collectVariableInfo(const DISubprogram *SP);
427 codeview::TypeIndex getMemberFunctionType(const DISubprogram *SP,
491 const DISubprogram *
[all...]
H A DDwarfCompileUnit.h82 // List of abstract local scopes (either DISubprogram or DILexicalBlock).
213 DIE &updateSubprogramScopeDIE(const DISubprogram *SP);
257 DIE &constructSubprogramScopeDIE(const DISubprogram *Sub,
284 DIE &constructCallSiteEntryDIE(DIE &ScopeDIE, const DISubprogram *CalleeSP,
298 void finishSubprogramDefinition(const DISubprogram *SP);
374 void applySubprogramAttributesToDefinition(const DISubprogram *SP,
H A DDwarfUnit.h79 bool applySubprogramDefinitionAttributes(const DISubprogram *SP, DIE &SPDie, bool Minimal);
217 void addSourceLine(DIE &Die, const DISubprogram *SP);
253 DIE *getOrCreateSubprogramDIE(const DISubprogram *SP, bool Minimal = false);
255 void applySubprogramAttributes(const DISubprogram *SP, DIE &SPDie,
H A DDwarfDebug.h376 SmallSetVector<const DISubprogram *, 16> ProcessedSPNodes;
546 void constructCallSiteEntryDIEs(const DISubprogram &SP, DwarfCompileUnit &CU,
680 void collectEntityInfo(DwarfCompileUnit &TheCU, const DISubprogram *SP,
859 const DISubprogram *SP, DIE &Die);
H A DDwarfCompileUnit.cpp514 DIE &DwarfCompileUnit::updateSubprogramScopeDIE(const DISubprogram *SP) { in updateSubprogramScopeDIE()
594 assert((Scope->getInlinedAt() || !isa<DISubprogram>(DS)) && in constructScopeDIE()
600 if (Scope->getParent() && isa<DISubprogram>(DS)) { in constructScopeDIE()
1091 DIE &DwarfCompileUnit::constructSubprogramScopeDIE(const DISubprogram *Sub, in constructSubprogramScopeDIE()
1147 if (isa<DISubprogram>(S->getScopeNode())) in createAndAddScopeChildren()
1169 auto *SP = cast<DISubprogram>(Scope->getScopeNode()); in constructAbstractSubprogramScopeDIE()
1262 const DISubprogram *CalleeSP, in constructCallSiteEntryDIE()
1357 else if (auto *SP = dyn_cast<DISubprogram>(Entity)) { in constructImportedEntityDIE()
1416 void DwarfCompileUnit::finishSubprogramDefinition(const DISubprogram *SP) { in finishEntityDefinition()
1667 const DISubprogram *S in addAddrTableBase()
[all...]
H A DCodeViewDebug.cpp236 const DISubprogram *Inlinee) { in getInlineSite()
278 const DISubprogram *CodeViewDebug::collectParentScopeNames( in collectParentScopeNames()
280 const DISubprogram *ClosestSubprogram = nullptr; in collectParentScopeNames()
283 ClosestSubprogram = dyn_cast<DISubprogram>(Scope); in collectParentScopeNames()
350 if (!Scope || isa<DIFile>(Scope) || isa<DISubprogram>(Scope)) in getScopeIndex()
386 TypeIndex CodeViewDebug::getFuncIdForSubprogram(const DISubprogram *SP) { in getFuncIdForSubprogram()
450 TypeIndex CodeViewDebug::getMemberFunctionType(const DISubprogram *SP, in getMemberFunctionType()
493 const DISubprogram *Inlinee = Var.DIVar->getScope()->getSubprogram(); in recordLocalVariable()
984 for (const DISubprogram *SP : InlinedSubprograms) { in emitInlineeLinesSubsection()
1443 void CodeViewDebug::collectVariableInfo(const DISubprogram *SP) { in collectVariableInfo()
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/IR/
H A DDIBuilder.cpp56 void DIBuilder::finalizeSubprogram(DISubprogram *SP) { in finalizeSubprogram()
92 if (auto *SP = dyn_cast<DISubprogram>(N)) in finalize()
626 DISubprogram *DIBuilder::createArtificialSubprogram(DISubprogram *SP) { in retainType()
654 assert((isa<DIType>(T) || (isa<DISubprogram>(T) && in createReplaceableCompositeType()
655 cast<DISubprogram>(T)->isDefinition() == false)) && in createReplaceableCompositeType()
838 /// the list of retained nodes of the DISubprogram. in createFunction()
849 static DISubprogram *getSubprogram(bool IsDistinct, Ts &&...Args) { in createTempFunctionFwdDecl()
851 return DISubprogram::getDistinct(std::forward<Ts>(Args)...); in createTempFunctionFwdDecl()
852 return DISubprogram in createTempFunctionFwdDecl()
[all...]
H A DDebugInfoMetadata.cpp133 SmallDenseMap<std::pair<const DISubprogram *, const DILocation *>, unsigned, in getMergedLocation()
195 if (isa<DISubprogram>(S1)) in getMergedLocation()
202 if (isa<DISubprogram>(S2)) in getMergedLocation()
348 if (auto *SP = dyn_cast<DISubprogram>(this)) in getScope()
371 if (auto *SP = dyn_cast<DISubprogram>(this)) in getName()
1022 DISubprogram::DISubprogram(LLVMContext &C, StorageType Storage, unsigned Line, in toSPFlags()
1031 DISubprogram::DISPFlags in toSPFlags()
1032 DISubprogram::toSPFlags(bool IsLocalToUnit, bool IsDefinition, bool IsOptimized, in toSPFlags()
1047 DISubprogram *DILocalScop in getNonLexicalBlockFileScope()
1012 DISubprogram::DISubprogram(LLVMContext &C, StorageType Storage, unsigned Line, DISubprogram() function in DISubprogram
[all...]
H A DDebugInfo.cpp152 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) { in getDISubprogram()
199 if (auto *SP = cast_or_null<DISubprogram>(F.getSubprogram())) in processModule()
225 processSubprogram(cast<DISubprogram>(RT)); in processCompileUnit()
230 else if (auto *SP = dyn_cast<DISubprogram>(Entity)) in processCompileUnit()
278 else if (auto *SP = dyn_cast<DISubprogram>(D)) in processType()
299 if (auto *SP = dyn_cast<DISubprogram>(Scope)) { in processScope()
314 void DebugInfoFinder::processSubprogram(DISubprogram *SP) { in processSubprogram()
320 // just DISubprogram's, referenced from anywhere within the Function being in processSubprogram()
324 // Also, DICompileUnit's may reference DISubprogram's too and therefore need in processSubprogram()
374 bool DebugInfoFinder::addSubprogram(DISubprogram *S in addSubprogram()
[all...]
H A DLLVMContextImpl.h757 template <> struct MDNodeKeyImpl<DISubprogram> {
793 MDNodeKeyImpl(const DISubprogram *N)
808 bool isKeyOf(const DISubprogram *RHS) const {
826 bool isDefinition() const { return SPFlags & DISubprogram::SPFlagDefinition; }
831 // different hash for the same DISubprogram.
852 template <> struct MDNodeSubsetEqualImpl<DISubprogram> {
853 using KeyTy = MDNodeKeyImpl<DISubprogram>;
855 static bool isSubsetEqual(const KeyTy &LHS, const DISubprogram *RHS) {
860 static bool isSubsetEqual(const DISubprogram *LHS, const DISubprogram *RH
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.h25 class DISubprogram; variable
81 DISubprogram *lookupSubprogramForFunction(Function *F);
H A DMetadataLoader.cpp457 SmallDenseMap<Function *, DISubprogram *, 16> FunctionsWithSPs;
467 /// Map DILocalScope to the enclosing DISubprogram, if any.
468 DenseMap<DILocalScope *, DISubprogram *> ParentSubprogram;
489 if (auto *SP = dyn_cast_or_null<DISubprogram>(Op)) in upgradeCUSubprograms()
528 DISubprogram *findEnclosingSubprogram(DILocalScope *S) { in findEnclosingSubprogram()
537 while (S && !isa<DISubprogram>(S)) { in findEnclosingSubprogram()
543 ParentSubprogram[InitialScope] = llvm::dyn_cast_or_null<DISubprogram>(S); in findEnclosingSubprogram()
549 /// DISubprogram's retainedNodes.
576 // Find DISubprogram corresponding to each entity. in upgradeCULocals()
577 std::map<DISubprogram *, SmallVecto in upgradeCULocals()
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/
H A DJMCInstrumenter.cpp72 std::string getFlagName(DISubprogram &SP, bool UseX86FastCall) { in getFlagName()
111 void attachDebugInfo(GlobalVariable &GV, DISubprogram &SP) { in attachDebugInfo()
164 DenseMap<DISubprogram *, Constant *> SavedFlags(8); in runImpl()
H A DMachineOutliner.cpp480 /// Return a DISubprogram for OF if one exists, and null otherwise. Helper in getSubprogramOrNull()
482 DISubprogram *getSubprogramOrNull(const OutlinedFunction &OF) {
485 if (DISubprogram *SP = MF->getFunction().getSubprogram())
793 // If there's a DISubprogram associated with this outlined function, then in createOutlinedFunction()
795 if (DISubprogram *SP = getSubprogramOrNull(OF)) { in createOutlinedFunction()
796 // We have a DISubprogram. Get its DICompileUnit. in createOutlinedFunction()
806 DISubprogram *OutlinedSP = DB.createFunction( in createOutlinedFunction()
814 DISubprogram::SPFlagDefinition | DISubprogram::SPFlagOptimized); in createOutlinedFunction()
H A DLexicalScopes.cpp178 assert(cast<DISubprogram>(Scope)->describes(&MF->getFunction())); in getOrCreateRegularScope()
228 if (isa<DISubprogram>(Scope)) in getOrCreateAbstractScope()
/freebsd-src/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.h123 /// The extra bit on the DISubprogram specifies whether a method is
126 std::vector<llvm::PointerIntPair<llvm::DISubprogram *, 1>>>
262 llvm::DISubprogram *CreateCXXMemberFunction(const CXXMethodDecl *Method,
352 llvm::StringMap<llvm::DISubprogram *> InlinedTrapFuncMap;
356 llvm::DISubprogram *createInlinedTrapSubprogram(StringRef FuncName,
727 llvm::DISubprogram *getFunctionDeclaration(const Decl *D);
735 llvm::DISubprogram *
738 llvm::DISubprogram::DISPFlags SPFlags);
748 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
752 llvm::DISubprogram *getFunctionForwardDeclaratio
[all...]
H A DCGDebugInfo.cpp208 isa<llvm::DISubprogram>(Scope)) { in getDeclContextDescriptor()
1735 llvm::DISubprogram * in CollectRecordNormalField()
1741 llvm::DISubprogram *&SP = InlinedTrapFuncMap[FuncName]; in CollectRecordNestedType()
1750 /*SPFlags=*/llvm::DISubprogram::SPFlagDefinition, in CollectRecordFields()
2020 llvm::DISubprogram *CGDebugInfo::CreateCXXMemberFunction( in CollectCXXMemberFunctions()
2051 llvm::DISubprogram::DISPFlags SPFlags = llvm::DISubprogram::SPFlagZero; in CollectCXXBases()
2056 SPFlags |= llvm::DISubprogram::SPFlagPureVirtual; in CollectCXXBases()
2058 SPFlags |= llvm::DISubprogram::SPFlagVirtual; in CollectCXXBases()
2093 SPFlags |= llvm::DISubprogram in CollectCXXBasesAux()
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.h366 /// Generate types for DISubprogram and it's arguments.
367 uint32_t processDISubprogram(const DISubprogram *SP, uint32_t ProtoTypeId,
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Transforms/
H A DInstrumentation.h195 if (DISubprogram *SP = F.getSubprogram()) in InstrumentationIRBuilder()
/freebsd-src/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleDebugInfoPrinter.cpp57 for (DISubprogram *S : Finder.subprograms()) { in printModuleDebugInfo()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86DiscriminateMemOps.cpp95 DISubprogram *FDI = MF.getFunction().getSubprogram(); in runOnMachineFunction()

123