/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
H A D | RuntimeDyldCOFFAArch64.h | 110 OriginalRelValueRef.Addend = Addend; in generateRelocationStub() 135 Addend = 0; in generateRelocationStub() 169 uint64_t Addend = 0; in processRelocationRef() local 197 Addend = read32le(Displacement); in processRelocationRef() 227 Addend = ((orig >> 10) & 0xFFF); in processRelocationRef() 231 Addend = read64le(Displacement); in processRelocationRef() 271 Value += RE.Addend; in resolveRelocation() 277 Value += RE.Addend; in resolveRelocation() 284 Value += RE.Addend; in resolveRelocation() 291 Value += RE.Addend; in resolveRelocation() [all …]
|
H A D | RuntimeDyldMachOAArch64.h | 38 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 D | RuntimeDyldELFMips.cpp | 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() 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 D | RuntimeDyldCOFFX86_64.h | 51 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() 160 OriginalRelValueRef.Addend = Addend; in generateRelocationStub() 189 Addend = 0; in generateRelocationStub() 193 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 217 uint64_t Addend = 0; in processRelocationRef() local 254 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef() 265 Addend = readBytesUnaligned(Displacement, 8); in processRelocationRef() [all …]
|
H A D | RuntimeDyldCOFFThumb.h | 105 uint64_t Addend = 0; in processRelocationRef() local 114 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef() 238 Sections[0].getLoadAddress() + RE.Addend; in resolveRelocation() 260 assert(static_cast<uint64_t>(RE.Addend) <= UINT32_MAX && in resolveRelocation() 265 writeBytesUnaligned(RE.Addend, Target, 2); in resolveRelocation() 299 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation() 301 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && in resolveRelocation() 314 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation() 316 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && in resolveRelocation() 329 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation() [all …]
|
H A D | RuntimeDyldCOFFI386.h | 79 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 D | RuntimeDyldELFMips.h | 31 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 D | RuntimeDyldMachOX86_64.h | 50 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()
|
H A D | RuntimeDyldMachOI386.h | 67 RE.Addend = memcpyAddend(RE); in processRelocationRef() 87 RE.Addend = Value.Offset; in processRelocationRef() 110 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation() 118 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation() 160 uint64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processSECTDIFFRelocation() local 194 Addend -= AddrA - AddrB; in processSECTDIFFRelocation() 197 << ", AddrB: " << AddrB << ", Addend: " << Addend in processSECTDIFFRelocation() 201 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processSECTDIFFRelocation()
|
H A D | RuntimeDyldMachOARM.h | 161 RE.Addend = *AddendOrErr; in processRelocationRef() 192 RE.Addend = Value.Offset; in processRelocationRef() 219 Value += RE.Addend; in resolveRelocation() 238 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation() 243 Value += RE.Addend; in resolveRelocation() 263 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation() 407 int64_t Addend = FullImmVal - (AddrA - AddrB); in processHALFSECTDIFFRelocation() local 413 << ", AddrB: " << AddrB << ", Addend: " << Addend in processHALFSECTDIFFRelocation() 417 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processHALFSECTDIFFRelocation()
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | RelocationResolver.cpp | 64 return S + Addend; in resolveX86_64() 95 return S + Addend; in resolveAArch64() 147 return S + Addend; in resolveMips64() 197 return S + Addend; in resolvePPC64() 223 return S + Addend; in resolveSystemZ() 248 return S + Addend; in resolveSparc64() 282 return S + Addend; in resolveAmdgpu() 426 return S + Addend; in resolveSparc32() 437 return S + Addend; in resolveHexagon() 468 int64_t RA = Addend; in resolveRISCV() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldELF.cpp | 271 Value += Addend; in resolveX86_64Relocation() 280 Value += Addend; in resolveX86_64Relocation() 599 Value += Addend; in resolveARMRelocation() 778 Rel.Addend = (intptr_t)Addend; in findOPDEntrySection() 1261 Value.Addend = SymInfo.getOffset() + Addend; in processRelocationRef() 1285 Value.Addend = Addend; in processRelocationRef() 1293 Value.Addend = Addend; in processRelocationRef() 1392 Value.Addend += Addend; in processRelocationRef() 1441 Reloc.Addend += Addend; in processRelocationRef() 1690 Value.Addend -= TOCValue.Addend; in processRelocationRef() [all …]
|
H A D | RuntimeDyldELF.h | 29 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); 202 int64_t Addend); [all …]
|
H A D | RuntimeDyldImpl.h | 130 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;
|
H A D | RuntimeDyldMachO.cpp | 71 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()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | COFF_x86_64.cpp | 89 int64_t Addend = 0; in addSingleRelocation() local 100 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation() 105 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation() 110 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation() 111 Addend -= 1; in addSingleRelocation() 116 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation() 117 Addend -= 2; in addSingleRelocation() 123 Addend -= 3; in addSingleRelocation() 129 Addend -= 4; in addSingleRelocation() 135 Addend -= 5; in addSingleRelocation() [all …]
|
H A D | MachO_x86_64.cpp | 181 uint64_t Addend; in parsePairRelocation() local 294 uint64_t Addend = 0; in addRelocations() local 309 Addend = *(const little32_t *)FixupContent; in addRelocations() 317 Addend = *(const little32_t *)FixupContent - 4; in addRelocations() 325 Addend = *(const little32_t *)FixupContent; in addRelocations() 336 Addend = *(const little32_t *)FixupContent - 4; in addRelocations() 344 Addend = *(const little32_t *)FixupContent; in addRelocations() 355 Addend = *(const ulittle32_t *)FixupContent; in addRelocations() 363 Addend = *(const ulittle64_t *)FixupContent; in addRelocations() 446 Addend); in addRelocations() [all …]
|
H A D | MachO_arm64.cpp | 190 uint64_t Addend; in parsePairRelocation() local 225 Addend = FixupValue - (FixupAddress - ToSymbol->getAddress()); in parsePairRelocation() 228 return PairRelocInfo(DeltaKind, TargetSymbol, Addend); in parsePairRelocation() 307 uint64_t Addend = 0; in addRelocations() local 313 Addend = SignExtend64(RI.r_symbolnum, 24); in addRelocations() 364 Addend = *(const ulittle32_t *)FixupContent; in addRelocations() 372 Addend = *(const ulittle64_t *)FixupContent; in addRelocations() 385 Addend = TargetAddress - TargetSymbol->getAddress(); in addRelocations() 463 std::tie(Kind, TargetSymbol, Addend) = *PairInfo; in addRelocations() 475 Addend); in addRelocations() [all …]
|
H A D | aarch32.cpp | 473 int64_t Addend = E.getAddend(); in applyFixupData() local 481 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixupData() 491 int64_t Value = TargetAddress + Addend; in applyFixupData() 501 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixupData() 530 int64_t Addend = E.getAddend(); in applyFixupArm() local 541 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixupArm() 556 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixupArm() 580 uint16_t Value = (TargetAddress + Addend) & 0xffff; in applyFixupArm() 606 int64_t Addend = E.getAddend(); in applyFixupThumb() local 617 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixupThumb() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
H A D | loongarch.h | 180 int64_t Addend = E.getAddend(); in applyFixup() local 184 *(ulittle64_t *)FixupPtr = TargetAddress + Addend; in applyFixup() 187 uint64_t Value = TargetAddress + Addend; in applyFixup() 194 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixup() 210 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixup() 218 int64_t Value = FixupAddress - TargetAddress + Addend; in applyFixup() 225 *(little64_t *)FixupPtr = TargetAddress - FixupAddress + Addend; in applyFixup() 228 uint64_t Target = TargetAddress + Addend; in applyFixup() 243 uint64_t TargetOffset = (TargetAddress + Addend) & 0xfff; in applyFixup()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | MCELFObjectWriter.h | 34 uint64_t Addend; // The addend to use. member 39 uint64_t Addend, const MCSymbolELF *OriginalSymbol, in ELFRelocationEntry() 41 : Offset(Offset), Symbol(Symbol), Type(Type), Addend(Addend), in ELFRelocationEntry() 46 << ", Addend=" << Addend << ", OriginalSymbol=" << OriginalSymbol in print()
|
/freebsd/sys/dev/pms/RefTisa/sat/api/ |
H A D | tdsmapi.h | 84 sbit32 volatile *Addend 90 sbit32 volatile *Addend 118 sbit32 volatile *Addend 124 sbit32 volatile *Addend
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_atomic_msvc.h | 23 extern "C" char _InterlockedExchange8(char volatile *Addend, char Value); 25 extern "C" short _InterlockedExchange16(short volatile *Addend, short Value); 27 extern "C" long _InterlockedExchange(long volatile *Addend, long Value); 29 extern "C" long _InterlockedExchangeAdd(long volatile *Addend, long Value); 50 extern "C" long long _InterlockedExchangeAdd64(long long volatile *Addend,
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/ |
H A D | ELFDump.cpp | 99 int64_t Addend = 0; in getRelocationValueString() local 109 Addend = ERela->r_addend; in getRelocationValueString() 150 if (Addend != 0) { in getRelocationValueString() 151 Fmt << (Addend < 0 in getRelocationValueString() 154 (Addend < 0 ? -(uint64_t)Addend : (uint64_t)Addend)); in getRelocationValueString()
|
H A D | WasmDump.cpp | 62 Fmt << (Rel.Addend < 0 ? "" : "+") << Rel.Addend; in getWasmRelocationValueString()
|