Home
last modified time | relevance | path

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

12345

/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,
62 const MCFixup &Fixup, MCValue Target, in recordRelocation() argument
65 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
68 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
104 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, 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 …]
/external/llvm/lib/Target/BPF/MCTargetDesc/
DBPFAsmBackend.cpp34 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
40 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
66 void BPFAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
70 if (Fixup.getKind() == FK_SecRel_4 || Fixup.getKind() == FK_SecRel_8) { in applyFixup()
72 } else if (Fixup.getKind() == FK_Data_4 || Fixup.getKind() == FK_Data_8) { in applyFixup()
73 unsigned Size = Fixup.getKind() == FK_Data_4 ? 4 : 8; in applyFixup()
77 Data[Fixup.getOffset() + Idx] = uint8_t(Value >> (i * 8)); in applyFixup()
80 assert(Fixup.getKind() == FK_PCRel_2); in applyFixup()
83 Data[Fixup.getOffset() + 2] = Value & 0xFF; in applyFixup()
84 Data[Fixup.getOffset() + 3] = Value >> 8; in applyFixup()
[all …]
/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64MachObjectWriter.cpp28 bool getAArch64FixupKindMachOInfo(const MCFixup &Fixup, unsigned &RelocType,
38 const MCFixup &Fixup, MCValue Target,
44 const MCFixup &Fixup, unsigned &RelocType, const MCSymbolRefExpr *Sym, in getAArch64FixupKindMachOInfo() argument
49 switch ((unsigned)Fixup.getKind()) { in getAArch64FixupKindMachOInfo()
94 Asm.getContext().reportError(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().reportError(Fixup.getLoc(), in recordRelocation()
[all …]
DAArch64AsmBackend.cpp74 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
78 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
139 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
141 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
148 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
156 if (Ctx) Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
158 Ctx->reportError(Fixup.getLoc(), "fixup not sufficiently aligned"); in adjustFixupValue()
165 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
170 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
172 Ctx->reportError(Fixup.getLoc(), "fixup must be 2-byte aligned"); in adjustFixupValue()
[all …]
DAArch64ELFObjectWriter.cpp34 const MCFixup &Fixup, bool IsPCRel) const override;
49 const MCFixup &Fixup, in getRelocType() argument
65 switch ((unsigned)Fixup.getKind()) { in getRelocType()
67 Ctx.reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType()
87 Ctx.reportError(Fixup.getLoc(), in getRelocType()
103 Ctx.reportError(Fixup.getLoc(), "Unsupported pc-relative fixup kind"); in getRelocType()
107 switch ((unsigned)Fixup.getKind()) { in getRelocType()
109 Ctx.reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType()
135 Ctx.reportError(Fixup.getLoc(), in getRelocType()
150 Ctx.reportError(Fixup.getLoc(), in getRelocType()
[all …]
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsAsmBackend.cpp36 static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
39 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
72 Ctx->reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue()
82 Ctx->reportError(Fixup.getLoc(), "out of range PC19 fixup"); in adjustFixupValue()
119 Ctx->reportError(Fixup.getLoc(), "out of range PC7 fixup"); in adjustFixupValue()
129 Ctx->reportError(Fixup.getLoc(), "out of range PC10 fixup"); in adjustFixupValue()
139 Ctx->reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue()
148 Ctx->reportError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue()
155 Ctx->reportError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue()
161 Ctx->reportError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue()
[all …]
/external/swiftshader/third_party/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 …]
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMMachObjectWriter.cpp33 const MCFixup &Fixup,
42 const MCFixup &Fixup, MCValue Target,
56 const MCFixup &Fixup, MCValue Target,
143 const MCFixup &Fixup, in RecordARMScatteredHalfRelocation() argument
146 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset(); in RecordARMScatteredHalfRelocation()
147 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation()
154 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
169 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
197 switch ((unsigned)Fixup.getKind()) { in RecordARMScatteredHalfRelocation()
247 const MCFixup &Fixup, in RecordARMScatteredRelocation() argument
[all …]
DARMAsmBackend.cpp202 const char *ARMAsmBackend::reasonForFixupRelaxation(const MCFixup &Fixup, in reasonForFixupRelaxation() argument
204 switch ((unsigned)Fixup.getKind()) { in reasonForFixupRelaxation()
255 bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
258 return reasonForFixupRelaxation(Fixup, Value); in fixupNeedsRelaxation()
359 unsigned ARMAsmBackend::adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
363 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
416 Ctx->reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
437 Ctx->reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
468 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue()
545 Ctx->reportError(Fixup.getLoc(), "misaligned ARM call destination"); 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()
DARMAsmBackend.h44 const MCFixup &Fixup, const MCFragment *DF,
48 unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value, bool IsPCRel,
52 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
59 const char *reasonForFixupRelaxation(const MCFixup &Fixup,
62 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
DARMELFObjectWriter.cpp28 const MCFixup &Fixup,
38 const MCFixup &Fixup, bool IsPCRel) const override;
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()
156 switch ((unsigned)Fixup.getKind()) { in GetRelocTypeInner()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/MCTargetDesc/
DARMMachObjectWriter.cpp31 const MCFixup &Fixup,
39 const MCFixup &Fixup, MCValue Target,
50 const MCFragment *Fragment, const MCFixup &Fixup,
126 const MCFixup &Fixup, in RecordARMMovwMovtRelocation() argument
129 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset(); in RecordARMMovwMovtRelocation()
130 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMMovwMovtRelocation()
176 switch ((unsigned)Fixup.getKind()) { in RecordARMMovwMovtRelocation()
223 const MCFixup &Fixup, in RecordARMScatteredRelocation() argument
227 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset(); in RecordARMScatteredRelocation()
228 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredRelocation()
[all …]
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMachObjectWriter.cpp31 const MCFixup &Fixup, MCValue Target,
36 const MCFragment *Fragment, const MCFixup &Fixup,
45 const MCFixup &Fixup, MCValue Target, in recordRelocation() argument
50 RecordPPCRelocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
178 const MCFixup &Fixup) { in getFixupOffset() argument
179 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment) + Fixup.getOffset(); in getFixupOffset()
182 if (unsigned(Fixup.getKind()) == PPC::fixup_ppc_half16) in getFixupOffset()
193 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in recordScatteredRelocation() argument
196 const uint32_t FixupOffset = getFixupOffset(Layout, Fragment, Fixup); in recordScatteredRelocation()
197 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()
163 bool fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
/external/llvm/lib/Target/AMDGPU/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
95 void AMDGPUAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
99 switch ((unsigned)Fixup.getKind()) { in applyFixup()
105 uint16_t *Dst = (uint16_t*)(Data + Fixup.getOffset()); in applyFixup()
112 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
115 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
120 unsigned Offset = Fixup.getOffset(); in applyFixup()
/external/llvm/lib/Target/Sparc/MCTargetDesc/
DSparcELFObjectWriter.cpp33 const MCFixup &Fixup, bool IsPCRel) const override;
43 const MCFixup &Fixup, in getRelocType() argument
46 if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) { in getRelocType()
52 switch((unsigned)Fixup.getKind()) { in getRelocType()
68 switch((unsigned)Fixup.getKind()) { in getRelocType()
72 case FK_Data_2: return ((Fixup.getOffset() % 2) in getRelocType()
75 case FK_Data_4: return ((Fixup.getOffset() % 4) in getRelocType()
78 case FK_Data_8: return ((Fixup.getOffset() % 8) in getRelocType()
/external/swiftshader/third_party/LLVM/lib/MC/
DELFObjectWriter.h146 const MCFixup &Fixup,
153 const MCFixup &Fixup, in ExplicitRelSym() argument
265 const MCFragment *Fragment, const MCFixup &Fixup,
347 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
350 virtual void adjustFixupOffset(const MCFixup &Fixup, uint64_t &RelocOffset) { } in adjustFixupOffset() argument
363 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
387 const MCFixup &Fixup,
390 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
395 const MCFixup &Fixup, bool IsPCRel) const;
409 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
[all …]
/external/swiftshader/third_party/subzero/src/
DIceELFSection.h241 void addRelocation(const AssemblerFixup &Fixup) { Fixups.push_back(Fixup); } in addRelocation() argument
359 for (const AssemblerFixup &Fixup : Fixups) { in writeData() local
361 if (Fixup.isNullSymbol()) { in writeData()
363 } else if (Fixup.valueIsSymbol()) { in writeData()
364 Symbol = Fixup.getSymbolValue(); in writeData()
366 GlobalString Name = Fixup.symbol(); in writeData()
374 Rela.r_offset = Fixup.position(); in writeData()
375 Rela.setSymbolAndType(Symbol->getNumber(), Fixup.kind()); in writeData()
376 Rela.r_addend = Fixup.offset(); in writeData()
382 Rel.r_offset = Fixup.position(); in writeData()
[all …]
/external/llvm/lib/Target/WebAssembly/MCTargetDesc/
DWebAssemblyAsmBackend.cpp38 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
44 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
73 void WebAssemblyAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
76 const MCFixupKindInfo &Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
86 unsigned Offset = Fixup.getOffset(); in applyFixup()
DWebAssemblyELFObjectWriter.cpp29 const MCFixup &Fixup, bool IsPCRel) const override;
40 const MCFixup &Fixup, in getRelocType() argument
45 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in getRelocType()
49 switch (Fixup.getKind()) { in getRelocType()
/external/llvm/lib/MC/
DMCAssembler.cpp170 const MCFixup &Fixup, const MCFragment *DF, in evaluateFixup() argument
177 const MCExpr *Expr = Fixup.getValue(); in evaluateFixup()
178 if (!Expr->evaluateAsRelocatable(Target, &Layout, &Fixup)) { in evaluateFixup()
179 getContext().reportError(Fixup.getLoc(), "expected relocatable expression"); in evaluateFixup()
187 Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsPCRel; in evaluateFixup()
223 bool ShouldAlignPC = Backend.getFixupKindInfo(Fixup.getKind()).Flags & in evaluateFixup()
229 uint32_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset(); in evaluateFixup()
239 Backend.processFixupValue(*this, Layout, Fixup, DF, Target, Value, in evaluateFixup()
619 const MCFixup &Fixup) { in handleFixup() argument
623 bool IsPCRel = Backend.getFixupKindInfo(Fixup.getKind()).Flags & in handleFixup()
[all …]
/external/clang/lib/CodeGen/
DCGCleanup.cpp331 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups() local
332 if (Fixup.Destination == nullptr) continue; in ResolveAllBranchFixups()
342 if (Fixup.OptimisticBranchBlock == nullptr) { in ResolveAllBranchFixups()
343 createStoreInstBefore(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups()
345 Fixup.InitialBranch); in ResolveAllBranchFixups()
346 Fixup.InitialBranch->setSuccessor(0, CleanupEntry); in ResolveAllBranchFixups()
350 if (!CasesAdded.insert(Fixup.Destination).second) in ResolveAllBranchFixups()
353 Switch->addCase(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups()
354 Fixup.Destination); in ResolveAllBranchFixups()
394 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
88 void SystemZMCAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
91 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
92 unsigned Offset = Fixup.getOffset(); in applyFixup()
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/MCTargetDesc/
DMBlazeAsmBackend.cpp113 void ApplyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
122 void ELFMBlazeAsmBackend::ApplyFixup(const MCFixup &Fixup, char *Data, in ApplyFixup() argument
124 unsigned Size = getFixupKindSize(Fixup.getKind()); in ApplyFixup()
126 assert(Fixup.getOffset() + Size <= DataSize && in ApplyFixup()
129 char *data = Data + Fixup.getOffset(); in ApplyFixup()

12345