Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDIBuilder.h55 SmallVector<DISubprogram *, 4> AllSubprograms;
73 DenseMap<DISubprogram *, SmallVector<TrackingMDNodeRef, 4>>
119 LLVM_ABI void finalizeSubprogram(DISubprogram *SP);
779 LLVM_ABI static DISubprogram *createArtificialSubprogram(DISubprogram *SP);
958 LLVM_ABI DISubprogram *createFunction(
962 DISubprogram::DISPFlags SPFlags = DISubprogram::SPFlagZero,
964 DISubprogram *Decl = nullptr, DITypeArray ThrownTypes = nullptr,
970 LLVM_ABI DISubprogram *createTempFunctionFwdDecl(
974 DISubprogram::DISPFlags SPFlags = DISubprogram::SPFlagZero,
976 DISubprogram *Decl = nullptr, DITypeArray ThrownTypes = nullptr);
[all …]
H A DDebugInfo.h61 LLVM_ABI DISubprogram *getDISubprogram(const MDNode *Scope);
123 LLVM_ABI void processSubprogram(DISubprogram *SP);
136 bool addSubprogram(DISubprogram *SP);
142 using subprogram_iterator = SmallVectorImpl<DISubprogram *>::const_iterator;
176 SmallVector<DISubprogram *, 8> SPs;
H A DFunction.h53 class DISubprogram; variable
1014 void setSubprogram(DISubprogram *SP);
1020 DISubprogram *getSubprogram() const;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.h125 const DISubprogram *Inlinee = nullptr;
265 const DISubprogram *Inlinee);
267 codeview::TypeIndex getFuncIdForSubprogram(const DISubprogram *SP);
281 SmallSetVector<const DISubprogram *, 4> InlinedSubprograms;
305 const DISubprogram *CurrentSubprogram = nullptr;
323 void setCurrentSubprogram(const DISubprogram *SP) { in setCurrentSubprogram()
390 void collectVariableInfo(const DISubprogram *SP);
434 codeview::TypeIndex getMemberFunctionType(const DISubprogram *SP,
498 const DISubprogram *
H A DDwarfCompileUnit.h219 DIE &updateSubprogramScopeDIE(const DISubprogram *SP, MCSymbol *LineTableSym);
263 DIE &constructSubprogramScopeDIE(const DISubprogram *Sub, LexicalScope *Scope,
290 DIE &constructCallSiteEntryDIE(DIE &ScopeDIE, const DISubprogram *CalleeSP,
304 void finishSubprogramDefinition(const DISubprogram *SP);
381 void applySubprogramAttributesToDefinition(const DISubprogram *SP,
H A DDwarfUnit.h79 bool applySubprogramDefinitionAttributes(const DISubprogram *SP, DIE &SPDie, bool Minimal);
223 void addSourceLine(DIE &Die, const DISubprogram *SP);
259 DIE *getOrCreateSubprogramDIE(const DISubprogram *SP, bool Minimal = false);
261 void applySubprogramAttributes(const DISubprogram *SP, DIE &SPDie,
H A DDwarfDebug.h376 SmallSetVector<const DISubprogram *, 16> ProcessedSPNodes;
555 void constructCallSiteEntryDIEs(const DISubprogram &SP, DwarfCompileUnit &CU,
689 void collectEntityInfo(DwarfCompileUnit &TheCU, const DISubprogram *SP,
877 const DISubprogram *SP, DIE &Die);
H A DDwarfCompileUnit.cpp538 DIE &DwarfCompileUnit::updateSubprogramScopeDIE(const DISubprogram *SP, in updateSubprogramScopeDIE()
625 assert((Scope->getInlinedAt() || !isa<DISubprogram>(DS)) && in constructScopeDIE()
631 if (Scope->getParent() && isa<DISubprogram>(DS)) { in constructScopeDIE()
1123 DIE &DwarfCompileUnit::constructSubprogramScopeDIE(const DISubprogram *Sub, in constructSubprogramScopeDIE()
1180 if (isa<DISubprogram>(S->getScopeNode())) in createAndAddScopeChildren()
1202 auto *SP = cast<DISubprogram>(Scope->getScopeNode()); in constructAbstractSubprogramScopeDIE()
1295 const DISubprogram *CalleeSP, in constructCallSiteEntryDIE()
1390 else if (auto *SP = dyn_cast<DISubprogram>(Entity)) { in constructImportedEntityDIE()
1449 void DwarfCompileUnit::finishSubprogramDefinition(const DISubprogram *SP) { in finishSubprogramDefinition()
1718 const DISubprogram *SP, DIE &SPDie) { in applySubprogramAttributesToDefinition()
[all …]
H A DCodeViewDebug.cpp238 const DISubprogram *Inlinee) { in getInlineSite()
280 const DISubprogram *CodeViewDebug::collectParentScopeNames( in collectParentScopeNames()
282 const DISubprogram *ClosestSubprogram = nullptr; in collectParentScopeNames()
285 ClosestSubprogram = dyn_cast<DISubprogram>(Scope); in collectParentScopeNames()
352 if (!Scope || isa<DIFile>(Scope) || isa<DISubprogram>(Scope)) in getScopeIndex()
388 TypeIndex CodeViewDebug::getFuncIdForSubprogram(const DISubprogram *SP) { in getFuncIdForSubprogram()
452 TypeIndex CodeViewDebug::getMemberFunctionType(const DISubprogram *SP, in getMemberFunctionType()
495 const DISubprogram *Inlinee = Var.DIVar->getScope()->getSubprogram(); in recordLocalVariable()
991 for (const DISubprogram *SP : InlinedSubprograms) { in emitInlineeLinesSubsection()
1457 void CodeViewDebug::collectVariableInfo(const DISubprogram *SP) { in collectVariableInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDIBuilder.cpp54 void DIBuilder::finalizeSubprogram(DISubprogram *SP) { in finalizeSubprogram()
90 if (auto *SP = dyn_cast<DISubprogram>(N)) in finalize()
731 DISubprogram *DIBuilder::createArtificialSubprogram(DISubprogram *SP) { in createArtificialSubprogram()
763 assert((isa<DIType>(T) || (isa<DISubprogram>(T) && in retainType()
764 cast<DISubprogram>(T)->isDefinition() == false)) && in retainType()
971 static DISubprogram *getSubprogram(bool IsDistinct, Ts &&...Args) { in getSubprogram()
973 return DISubprogram::getDistinct(std::forward<Ts>(Args)...); in getSubprogram()
974 return DISubprogram::get(std::forward<Ts>(Args)...); in getSubprogram()
977 DISubprogram *DIBuilder::createFunction( in createFunction()
980 DINode::DIFlags Flags, DISubprogram::DISPFlags SPFlags, in createFunction()
[all …]
H A DDebugInfo.cpp170 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) { in getDISubprogram()
217 if (auto *SP = cast_or_null<DISubprogram>(F.getSubprogram())) in processModule()
243 processSubprogram(cast<DISubprogram>(RT)); in processCompileUnit()
287 else if (auto *SP = dyn_cast<DISubprogram>(D)) in processType()
301 else if (auto *SP = dyn_cast<DISubprogram>(Entity)) in processImportedEntity()
320 if (auto *SP = dyn_cast<DISubprogram>(Scope)) { in processScope()
335 void DebugInfoFinder::processSubprogram(DISubprogram *SP) { in processSubprogram()
401 bool DebugInfoFinder::addSubprogram(DISubprogram *SP) { in addSubprogram()
654 DenseMap<DISubprogram *, StringRef> NewToLinkageName;
685 DISubprogram *getReplacementSubprogram(DISubprogram *MDS) { in getReplacementSubprogram()
[all …]
H A DDebugInfoMetadata.cpp160 if (auto *SP = dyn_cast<DISubprogram>(S)) in getLocalScopeLocationOr()
179 if (isa<DISubprogram>(S1)) in getNearestMatchingScope()
190 if (isa<DISubprogram>(S2)) in getNearestMatchingScope()
264 SmallDenseMap<std::pair<const DISubprogram *, const DILocation *>, unsigned, in getMergedLocation()
528 if (auto *SP = dyn_cast<DISubprogram>(this)) in getScope()
551 if (auto *SP = dyn_cast<DISubprogram>(this)) in getName()
1292 DISubprogram::DISubprogram(LLVMContext &C, StorageType Storage, unsigned Line, in DISubprogram() function in DISubprogram
1302 DISubprogram::DISPFlags
1303 DISubprogram::toSPFlags(bool IsLocalToUnit, bool IsDefinition, bool IsOptimized, in toSPFlags()
1318 DISubprogram *DILocalScope::getSubprogram() const { in getSubprogram()
[all …]
H A DLLVMContextImpl.h921 template <> struct MDNodeKeyImpl<DISubprogram> {
959 MDNodeKeyImpl(const DISubprogram *N)
975 bool isKeyOf(const DISubprogram *RHS) const {
994 bool isDefinition() const { return SPFlags & DISubprogram::SPFlagDefinition; }
1020 template <> struct MDNodeSubsetEqualImpl<DISubprogram> {
1021 using KeyTy = MDNodeKeyImpl<DISubprogram>;
1023 static bool isSubsetEqual(const KeyTy &LHS, const DISubprogram *RHS) {
1028 static bool isSubsetEqual(const DISubprogram *LHS, const DISubprogram *RHS) {
1039 const DISubprogram *RHS) {
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.h25 class DISubprogram;
80 /// Return the DISubprogram metadata for a Function if any, null otherwise.
81 DISubprogram *lookupSubprogramForFunction(Function *F);
24 class DISubprogram; global() variable
H A DMetadataLoader.cpp454 SmallDenseMap<Function *, DISubprogram *, 16> FunctionsWithSPs;
465 DenseMap<DILocalScope *, DISubprogram *> ParentSubprogram;
486 if (auto *SP = dyn_cast_or_null<DISubprogram>(Op)) in upgradeCUSubprograms()
525 DISubprogram *findEnclosingSubprogram(DILocalScope *S) { in findEnclosingSubprogram()
534 while (S && !isa<DISubprogram>(S)) { in findEnclosingSubprogram()
541 llvm::dyn_cast_or_null<DISubprogram>(S); in findEnclosingSubprogram()
573 std::map<DISubprogram *, SmallVector<Metadata *>> SPToEntities; in upgradeCULocals()
749 DISubprogram *lookupSubprogramForFunction(Function *F) { in lookupSubprogramForFunction()
1902 DISubprogram::DISPFlags SPFlags; in parseOneMetadata()
1907 SPFlags = static_cast<DISubprogram::DISPFlags>(Record[9]); in parseOneMetadata()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.h133 std::vector<llvm::PointerIntPair<llvm::DISubprogram *, 1>>>
287 llvm::DISubprogram *CreateCXXMemberFunction(const CXXMethodDecl *Method,
377 llvm::StringMap<llvm::DISubprogram *> InlinedSubprogramMap;
381 llvm::DISubprogram *createInlinedSubprogram(StringRef FuncName,
782 llvm::DISubprogram *getFunctionDeclaration(const Decl *D);
790 llvm::DISubprogram *
793 llvm::DISubprogram::DISPFlags SPFlags);
803 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
807 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD);
811 llvm::DISubprogram *getFunctionStub(GlobalDecl GD);
H A DCGDebugInfo.cpp173 llvm::DISubprogram *SP = KeyInstruction->getFunction()->getSubprogram(); in addInstToSpecificSourceAtom()
346 isa<llvm::DISubprogram>(Scope)) { in setLocation()
1897 llvm::DISubprogram *
1903 llvm::DISubprogram *&SP = InlinedSubprogramMap[FuncName]; in createInlinedSubprogram()
1912 /*SPFlags=*/llvm::DISubprogram::SPFlagDefinition, in createInlinedSubprogram()
2193 llvm::DISubprogram *CGDebugInfo::CreateCXXMemberFunction( in CreateCXXMemberFunction()
2224 llvm::DISubprogram::DISPFlags SPFlags = llvm::DISubprogram::SPFlagZero; in CreateCXXMemberFunction()
2229 SPFlags |= llvm::DISubprogram::SPFlagPureVirtual; in CreateCXXMemberFunction()
2231 SPFlags |= llvm::DISubprogram::SPFlagVirtual; in CreateCXXMemberFunction()
2266 SPFlags |= llvm::DISubprogram::SPFlagDeleted; in CreateCXXMemberFunction()
[all …]
/freebsd/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.cpp551 DISubprogram *getSubprogramOrNull(const OutlinedFunction &OF) { in getSubprogramOrNull()
554 if (DISubprogram *SP = MF->getFunction().getSubprogram()) in getSubprogramOrNull()
1000 if (DISubprogram *SP = getSubprogramOrNull(OF)) { in createOutlinedFunction()
1011 DISubprogram *OutlinedSP = DB.createFunction( in createOutlinedFunction()
1018 DISubprogram::SPFlagDefinition | DISubprogram::SPFlagOptimized); in createOutlinedFunction()
H A DWindowsSecureHotPatching.cpp357 const DISubprogram *Subprogram = F.getSubprogram(); in getOrCreateRefVariable()
571 const DISubprogram *Subprogram = F.getSubprogram(); in runOnFunction()
H A DLexicalScopes.cpp178 assert(cast<DISubprogram>(Scope)->describes(&MF->getFunction())); in getOrCreateRegularScope()
228 if (isa<DISubprogram>(Scope)) in getOrCreateAbstractScope()
H A DDwarfEHPrepare.cpp257 if (DISubprogram *SP = F.getSubprogram()) in InsertUnwindResumeCalls()
300 if (DISubprogram *SP = F.getSubprogram()) in InsertUnwindResumeCalls()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleDebugInfoPrinter.cpp55 for (DISubprogram *S : Finder.subprograms()) { in printModuleDebugInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DInstrumentation.h203 if (DISubprogram *SP = F.getSubprogram()) in ensureDebugInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86DiscriminateMemOps.cpp92 DISubprogram *FDI = MF.getFunction().getSubprogram(); in runOnMachineFunction()

123