| /external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| D | RuntimeDyldMachOAArch64.h | 33 /// Extract the addend encoded in the instruction / memory location. 38 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() 94 // Get the 26 bit addend encoded in the branch instruction and sign-extend in decodeAddend() 97 Addend = (*p & 0x03FFFFFF) << 2; in decodeAddend() 98 Addend = SignExtend64(Addend, 28); in decodeAddend() 107 // Get the 21 bit addend encoded in the adrp instruction and sign-extend in decodeAddend() 110 Addend = ((*p & 0x60000000) >> 29) | ((*p & 0x01FFFFE0) >> 3) << 12; in decodeAddend() 111 Addend = SignExtend64(Addend, 33); in decodeAddend() [all …]
|
| 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() 166 // Determine the Addend used to adjust the relocation value. in processRelocationRef() 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() [all …]
|
| D | RuntimeDyldELFMips.cpp | 18 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 117 << format("%x", Type) << " Addend: 0x" in evaluateMIPS64Relocation() 118 << format("%llx", Addend) in evaluateMIPS64Relocation() 132 return Value + Addend; in evaluateMIPS64Relocation() 134 return ((Value + Addend) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation() [all …]
|
| D | RuntimeDyldCOFFThumb.h | 82 // Determine the Addend used to adjust the relocation value. in processRelocationRef() 83 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() [all …]
|
| D | RuntimeDyldCOFFX86_64.h | 50 void write32BitOffset(uint8_t *Target, int64_t Addend, uint64_t Delta) { in write32BitOffset() argument 51 uint64_t Result = Addend + Delta; in write32BitOffset() 83 // the symbol resides (RE.Addend provides additional information about the 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 [all …]
|
| D | RuntimeDyldCOFFI386.h | 60 // Determine the Addend used to adjust the relocation value. in processRelocationRef() 61 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() [all …]
|
| D | RuntimeDyldMachOI386.h | 68 RE.Addend = memcpyAddend(RE); in processRelocationRef() 83 // Value.Addend += RelocAddr + 4; 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 194 // Compute the addend 'C' from the original expression 'A - B + C'. in processSECTDIFFRelocation() 195 Addend -= AddrA - AddrB; in processSECTDIFFRelocation() 198 << ", AddrB: " << AddrB << ", Addend: " << Addend in processSECTDIFFRelocation() 202 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processSECTDIFFRelocation()
|
| /external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| D | RuntimeDyldMachOAArch64.h | 34 /// Extract the addend encoded in the instruction / memory location. 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() 73 // Get the 26 bit addend encoded in the branch instruction and sign-extend in decodeAddend() 76 Addend = (*p & 0x03FFFFFF) << 2; in decodeAddend() 77 Addend = SignExtend64(Addend, 28); in decodeAddend() 86 // Get the 21 bit addend encoded in the adrp instruction and sign-extend in decodeAddend() 89 Addend = ((*p & 0x60000000) >> 29) | ((*p & 0x01FFFFE0) >> 3) << 12; in decodeAddend() 90 Addend = SignExtend64(Addend, 33); in decodeAddend() [all …]
|
| D | RuntimeDyldCOFFThumb.h | 60 // Determine the Addend used to adjust the relocation value. in processRelocationRef() 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() [all …]
|
| D | RuntimeDyldCOFFI386.h | 61 // Determine the Addend used to adjust the relocation value. in processRelocationRef() 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() [all …]
|
| D | RuntimeDyldCOFFX86_64.h | 60 // the symbol resides (RE.Addend provides additional information about the 80 uint64_t Result = Value + RE.Addend; in resolveRelocation() 99 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation() 127 // Determine the Addend used to adjust the relocation value. in processRelocationRef() 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()
|
| /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 | RuntimeDyldImpl.h | 130 /// Addend - the relocation addend encoded in the instruction itself. Also 132 int64_t Addend; variable 152 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend) in RelocationEntry() argument 153 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 156 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument 158 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 161 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument 163 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 166 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument 170 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry() [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 …]
|
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| D | RuntimeDyldELF.cpp | 268 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 …]
|
| D | RuntimeDyldImpl.h | 129 /// Addend - the relocation addend encoded in the instruction itself. Also 131 int64_t Addend; variable 154 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend) in RelocationEntry() argument 155 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 158 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument 160 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 164 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument 166 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 169 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument 173 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry() [all …]
|
| /external/llvm/include/llvm/Object/ |
| D | RelocVisitor.h | 268 // Ideally the Addend here will be the addend in the data for 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 [all …]
|
| /external/llvm/test/Analysis/BasicAA/ |
| D | sequential-gep.ll | 5 define void @t1([8 x i32]* %p, i32 %addend, i32* %q) { 7 %add = add nsw nuw i32 %addend, %knownnonzero 8 %gep1 = getelementptr [8 x i32], [8 x i32]* %p, i32 2, i32 %addend 15 define void @t2([8 x i32]* %p, i32 %addend, i32* %q) { 17 %add = add nsw nuw i32 %addend, %knownnonzero 18 %gep1 = getelementptr [8 x i32], [8 x i32]* %p, i32 1, i32 %addend 25 define void @t3([8 x i32]* %p, i32 %addend, i32* %q) { 27 %add = add nsw nuw i32 %addend, %knownnonzero 35 define void @t4([8 x i32]* %p, i32 %addend, i32* %q) { 37 %add = add nsw nuw i32 %addend, %knownnonzero [all …]
|
| /external/pthreadpool/examples/ |
| D | addition.c | 9 double *addend; member 14 context->sum[i] = context->augend[i] + context->addend[i]; in add_arrays() 21 double addend[ARRAY_SIZE] = { 0.25, -1.75, 0.0, 0.5 }; in main() local 30 struct array_addition_context context = { augend, addend, sum }; in main() 42 printf("%8s\t%.2lf\t%.2lf\t%.2lf\t%.2lf\n", "Addend", in main() 43 addend[0], addend[1], addend[2], addend[3]); in main()
|
| /external/brotli/c/fuzz/ |
| D | decode_fuzzer.c | 13 size_t addend = 0; in LLVMFuzzerTestOneInput() local 15 addend = data[size - 1] & 7; in LLVMFuzzerTestOneInput() 26 const size_t total_out_limit = (addend == 0) ? (1 << 26) : (1 << 24); in LLVMFuzzerTestOneInput() 31 if (addend == 0) in LLVMFuzzerTestOneInput() 32 addend = size; in LLVMFuzzerTestOneInput() 33 /* Test both fast (addend == size) and slow (addend <= 7) decoding paths. */ in LLVMFuzzerTestOneInput() 35 size_t next_i = i + addend; in LLVMFuzzerTestOneInput()
|
| /external/pthreadpool/ |
| D | README.md | 26 context->sum[i] = context->augend[i] + context->addend[i]; 33 double addend[ARRAY_SIZE] = { 0.25, -1.75, 0.0, 0.5 }; 42 struct array_addition_context context = { augend, addend, sum }; 54 printf("%8s\t%.2lf\t%.2lf\t%.2lf\t%.2lf\n", "Addend", 55 addend[0], addend[1], addend[2], addend[3]);
|
| /external/llvm/test/Object/ |
| D | dyn-rel-relocation.test | 20 // .word v2+4 # R_MIPS_32 target v2 addend 4 21 // .word v1 # R_MIPS_32 target v1 addend 0 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
|
| 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
|
| /external/llvm/test/Object/Mips/ |
| D | elf-mips64-rel.yaml | 22 # 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
|
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/ |
| D | MachO_arm64.cpp | 108 // returns the edge kind and addend to be used. 169 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() 234 // The target symbol and addend will be populated by the switch below. in addRelocations() 236 uint64_t Addend = 0; in addRelocations() local 239 // If this is an Addend relocation then process it and move to the in addRelocations() 242 Addend = RI.r_symbolnum; in addRelocations() 245 return make_error<JITLinkError>("Unpaired Addend reloc at " + in addRelocations() [all …]
|