Home
last modified time | relevance | path

Searched refs:Fixup (Results 1 – 25 of 43) sorted by relevance

12

/external/llvm/lib/Target/X86/MCTargetDesc/
DX86MachObjectWriter.cpp32 const MCFixup &Fixup,
40 const MCFixup &Fixup,
48 const MCFixup &Fixup,
55 const MCFixup &Fixup,
66 const MCFragment *Fragment, const MCFixup &Fixup, in RecordRelocation() argument
69 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordRelocation()
72 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordRelocation()
105 const MCFixup &Fixup, in RecordX86_64Relocation() argument
108 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation()
109 unsigned IsRIPRel = isFixupKindRIPRel(Fixup.getKind()); in RecordX86_64Relocation()
[all …]
DX86ELFObjectWriter.cpp27 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
43 const MCFixup &Fixup, in GetRelocType() argument
54 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
102 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
136 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
159 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
DX86AsmBackend.cpp94 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument
96 unsigned Size = 1 << getFixupKindLog2Size(Fixup.getKind()); in applyFixup()
98 assert(Fixup.getOffset() + Size <= DataSize && in applyFixup()
109 Data[Fixup.getOffset() + i] = uint8_t(Value >> (i * 8)); in applyFixup()
114 bool fixupNeedsRelaxation(const MCFixup &Fixup,
256 bool X86AsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMMachObjectWriter.cpp34 const MCFixup &Fixup,
42 const MCFixup &Fixup, MCValue Target,
59 const MCFragment *Fragment, const MCFixup &Fixup,
151 const MCFixup &Fixup, in RecordARMScatteredHalfRelocation() argument
154 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset(); in RecordARMScatteredHalfRelocation()
155 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation()
163 Asm.getContext().FatalError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
177 Asm.getContext().FatalError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
203 switch ((unsigned)Fixup.getKind()) { in RecordARMScatteredHalfRelocation()
256 const MCFixup &Fixup, in RecordARMScatteredRelocation() argument
[all …]
DARMAsmBackend.cpp114 const MCFixup &Fixup, const MCFragment *DF,
119 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
124 bool fixupNeedsRelaxation(const MCFixup &Fixup,
167 bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
171 switch ((unsigned)Fixup.getKind()) { in fixupNeedsRelaxation()
254 static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
256 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
310 Ctx->FatalError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
334 Ctx->FatalError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
488 Ctx->FatalError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
[all …]
DARMELFObjectWriter.cpp28 const MCFixup &Fixup,
37 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
43 const MCFixup &Fixup,
65 const MCFixup &Fixup, in ExplicitRelSym() argument
74 RelocType = GetRelocTypeInner(Target, Fixup, IsPCRel); in ExplicitRelSym()
146 const MCFixup &Fixup, in GetRelocType() argument
150 return GetRelocTypeInner(Target, Fixup, IsPCRel); in GetRelocType()
154 const MCFixup &Fixup, in GetRelocTypeInner() argument
161 switch ((unsigned)Fixup.getKind()) { in GetRelocTypeInner()
218 switch ((unsigned)Fixup.getKind()) { in GetRelocTypeInner()
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCELFObjectWriter.cpp28 const MCFixup &Fixup,
30 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
34 const MCFixup &Fixup,
36 virtual void adjustFixupOffset(const MCFixup &Fixup, uint64_t &RelocOffset);
54 RE.r_addend, *RE.Fixup) {} in PPCELFRelocationEntry()
65 const MCFixup &Fixup, in getRelocTypeInner() argument
74 switch ((unsigned)Fixup.getKind()) { in getRelocTypeInner()
90 switch ((unsigned)Fixup.getKind()) { in getRelocTypeInner()
224 const MCFixup &Fixup, in GetRelocType() argument
228 return getRelocTypeInner(Target, Fixup, IsPCRel); in GetRelocType()
[all …]
DPPCAsmBackend.cpp65 const MCFragment *Fragment, const MCFixup &Fixup, in RecordRelocation() argument
101 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument
103 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup()
106 unsigned Offset = Fixup.getOffset(); in applyFixup()
120 bool fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
/external/llvm/include/llvm/MC/
DMCELFObjectWriter.h36 const MCFixup *Fixup; member
39 : r_offset(0), Index(0), Type(0), Symbol(0), r_addend(0), Fixup(0) {} in ELFRelocationEntry()
42 const MCSymbol *Sym, uint64_t Addend, const MCFixup &Fixup) in ELFRelocationEntry()
44 r_addend(Addend), Fixup(&Fixup) {} in ELFRelocationEntry()
79 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
85 const MCFixup &Fixup,
88 const MCFixup &Fixup,
90 virtual void adjustFixupOffset(const MCFixup &Fixup,
DMCAsmBackend.h106 const MCFixup &Fixup, const MCFragment *DF, in processFixupValue() argument
115 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
131 virtual bool fixupNeedsRelaxation(const MCFixup &Fixup,
DMCMachObjectWriter.h75 const MCFixup &Fixup,
223 const MCFixup &Fixup, MCValue Target,
230 const MCFixup &Fixup, MCValue Target,
234 const MCFragment *Fragment, const MCFixup &Fixup,
/external/llvm/lib/Target/R600/MCTargetDesc/
DAMDGPUAsmBackend.cpp33 const MCFixup &Fixup, in RecordRelocation() argument
49 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
51 virtual bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
84 void AMDGPUAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
87 uint16_t *Dst = (uint16_t*)(Data + Fixup.getOffset()); in applyFixup()
88 assert(Fixup.getKind() == FK_PCRel_4); in applyFixup()
/external/llvm/lib/Target/MBlaze/MCTargetDesc/
DMBlazeAsmBackend.cpp55 bool fixupNeedsRelaxation(const MCFixup &Fixup,
89 bool MBlazeAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
124 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
132 void ELFMBlazeAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
134 unsigned Size = getFixupKindSize(Fixup.getKind()); in applyFixup()
136 assert(Fixup.getOffset() + Size <= DataSize && in applyFixup()
139 char *data = Data + Fixup.getOffset(); in applyFixup()
DMBlazeELFObjectWriter.cpp24 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
38 const MCFixup &Fixup, in GetRelocType() argument
45 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
56 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64AsmBackend.cpp45 const MCFixup &Fixup, const MCFragment *DF,
53 const MCFixup &Fixup, in processFixupValue() argument
69 if ((uint32_t)Fixup.getKind() == AArch64::fixup_a64_adr_prel_page || in processFixupValue()
70 (uint32_t)Fixup.getKind() == AArch64::fixup_a64_adr_prel_got_page || in processFixupValue()
71 (uint32_t)Fixup.getKind() == AArch64::fixup_a64_adr_gottprel_page || in processFixupValue()
72 (uint32_t)Fixup.getKind() == AArch64::fixup_a64_tlsdesc_adr_page) in processFixupValue()
88 bool fixupNeedsRelaxation(const MCFixup &Fixup,
178 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument
180 unsigned NumBytes = getFixupKindInfo(Fixup.getKind()).TargetSize / 8; in applyFixup()
181 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup()
[all …]
DAArch64ELFObjectWriter.cpp31 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
47 const MCFixup &Fixup, in GetRelocType() argument
53 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
97 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
/external/clang/lib/CodeGen/
DCGCleanup.cpp285 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups() local
286 if (Fixup.Destination == 0) continue; in ResolveAllBranchFixups()
296 if (Fixup.OptimisticBranchBlock == 0) { in ResolveAllBranchFixups()
297 new llvm::StoreInst(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups()
299 Fixup.InitialBranch); in ResolveAllBranchFixups()
300 Fixup.InitialBranch->setSuccessor(0, CleanupEntry); in ResolveAllBranchFixups()
304 if (!CasesAdded.insert(Fixup.Destination)) continue; in ResolveAllBranchFixups()
306 Switch->addCase(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups()
307 Fixup.Destination); in ResolveAllBranchFixups()
347 BranchFixup &Fixup = EHStack.getBranchFixup(I); in ResolveBranchFixups() local
[all …]
/external/llvm/lib/MC/
DMCELFObjectTargetWriter.cpp30 const MCFixup &Fixup, in ExplicitRelSym() argument
36 const MCFixup &Fixup, in undefinedExplicitRelSym() argument
42 void MCELFObjectTargetWriter::adjustFixupOffset(const MCFixup &Fixup, in adjustFixupOffset() argument
DMCAssembler.cpp332 const MCFixup &Fixup, const MCFragment *DF, in evaluateFixup() argument
336 if (!Fixup.getValue()->EvaluateAsRelocatable(Target, Layout)) in evaluateFixup()
337 getContext().FatalError(Fixup.getLoc(), "expected relocatable expression"); in evaluateFixup()
340 Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsPCRel; in evaluateFixup()
379 bool ShouldAlignPC = Backend.getFixupKindInfo(Fixup.getKind()).Flags & in evaluateFixup()
385 uint32_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset(); in evaluateFixup()
395 Backend.processFixupValue(*this, Layout, Fixup, DF, Target, Value, in evaluateFixup()
715 const MCFixup &Fixup) { in handleFixup() argument
719 if (!evaluateFixup(Layout, Fixup, &F, Target, FixedValue)) { in handleFixup()
723 getWriter().RecordRelocation(*this, Layout, &F, Fixup, Target, FixedValue); in handleFixup()
[all …]
DELFObjectWriter.cpp124 const MCFixup &Fixup,
131 const MCFixup &Fixup, in ExplicitRelSym() argument
133 return TargetObjectWriter->ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel); in ExplicitRelSym()
136 const MCFixup &Fixup, in undefinedExplicitRelSym() argument
138 return TargetObjectWriter->undefinedExplicitRelSym(Target, Fixup, in undefinedExplicitRelSym()
146 unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup, in GetRelocType() argument
149 return TargetObjectWriter->GetRelocType(Target, Fixup, IsPCRel, in GetRelocType()
258 const MCFixup &Fixup,
640 const MCFixup &Fixup, in SymbolToReloc() argument
650 return undefinedExplicitRelSym(Target, Fixup, IsPCRel); in SymbolToReloc()
[all …]
DWinCOFFObjectWriter.cpp177 const MCFixup &Fixup,
633 const MCFixup &Fixup, in RecordRelocation() argument
664 int64_t b = Layout.getFragmentOffset(Fragment) + Fixup.getOffset(); in RecordRelocation()
691 Reloc.Data.VirtualAddress += Fixup.getOffset(); in RecordRelocation()
693 unsigned FixupKind = Fixup.getKind(); in RecordRelocation()
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsBaseInfo.h125 MipsGetSymAndOffset(const MCFixup &Fixup) { in MipsGetSymAndOffset() argument
126 MCFixupKind FixupKind = Fixup.getKind(); in MipsGetSymAndOffset()
132 const MCExpr *Expr = Fixup.getValue(); in MipsGetSymAndOffset()
DMipsAsmBackend.cpp103 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument
105 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
112 unsigned Offset = Fixup.getOffset(); in applyFixup()
215 bool fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
DMipsELFObjectWriter.cpp42 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
48 const MCFixup &Fixup,
66 const MCFixup &Fixup, in ExplicitRelSym() argument
79 const MCFixup &Fixup, in GetRelocType() argument
85 unsigned Kind = (unsigned)Fixup.getKind(); in GetRelocType()
233 MipsGetSymAndOffset(*R->Fixup); in sortRelocs()
/external/openssl/patches/
DREADME3 Fixup sources under the apps/ directory that are not built under the android environment.

12