/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldCOFFAArch64.h | 100 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 …]
|
D | RuntimeDyldMachOAArch64.h | 39 int64_t Addend = 0; in decodeAddend() local 84 Addend = *reinterpret_cast<support::ulittle32_t *>(LocalAddress); in decodeAddend() 86 Addend = *reinterpret_cast<support::ulittle64_t *>(LocalAddress); in decodeAddend() 98 Addend = (*p & 0x03FFFFFF) << 2; in decodeAddend() 99 Addend = SignExtend64(Addend, 28); in decodeAddend() 111 Addend = ((*p & 0x60000000) >> 29) | ((*p & 0x01FFFFE0) >> 3) << 12; in decodeAddend() 112 Addend = SignExtend64(Addend, 33); in decodeAddend() 133 Addend = (*p & 0x003FFC00) >> 10; in decodeAddend() 148 Addend <<= ImplicitShift; in decodeAddend() 152 return Addend; in decodeAddend() [all …]
|
D | RuntimeDyldELFMips.cpp | 19 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation() 21 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 24 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 32 uint64_t Addend) { in evaluateRelocation() argument 36 Addend, RE.SymOffset, RE.SectionID); in evaluateRelocation() 111 int64_t Addend, uint64_t SymOffset, SID SectionID) { in evaluateMIPS64Relocation() argument 119 << format("%llx", Addend) in evaluateMIPS64Relocation() 133 return Value + Addend; in evaluateMIPS64Relocation() 135 return ((Value + Addend) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation() 138 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation() [all …]
|
D | RuntimeDyldCOFFThumb.h | 81 uint64_t Addend = 0; in processRelocationRef() local 90 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef() 102 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef() 126 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 133 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 146 getSymbolOffset(*Symbol) + Addend); in processRelocationRef() 152 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 162 getSymbolOffset(*Symbol) + Addend, true, 0); in processRelocationRef() 187 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation() 202 Sections[0].getLoadAddress() + RE.Addend; in resolveRelocation() [all …]
|
D | RuntimeDyldCOFFX86_64.h | 45 void write32BitOffset(uint8_t *Target, int64_t Addend, uint64_t Delta) { in write32BitOffset() argument 46 uint64_t Result = Addend + Delta; in write32BitOffset() 98 uint64_t Result = Value + RE.Addend; in resolveRelocation() 115 write32BitOffset(Target, RE.Addend, Value - ImageBase); in resolveRelocation() 121 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation() 133 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument 141 OriginalRelValueRef.Addend = Addend; in generateRelocationStub() 166 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 170 Addend = 0; in generateRelocationStub() 174 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() [all …]
|
D | RuntimeDyldCOFFI386.h | 62 uint64_t Addend = 0; in processRelocationRef() local 72 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef() 85 << TargetName << " 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() 160 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation() 176 Result = Result - Section.getLoadAddress() + RE.Addend - 4 - RE.Offset; in resolveRelocation() 200 assert(static_cast<uint64_t>(RE.Addend) <= UINT32_MAX && in resolveRelocation() 204 << RE.Addend << '\n'); in resolveRelocation() [all …]
|
D | RuntimeDyldELFMips.h | 33 uint32_t Value, uint32_t Type, int32_t Addend); 35 uint64_t Value, uint32_t Type, int64_t Addend, 38 uint64_t Value, uint32_t Type, int64_t Addend, 46 uint64_t Addend); 57 uint32_t Type, int64_t Addend,
|
D | RuntimeDyldMachOX86_64.h | 52 RE.Addend = memcpyAddend(RE); in processRelocationRef() 77 RE.Addend = Value.Offset; in processRelocationRef() 110 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation() 117 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation() 135 Value.Offset -= RE.Addend; in processGOTRelocation() 154 MachO::X86_64_RELOC_UNSIGNED, RE.Addend, true, 2); in processGOTRelocation() 171 int64_t Addend = in processSubtractRelocation() local 197 Addend += SecB.getAddress(); in processSubtractRelocation() 223 Addend -= SecA.getAddress(); in processSubtractRelocation() 226 RelocationEntry R(SectionID, Offset, MachO::X86_64_RELOC_SUBTRACTOR, (uint64_t)Addend, in processSubtractRelocation()
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 39 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 …]
|
D | RuntimeDyldCOFFThumb.h | 61 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 …]
|
D | RuntimeDyldCOFFI386.h | 62 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 …]
|
D | RuntimeDyldCOFFX86_64.h | 80 uint64_t Result = Value + RE.Addend; in resolveRelocation() 99 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation() 130 uint64_t Addend = 0; in processRelocationRef() local 144 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef() 150 Addend = readBytesUnaligned(Displacement, 8); in processRelocationRef() 165 << " Addend " << Addend << "\n"); in processRelocationRef() 168 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() 179 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
|
D | RuntimeDyldMachOX86_64.h | 52 RE.Addend = memcpyAddend(RE); in processRelocationRef() 77 RE.Addend = Value.Offset; in processRelocationRef() 110 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation() 117 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation() 135 Value.Offset -= RE.Addend; in processGOTRelocation() 154 MachO::X86_64_RELOC_UNSIGNED, RE.Addend, true, 2); in processGOTRelocation() 171 int64_t Addend = in processSubtractRelocation() local 197 Addend += SecB.getAddress(); in processSubtractRelocation() 223 Addend -= SecA.getAddress(); in processSubtractRelocation() 226 RelocationEntry R(SectionID, Offset, MachO::X86_64_RELOC_SUBTRACTOR, (uint64_t)Addend, in processSubtractRelocation()
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 228 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 …]
|
D | RuntimeDyldELF.h | 30 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 …]
|
D | RuntimeDyldImpl.h | 132 int64_t Addend; variable 153 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 158 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 163 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 170 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry() 181 int64_t Addend; variable 183 RelocationValueRef() : SectionID(0), Offset(0), Addend(0), in RelocationValueRef() 188 Addend == Other.Addend && SymbolName == Other.SymbolName; 195 if (Addend != Other.Addend) 196 return Addend < Other.Addend;
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 265 uint32_t Type, int64_t Addend, in resolveX86_64Relocation() argument 275 Value + Addend; in resolveX86_64Relocation() 276 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation() 282 Value += Addend; in resolveX86_64Relocation() 295 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation() 303 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation() 312 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation() 329 int64_t GOTOffset = Value - GOTBase + Addend; in resolveX86_64Relocation() 338 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument 342 Value + Addend; in resolveX86Relocation() [all …]
|
D | RuntimeDyldELF.h | 30 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); 50 uint32_t Value, uint32_t Type, int32_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); 62 uint64_t Value, uint32_t Type, int64_t Addend);
|
D | RuntimeDyldImpl.h | 132 int64_t Addend; variable 156 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 161 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 167 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 174 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry() 185 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry() 196 int64_t Addend; variable 199 RelocationValueRef() : SectionID(0), Offset(0), Addend(0), in RelocationValueRef() 204 Addend == Other.Addend && SymbolName == Other.SymbolName && 212 if (Addend != Other.Addend) [all …]
|
/external/llvm/include/llvm/Object/ |
D | RelocVisitor.h | 284 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/test/Object/ |
D | relocation-executable.test | 12 // 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
|
D | dyn-rel-relocation.test | 35 // CHECK-NEXT: Addend: 0x0 41 // CHECK-NEXT: Addend: 0x0 47 // CHECK-NEXT: Addend: 0x0 57 // CHECK-NEXT: Addend: 0x0 63 // CHECK-NEXT: Addend: 0x0 69 // CHECK-NEXT: Addend: 0x0
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Object/ |
D | relocation-executable.test | 12 // 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
|
D | dyn-rel-relocation.test | 35 // CHECK-NEXT: Addend: 0x0 41 // CHECK-NEXT: Addend: 0x0 47 // CHECK-NEXT: Addend: 0x0 57 // CHECK-NEXT: Addend: 0x0 63 // CHECK-NEXT: Addend: 0x0 69 // CHECK-NEXT: Addend: 0x0
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/WebAssembly/ |
D | reloc-data.ll | 21 ; CHECK-NEXT: Addend: 8 27 ; CHECK-NEXT: Addend: -16 33 ; CHECK-NEXT: Addend: 0 39 ; CHECK-NEXT: Addend: 0 45 ; CHECK-NEXT: Addend: 0
|