Home
last modified time | relevance | path

Searched refs:Addend (Results 1 – 25 of 66) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldCOFFAArch64.h100 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
108 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
127 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
133 Addend = 0; in generateRelocationStub()
137 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub()
167 uint64_t Addend = 0; in processRelocationRef() local
177 Addend = read32le(Displacement); in processRelocationRef()
181 Addend = (orig & 0x03FFFFFF) << 2; in processRelocationRef()
184 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef()
185 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef()
[all …]
DRuntimeDyldMachOAArch64.h38 int64_t Addend = 0; in decodeAddend() local
83 Addend = *reinterpret_cast<support::ulittle32_t *>(LocalAddress); in decodeAddend()
85 Addend = *reinterpret_cast<support::ulittle64_t *>(LocalAddress); in decodeAddend()
97 Addend = (*p & 0x03FFFFFF) << 2; in decodeAddend()
98 Addend = SignExtend64(Addend, 28); in decodeAddend()
110 Addend = ((*p & 0x60000000) >> 29) | ((*p & 0x01FFFFE0) >> 3) << 12; in decodeAddend()
111 Addend = SignExtend64(Addend, 33); in decodeAddend()
132 Addend = (*p & 0x003FFC00) >> 10; in decodeAddend()
147 Addend <<= ImplicitShift; in decodeAddend()
151 return Addend; in decodeAddend()
[all …]
DRuntimeDyldELFMips.cpp18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation()
20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
31 uint64_t Addend) { in evaluateRelocation() argument
35 Addend, RE.SymOffset, RE.SectionID); in evaluateRelocation()
110 int64_t Addend, uint64_t SymOffset, SID SectionID) { in evaluateMIPS64Relocation() argument
118 << format("%llx", Addend) in evaluateMIPS64Relocation()
132 return Value + Addend; in evaluateMIPS64Relocation()
134 return ((Value + Addend) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation()
137 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation()
[all …]
DRuntimeDyldCOFFX86_64.h50 void write32BitOffset(uint8_t *Target, int64_t Addend, uint64_t Delta) { in write32BitOffset() argument
51 uint64_t Result = Addend + Delta; in write32BitOffset()
103 uint64_t Result = Value + RE.Addend; in resolveRelocation()
120 write32BitOffset(Target, RE.Addend, Value - ImageBase); in resolveRelocation()
126 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation()
131 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && "Relocation overflow"); in resolveRelocation()
132 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && "Relocation underflow"); in resolveRelocation()
133 writeBytesUnaligned(RE.Addend, Target, 4); in resolveRelocation()
145 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
153 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
[all …]
DRuntimeDyldCOFFThumb.h83 uint64_t Addend = 0; in processRelocationRef() local
92 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
104 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
128 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
135 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
148 getSymbolOffset(*Symbol) + Addend); in processRelocationRef()
154 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
164 getSymbolOffset(*Symbol) + Addend, true, 0); in processRelocationRef()
189 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation()
204 Sections[0].getLoadAddress() + RE.Addend; in resolveRelocation()
[all …]
DRuntimeDyldCOFFI386.h61 uint64_t Addend = 0; in processRelocationRef() local
71 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
84 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
105 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
118 getSymbolOffset(*Symbol) + Addend); in processRelocationRef()
145 RE.Addend); in resolveRelocation()
159 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation()
175 Result = Result - Section.getLoadAddress() + RE.Addend - 4 - RE.Offset; in resolveRelocation()
199 assert(static_cast<uint64_t>(RE.Addend) <= UINT32_MAX && in resolveRelocation()
203 << RE.Addend << '\n'); in resolveRelocation()
[all …]
DRuntimeDyldELFMips.h32 uint32_t Value, uint32_t Type, int32_t Addend);
34 uint64_t Value, uint32_t Type, int64_t Addend,
37 uint64_t Value, uint32_t Type, int64_t Addend,
45 uint64_t Addend);
56 uint32_t Type, int64_t Addend,
DRuntimeDyldMachOX86_64.h51 RE.Addend = memcpyAddend(RE); in processRelocationRef()
76 RE.Addend = Value.Offset; in processRelocationRef()
109 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
116 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
134 Value.Offset -= RE.Addend; in processGOTRelocation()
153 MachO::X86_64_RELOC_UNSIGNED, RE.Addend, true, 2); in processGOTRelocation()
170 int64_t Addend = in processSubtractRelocation() local
196 Addend += SecB.getAddress(); in processSubtractRelocation()
222 Addend -= SecA.getAddress(); in processSubtractRelocation()
225 RelocationEntry R(SectionID, Offset, MachO::X86_64_RELOC_SUBTRACTOR, (uint64_t)Addend, in processSubtractRelocation()
DRuntimeDyldMachOI386.h68 RE.Addend = memcpyAddend(RE); in processRelocationRef()
88 RE.Addend = Value.Offset; in processRelocationRef()
111 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
119 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
161 uint64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processSECTDIFFRelocation() local
195 Addend -= AddrA - AddrB; in processSECTDIFFRelocation()
198 << ", AddrB: " << AddrB << ", Addend: " << Addend in processSECTDIFFRelocation()
202 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processSECTDIFFRelocation()
DRuntimeDyldMachOARM.h162 RE.Addend = *AddendOrErr; in processRelocationRef()
193 RE.Addend = Value.Offset; in processRelocationRef()
220 Value += RE.Addend; in resolveRelocation()
239 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
244 Value += RE.Addend; in resolveRelocation()
264 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
408 int64_t Addend = FullImmVal - (AddrA - AddrB); in processHALFSECTDIFFRelocation() local
414 << ", AddrB: " << AddrB << ", Addend: " << Addend in processHALFSECTDIFFRelocation()
418 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processHALFSECTDIFFRelocation()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp268 uint32_t Type, int64_t Addend, in resolveX86_64Relocation() argument
278 Value + Addend; in resolveX86_64Relocation()
279 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
285 Value += Addend; in resolveX86_64Relocation()
298 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
306 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
315 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
332 int64_t GOTOffset = Value - GOTBase + Addend; in resolveX86_64Relocation()
341 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
345 Value + Addend; in resolveX86Relocation()
[all …]
DRuntimeDyldELF.h29 uint64_t Value, uint32_t Type, int64_t Addend,
33 uint64_t Value, uint32_t Type, int64_t Addend,
37 uint32_t Value, uint32_t Type, int32_t Addend);
40 uint64_t Value, uint32_t Type, int64_t Addend);
49 uint32_t Value, uint32_t Type, int32_t Addend);
52 uint64_t Value, uint32_t Type, int64_t Addend);
55 uint64_t Value, uint32_t Type, int64_t Addend);
58 uint64_t Value, uint32_t Type, int64_t Addend);
61 uint64_t Value, uint32_t Type, int64_t Addend);
DRuntimeDyldImpl.h131 int64_t Addend; variable
155 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
160 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
166 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
173 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
184 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
195 int64_t Addend; variable
198 RelocationValueRef() : SectionID(0), Offset(0), Addend(0), in RelocationValueRef()
203 Addend == Other.Addend && SymbolName == Other.SymbolName &&
211 if (Addend != Other.Addend)
[all …]
DRuntimeDyldMachO.cpp71 int64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processScatteredVANILLA() local
86 Addend -= SectionBaseAddr; in processScatteredVANILLA()
87 RelocationEntry R(SectionID, Offset, RelocType, Addend, IsPCRel, Size); in processScatteredVANILLA()
120 Value.Offset = SymInfo.getOffset() + RE.Addend; in getRelocationValueRef()
123 Value.Offset = RE.Addend; in getRelocationValueRef()
134 Value.Offset = RE.Addend - Addr; in getRelocationValueRef()
157 << " Value: " << format("0x%016" PRIx64, Value) << " Addend: " << RE.Addend in dumpRelocationToResolve()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/
DMachO_x86_64.cpp171 uint64_t Addend; in parsePairRelocation() local
175 Addend = FixupValue + (FixupAddress - FromSymbol->getAddress()); in parsePairRelocation()
180 Addend = FixupValue - (FixupAddress - ToSymbol->getAddress()); in parsePairRelocation()
188 return PairRelocInfo(DeltaKind, TargetSymbol, Addend); in parsePairRelocation()
244 uint64_t Addend = 0; in addRelocations() local
255 Addend = *(const little32_t *)FixupContent; in addRelocations()
262 Addend = *(const ulittle32_t *)FixupContent; in addRelocations()
269 Addend = *(const ulittle64_t *)FixupContent; in addRelocations()
277 Addend = TargetAddress - TargetSymbol->getAddress(); in addRelocations()
287 Addend = *(const little32_t *)FixupContent + in addRelocations()
[all …]
DMachO_arm64.cpp169 uint64_t Addend; in parsePairRelocation() local
173 Addend = FixupValue + (FixupAddress - FromSymbol->getAddress()); in parsePairRelocation()
178 Addend = FixupValue - (FixupAddress - ToSymbol->getAddress()); in parsePairRelocation()
186 return PairRelocInfo(DeltaKind, TargetSymbol, Addend); in parsePairRelocation()
236 uint64_t Addend = 0; in addRelocations() local
242 Addend = RI.r_symbolnum; in addRelocations()
289 Addend = *(const ulittle32_t *)FixupContent; in addRelocations()
296 Addend = *(const ulittle64_t *)FixupContent; in addRelocations()
304 Addend = TargetAddress - TargetSymbol->getAddress(); in addRelocations()
357 std::tie(*Kind, TargetSymbol, Addend) = *PairInfo; in addRelocations()
[all …]
DEHFrameSupportImpl.h64 EdgeTarget(const Edge &E) : Target(&E.getTarget()), Addend(E.getAddend()) {} in EdgeTarget()
67 Edge::AddendT Addend = 0; member
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DMCELFObjectWriter.h35 uint64_t Addend; // The addend to use. member
40 uint64_t Addend, const MCSymbolELF *OriginalSymbol, in ELFRelocationEntry()
42 : Offset(Offset), Symbol(Symbol), Type(Type), Addend(Addend), in ELFRelocationEntry()
47 << ", Addend=" << Addend << ", OriginalSymbol=" << OriginalSymbol in print()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceFixups.h67 void set_addend(RelocOffsetT Addend) { addend_ = Addend; } in set_addend() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCExpr.cpp514 const MCSymbolRefExpr *&B, int64_t &Addend) { in AttemptToFoldSymbolOffsetDifference() argument
529 Addend += (SA.getOffset() - SB.getOffset()); in AttemptToFoldSymbolOffsetDifference()
534 Addend |= 1; in AttemptToFoldSymbolOffsetDifference()
539 Addend |= 1; in AttemptToFoldSymbolOffsetDifference()
557 Addend += Layout->getSymbolOffset(A->getSymbol()) - in AttemptToFoldSymbolOffsetDifference()
560 Addend += (Addrs->lookup(&SecA) - Addrs->lookup(&SecB)); in AttemptToFoldSymbolOffsetDifference()
565 Addend |= 1; in AttemptToFoldSymbolOffsetDifference()
570 Addend |= 1; in AttemptToFoldSymbolOffsetDifference()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DELF.cpp376 uint64_t Addend = 0; in android_relas() local
404 Addend += ReadSLEB(); in android_relas()
407 Addend = 0; in android_relas()
415 Addend += ReadSLEB(); in android_relas()
416 R.r_addend = Addend; in android_relas()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/JITLink/
DJITLink.h71 Edge(Kind K, OffsetT Offset, Symbol &Target, AddendT Addend) in Edge() argument
72 : Target(&Target), Offset(Offset), Addend(Addend), K(K) {} in Edge()
86 AddendT getAddend() const { return Addend; } in getAddend()
87 void setAddend(AddendT Addend) { this->Addend = Addend; } in setAddend() argument
92 AddendT Addend = 0; variable
225 Edge::AddendT Addend) { in addEdge() argument
226 Edges.push_back(Edge(K, Offset, Target, Addend)); in addEdge()
/third_party/elfio/tests/elf_examples/
Dtest_ppc_o.txt50 Offset Info Type Sym.Value Sym. Name + Addend
71 Offset Info Type Sym.Value Sym. Name + Addend
75 Offset Info Type Sym.Value Sym. Name + Addend
Dhello_64_o.txt61 Offset Info Type Sym. Value Sym. Name + Addend
66 Offset Info Type Sym. Value Sym. Name + Addend
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DIVDescriptors.cpp878 Value *Addend = nullptr; in isFPInductionPHI() local
881 Addend = BOp->getOperand(1); in isFPInductionPHI()
883 Addend = BOp->getOperand(0); in isFPInductionPHI()
886 Addend = BOp->getOperand(1); in isFPInductionPHI()
888 if (!Addend) in isFPInductionPHI()
892 if (auto *I = dyn_cast<Instruction>(Addend)) in isFPInductionPHI()
897 const SCEV *Step = SE->getUnknown(Addend); in isFPInductionPHI()

123