Home
last modified time | relevance | path

Searched full:addend (Results 1 – 25 of 129) sorted by relevance

123456

/external/llvm/include/llvm/Object/
DRelocVisitor.h227 int64_t Addend; in getELFAddend32LE() local
228 Obj->getRelocationAddend(DRI, Addend); in getELFAddend32LE()
229 return Addend; in getELFAddend32LE()
235 int64_t Addend; in getELFAddend64LE() local
236 Obj->getRelocationAddend(DRI, Addend); in getELFAddend64LE()
237 return Addend; in getELFAddend64LE()
243 int64_t Addend; in getELFAddend32BE() local
244 Obj->getRelocationAddend(DRI, Addend); in getELFAddend32BE()
245 return Addend; in getELFAddend32BE()
251 int64_t Addend; in getELFAddend64BE() local
[all …]
DELFObjectFile.h700 int64_t addend = 0; in getRelocationValueString() local
708 // TODO: Read implicit addend from section data. in getRelocationValueString()
714 addend = getRela(Rel)->r_addend; in getRelocationValueString()
732 fmt << *SymName << (addend < 0 ? "" : "+") << addend << "-P"; in getRelocationValueString()
743 fmt << *SymName << (addend < 0 ? "" : "+") << addend; in getRelocationValueString()
755 if (addend != 0) in getRelocationValueString()
756 fmt << (addend < 0 ? "" : "+") << addend; in getRelocationValueString()
951 int64_t &Addend) { in getELFRelocationAddend() argument
954 return cast<ELFObjectFileBase>(Obj)->getRelocationAddend(DRI, Addend); in getELFRelocationAddend()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOAArch64.h34 /// 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 …]
DRuntimeDyldMachOI386.h56 RE.Addend = memcpyAddend(RE); in processRelocationRef()
68 // Value.Addend += RelocAddr + 4; in processRelocationRef()
73 RE.Addend = Value.Offset; in processRelocationRef()
98 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
106 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
145 uint64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processSECTDIFFRelocation() local
170 if (Addend != AddrA - AddrB) in processSECTDIFFRelocation()
171 Error("Unexpected SECTDIFF relocation addend."); in processSECTDIFFRelocation()
174 << ", Addend: " << Addend << ", SectionA ID: " << SectionAID in processSECTDIFFRelocation()
205 int64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processI386ScatteredVANILLA() local
[all …]
DRuntimeDyldCOFFX86_64.h60 // the symbol resides (RE.Addend provides additional information about the
81 uint64_t Result = Value + RE.Addend; in resolveRelocation()
102 *TargetAddress = Value + RE.Addend; in resolveRelocation()
135 // Determine the Addend used to adjust the relocation value. in processRelocationRef()
140 uint64_t Addend = 0; in processRelocationRef() local
154 Addend = *Displacement; in processRelocationRef()
160 Addend = *Displacement; in processRelocationRef()
172 << " Addend " << Addend << "\n"); in processRelocationRef()
174 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
DRuntimeDyldMachOARM.h72 RE.Addend = decodeAddend(RE); in processRelocationRef()
82 RE.Addend = Value.Offset; in processRelocationRef()
112 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
117 Value += RE.Addend; in resolveRelocation()
137 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
254 int64_t Addend = FullImmVal - (AddrA - AddrB); in processHALFSECTDIFFRelocation() local
256 // addend = Encoded - Expected in processHALFSECTDIFFRelocation()
260 << ", Addend: " << Addend << ", SectionA ID: " << SectionAID in processHALFSECTDIFFRelocation()
264 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processHALFSECTDIFFRelocation()
DRuntimeDyldMachOX86_64.h47 RE.Addend = memcpyAddend(RE); in processRelocationRef()
59 RE.Addend = Value.Offset; in processRelocationRef()
92 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
111 Value.Offset -= RE.Addend; in processGOTRelocation()
130 MachO::X86_64_RELOC_UNSIGNED, RE.Addend, true, 2); in processGOTRelocation()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp225 uint32_t Type, int64_t Addend, in resolveX86_64Relocation() argument
232 support::ulittle64_t::ref(Section.Address + Offset) = Value + Addend; in resolveX86_64Relocation()
233 DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
239 Value += Addend; in resolveX86_64Relocation()
255 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
270 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
281 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
289 Placeholder + Value + Addend; in resolveX86Relocation()
298 uint32_t RealOffset = Placeholder + Value + Addend - FinalAddress; in resolveX86Relocation()
312 uint32_t Type, int64_t Addend) { in resolveAArch64Relocation() argument
[all …]
DRuntimeDyldImpl.h97 /// Addend - the relocation addend encoded in the instruction itself. Also
99 int64_t Addend; variable
119 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend) in RelocationEntry() argument
120 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
123 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
125 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
128 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
130 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
133 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
137 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
[all …]
DRuntimeDyldELF.h27 uint64_t Value, uint32_t Type, int64_t Addend,
31 uint64_t Value, uint32_t Type, int64_t Addend,
35 uint32_t Value, uint32_t Type, int32_t Addend);
38 uint64_t Value, uint32_t Type, int64_t Addend);
41 uint32_t Value, uint32_t Type, int32_t Addend);
44 uint32_t Value, uint32_t Type, int32_t Addend);
47 uint64_t Value, uint32_t Type, int64_t Addend);
50 uint64_t Value, uint32_t Type, int64_t Addend);
DRuntimeDyldMachO.h56 /// This convenience method uses memcpy to extract a contiguous addend (the
57 /// addend size and offset are taken from the corresponding fields of the RE).
61 /// RelocationEntry and fill in the common fields. The 'Addend' field is *not*
88 /// immediate (held in RE.Addend).
89 /// In both cases the Addend field is *NOT* fixed up to be PC-relative. That
97 /// Make the RelocationValueRef addend PC-relative.
DRuntimeDyldMachO.cpp72 Value.Offset = SymInfo.getOffset() + RE.Addend; in getRelocationValueRef()
75 Value.Offset = RE.Addend; in getRelocationValueRef()
82 Value.Offset = RE.Addend - Addr; in getRelocationValueRef()
114 << " Value: " << format("0x%016" PRIx64, Value) << " Addend: " << RE.Addend in dumpRelocationToResolve()
/external/llvm/test/Object/Mips/
Delf-mips64-rel.yaml22 # YAML-NEXT: Addend: 4
28 # YAML-NEXT: Addend: 8
68 Addend: 4
74 Addend: 8
78 Addend: 0
82 Addend: 0
86 Addend: 0
92 Addend: 0
/external/google-breakpad/src/common/
Dtest_assembler.cc67 Label Label::operator+(uint64_t addend) const { in operator +()
69 l.value_->Set(this->value_, addend); in operator +()
106 uint64_t addend; in IsKnownConstant() local
107 value_->Get(&base, &addend); in IsKnownConstant()
109 if (value_p) *value_p = addend; in IsKnownConstant()
129 Label::Binding::Binding(uint64_t addend) in Binding() argument
130 : base_(NULL), addend_(addend), reference_count_(1) { } in Binding()
138 void Label::Binding::Set(Binding *binding, uint64_t addend) { in Set() argument
141 assert(addend_ == addend); in Set()
145 binding->Set(NULL, addend_ - addend); in Set()
[all …]
/external/llvm/test/CodeGen/ARM/
Dfast-isel-static.ll6 define void @myadd(float* %sum, float* %addend) nounwind {
9 %addend.addr = alloca float*, align 4
11 store float* %addend, float** %addend.addr, align 4
14 %tmp2 = load float*, float** %addend.addr, align 4
/external/llvm/lib/Target/X86/MCTargetDesc/
DX86ELFRelocationInfo.cpp35 int64_t Addend; getELFRelocationAddend(Rel, Addend); in createExprForRelocation() local
43 // If hasAddend is true, then we need to add Addend (r_addend) to Expr. in createExprForRelocation()
47 // A: the addend used to compute the value of the relocatable field. in createExprForRelocation()
122 if (Expr && hasAddend && Addend != 0) in createExprForRelocation()
124 MCConstantExpr::Create(Addend, Ctx), in createExprForRelocation()
/external/llvm/test/CodeGen/Thumb2/
Dthumb2-uxt_rot.ll42 %addend = zext i8 %X.trunc to i32
44 %sum = add i32 %A, %addend
53 %addend = zext i16 %X.trunc to i32
55 %sum = add i32 %A, %addend
/external/llvm/include/llvm/MC/
DMCELFObjectWriter.h33 uint64_t Addend; // The addend to use. member
36 uint64_t Addend) in ELFRelocationEntry()
37 : Offset(Offset), Symbol(Symbol), Type(Type), Addend(Addend) {} in ELFRelocationEntry()
/external/llvm/test/Object/
Drelocation-executable.test10 // CHECK-NEXT: Addend: 0x0
18 // CHECK-NEXT: Addend: 0x0
24 // CHECK-NEXT: Addend: 0x0
Dyaml2obj-elf-rel.yaml39 Addend: 1
43 Addend: 2
47 Addend: 3
/external/llvm/lib/Target/PowerPC/
DPPCVSXFMAMutate.cpp73 // The default (A-type) VSX FMA form kills the addend (it is taken from in processBlock()
108 // The addend and this instruction must be in the same block. in processBlock()
113 // The addend must be a full copy within the same register class. in processBlock()
131 // In theory, there could be other uses of the addend copy before this in processBlock()
135 // prior to the fma. In order to replace the addend here with the in processBlock()
174 // For virtual registers, verify that the addend source register in processBlock()
178 "Addend source register is not live!"); in processBlock()
207 "Addend copy not tied to old FMA output!"); in processBlock()
/external/iproute2/tc/
Df_flow.c37 "OPS := [ or NUM | and NUM | xor NUM | rshift NUM | addend NUM ]\n" in explain()
98 static int get_addend(__u32 *addend, char *argv, __u32 keys) in get_addend() argument
129 *addend = tmp; in get_addend()
194 } else if (matches(*argv, "addend") == 0) { in flow_parse_opt()
197 fprintf(stderr, "Illegal \"addend\"\n"); in flow_parse_opt()
332 fprintf(f, "addend 0x%x ", in flow_print_opt()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp27 /// Class representing coefficient of floating-point addend.
102 // The integer coefficient of an individual addend is either 1 or -1,
111 /// FAddend is used to represent floating-point addend. An addend is
113 /// constant coefficient. A constant addend is represented as <C, 0>.
138 /// splitted is the addend itself.
149 // This addend has the value of "Coeff * Val".
169 /// Convert given addend to a Value
377 FAddend &Addend = Opnd0 ? Addend1 : Addend0; in drillValueDownOneStep() local
379 Addend.set(1, Opnd1); in drillValueDownOneStep()
381 Addend.set(C1, nullptr); in drillValueDownOneStep()
[all …]
/external/llvm/test/Transforms/InstSimplify/
Dfold-builtin-fma.ll5 ; are all finite constants and addend is zero.
25 ; Test builtin fma with a +/-NaN addend.
40 ; Test builtin fma with a +/-Inf addend.
/external/clang/test/CodeGen/
Dcleanup-stack.c6 int addend; member
10 *p->var += p->addend; in f0()

123456