Home
last modified time | relevance | path

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

1234567

/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldCOFFAArch64.h109 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
134 Addend = 0; in generateRelocationStub()
168 uint64_t Addend = 0; in processRelocationRef() local
196 Addend = read32le(Displacement); in processRelocationRef()
226 Addend = ((orig >> 10) & 0xFFF); in processRelocationRef()
230 Addend = read64le(Displacement); in processRelocationRef()
270 Value += RE.Addend; in resolveRelocation()
276 Value += RE.Addend; in resolveRelocation()
283 Value += RE.Addend; in resolveRelocation()
290 Value += RE.Addend; in resolveRelocation()
[all …]
H A DRuntimeDyldMachOAArch64.h38 int64_t Addend = 0; in decodeAddend() local
98 Addend = SignExtend64(Addend, 28); in decodeAddend()
111 Addend = SignExtend64(Addend, 33); in decodeAddend()
147 Addend <<= ImplicitShift; in decodeAddend()
151 return Addend; in decodeAddend()
262 Addend >>= ImplicitShift; in encodeAddend()
317 RE.Addend = *Addend; in processRelocationRef()
339 RE.Addend = Value.Offset; in processRelocationRef()
384 RE.IsPCRel ? (RE.Addend - RE.Offset) : (Value + RE.Addend); in resolveRelocation()
411 Value += RE.Addend; in resolveRelocation()
[all …]
H A DRuntimeDyldELFMips.cpp118 << 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()
140 return Value - Addend; in evaluateMIPS64Relocation()
145 return (Value + Addend) & 0xffff; in evaluateMIPS64Relocation()
157 Value += Addend; in evaluateMIPS64Relocation()
171 return (Value + Addend - page) & 0xffff; in evaluateMIPS64Relocation()
175 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation()
183 return Value + Addend - FinalAddress; in evaluateMIPS64Relocation()
[all …]
H A DRuntimeDyldCOFFX86_64.h51 uint64_t Result = Addend + Delta; in write32BitOffset()
104 uint64_t Result = Value + RE.Addend; in resolveRelocation()
126 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation()
133 writeBytesUnaligned(RE.Addend, Target, 4); in resolveRelocation()
153 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
182 Addend = 0; in generateRelocationStub()
186 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub()
210 uint64_t Addend = 0; in processRelocationRef() local
247 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
258 Addend = readBytesUnaligned(Displacement, 8); in processRelocationRef()
[all …]
H A DRuntimeDyldCOFFThumb.h82 uint64_t Addend = 0; in processRelocationRef() local
91 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
215 Sections[0].getLoadAddress() + RE.Addend; in resolveRelocation()
237 assert(static_cast<uint64_t>(RE.Addend) <= UINT32_MAX && in resolveRelocation()
242 writeBytesUnaligned(RE.Addend, Target, 2); in resolveRelocation()
276 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
278 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
291 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
293 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
306 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
[all …]
H A 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 …]
H A DRuntimeDyldELFMips.h31 uint32_t Value, uint32_t Type, int32_t Addend);
33 uint64_t Value, uint32_t Type, int64_t Addend,
36 uint64_t Value, uint32_t Type, int64_t Addend,
44 uint64_t Addend);
55 uint32_t Type, int64_t Addend,
H A DRuntimeDyldMachOX86_64.h50 RE.Addend = memcpyAddend(RE); in processRelocationRef()
75 RE.Addend = Value.Offset; in processRelocationRef()
108 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
115 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
133 Value.Offset -= RE.Addend; in processGOTRelocation()
152 MachO::X86_64_RELOC_UNSIGNED, RE.Addend, true, 2); in processGOTRelocation()
169 int64_t Addend = in processSubtractRelocation() local
195 Addend += SecB.getAddress(); in processSubtractRelocation()
221 Addend -= SecA.getAddress(); in processSubtractRelocation()
224 RelocationEntry R(SectionID, Offset, MachO::X86_64_RELOC_SUBTRACTOR, (uint64_t)Addend, in processSubtractRelocation()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp270 Value += Addend; in resolveX86_64Relocation()
279 Value += Addend; in resolveX86_64Relocation()
594 Value += Addend; in resolveARMRelocation()
773 Rel.Addend = (intptr_t)Addend; in findOPDEntrySection()
1256 Value.Addend = SymInfo.getOffset() + Addend; in processRelocationRef()
1280 Value.Addend = Addend; in processRelocationRef()
1287 Value.Addend = Addend; in processRelocationRef()
1386 Value.Addend += Addend; in processRelocationRef()
1435 Reloc.Addend += Addend; in processRelocationRef()
1684 Value.Addend -= TOCValue.Addend; in processRelocationRef()
[all …]
H A 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);
168 int64_t Addend);
[all …]
H A DRuntimeDyldImpl.h130 int64_t Addend; variable
154 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
159 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
165 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
172 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
183 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
194 int64_t Addend = 0; variable
200 Addend == Other.Addend && SymbolName == Other.SymbolName &&
208 if (Addend != Other.Addend)
209 return Addend < Other.Addend;
/llvm-project-15.0.7/llvm/lib/Object/
H A DRelocationResolver.cpp65 return S + Addend; in resolveX86_64()
96 return S + Addend; in resolveAArch64()
148 return S + Addend; in resolveMips64()
198 return S + Addend; in resolvePPC64()
224 return S + Addend; in resolveSystemZ()
249 return S + Addend; in resolveSparc64()
270 return S + Addend; in resolveAmdgpu()
414 return S + Addend; in resolveSparc32()
425 return S + Addend; in resolveHexagon()
453 int64_t RA = Addend; in resolveRISCV()
[all …]
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dms-intrinsics.c491 return _InterlockedIncrement16(++Addend); in test_InterlockedIncrement16()
501 return _InterlockedIncrement(++Addend); in test_InterlockedIncrement()
511 return _InterlockedDecrement16(Addend); in test_InterlockedDecrement16()
520 return _InterlockedDecrement(Addend); in test_InterlockedDecrement()
607 return _InterlockedIncrement64(Addend); in test_InterlockedIncrement64()
616 return _InterlockedDecrement64(Addend); in test_InterlockedDecrement64()
1270 return _InterlockedIncrement_acq(Addend); in test_InterlockedIncrement_acq()
1279 return _InterlockedIncrement_rel(Addend); in test_InterlockedIncrement_rel()
1288 return _InterlockedIncrement_nf(Addend); in test_InterlockedIncrement_nf()
1351 return _InterlockedDecrement_acq(Addend); in test_InterlockedDecrement_acq()
[all …]
H A 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()
211 return _InterlockedAdd(Addend, Value); in test_InterlockedAdd()
366 return _InterlockedIncrement_acq(Addend); in test_InterlockedIncrement_acq()
375 return _InterlockedIncrement_rel(Addend); in test_InterlockedIncrement_rel()
384 return _InterlockedIncrement_nf(Addend); in test_InterlockedIncrement_nf()
393 return _InterlockedDecrement_acq(Addend); in test_InterlockedDecrement_acq()
402 return _InterlockedDecrement_rel(Addend); in test_InterlockedDecrement_rel()
[all …]
H A Darm64-microsoft-intrinsics.c7 long test_InterlockedAdd(long volatile *Addend, long Value) { in test_InterlockedAdd() argument
8 return _InterlockedAdd(Addend, Value); in test_InterlockedAdd()
11 long test_InterlockedAdd_constant(long volatile *Addend) { in test_InterlockedAdd_constant() argument
12 return _InterlockedAdd(Addend, -1); in test_InterlockedAdd_constant()
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/
H A Dreloc-addends.test55 ## Addend == 0.
56 - Addend: 0x0
59 - Addend: 0x1
74 - Addend: 0x12345
129 ## Addend == 0.
130 - Addend: 0x0
133 - Addend: 0x1
136 - Addend: 0xffffffff
139 - Addend: 0x7FFFFFFF
142 - Addend: 0x80000000
[all …]
H A Dreloc-zero-name-or-value.test9 …: 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
98 Addend: 0x456
101 Addend: 0x678
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-xray/AArch64/Inputs/
H A Delf64-pic.yaml36 Addend: 1056
39 Addend: 1088
42 Addend: 1124
45 Addend: 1156
48 Addend: 1192
51 Addend: 1224
54 Addend: 9648
57 Addend: 9712
60 Addend: 9712
63 Addend: 9776
[all …]
/llvm-project-15.0.7/bolt/lib/Target/X86/
H A DX86MCSymbolizer.cpp42 auto addOperand = [&](const MCSymbol *Symbol, uint64_t Addend) { in tryAddingSymbolicOperand() argument
44 if (Addend) in tryAddingSymbolicOperand()
45 Expr = MCBinaryExpr::createAdd(Expr, MCConstantExpr::create(Addend, *Ctx), in tryAddingSymbolicOperand()
118 uint64_t SymbolValue = Relocation->Value - Relocation->Addend; in tryAddingSymbolicOperand()
125 uint64_t Addend = Relocation->Addend; in tryAddingSymbolicOperand() local
129 Addend += InstOffset + InstSize - Relocation->Offset; in tryAddingSymbolicOperand()
131 addOperand(Relocation->Symbol, Addend); in tryAddingSymbolicOperand()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DMachO_x86_64.cpp180 uint64_t Addend; in parsePairRelocation() local
273 uint64_t Addend = 0; in addRelocations() local
288 Addend = *(const little32_t *)FixupContent; in addRelocations()
296 Addend = *(const little32_t *)FixupContent - 4; in addRelocations()
304 Addend = *(const little32_t *)FixupContent; in addRelocations()
315 Addend = *(const little32_t *)FixupContent - 4; in addRelocations()
323 Addend = *(const little32_t *)FixupContent; in addRelocations()
334 Addend = *(const ulittle32_t *)FixupContent; in addRelocations()
342 Addend = *(const ulittle64_t *)FixupContent; in addRelocations()
425 Addend); in addRelocations()
[all …]
/llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/
H A Drelocation-addend.yaml10 ## Addend == UINT64_MAX.
22 ## Addend == 0.
34 ## Addend == INT64_MIN.
41 ## Addend == 2^64.
45 ## Addend == INT64_MIN - 1.
66 Addend: [[ADDEND]]
77 ## Addend == UINT32_MAX.
89 ## Addend == 0.
101 ## Addend == INT32_MIN
107 ## Addend == 2^32.
[all …]
/llvm-project-15.0.7/llvm/test/Object/
H A Drelocation-executable.test12 // CHECK-NEXT: Addend: 0x0
20 // CHECK-NEXT: Addend: 0x0
26 // CHECK-NEXT: Addend: 0x0
35 // DYN-NEXT: Addend: 0x0
41 // DYN-NEXT: Addend: 0x0
47 // DYN-NEXT: Addend: 0x0
59 // DYN2-NEXT: Addend: 0x0
/llvm-project-15.0.7/llvm/test/tools/llvm-objdump/X86/
H A Delf-disassemble-relocs.test31 Addend: -4
35 Addend: 8
39 Addend: 1
92 Addend: -9223372036854775808
98 Addend: 9223372036854775807
102 Addend: -1
106 Addend: 0x12345678
110 Addend: 0
/llvm-project-15.0.7/llvm/test/Object/Mips/
H A Delf-mips64-rel.yaml22 # YAML-NEXT: Addend: 4
28 # YAML-NEXT: Addend: 8
69 Addend: 4
75 Addend: 8
79 Addend: 0
83 Addend: 0
87 Addend: 0
93 Addend: 0
/llvm-project-15.0.7/llvm/test/tools/llvm-objdump/ELF/
H A Drelocations.test52 Addend: 1
56 Addend: 2
60 Addend: 3
122 Addend: -9223372036854775808
128 Addend: 9223372036854775807
132 Addend: -1
136 Addend: 0x12345678
140 Addend: 0
183 Addend: 1
187 Addend: 2

1234567