Home
last modified time | relevance | path

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

1234567

/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.h55 RE.Addend = memcpyAddend(RE); in processRelocationRef()
67 // Value.Addend += RelocAddr + 4; in processRelocationRef()
72 RE.Addend = Value.Offset; in processRelocationRef()
97 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
105 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
143 uint64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processSECTDIFFRelocation() local
168 // Compute the addend 'C' from the original expression 'A - B + C'. in processSECTDIFFRelocation()
169 Addend -= AddrA - AddrB; in processSECTDIFFRelocation()
172 << ", Addend: " << Addend << ", SectionA ID: " << SectionAID in processSECTDIFFRelocation()
176 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processSECTDIFFRelocation()
DRuntimeDyldCOFFX86_64.h60 // 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()
123 // Determine the Addend used to adjust the relocation value. in processRelocationRef()
126 uint64_t Addend = 0; in processRelocationRef() local
140 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
146 Addend = readBytesUnaligned(Displacement, 8); in processRelocationRef()
161 << " Addend " << Addend << "\n"); in processRelocationRef()
164 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
171 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
DRuntimeDyldMachOX86_64.h51 RE.Addend = memcpyAddend(RE); in processRelocationRef()
63 RE.Addend = Value.Offset; in processRelocationRef()
96 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
103 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
123 Value.Offset -= RE.Addend; in processGOTRelocation()
142 MachO::X86_64_RELOC_UNSIGNED, RE.Addend, true, 2); in processGOTRelocation()
166 int64_t Addend = in processSubtractRelocation() local
177 RelocationEntry R(SectionID, Offset, MachO::X86_64_RELOC_SUBTRACTOR, (uint64_t)Addend, in processSubtractRelocation()
DRuntimeDyldMachOARM.h74 RE.Addend = decodeAddend(RE); in processRelocationRef()
84 RE.Addend = Value.Offset; in processRelocationRef()
114 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
119 Value += RE.Addend; in resolveRelocation()
139 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
255 int64_t Addend = FullImmVal - (AddrA - AddrB); in processHALFSECTDIFFRelocation() local
257 // addend = Encoded - Expected in processHALFSECTDIFFRelocation()
261 << ", Addend: " << Addend << ", SectionA ID: " << SectionAID in processHALFSECTDIFFRelocation()
265 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processHALFSECTDIFFRelocation()
DRuntimeDyldCOFFI386.h120 RE.Addend); in resolveRelocation()
136 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation()
152 Section.getLoadAddress() + RE.Addend - 4 - RE.Offset; in resolveRelocation()
177 assert(static_cast<int32_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
179 assert(static_cast<int32_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
182 << " RelType: IMAGE_REL_I386_SECREL Value: " << RE.Addend in resolveRelocation()
184 writeBytesUnaligned(RE.Addend, Target, 2); in resolveRelocation()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp228 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 …]
DRuntimeDyldImpl.h136 /// Addend - the relocation addend encoded in the instruction itself. Also
138 int64_t Addend; variable
158 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend) in RelocationEntry() argument
159 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
162 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
164 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
167 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
169 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
172 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
176 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);
53 uint64_t Value, uint32_t Type, int64_t Addend);
56 uint64_t Value, uint32_t Type, int64_t Addend,
[all …]
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*
93 /// immediate (held in RE.Addend).
94 /// In both cases the Addend field is *NOT* fixed up to be PC-relative. That
102 /// Make the RelocationValueRef addend PC-relative.
DRuntimeDyldMachO.cpp69 int64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processScatteredVANILLA() local
80 Addend -= SectionBaseAddr; in processScatteredVANILLA()
81 RelocationEntry R(SectionID, Offset, RelocType, Addend, IsPCRel, Size); in processScatteredVANILLA()
111 Value.Offset = SymInfo.getOffset() + RE.Addend; in getRelocationValueRef()
114 Value.Offset = RE.Addend; in getRelocationValueRef()
121 Value.Offset = RE.Addend - Addr; in getRelocationValueRef()
144 << " Value: " << format("0x%016" PRIx64, Value) << " Addend: " << RE.Addend in dumpRelocationToResolve()
/external/llvm/include/llvm/Object/
DRelocVisitor.h261 // Ideally the Addend here will be the addend in the data for
277 int64_t Addend = getELFAddend(R); in visitELF_X86_64_64() local
278 return RelocToApply(Value + Addend, 8); in visitELF_X86_64_64()
281 int64_t Addend = getELFAddend(R); in visitELF_X86_64_PC32() local
283 return RelocToApply(Value + Addend - Address, 4); in visitELF_X86_64_PC32()
286 int64_t Addend = getELFAddend(R); in visitELF_X86_64_32() local
287 uint32_t Res = (Value + Addend) & 0xFFFFFFFF; in visitELF_X86_64_32()
291 int64_t Addend = getELFAddend(R); in visitELF_X86_64_32S() local
292 int32_t Res = (Value + Addend) & 0xFFFFFFFF; in visitELF_X86_64_32S()
298 int64_t Addend = getELFAddend(R); in visitELF_PPC64_ADDR32() local
[all …]
/external/llvm/test/Analysis/BasicAA/
Dsequential-gep.ll5 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/llvm/test/Object/Mips/
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
/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/Transforms/LoopStrengthReduce/
Dsext-ind-var.ll33 %addend = load float, float* %ptr, align 4
34 %nextsum = fadd float %sum, %addend
66 %addend = load float, float* %ptr, align 4
67 %nextsum = fadd float %sum, %addend
98 %addend = load float, float* %ptr, align 4
99 %nextsum = fadd float %sum, %addend
132 %addend = load float, float* %ptr, align 4
133 %nextsum = fadd float %sum, %addend
/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/test/Object/
Drelocation-executable.test12 // CHECK-NEXT: Addend: 0x0
20 // CHECK-NEXT: Addend: 0x0
26 // CHECK-NEXT: Addend: 0x0
35 // DYN-NEXT: Addend: 0x0
47 // DYN2-NEXT: Addend: 0x0
/external/llvm/lib/Target/PowerPC/
DPPCVSXFMAMutate.cpp73 // The default (A-type) VSX FMA form kills the addend (it is taken from in processBlock()
113 // The addend and this instruction must be in the same block. in processBlock()
118 // The addend must be a full copy within the same register class. in processBlock()
136 // In theory, there could be other uses of the addend copy before this in processBlock()
140 // prior to the fma. In order to replace the addend here with the in processBlock()
189 // If the addend copy is used only by this MI, then the addend source in processBlock()
191 // legality checks above, the live range for the addend source register in processBlock()
232 "Addend copy not tied to old FMA output!"); in processBlock()
295 // Extend the live interval of the addend source (it might end at the in processBlock()
/external/llvm/include/llvm/MC/
DMCELFObjectWriter.h32 uint64_t Addend; // The addend to use. member
35 uint64_t Addend) in ELFRelocationEntry()
36 : Offset(Offset), Symbol(Symbol), Type(Type), Addend(Addend) {} in ELFRelocationEntry()
/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/lib/Target/X86/MCTargetDesc/
DX86ELFRelocationInfo.cpp41 int64_t Addend = *ELFRelocationRef(Rel).getAddend(); in createExprForRelocation() local
49 // If hasAddend is true, then we need to add Addend (r_addend) to Expr. in createExprForRelocation()
53 // A: the addend used to compute the value of the relocatable field. in createExprForRelocation()
128 if (Expr && hasAddend && Addend != 0) in createExprForRelocation()
130 MCConstantExpr::create(Addend, Ctx), in createExprForRelocation()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp28 /// Class representing coefficient of floating-point addend.
103 // The integer coefficient of an individual addend is either 1 or -1,
112 /// FAddend is used to represent floating-point addend. An addend is
114 /// constant coefficient. A constant addend is represented as <C, 0>.
139 /// splitted is the addend itself.
150 // This addend has the value of "Coeff * Val".
170 /// Convert given addend to a Value
378 FAddend &Addend = Opnd0 ? Addend1 : Addend0; in drillValueDownOneStep() local
380 Addend.set(1, Opnd1); in drillValueDownOneStep()
382 Addend.set(C1, nullptr); in drillValueDownOneStep()
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DShortDuration.java119 * addend}.
121 public abstract ShortDuration plus(ShortDuration addend); in plus() argument
168 @Override public ShortDuration plus(ShortDuration addend) {
169 return addend;
219 @Override public ShortDuration plus(ShortDuration addend) { in plus() argument
220 return new PositiveShortDuration(picos + addend.picos); in plus()
/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()

1234567