Home
last modified time | relevance | path

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

123

/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64MachObjectWriter.cpp28 bool getAArch64FixupKindMachOInfo(const MCFixup &Fixup, unsigned &RelocType,
39 const MCFixup &Fixup, MCValue Target,
45 const MCFixup &Fixup, unsigned &RelocType, const MCSymbolRefExpr *Sym, in getAArch64FixupKindMachOInfo() argument
50 switch ((unsigned)Fixup.getKind()) { in getAArch64FixupKindMachOInfo()
95 Asm.getContext().FatalError(Fixup.getLoc(), in getAArch64FixupKindMachOInfo()
146 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in RecordRelocation() argument
148 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordRelocation()
156 unsigned Kind = Fixup.getKind(); in RecordRelocation()
159 FixupOffset += Fixup.getOffset(); in RecordRelocation()
175 Asm.getContext().FatalError(Fixup.getLoc(), in RecordRelocation()
[all …]
DAArch64AsmBackend.cpp70 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
74 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
204 void AArch64AsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
207 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
210 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
212 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup()
217 unsigned Offset = Fixup.getOffset(); in applyFixup()
230 bool AArch64AsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
469 const MCFixup &Fixup, const MCFragment *DF,
473 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
[all …]
/external/llvm/lib/Target/X86/MCTargetDesc/
DX86MachObjectWriter.cpp32 const MCFixup &Fixup,
40 const MCFixup &Fixup,
48 const MCFixup &Fixup,
53 const MCFragment *Fragment, const MCFixup &Fixup,
64 const MCFixup &Fixup, MCValue Target, in RecordRelocation() argument
67 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordRelocation()
70 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordRelocation()
101 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in RecordX86_64Relocation() argument
103 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation()
104 unsigned IsRIPRel = isFixupKindRIPRel(Fixup.getKind()); in RecordX86_64Relocation()
[all …]
DX86WinCOFFObjectWriter.cpp30 unsigned getRelocType(const MCValue &Target, const MCFixup &Fixup,
43 const MCFixup &Fixup, in getRelocType() argument
46 unsigned FixupKind = IsCrossSection ? FK_PCRel_4 : Fixup.getKind(); in getRelocType()
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMMachObjectWriter.cpp33 const MCFixup &Fixup,
42 const MCFixup &Fixup, MCValue Target,
59 const MCFixup &Fixup, MCValue Target,
146 const MCFixup &Fixup, in RecordARMScatteredHalfRelocation() argument
149 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset(); in RecordARMScatteredHalfRelocation()
150 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation()
158 Asm.getContext().FatalError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
172 Asm.getContext().FatalError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
198 switch ((unsigned)Fixup.getKind()) { in RecordARMScatteredHalfRelocation()
248 const MCFixup &Fixup, in RecordARMScatteredRelocation() argument
[all …]
DARMAsmBackend.cpp183 bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
186 switch ((unsigned)Fixup.getKind()) { in fixupNeedsRelaxation()
320 static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
323 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
376 Ctx->FatalError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
397 Ctx->FatalError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
426 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue()
504 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue()
546 Ctx->FatalError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
565 Ctx->FatalError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
[all …]
DARMWinCOFFObjectWriter.cpp31 unsigned getRelocType(const MCValue &Target, const MCFixup &Fixup,
39 const MCFixup &Fixup, in getRelocType() argument
48 switch (static_cast<unsigned>(Fixup.getKind())) { in getRelocType()
50 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType()
79 bool ARMWinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation()
80 return static_cast<unsigned>(Fixup.getKind()) != ARM::fixup_t2_movt_hi16; in recordRelocation()
DARMELFObjectWriter.cpp28 const MCFixup &Fixup,
37 unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
71 const MCFixup &Fixup, in GetRelocType() argument
73 return GetRelocTypeInner(Target, Fixup, IsPCRel); in GetRelocType()
77 const MCFixup &Fixup, in GetRelocTypeInner() argument
83 switch ((unsigned)Fixup.getKind()) { in GetRelocTypeInner()
151 switch ((unsigned)Fixup.getKind()) { in GetRelocTypeInner()
DARMAsmBackend.h43 const MCFixup &Fixup, const MCFragment *DF,
47 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
54 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsAsmBackend.cpp33 static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
36 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
71 Ctx->FatalError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue()
78 Ctx->FatalError(Fixup.getLoc(), "out of range PC19 fixup"); in adjustFixupValue()
112 Ctx->FatalError(Fixup.getLoc(), "out of range PC7 fixup"); in adjustFixupValue()
120 Ctx->FatalError(Fixup.getLoc(), "out of range PC10 fixup"); in adjustFixupValue()
128 Ctx->FatalError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue()
135 Ctx->FatalError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue()
143 Ctx->FatalError(Fixup.getLoc(), "out of range PC21 fixup"); in adjustFixupValue()
151 Ctx->FatalError(Fixup.getLoc(), "out of range PC26 fixup"); in adjustFixupValue()
[all …]
DMipsAsmBackend.h41 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
63 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
84 const MCFixup &Fixup, const MCFragment *DF,
/external/llvm/lib/Target/BPF/MCTargetDesc/
DBPFAsmBackend.cpp31 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
37 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
62 void BPFAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
66 if (Fixup.getKind() == FK_SecRel_4 || Fixup.getKind() == FK_SecRel_8) { in applyFixup()
70 assert(Fixup.getKind() == FK_PCRel_2); in applyFixup()
71 *(uint16_t *)&Data[Fixup.getOffset() + 2] = (uint16_t)((Value - 8) / 8); in applyFixup()
DBPFELFObjectWriter.cpp25 unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
37 const MCFixup &Fixup, in GetRelocType() argument
40 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMachObjectWriter.cpp31 const MCFixup &Fixup, MCValue Target,
36 const MCFragment *Fragment, const MCFixup &Fixup,
46 const MCFixup &Fixup, MCValue Target, in RecordRelocation() argument
51 RecordPPCRelocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordRelocation()
179 const MCFixup &Fixup) { in getFixupOffset() argument
180 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment) + Fixup.getOffset(); in getFixupOffset()
183 if (unsigned(Fixup.getKind()) == PPC::fixup_ppc_half16) in getFixupOffset()
194 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in RecordScatteredRelocation() argument
197 const uint32_t FixupOffset = getFixupOffset(Layout, Fragment, Fixup); in RecordScatteredRelocation()
198 const MCFixupKind FK = Fixup.getKind(); in RecordScatteredRelocation()
[all …]
DPPCAsmBackend.cpp116 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument
118 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup()
121 unsigned Offset = Fixup.getOffset(); in applyFixup()
122 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
134 const MCFixup &Fixup, const MCFragment *DF, in processFixupValue() argument
137 switch ((PPC::Fixups)Fixup.getKind()) { in processFixupValue()
162 bool fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
DPPCMCExpr.cpp95 const MCFixup *Fixup) const { in EvaluateAsRelocatableImpl()
98 if (!getSubExpr()->EvaluateAsRelocatable(Value, Layout, Fixup)) in EvaluateAsRelocatableImpl()
103 if ((Fixup == nullptr || (unsigned)Fixup->getKind() != PPC::fixup_ppc_half16) && in EvaluateAsRelocatableImpl()
/external/llvm/lib/Target/R600/MCTargetDesc/
DAMDGPUAsmBackend.cpp33 const MCFragment *Fragment, const MCFixup &Fixup, in RecordRelocation() argument
49 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
51 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
74 void AMDGPUAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
78 switch ((unsigned)Fixup.getKind()) { in applyFixup()
81 uint16_t *Dst = (uint16_t*)(Data + Fixup.getOffset()); in applyFixup()
87 uint32_t *Dst = (uint32_t*)(Data + Fixup.getOffset()); in applyFixup()
93 uint32_t *Dst = (uint32_t*)(Data + Fixup.getOffset()); in applyFixup()
/external/llvm/lib/Target/Sparc/MCTargetDesc/
DSparcELFObjectWriter.cpp32 unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
38 const MCFixup &Fixup, in GetRelocType() argument
41 if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) { in GetRelocType()
47 switch((unsigned)Fixup.getKind()) { in GetRelocType()
63 switch((unsigned)Fixup.getKind()) { in GetRelocType()
67 case FK_Data_2: return ((Fixup.getOffset() % 2) in GetRelocType()
70 case FK_Data_4: return ((Fixup.getOffset() % 4) in GetRelocType()
73 case FK_Data_8: return ((Fixup.getOffset() % 8) in GetRelocType()
DSparcAsmBackend.cpp158 const MCFixup &Fixup, const MCFragment *DF, in processFixupValue() argument
161 switch ((Sparc::Fixups)Fixup.getKind()) { in processFixupValue()
194 bool fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
231 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument
234 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup()
237 unsigned Offset = Fixup.getOffset(); in applyFixup()
/external/mesa3d/src/gallium/drivers/radeon/MCTargetDesc/
DSIMCCodeEmitter.cpp88 SmallVectorImpl<MCFixup> &Fixup) const;
92 SmallVectorImpl<MCFixup> &Fixup) const;
97 SmallVectorImpl<MCFixup> &Fixup) const;
101 SmallVectorImpl<MCFixup> &Fixup) const;
169 SmallVectorImpl<MCFixup> &Fixup) const { in GPR2AlignEncode()
175 SmallVectorImpl<MCFixup> &Fixup) const { in GPR4AlignEncode()
181 SmallVectorImpl<MCFixup> &Fixup) const { in i32LiteralEncode()
198 SmallVectorImpl<MCFixup> &Fixup) const { in SMRDmemriEncode()
207 (getMachineOpValue(MI, OffsetOp, Fixup) & SMRD_OFFSET_MASK) in SMRDmemriEncode()
209 | ((GPR2AlignEncode(MI, OpNo, Fixup) & SMRD_SBASE_MASK) << SMRD_SBASE_SHIFT) in SMRDmemriEncode()
DAMDGPUAsmBackend.cpp32 const MCFixup &Fixup, in RecordRelocation() argument
48 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument
50 virtual bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
/external/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonELFObjectWriter.cpp30 unsigned GetRelocType(MCValue const &Target, MCFixup const &Fixup,
41 MCFixup const &Fixup, in GetRelocType() argument
44 llvm::MCFixupKind Kind = Fixup.getKind(); in GetRelocType()
48 DEBUG(dbgs() << "unrecognized relocation " << Fixup.getKind() << "\n"); in GetRelocType()
/external/clang/lib/CodeGen/
DCGCleanup.cpp287 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups() local
288 if (Fixup.Destination == nullptr) continue; in ResolveAllBranchFixups()
298 if (Fixup.OptimisticBranchBlock == nullptr) { in ResolveAllBranchFixups()
299 new llvm::StoreInst(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups()
301 Fixup.InitialBranch); in ResolveAllBranchFixups()
302 Fixup.InitialBranch->setSuccessor(0, CleanupEntry); in ResolveAllBranchFixups()
306 if (!CasesAdded.insert(Fixup.Destination).second) in ResolveAllBranchFixups()
309 Switch->addCase(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups()
310 Fixup.Destination); in ResolveAllBranchFixups()
350 BranchFixup &Fixup = EHStack.getBranchFixup(I); in ResolveBranchFixups() local
[all …]
/external/llvm/lib/Target/SystemZ/MCTargetDesc/
DSystemZMCAsmBackend.cpp51 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
56 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
87 void SystemZMCAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
90 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
91 unsigned Offset = Fixup.getOffset(); in applyFixup()
/external/llvm/include/llvm/MC/
DMCAsmBackend.h78 const MCFixup &Fixup, const MCFragment *DF, in processFixupValue() argument
85 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
100 virtual bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,

123