Home
last modified time | relevance | path

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

12

/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMMachObjectWriter.cpp33 const MCFixup &Fixup,
41 const MCFixup &Fixup, MCValue Target,
52 const MCFragment *Fragment, const MCFixup &Fixup,
144 const MCFixup &Fixup, in RecordARMScatteredHalfRelocation() argument
147 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset(); in RecordARMScatteredHalfRelocation()
148 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation()
156 Asm.getContext().FatalError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
170 Asm.getContext().FatalError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
196 switch ((unsigned)Fixup.getKind()) { in RecordARMScatteredHalfRelocation()
249 const MCFixup &Fixup, in RecordARMScatteredRelocation() argument
[all …]
DARMAsmBackend.cpp111 const MCFixup &Fixup, const MCFragment *DF, in processFixupValue() argument
117 if ((unsigned)Fixup.getKind() != ARM::fixup_arm_ldst_pcrel_12 && in processFixupValue()
118 (unsigned)Fixup.getKind() != ARM::fixup_t2_ldst_pcrel_12 && in processFixupValue()
119 (unsigned)Fixup.getKind() != ARM::fixup_arm_adr_pcrel_12 && in processFixupValue()
120 (unsigned)Fixup.getKind() != ARM::fixup_thumb_adr_pcrel_10 && in processFixupValue()
121 (unsigned)Fixup.getKind() != ARM::fixup_t2_adr_pcrel_12 && in processFixupValue()
122 (unsigned)Fixup.getKind() != ARM::fixup_arm_thumb_cp) { in processFixupValue()
132 if (A && ((unsigned)Fixup.getKind() == ARM::fixup_arm_thumb_blx || in processFixupValue()
133 (unsigned)Fixup.getKind() == ARM::fixup_arm_thumb_bl || in processFixupValue()
134 (unsigned)Fixup.getKind() == ARM::fixup_arm_blx || in processFixupValue()
[all …]
DARMELFObjectWriter.cpp28 const MCFixup &Fixup,
37 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
44 const MCFixup &Fixup,
71 const MCFixup &Fixup, in ExplicitRelSym() argument
80 RelocType = GetRelocTypeInner(Target, Fixup, IsPCRel); in ExplicitRelSym()
151 const MCFixup &Fixup, in GetRelocType() argument
155 return GetRelocTypeInner(Target, Fixup, IsPCRel); in GetRelocType()
159 const MCFixup &Fixup, in GetRelocTypeInner() argument
166 switch ((unsigned)Fixup.getKind()) { in GetRelocTypeInner()
219 switch ((unsigned)Fixup.getKind()) { in GetRelocTypeInner()
/external/llvm/lib/Target/X86/MCTargetDesc/
DX86MachObjectWriter.cpp30 const MCFixup &Fixup,
38 const MCFixup &Fixup,
46 const MCFixup &Fixup,
53 const MCFixup &Fixup,
64 const MCFragment *Fragment, const MCFixup &Fixup, in RecordRelocation() argument
67 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordRelocation()
70 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordRelocation()
103 const MCFixup &Fixup, in RecordX86_64Relocation() argument
106 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation()
107 unsigned IsRIPRel = isFixupKindRIPRel(Fixup.getKind()); in RecordX86_64Relocation()
[all …]
DX86ELFObjectWriter.cpp27 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
42 const MCFixup &Fixup, in GetRelocType() argument
53 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
101 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
135 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
158 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
DX86AsmBackend.cpp93 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument
95 unsigned Size = 1 << getFixupKindLog2Size(Fixup.getKind()); in applyFixup()
97 assert(Fixup.getOffset() + Size <= DataSize && in applyFixup()
108 Data[Fixup.getOffset() + i] = uint8_t(Value >> (i * 8)); in applyFixup()
113 bool fixupNeedsRelaxation(const MCFixup &Fixup,
255 bool X86AsmBackend::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()
77 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
84 const MCFixup &Fixup,
86 virtual void adjustFixupOffset(const MCFixup &Fixup,
DMCAsmBackend.h96 const MCFixup &Fixup, const MCFragment *DF, in processFixupValue() argument
105 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
121 virtual bool fixupNeedsRelaxation(const MCFixup &Fixup,
DMCMachObjectWriter.h68 const MCFixup &Fixup,
204 const MCFixup &Fixup, MCValue Target,
211 const MCFixup &Fixup, MCValue Target,
215 const MCFragment *Fragment, const MCFixup &Fixup,
DMCAssembler.h139 void addFixup(MCFixup Fixup) { in addFixup() argument
141 assert((Fixups.empty() || Fixup.getOffset() > Fixups.back().getOffset()) && in addFixup()
143 Fixups.push_back(Fixup); in addFixup()
737 const MCFixup &Fixup, const MCFragment *DF,
742 bool fixupNeedsRelaxation(const MCFixup &Fixup, const MCInstFragment *DF,
767 MCFragment &F, const MCFixup &Fixup);
DMCObjectWriter.h77 const MCFixup &Fixup, MCValue Target,
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCELFObjectWriter.cpp24 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
27 virtual void adjustFixupOffset(const MCFixup &Fixup, uint64_t &RelocOffset);
40 const MCFixup &Fixup, in GetRelocType() argument
47 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
58 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
87 adjustFixupOffset(const MCFixup &Fixup, uint64_t &RelocOffset) { in adjustFixupOffset() argument
88 switch ((unsigned)Fixup.getKind()) { in adjustFixupOffset()
DPPCAsmBackend.cpp57 const MCFragment *Fragment, const MCFixup &Fixup, in RecordRelocation() argument
91 bool fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
129 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument
155 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument
157 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup()
160 unsigned Offset = Fixup.getOffset(); 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/clang/lib/CodeGen/
DCGCleanup.cpp279 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups() local
280 if (Fixup.Destination == 0) continue; in ResolveAllBranchFixups()
290 if (Fixup.OptimisticBranchBlock == 0) { in ResolveAllBranchFixups()
291 new llvm::StoreInst(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups()
293 Fixup.InitialBranch); in ResolveAllBranchFixups()
294 Fixup.InitialBranch->setSuccessor(0, CleanupEntry); in ResolveAllBranchFixups()
298 if (!CasesAdded.insert(Fixup.Destination)) continue; in ResolveAllBranchFixups()
300 Switch->addCase(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups()
301 Fixup.Destination); in ResolveAllBranchFixups()
341 BranchFixup &Fixup = EHStack.getBranchFixup(I); in ResolveBranchFixups() local
[all …]
/external/llvm/lib/MC/
DMCAssembler.cpp247 const MCFixup &Fixup, const MCFragment *DF, in evaluateFixup() argument
251 if (!Fixup.getValue()->EvaluateAsRelocatable(Target, Layout)) in evaluateFixup()
252 getContext().FatalError(Fixup.getLoc(), "expected relocatable expression"); in evaluateFixup()
255 Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsPCRel; in evaluateFixup()
294 bool ShouldAlignPC = Backend.getFixupKindInfo(Fixup.getKind()).Flags & in evaluateFixup()
300 uint32_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset(); in evaluateFixup()
310 Backend.processFixupValue(*this, Layout, Fixup, DF, Target, Value, in evaluateFixup()
548 const MCFixup &Fixup) { in handleFixup() argument
552 if (!evaluateFixup(Layout, Fixup, &F, Target, FixedValue)) { in handleFixup()
556 getWriter().RecordRelocation(*this, Layout, &F, Fixup, Target, FixedValue); in handleFixup()
[all …]
DMCELFObjectTargetWriter.cpp31 const MCFixup &Fixup, in ExplicitRelSym() argument
37 void MCELFObjectTargetWriter::adjustFixupOffset(const MCFixup &Fixup, in adjustFixupOffset() argument
DELFObjectWriter.cpp125 const MCFixup &Fixup,
132 const MCFixup &Fixup, in ExplicitRelSym() argument
134 return TargetObjectWriter->ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel); in ExplicitRelSym()
144 unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup, in GetRelocType() argument
147 return TargetObjectWriter->GetRelocType(Target, Fixup, IsPCRel, in GetRelocType()
256 const MCFixup &Fixup,
631 const MCFixup &Fixup, in SymbolToReloc() argument
655 return ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel); in SymbolToReloc()
678 return ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel); in SymbolToReloc()
684 return ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel); in SymbolToReloc()
[all …]
DWinCOFFObjectWriter.cpp179 const MCFixup &Fixup,
634 const MCFixup &Fixup, in RecordRelocation() argument
665 int64_t b = Layout.getFragmentOffset(Fragment) + Fixup.getOffset(); in RecordRelocation()
692 Reloc.Data.VirtualAddress += Fixup.getOffset(); in RecordRelocation()
694 unsigned FixupKind = Fixup.getKind(); in RecordRelocation()
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsAsmBackend.cpp83 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument
85 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
92 unsigned Offset = Fixup.getOffset(); in applyFixup()
183 bool fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
DMipsELFObjectWriter.cpp41 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
48 const MCFixup &Fixup,
77 const MCFixup &Fixup, in ExplicitRelSym() argument
90 const MCFixup &Fixup, in GetRelocType() argument
96 unsigned Kind = (unsigned)Fixup.getKind(); in GetRelocType()
199 MipsGetSymAndOffset(*R->Fixup); in sortRelocs()
DMipsBaseInfo.h205 MipsGetSymAndOffset(const MCFixup &Fixup) { in MipsGetSymAndOffset() argument
206 MCFixupKind FixupKind = Fixup.getKind(); in MipsGetSymAndOffset()
212 const MCExpr *Expr = Fixup.getValue(); in MipsGetSymAndOffset()
/external/openssl/patches/
DREADME3 Fixup sources under the apps/ directory that are not built under the android environment.
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp3808 LSRFixup &Fixup = *I; in NarrowSearchSpaceByCollapsingUnrolledCode() local
3809 if (Fixup.LUIdx == LUIdx) { in NarrowSearchSpaceByCollapsingUnrolledCode()
3810 Fixup.LUIdx = LUThatHas - &Uses.front(); in NarrowSearchSpaceByCollapsingUnrolledCode()
3811 Fixup.Offset += F.AM.BaseOffs; in NarrowSearchSpaceByCollapsingUnrolledCode()
3813 if (LUThatHas->Offsets.back() != Fixup.Offset) { in NarrowSearchSpaceByCollapsingUnrolledCode()
3814 LUThatHas->Offsets.push_back(Fixup.Offset); in NarrowSearchSpaceByCollapsingUnrolledCode()
3815 if (Fixup.Offset > LUThatHas->MaxOffset) in NarrowSearchSpaceByCollapsingUnrolledCode()
3816 LUThatHas->MaxOffset = Fixup.Offset; in NarrowSearchSpaceByCollapsingUnrolledCode()
3817 if (Fixup.Offset < LUThatHas->MinOffset) in NarrowSearchSpaceByCollapsingUnrolledCode()
3818 LUThatHas->MinOffset = Fixup.Offset; in NarrowSearchSpaceByCollapsingUnrolledCode()
[all …]

12