Home
last modified time | relevance | path

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

123456789

/external/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldCOFFAArch64.h101 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
109 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
128 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
134 Addend = 0; in generateRelocationStub()
138 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub()
168 uint64_t Addend = 0; in processRelocationRef() local
196 Addend = read32le(Displacement); in processRelocationRef()
200 Addend = (orig & 0x03FFFFFF) << 2; in processRelocationRef()
203 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef()
204 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()
104 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()
141 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
148 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
161 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
167 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
176 TargetOffset + Addend, true, 0); in processRelocationRef()
201 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation()
216 Sections[0].getLoadAddress() + RE.Addend; in resolveRelocation()
[all …]
DRuntimeDyldCOFFI386.h79 uint64_t Addend = 0; in processRelocationRef() local
89 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
102 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
117 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
130 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
156 RE.Addend); in resolveRelocation()
170 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation()
186 Result = Result - Section.getLoadAddress() + RE.Addend - 4 - RE.Offset; in resolveRelocation()
210 assert(static_cast<uint64_t>(RE.Addend) <= UINT32_MAX && in resolveRelocation()
214 << RE.Addend << '\n'); in resolveRelocation()
[all …]
/external/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 …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOAArch64.h39 int64_t Addend = 0; in decodeAddend() local
64 Addend = *reinterpret_cast<support::ulittle32_t *>(LocalAddress); in decodeAddend()
66 Addend = *reinterpret_cast<support::ulittle64_t *>(LocalAddress); in decodeAddend()
76 Addend = (*p & 0x03FFFFFF) << 2; in decodeAddend()
77 Addend = SignExtend64(Addend, 28); in decodeAddend()
89 Addend = ((*p & 0x60000000) >> 29) | ((*p & 0x01FFFFE0) >> 3) << 12; in decodeAddend()
90 Addend = SignExtend64(Addend, 33); in decodeAddend()
110 Addend = (*p & 0x003FFC00) >> 10; in decodeAddend()
125 Addend <<= ImplicitShift; in decodeAddend()
129 return Addend; in decodeAddend()
[all …]
DRuntimeDyldCOFFThumb.h61 uint64_t Addend = 0; in processRelocationRef() local
70 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
82 << " Addend " << Addend << "\n"); in processRelocationRef()
103 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
116 getSymbolOffset(*Symbol) + Addend); in processRelocationRef()
122 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
132 getSymbolOffset(*Symbol) + Addend, true, 0); in processRelocationRef()
156 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation()
172 Sections[0].getLoadAddress() + RE.Addend; in resolveRelocation()
197 assert(static_cast<int32_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
[all …]
DRuntimeDyldCOFFI386.h62 uint64_t Addend = 0; in processRelocationRef() local
72 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
85 << " Addend " << Addend << "\n"); in processRelocationRef()
106 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
119 getSymbolOffset(*Symbol) + Addend); in processRelocationRef()
146 RE.Addend); in resolveRelocation()
162 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation()
180 Result = Result - Section.getLoadAddress() + RE.Addend - 4 - RE.Offset; in resolveRelocation()
205 assert(static_cast<int32_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
207 assert(static_cast<int32_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp228 uint32_t Type, int64_t Addend, in resolveX86_64Relocation() argument
236 Value + Addend; in resolveX86_64Relocation()
237 DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
243 Value += Addend; in resolveX86_64Relocation()
256 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
264 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
273 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
283 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
287 Value + Addend; in resolveX86Relocation()
293 uint32_t RealOffset = Value + Addend - FinalAddress; in resolveX86Relocation()
[all …]
DRuntimeDyldELF.h30 uint64_t Value, uint32_t Type, int64_t Addend,
34 uint64_t Value, uint32_t Type, int64_t Addend,
38 uint32_t Value, uint32_t Type, int32_t Addend);
41 uint64_t Value, uint32_t Type, int64_t Addend);
44 uint32_t Value, uint32_t Type, int32_t Addend);
47 uint32_t Value, uint32_t Type, int32_t Addend);
50 uint64_t Value, uint32_t Type, int64_t Addend);
53 uint64_t Value, uint32_t Type, int64_t Addend);
56 uint64_t Value, uint32_t Type, int64_t Addend);
59 uint64_t Value, uint32_t Type, int64_t Addend,
[all …]
/external/llvm-project/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 …]
/external/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 …]
/external/llvm-project/clang/test/CodeGen/
Dms-intrinsics.c490 short test_InterlockedIncrement16(short volatile *Addend) { in test_InterlockedIncrement16() argument
491 return _InterlockedIncrement16(++Addend); in test_InterlockedIncrement16()
500 long test_InterlockedIncrement(long volatile *Addend) { in test_InterlockedIncrement() argument
501 return _InterlockedIncrement(++Addend); in test_InterlockedIncrement()
510 short test_InterlockedDecrement16(short volatile *Addend) { in test_InterlockedDecrement16() argument
511 return _InterlockedDecrement16(Addend); in test_InterlockedDecrement16()
519 long test_InterlockedDecrement(long volatile *Addend) { in test_InterlockedDecrement() argument
520 return _InterlockedDecrement(Addend); in test_InterlockedDecrement()
606 __int64 test_InterlockedIncrement64(__int64 volatile *Addend) { in test_InterlockedIncrement64() argument
607 return _InterlockedIncrement64(Addend); in test_InterlockedIncrement64()
[all …]
Dms-intrinsics-other.c143 LONG test_InterlockedIncrement(LONG volatile *Addend) { in test_InterlockedIncrement() argument
144 return _InterlockedIncrement(Addend); in test_InterlockedIncrement()
152 LONG test_InterlockedDecrement(LONG volatile *Addend) { in test_InterlockedDecrement() argument
153 return _InterlockedDecrement(Addend); in test_InterlockedDecrement()
210 LONG test_InterlockedAdd(LONG volatile *Addend, LONG Value) { in test_InterlockedAdd() argument
211 return _InterlockedAdd(Addend, Value); in test_InterlockedAdd()
365 LONG test_InterlockedIncrement_acq(LONG volatile *Addend) { in test_InterlockedIncrement_acq() argument
366 return _InterlockedIncrement_acq(Addend); in test_InterlockedIncrement_acq()
374 LONG test_InterlockedIncrement_rel(LONG volatile *Addend) { in test_InterlockedIncrement_rel() argument
375 return _InterlockedIncrement_rel(Addend); in test_InterlockedIncrement_rel()
[all …]
/external/llvm/include/llvm/Object/
DRelocVisitor.h284 int64_t Addend = getELFAddend(R); in visitELF_X86_64_64() local
285 return RelocToApply(Value + Addend, 8); in visitELF_X86_64_64()
288 int64_t Addend = getELFAddend(R); in visitELF_X86_64_PC32() local
290 return RelocToApply(Value + Addend - Address, 4); in visitELF_X86_64_PC32()
293 int64_t Addend = getELFAddend(R); in visitELF_X86_64_32() local
294 uint32_t Res = (Value + Addend) & 0xFFFFFFFF; in visitELF_X86_64_32()
298 int64_t Addend = getELFAddend(R); in visitELF_X86_64_32S() local
299 int32_t Res = (Value + Addend) & 0xFFFFFFFF; in visitELF_X86_64_32S()
305 int64_t Addend = getELFAddend(R); in visitELF_PPC64_ADDR32() local
306 uint32_t Res = (Value + Addend) & 0xFFFFFFFF; in visitELF_PPC64_ADDR32()
[all …]
/external/llvm-project/llvm/lib/Object/
DRelocationResolver.cpp43 uint64_t LocData, int64_t Addend) { in resolveX86_64() argument
50 return S + Addend; in resolveX86_64()
53 return S + Addend - Offset; in resolveX86_64()
56 return (S + Addend) & 0xFFFFFFFF; in resolveX86_64()
75 uint64_t /*LocData*/, int64_t Addend) { in resolveAArch64() argument
78 return (S + Addend) & 0xFFFFFFFF; in resolveAArch64()
80 return S + Addend; in resolveAArch64()
82 return (S + Addend - Offset) & 0xFFFFFFFF; in resolveAArch64()
84 return S + Addend - Offset; in resolveAArch64()
125 uint64_t /*LocData*/, int64_t Addend) { in resolveMips64() argument
[all …]
/external/llvm-project/llvm/test/tools/llvm-readobj/ELF/
Dreloc-addends.test17 # GNU-RELA64: Type Symbol's Value Symbol's Name + Addend
58 ## Addend == 0.
59 - Addend: 0x0
61 ## Addend == first positive int64/uint64 == 1.
62 - Addend: 0x1
64 ## Addend == first negative int64 == -1.
65 - Addend: 0xffffffffffffffff
67 ## Addend == max possible int64 == 0x7FFFFFFFFFFFFFFF.
68 - Addend: 0x7FFFFFFFFFFFFFFF
70 ## Addend == min possible int64 == 0x8000000000000000.
[all …]
Dreloc-zero-name-or-value.test9 …: Offset Info Type Symbol's Value Symbol's Name + Addend
18 …: Offset Info Type Symbol's Value Symbol's Name + Addend
26 …: Offset Info Type Symbol's Value Symbol's Name + Addend
50 Addend: 1
53 Addend: 1
57 Addend: 0x456
60 Addend: 0x678
66 Addend: 2
91 Addend: 1
94 Addend: 1
[all …]

123456789