Home
last modified time | relevance | path

Searched refs:getAddress (Results 1 – 25 of 192) sorted by relevance

12345678

/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DJITLink.cpp92 return OS << B.getAddress() << " -- " << (B.getAddress() + B.getSize()) in operator <<()
114 OS << "edge@" << B.getAddress() + E.getOffset() << ": " << B.getAddress() in printEdge()
126 if (B->getAddress() < SecAddress) in printEdge()
127 SecAddress = B->getAddress(); in printEdge()
133 OS << " / block " << TargetBlock.getAddress(); in printEdge()
171 B.setAddress(B.getAddress() + SplitIndex); in splitBlock()
261 return LHS->getAddress() < RHS->getAddress(); in dump()
265 OS << " block " << B->getAddress() in dump()
314 OS << " " << Sym->getAddress() << ": " << *Sym << "\n"; in dump()
321 OS << " " << Sym->getAddress() << ": " << *Sym << "\n"; in dump()
[all …]
H A DELF_riscv.cpp190 orc::ExecutorAddr FixupAddress = B.getAddress() + E.getOffset(); in applyFixup()
281 int64_t Value = RelHI20->getTarget().getAddress() + in applyFixup()
282 RelHI20->getAddend() - E.getTarget().getAddress(); in applyFixup()
294 int64_t Value = RelHI20->getTarget().getAddress() + in applyFixup()
305 int64_t Value = (E.getTarget().getAddress() + in applyFixup()
314 int64_t Value = (E.getTarget().getAddress() + in applyFixup()
323 int64_t Value = (E.getTarget().getAddress() + in applyFixup()
333 (E.getTarget().getAddress() + in applyFixup()
364 E.getTarget().getAddress().getValue() - E.getAddend(); in applyFixup()
371 Value -= E.getTarget().getAddress().getValue() - E.getAddend(); in applyFixup()
[all …]
H A DEHFrameSupport.cpp59 auto &CurSym = PC.AddrToSym[Sym->getAddress()]; in operator ()()
77 return LHS->getAddress() < RHS->getAddress(); in operator ()()
124 << (B.getAddress() + RecordStartOffset) << "\n"; in processBlock()
148 formatv("{0:x16}", B.getAddress() + RecordStartOffset)); in processBlock()
284 assert(!PC.CIEInfos.count(CIESymbol.getAddress()) && in processCIE()
286 PC.CIEInfos[CIESymbol.getAddress()] = std::move(CIEInfo); in processCIE()
298 orc::ExecutorAddr RecordAddress = B.getAddress() + RecordOffset; in processFDE()
365 << (*PCBegin)->getBlock().getAddress() << " to FDE at " in processFDE()
562 Target = BlockToFix.getAddress() + PointerFieldOffset; in getOrCreateEncodedPointerEdge()
577 << FieldName << " at " << TargetSym->getAddress(); in getOrCreateEncodedPointerEdge()
[all …]
H A DMachO_x86_64.cpp175 FixupValue -= ToSymbol->getAddress().getValue(); in parsePairRelocation()
184 Addend = FixupValue + (FixupAddress - FromSymbol->getAddress()); in parsePairRelocation()
190 Addend = FixupValue - (FixupAddress - ToSymbol->getAddress()); in parsePairRelocation()
209 orc::ExecutorAddr SectionAddress(S.getAddress()); in addRelocations()
261 BlockToFix->getAddress() + BlockToFix->getContent().size()) in addRelocations()
267 (FixupAddress - BlockToFix->getAddress()); in addRelocations()
269 size_t FixupOffset = FixupAddress - BlockToFix->getAddress(); in addRelocations()
355 Addend = TargetAddress - TargetSymbol->getAddress(); in addRelocations()
380 Addend = TargetAddress - TargetSymbol->getAddress() - 4; in addRelocations()
400 Addend = TargetAddress - TargetSymbol->getAddress() - Delta; in addRelocations()
[all …]
H A DMachOLinkGraphBuilder.cpp326 assert(!NSec.CanonicalSymbols.count(Sym.getAddress()) && in addSectionStartSymAndBlock()
328 NSec.CanonicalSymbols[Sym.getAddress()] = &Sym; in addSectionStartSymAndBlock()
540 if (LastCanonicalAddr != Sym.getAddress()) { in graphifyRegularSymbols()
543 LastCanonicalAddr = Sym.getAddress(); in graphifyRegularSymbols()
574 auto SymOffset = orc::ExecutorAddr(NSym.Value) - B.getAddress(); in createStandardGraphSymbol()
682 auto LastCanonicalAddr = B.getAddress() + BlockSize; in graphifyCStringSection()
684 B.getAddress() + BlockSize) { in graphifyCStringSection()
686 size_t SymSize = (B.getAddress() + BlockSize) - in graphifyCStringSection()
765 << formatv("{0:x16}", B->getAddress()) << "\n"; in operator ()()
805 formatv("{0:x}", CURec.getAddress()) + ": target " + in operator ()()
[all …]
H A DMachO_arm64.cpp184 FixupValue -= ToSymbol->getAddress().getValue(); in parsePairRelocation()
193 Addend = FixupValue + (FixupAddress - FromSymbol->getAddress()); in parsePairRelocation()
199 Addend = FixupValue - (FixupAddress - ToSymbol->getAddress()); in parsePairRelocation()
218 orc::ExecutorAddr SectionAddress(S.getAddress()); in addRelocations()
274 BlockToFix->getAddress() + BlockToFix->getContent().size()) in addRelocations()
282 (FixupAddress - BlockToFix->getAddress()); in addRelocations()
364 Addend = TargetAddress - TargetSymbol->getAddress(); in addRelocations()
453 Edge GE(Kind, FixupAddress - BlockToFix->getAddress(), *TargetSymbol, in addRelocations()
458 BlockToFix->addEdge(Kind, FixupAddress - BlockToFix->getAddress(), in addRelocations()
H A Dx86_64.cpp100 orc::ExecutorAddr TargetAddr = GOTTarget.getAddress(); in optimizeGOTAndStubAccesses()
170 orc::ExecutorAddr EdgeAddr = B->getAddress() + E.getOffset(); in optimizeGOTAndStubAccesses()
171 orc::ExecutorAddr TargetAddr = GOTTarget.getAddress(); in optimizeGOTAndStubAccesses()
/llvm-project-15.0.7/llvm/tools/llvm-jitlink/
H A Dllvm-jitlink-elf.cpp109 if (Sym->getAddress() < FirstSym->getAddress()) in registerELFGraphInfo()
111 if (Sym->getAddress() > LastSym->getAddress()) in registerELFGraphInfo()
124 Sym->getSymbolContent(), Sym->getAddress().getValue()}; in registerELFGraphInfo()
136 Sym->getAddress().getValue()}; in registerELFGraphInfo()
145 Sym->getAddress().getValue()}; in registerELFGraphInfo()
149 Sym->getAddress().getValue()}; in registerELFGraphInfo()
155 auto SecAddr = FirstSym->getAddress(); in registerELFGraphInfo()
157 (LastSym->getBlock().getAddress() + LastSym->getBlock().getSize()) - in registerELFGraphInfo()
H A Dllvm-jitlink-macho.cpp111 if (Sym->getAddress() < FirstSym->getAddress()) in registerMachOGraphInfo()
113 if (Sym->getAddress() > LastSym->getAddress()) in registerMachOGraphInfo()
122 Sym->getSymbolContent(), Sym->getAddress().getValue()}; in registerMachOGraphInfo()
133 Sym->getAddress().getValue()}; in registerMachOGraphInfo()
140 Sym->getAddress().getValue()}; in registerMachOGraphInfo()
144 Sym->getAddress().getValue()}; in registerMachOGraphInfo()
150 auto SecAddr = FirstSym->getAddress(); in registerMachOGraphInfo()
152 (LastSym->getBlock().getAddress() + LastSym->getBlock().getSize()) - in registerMachOGraphInfo()
H A Dllvm-jitlink-coff.cpp107 if (Sym->getAddress() < FirstSym->getAddress()) in registerCOFFGraphInfo()
109 if (Sym->getAddress() > LastSym->getAddress()) in registerCOFFGraphInfo()
122 Sym->getSymbolContent(), Sym->getAddress().getValue()}; in registerCOFFGraphInfo()
134 Sym->getAddress().getValue()}; in registerCOFFGraphInfo()
143 Sym->getAddress().getValue()}; in registerCOFFGraphInfo()
147 Sym->getAddress().getValue()}; in registerCOFFGraphInfo()
153 auto SecAddr = FirstSym->getAddress(); in registerCOFFGraphInfo()
155 (LastSym->getBlock().getAddress() + LastSym->getBlock().getSize()) - in registerCOFFGraphInfo()
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/JITLink/
H A Dx86_64.h391 auto FixupAddress = B.getAddress() + E.getOffset(); in applyFixup()
396 uint64_t Value = E.getTarget().getAddress().getValue() + E.getAddend(); in applyFixup()
402 uint64_t Value = E.getTarget().getAddress().getValue() + E.getAddend(); in applyFixup()
410 int64_t Value = E.getTarget().getAddress().getValue() + E.getAddend(); in applyFixup()
426 E.getTarget().getAddress() - (FixupAddress + 4) + E.getAddend(); in applyFixup()
435 int64_t Value = E.getTarget().getAddress() - FixupAddress + E.getAddend(); in applyFixup()
441 int64_t Value = E.getTarget().getAddress() - FixupAddress + E.getAddend(); in applyFixup()
450 int64_t Value = FixupAddress - E.getTarget().getAddress() + E.getAddend(); in applyFixup()
466 E.getTarget().getAddress() - GOTSymbol->getAddress() + E.getAddend(); in applyFixup()
575 << B->getFixupAddress(E) << " (" << B->getAddress() << " + " in visitEdge()
[all …]
H A Daarch64.h103 orc::ExecutorAddr FixupAddress = B.getAddress() + E.getOffset(); in applyFixup()
110 int64_t Value = E.getTarget().getAddress() - FixupAddress + E.getAddend(); in applyFixup()
128 uint64_t Value = E.getTarget().getAddress().getValue() + E.getAddend(); in applyFixup()
136 uint64_t Value = E.getTarget().getAddress().getValue() + E.getAddend(); in applyFixup()
144 (E.getTarget().getAddress().getValue() + E.getAddend()) & in applyFixup()
164 (E.getTarget().getAddress() + E.getAddend()).getValue() & 0xfff; in applyFixup()
179 (E.getTarget().getAddress() + E.getAddend()).getValue(); in applyFixup()
196 int64_t Delta = E.getTarget().getAddress() - FixupAddress; in applyFixup()
214 Value = E.getTarget().getAddress() - FixupAddress + E.getAddend(); in applyFixup()
216 Value = FixupAddress - E.getTarget().getAddress() + E.getAddend(); in applyFixup()
[all …]
H A DJITLink.h122 orc::ExecutorAddr getAddress() const { return Address; } in getAddress() function
228 return orc::ExecutorAddrRange(getAddress(), getSize()); in getRange()
337 return getAddress() + E.getOffset(); in getFixupAddress()
569 orc::ExecutorAddr getAddress() const { return Base->getAddress() + Offset; } in getAddress() function
784 if (B->getAddress() < First->getAddress()) in SectionRange()
786 if (B->getAddress() > Last->getAddress()) in SectionRange()
1457 auto I = AddrToBlock.upper_bound(B.getAddress());
1462 if (B.getAddress() + B.getSize() > I->second->getAddress())
1470 if (PrevBlock.getAddress() + PrevBlock.getSize() > B.getAddress())
1524 if (Addr < B->getAddress() + B->getSize()) in getBlockCovering()
[all …]
/llvm-project-15.0.7/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/
H A DLLJITWithObjectLinkingLayerPlugin.cpp98 outs() << " " << formatv("{0:x16}", B.getAddress()) << ": " in printBlockContent()
103 ExecutorAddr InitAddr(B.getAddress().getValue() & ~(LineWidth - 1)); in printBlockContent()
104 ExecutorAddr StartAddr = B.getAddress(); in printBlockContent()
105 ExecutorAddr EndAddr = B.getAddress() + B.getSize(); in printBlockContent()
136 outs() << " " << formatv("{0:x16}", Sym->getAddress()) << ": "; in printGraph()
149 outs() << " Block " << formatv("{0:x16}", B.getAddress()) in printGraph()
153 outs() << " Block " << formatv("{0:x16}", B.getAddress()) in printGraph()
164 << formatv("{0:x16}", B.getAddress() + E.getOffset()) in printGraph()
/llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/
H A DDWARFDebugFrameTest.cpp751 EXPECT_EQ(Rows[0].getAddress(), 0x1000u); in TEST()
823 EXPECT_EQ(Rows[0].getAddress(), 0x1000u); in TEST()
826 EXPECT_EQ(Rows[1].getAddress(), 0x1004u); in TEST()
829 EXPECT_EQ(Rows[2].getAddress(), 0x1008u); in TEST()
832 EXPECT_EQ(Rows[3].getAddress(), 0x100cu); in TEST()
835 EXPECT_EQ(Rows[4].getAddress(), 0x1010u); in TEST()
838 EXPECT_EQ(Rows[5].getAddress(), 0x1014u); in TEST()
898 EXPECT_EQ(Rows[0].getAddress(), 0x1000u); in TEST()
901 EXPECT_EQ(Rows[1].getAddress(), 0x1004u); in TEST()
961 EXPECT_EQ(Rows[0].getAddress(), 0x1000u); in TEST()
[all …]
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/
H A DCoreAPIsTest.cpp256 EXPECT_EQ(Result[Bar].getAddress(), QuxSym.getAddress()) in TEST_F()
330 EXPECT_EQ((*Result)[Baz].getAddress(), FooSym.getAddress()) in TEST_F()
332 EXPECT_EQ((*Result)[Qux].getAddress(), QuxSym.getAddress()) in TEST_F()
346 EXPECT_EQ((*Result)[Bar].getAddress(), FooSym.getAddress()) in TEST_F()
348 EXPECT_EQ((*Result)[Baz].getAddress(), FooSym.getAddress()) in TEST_F()
362 EXPECT_EQ(Result.getAddress(), FooSym.getAddress()) in TEST_F()
388 EXPECT_EQ(Result.getAddress(), FooSym.getAddress()) in TEST_F()
415 EXPECT_EQ(Result.getAddress(), FooSym.getAddress()) in TEST_F()
961 EXPECT_EQ(I->second.getAddress(), FooSym.getAddress()) in TEST_F()
1046 EXPECT_EQ(BarResult.getAddress(), BarSym.getAddress()) in TEST_F()
[all …]
/llvm-project-15.0.7/bolt/lib/Core/
H A DBinarySection.cpp42 uint64_t Offset = BD.getAddress() - getAddress(); in hash()
43 const uint64_t EndOffset = BD.getEndAddress() - getAddress(); in hash()
121 const uint64_t SectionAddress = getAddress(); in flushPendingRelocations()
181 << "0x" << Twine::utohexstr(getAddress()) << ", " << getSize() << " (0x" in print()
205 uint64_t RelAddr = Rel.Offset + getAddress(); in reorderRelocations()
214 uint64_t RelOffset = RelAddr - BD->getAddress(); in reorderRelocations()
239 const uint64_t SrcOffset = BD->getAddress() - getAddress(); in reorderContents()
H A DBinaryContext.cpp406 if (Address != BF.getAddress()) { in handleAddressRef()
570 if (Value == BF.getAddress() + BF.getSize()) { in analyzeJumpTable()
596 if (Value == BF.getAddress()) in analyzeJumpTable()
679 for (uint64_t Address = JT->getAddress(); in populateJumpTables()
873 Offset = Address - JT->getAddress(); in generateJumpTableName()
877 Id = JumpTableIds.at(JT->getAddress()); in generateJumpTableName()
1400 uint64_t EndAddress = Section.getAddress(); in fixBinaryDataHoles()
1445 Address = Section.getAddress(); in printGlobalSymbols()
1448 Address = BD->getAddress(); in printGlobalSymbols()
2103 if (Address == BD.getAddress()) { in markAmbiguousRelocations()
[all …]
H A DJumpTable.cpp42 const uint64_t InstOffset = Addr - getAddress(); in getEntriesForAddress()
86 const uint64_t BaseOffset = getAddress() - getSection().getAddress(); in updateOriginal()
111 OS << " at 0x" << Twine::utohexstr(getAddress()) << " with a total count of " in print()
119 << Twine::utohexstr(getAddress() + Offset) in print()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprAgg.cpp133 CGF.EmitAggregateStore(Result, Dest.getAddress(), in VisitConstantExpr()
278 RetAddr = Dest.getAddress(); in withReturnValueSlot()
380 LValue DestLV = CGF.MakeAddrLValue(dest.getAddress(), type); in EmitCopy()
381 LValue SrcLV = CGF.MakeAddrLValue(src.getAddress(), type); in EmitCopy()
395 Address ArrayPtr = Array.getAddress(CGF); in VisitCXXStdInitializerListExpr()
1622 EmitArrayInit(Dest.getAddress(), AType, E->getType(), E); in VisitInitListExpr()
1657 Dest.getAddress(), CXXRD, BaseRD, in VisitInitListExpr()
1780 Address destPtr = EnsureSlot(E->getType()).getAddress(); in VisitArrayInitLoopExpr()
1978 Address Loc = Slot.getAddress(); in CheckAggExprForMemSetUse()
2061 Address DestPtr = Dest.getAddress(*this); in EmitAggregateCopy()
[all …]
/llvm-project-15.0.7/bolt/lib/Profile/
H A DBoltAddressTranslation.cpp89 writeEntriesForBB(Map, *BB, Function.cold().getAddress()); in write()
91 Maps.insert(std::pair<uint64_t, MapTy>(Function.cold().getAddress(), Map)); in write()
93 Function.cold().getAddress(), Function.getOutputAddress())); in write()
199 auto Iter = Maps.find(Func.getAddress()); in translate()
229 From -= Func.getAddress(); in getFallthroughsInTrace()
230 To -= Func.getAddress(); in getFallthroughsInTrace()
232 auto Iter = Maps.find(Func.getAddress()); in getFallthroughsInTrace()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldMachO.cpp48 uint8_t *Src = Sections[RE.SectionID].getAddress() + RE.Offset; in memcpyAddend()
76 uint64_t SectionBaseAddr = TargetSI->getAddress(); in processScatteredVANILLA()
133 uint64_t Addr = Sec.getAddress(); in getRelocationValueRef()
145 Value.Offset += RI->getOffset() + OffsetToNextPC + SecI->getAddress(); in makeValueAddendPCRel()
151 uint8_t *LocalAddress = Section.getAddress() + RE.Offset; in dumpRelocationToResolve()
169 uint64_t SAddr = SI->getAddress(); in getSectionByAddress()
336 uint8_t *P = EHFrame->getAddress(); in registerEHFrames()
342 MemMgr.registerEHFrames(EHFrame->getAddress(), EHFrame->getLoadAddress(), in registerEHFrames()
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DBinarySection.h146 Contents(Section.getContents()), Address(Section.getAddress()), in BinarySection()
154 Contents(getContents(Section)), Address(Section.getAddress()), in BinarySection()
210 return (getAddress() < Other.getAddress() ||
211 (getAddress() == Other.getAddress() &&
223 uint64_t getAddress() const { return Address; } in getAddress() function
279 return (getAddress() <= Address && Address < getEndAddress()) || in containsAddress()
280 (getSize() == 0 && getAddress() == Address); in containsAddress()
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DRewriteInstance.cpp846 auto AddressA = cantFail(A.getAddress()); in discoverFileObjects()
847 auto AddressB = cantFail(B.getAddress()); in discoverFileObjects()
1888 SymbolAddress = BD ? BD->getAddress() : 0; in analyzeRelocation()
2598 SymbolAddress = BD->getAddress(); in readRelocations()
3071 : I->getAddress(); in lookup()
3307 if (Probe.getAddress() == INT64_MAX) in updatePseudoProbes()
3374 int64_t Delta = CurProbe->getAddress() - LastProbe->getAddress(); in encodePseudoProbes()
3379 EmitInt(CurProbe->getAddress(), AddrSize); in encodePseudoProbes()
3424 if (Probe->getAddress() == INT64_MAX) in encodePseudoProbes()
3433 if (Probe->getAddress() == INT64_MAX) in encodePseudoProbes()
[all …]
/llvm-project-15.0.7/bolt/lib/Passes/
H A DIdenticalCodeFolding.cpp253 assert((SIA->getAddress() != SIB->getAddress()) && in isIdenticalWith()
257 A.getJumpTableContainingAddress(SIA->getAddress()); in isIdenticalWith()
262 B.getJumpTableContainingAddress(SIB->getAddress()); in isIdenticalWith()
266 if ((SIA->getAddress() - JumpTableA->getAddress()) != in isIdenticalWith()
267 (SIB->getAddress() - JumpTableB->getAddress())) in isIdenticalWith()

12345678