Home
last modified time | relevance | path

Searched refs:DILocation (Results 1 – 25 of 85) sorted by relevance

1234

/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DDebugLoc.cpp18 DebugLoc::DebugLoc(const DILocation *L) : Loc(const_cast<DILocation *>(L)) {} in DebugLoc()
21 DILocation *DebugLoc::get() const { in get()
22 return cast_or_null<DILocation>(Loc.get()); in get()
40 DILocation *DebugLoc::getInlinedAt() const { in getInlinedAt()
59 if (DILocation *Loc = get()) { in isImplicitCode()
66 if (DILocation *Loc = get()) { in setImplicitCode()
74 SmallVector<DILocation *, 3> InlinedAtLocations; in appendInlinedAt()
75 DILocation *Last = InlinedAt; in appendInlinedAt()
76 DILocation *CurInlinedAt = DL; in appendInlinedAt()
82 Last = cast<DILocation>(Found); in appendInlinedAt()
[all …]
H A DPseudoProbe.cpp29 const DILocation *DIL = DLoc; in extractProbeFromDiscriminator()
31 if (DILocation::isPseudoProbeDiscriminator(Discriminator)) { in extractProbeFromDiscriminator()
78 const DILocation *DIL = DLoc; in setProbeDistributionFactor()
80 if (DILocation::isPseudoProbeDiscriminator(Discriminator)) { in setProbeDistributionFactor()
H A DDebugInfo.cpp391 if (isa<DILocation>(N) || Reachable.count(N)) in isDILocationReachable()
617 DILocation *getReplacementMDLocation(DILocation *MLD) { in getReplacementMDLocation()
659 if (auto *MLD = dyn_cast<DILocation>(N)) in remap()
778 if (auto *Loc = dyn_cast_or_null<DILocation>(MD)) in stripNonLineTableDebugInfo()
815 void Instruction::applyMergedLocation(const DILocation *LocA, in applyMergedLocation()
817 setDebugLoc(DILocation::getMergedLocation(LocA, LocB)); in applyMergedLocation()
841 setDebugLoc(DILocation::get(getContext(), 0, 0, SP)); in dropLocation()
1052 return unwrapDI<DILocation>(Location)->getLine(); in LLVMDILocationGetLine()
1056 return unwrapDI<DILocation>(Location)->getColumn(); in LLVMDILocationGetColumn()
1060 return wrap(unwrapDI<DILocation>(Location)->getScope()); in LLVMDILocationGetScope()
[all …]
H A DDebugInfoMetadata.cpp36 DILocation::DILocation(LLVMContext &C, StorageType Storage, unsigned Line, in DILocation() function in DILocation
58 DILocation *DILocation::getImpl(LLVMContext &Context, unsigned Line, in getImpl()
86 DILocation *DILocation::getMergedLocations(ArrayRef<const DILocation *> Locs) { in getMergedLocations()
92 for (const DILocation *L : llvm::drop_begin(Locs)) { in getMergedLocations()
100 const DILocation *DILocation::getMergedLocation(const DILocation *LocA, in getMergedLocation()
108 SmallPtrSet<DILocation *, 5> InlinedLocationsA; in getMergedLocation()
109 for (DILocation *L = LocA->getInlinedAt(); L; L = L->getInlinedAt()) in getMergedLocation()
111 SmallSet<std::pair<DIScope *, DILocation *>, 5> Locations; in getMergedLocation()
113 DILocation *L = LocA->getInlinedAt(); in getMergedLocation()
122 const DILocation *Result = LocB; in getMergedLocation()
[all …]
H A DDIBuilder.cpp915 DIExpression *Expr, const DILocation *DL, in insertDeclare()
922 DIExpression *Expr, const DILocation *DL, in insertDeclare()
930 Instruction *DIBuilder::insertLabel(DILabel *LabelInfo, const DILocation *DL, in insertLabel()
937 Instruction *DIBuilder::insertLabel(DILabel *LabelInfo, const DILocation *DL, in insertLabel()
945 const DILocation *DL, in insertDbgValueIntrinsic()
955 const DILocation *DL, in insertDbgValueIntrinsic()
962 static void initIRBuilder(IRBuilder<> &Builder, const DILocation *DL, in initIRBuilder()
982 DIExpression *Expr, const DILocation *DL, in insertDeclare()
1005 const DILocation *DL, BasicBlock *InsertBB, Instruction *InsertBefore) { in insertDbgValueIntrinsic()
1027 DILabel *LabelInfo, const DILocation *DL, in insertLabel()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugLoc.h24 class DILocation; variable
40 DebugLoc(const DILocation *L);
54 DILocation *get() const;
55 operator DILocation *() const { return get(); }
56 DILocation *operator->() const { return get(); }
57 DILocation &operator*() const { return *get(); }
75 static DebugLoc appendInlinedAt(const DebugLoc &DL, DILocation *InlinedAt,
82 DILocation *getInlinedAt() const;
H A DDIBuilder.h82 DIExpression *Expr, const DILocation *DL,
86 Instruction *insertLabel(DILabel *LabelInfo, const DILocation *DL,
92 DIExpression *Expr, const DILocation *DL,
862 DIExpression *Expr, const DILocation *DL,
872 DIExpression *Expr, const DILocation *DL,
879 Instruction *insertLabel(DILabel *LabelInfo, const DILocation *DL,
886 Instruction *insertLabel(DILabel *LabelInfo, const DILocation *DL,
898 const DILocation *DL,
910 const DILocation *DL,
H A DDebugInfoMetadata.h1562 class DILocation : public MDNode {
1568 ~DILocation() { dropAllReferences(); } in ~DILocation()
1594 DEFINE_MDNODE_GET(DILocation,
1598 DEFINE_MDNODE_GET(DILocation,
1611 DILocation *getInlinedAt() const { in getInlinedAt()
1726 static const DILocation *getMergedLocation(const DILocation *LocA,
1734 const DILocation *getMergedLocations(ArrayRef<const DILocation *> Locs);
2185 const DILocation *
2215 Optional<const DILocation *> DILocation::cloneWithBaseDiscriminator(unsigned D) const { in cloneWithBaseDiscriminator()
2233 Optional<const DILocation *> DILocation::cloneByMultiplyingDuplicationFactor(unsigned DF) const { in cloneByMultiplyingDuplicationFactor()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DLexicalScopes.h46 LexicalScope(LexicalScope *P, const DILocalScope *D, const DILocation *I, in LexicalScope()
62 const DILocation *getInlinedAt() const { return InlinedAtLocation; } in getInlinedAt()
124 const DILocation *InlinedAtLocation; // Location at which this
163 void getMachineBasicBlocks(const DILocation *DL,
168 bool dominates(const DILocation *DL, MachineBasicBlock *MBB);
172 LexicalScope *findLexicalScope(const DILocation *DL);
204 const DILocation *IA = nullptr);
205 LexicalScope *getOrCreateLexicalScope(const DILocation *DL) { in getOrCreateLexicalScope()
215 const DILocation *InlinedAt);
234 std::unordered_map<std::pair<const DILocalScope *, const DILocation *>,
[all …]
H A DDbgEntityHistoryCalculator.h21 class DILocation; variable
97 using InlinedEntity = std::pair<const DINode *, const DILocation *>;
135 using InlinedEntity = std::pair<const DINode *, const DILocation *>;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86DiscriminateMemOps.cpp49 Location diToLocation(const DILocation *Loc) { in diToLocation()
55 void updateDebugInfo(MachineInstr *MI, const DILocation *Loc) { in updateDebugInfo()
98 const DILocation *ReferenceDI = in runOnMachineFunction()
99 DILocation::get(FDI->getContext(), FDI->getLine(), 0, FDI); in runOnMachineFunction()
133 const DILocation *DI = MI.getDebugLoc(); in runOnMachineFunction()
144 DILocation::decodeDiscriminator(DI->getDiscriminator(), BF, DF, CI); in runOnMachineFunction()
145 Optional<unsigned> EncodedDiscriminator = DILocation::encodeDiscriminator( in runOnMachineFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DLexicalScopes.cpp76 const DILocation *PrevDL = nullptr; in extractLexicalScopes()
84 const DILocation *MIDL = MInsn.getDebugLoc(); in extractLexicalScopes()
124 LexicalScope *LexicalScopes::findLexicalScope(const DILocation *DL) { in findLexicalScope()
143 const DILocation *IA) { in getOrCreateLexicalScope()
189 const DILocation *InlinedAt) { in getOrCreateInlinedScope()
192 std::pair<const DILocalScope *, const DILocation *> P(Scope, InlinedAt); in getOrCreateInlinedScope()
281 const DILocation *DL, SmallPtrSetImpl<const MachineBasicBlock *> &MBBs) { in getMachineBasicBlocks()
306 bool LexicalScopes::dominates(const DILocation *DL, MachineBasicBlock *MBB) { in dominates()
H A DPseudoProbeInserter.cpp56 if (DILocation *DL = MI.getDebugLoc()) { in runOnMachineFunction()
58 if (DILocation::isPseudoProbeDiscriminator(Value)) { in runOnMachineFunction()
125 uint64_t getFuncGUID(Module *M, DILocation *DL) { in getFuncGUID()
H A DMIRFSDiscriminator.cpp47 const DILocation *DIL) { in getCallStackHash()
94 const DILocation *DIL = I.getDebugLoc().get(); in runOnMachineFunction()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DSampleContextTracker.h102 getIndirectCalleeContextSamplesFor(const DILocation *DIL);
105 FunctionSamples *getContextSamplesFor(const DILocation *DIL);
130 ContextTrieNode *getContextFor(const DILocation *DIL);
131 ContextTrieNode *getCalleeContextFor(const DILocation *DIL,
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DPseudoProbePrinter.h24 class DILocation; variable
34 uint64_t Attr, const DILocation *DebugLoc);
H A DCodeViewDebug.h109 SmallVector<const DILocation *, 1> ChildSites;
137 std::unordered_map<const DILocation *, InlineSite> InlineSites;
140 SmallVector<const DILocation *, 1> ChildSites;
225 InlineSite &getInlineSite(const DILocation *InlinedAt,
339 void emitInlinedCallSite(const FunctionInfo &FI, const DILocation *InlinedAt,
H A DDwarfDebug.h69 const DILocation *InlinedAt;
79 DbgEntity(const DINode *N, const DILocation *IA, unsigned ID) in DbgEntity()
86 const DILocation *getInlinedAt() const { return InlinedAt; } in getInlinedAt()
137 DbgVariable(const DILocalVariable *V, const DILocation *IA) in DbgVariable()
238 DbgLabel(const DILabel *L, const DILocation *IA, const MCSymbol *Sym = nullptr)
468 const DILocation *Location,
H A DPseudoProbePrinter.cpp25 const DILocation *DebugLoc) { in emitPseudoProbe()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleContextTracker.cpp198 DILocation *DIL = Inst.getDebugLoc(); in getCalleeContextSamplesFor()
220 const DILocation *DIL) { in getIndirectCalleeContextSamplesFor()
239 SampleContextTracker::getContextSamplesFor(const DILocation *DIL) { in getContextSamplesFor()
339 DILocation *DIL = Inst.getDebugLoc(); in promoteMergeContextSamplesTree()
411 SampleContextTracker::getCalleeContextFor(const DILocation *DIL, in getCalleeContextFor()
425 ContextTrieNode *SampleContextTracker::getContextFor(const DILocation *DIL) { in getContextFor()
430 const DILocation *PrevDIL = DIL; in getContextFor()
H A DSampleProfileProbe.cpp53 static uint64_t getCallStackHash(const DILocation *DIL) { in getCallStackHash()
55 const DILocation *InlinedAt = DIL ? DIL->getInlinedAt() : nullptr; in getCallStackHash()
301 auto DIL = DILocation::get(SP->getContext(), 0, 0, SP); in instrumentOneFunc()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DADCE.cpp173 void collectLiveScopes(const DILocation &DL);
389 if (const DILocation *DL = I->getDebugLoc()) in markLive()
432 void AggressiveDeadCodeElimination::collectLiveScopes(const DILocation &DL) { in collectLiveScopes()
442 if (const DILocation *IA = DL.getInlinedAt()) in collectLiveScopes()
663 if (const DILocation *DL = PredTerm->getDebugLoc()) in makeUnconditional()
677 if (const DILocation *DL = PredTerm->getDebugLoc()) in makeUnconditional()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ProfileData/
H A DSampleProf.cpp201 unsigned FunctionSamples::getOffset(const DILocation *DIL) { in getOffset()
206 LineLocation FunctionSamples::getCallSiteIdentifier(const DILocation *DIL) { in getCallSiteIdentifier()
221 const DILocation *DIL, SampleProfileReaderItaniumRemapper *Remapper) const { in findFunctionSamples()
225 const DILocation *PrevDIL = DIL; in findFunctionSamples()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DAddDiscriminators.cpp205 const DILocation *DIL = I.getDebugLoc(); in addDiscriminators()
248 DILocation *CurrentDIL = I.getDebugLoc(); in addDiscriminators()
H A DEntryExitInstrumenter.cpp88 DL = DILocation::get(SP->getContext(), SP->getScopeLine(), 0, SP); in runOnFunction()
109 DL = DILocation::get(SP->getContext(), 0, 0, SP); in runOnFunction()

1234