Home
last modified time | relevance | path

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

123456

/freebsd-12.1/contrib/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRAsmBackend.cpp107 adjustBranch(Size, Fixup, Value, Ctx); in fixup_call()
206 ldi::fixup(Size, Fixup, Value, Ctx); in lo8()
212 ldi::fixup(Size, Fixup, Value, Ctx); in hi8()
218 ldi::fixup(Size, Fixup, Value, Ctx); in hh8()
224 ldi::fixup(Size, Fixup, Value, Ctx); in ms8()
240 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
331 adjust::fixup_6_adiw(Fixup, Value, Ctx); in adjustFixupValue()
335 adjust::fixup_port5(Fixup, Value, Ctx); in adjustFixupValue()
339 adjust::fixup_port6(Fixup, Value, Ctx); in adjustFixupValue()
378 unsigned Offset = Fixup.getOffset(); in applyFixup()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64ELFObjectWriter.cpp134 Ctx.reportError(Fixup.getLoc(), in getRelocType()
142 Ctx.reportError(Fixup.getLoc(), in getRelocType()
164 Ctx.reportError(Fixup.getLoc(), in getRelocType()
198 Ctx.reportError(Fixup.getLoc(), in getRelocType()
222 Ctx.reportError(Fixup.getLoc(), in getRelocType()
237 Ctx.reportError(Fixup.getLoc(), in getRelocType()
252 Ctx.reportError(Fixup.getLoc(), in getRelocType()
311 Ctx.reportError(Fixup.getLoc(), in getRelocType()
356 Ctx.reportError(Fixup.getLoc(), in getRelocType()
371 Ctx.reportError(Fixup.getLoc(), in getRelocType()
[all …]
H A DAArch64MachObjectWriter.cpp58 switch ((unsigned)Fixup.getKind()) { in getAArch64FixupKindMachOInfo()
103 Asm.getContext().reportError(Fixup.getLoc(), in getAArch64FixupKindMachOInfo()
164 unsigned Kind = Fixup.getKind(); in recordRelocation()
167 FixupOffset += Fixup.getOffset(); in recordRelocation()
183 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
194 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
213 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
266 Fixup.getLoc(), in recordRelocation()
273 Fixup.getLoc(), in recordRelocation()
313 Fixup.getLoc(), in recordRelocation()
[all …]
H A DAArch64AsmBackend.cpp75 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
82 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
151 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
158 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
169 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
180 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
187 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
225 Ctx.reportError(Fixup.getLoc(), in adjustFixupValue()
362 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
365 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
[all …]
H A DAArch64WinCOFFObjectWriter.cpp37 const MCFixup &Fixup, bool IsCrossSection,
46 MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, in getRelocType() argument
50 const MCExpr *Expr = Fixup.getValue(); in getRelocType()
52 switch (static_cast<unsigned>(Fixup.getKind())) { in getRelocType()
54 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType()
117 bool AArch64WinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation()
/freebsd-12.1/contrib/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFAsmBackend.cpp30 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
39 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
75 if (Fixup.getKind() == FK_SecRel_4 || Fixup.getKind() == FK_SecRel_8) { in applyFixup()
78 Ctx.reportError(Fixup.getLoc(), in applyFixup()
82 } else if (Fixup.getKind() == FK_Data_4) { in applyFixup()
84 } else if (Fixup.getKind() == FK_Data_8) { in applyFixup()
86 } else if (Fixup.getKind() == FK_PCRel_4) { in applyFixup()
89 Data[Fixup.getOffset() + 1] = 0x10; in applyFixup()
90 support::endian::write32le(&Data[Fixup.getOffset() + 4], Value); in applyFixup()
92 Data[Fixup.getOffset() + 1] = 0x1; in applyFixup()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp32 const MCFixup &Fixup,
40 const MCFixup &Fixup,
48 const MCFixup &Fixup,
158 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation()
191 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation()
316 Fixup.getLoc(), in RecordX86_64Relocation()
343 unsigned Kind = Fixup.getKind(); in RecordX86_64Relocation()
346 Fixup.getLoc(), in RecordX86_64Relocation()
383 Fixup.getLoc(), in recordScatteredRelocation()
399 Fixup.getLoc(), in recordScatteredRelocation()
[all …]
H A DX86WinCOFFObjectWriter.cpp31 const MCFixup &Fixup, bool IsCrossSection,
43 const MCFixup &Fixup, in getRelocType() argument
46 unsigned FixupKind = Fixup.getKind(); in getRelocType()
49 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType()
82 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
104 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp35 const MCFixup &Fixup,
145 const MCFixup &Fixup, in RecordARMScatteredHalfRelocation() argument
151 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
165 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
180 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
208 switch ((unsigned)Fixup.getKind()) { in RecordARMScatteredHalfRelocation()
266 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation()
279 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation()
295 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation()
390 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
[all …]
H A DARMAsmBackend.cpp208 switch ((unsigned)Fixup.getKind()) { in reasonForFixupRelaxation()
262 return reasonForFixupRelaxation(Fixup, Value); in fixupNeedsRelaxation()
367 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
490 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue()
592 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue()
616 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
642 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
653 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
764 const unsigned FixupKind = Fixup.getKind() ; in shouldForceRelocation()
908 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
[all …]
H A DARMWinCOFFObjectWriter.cpp38 const MCFixup &Fixup, bool IsCrossSection,
48 const MCFixup &Fixup, in getRelocType() argument
57 switch (static_cast<unsigned>(Fixup.getKind())) { in getRelocType()
59 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType()
88 bool ARMWinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation()
89 return static_cast<unsigned>(Fixup.getKind()) != ARM::fixup_t2_movt_hi16; in recordRelocation()
H A DARMELFObjectWriter.cpp31 unsigned GetRelocTypeInner(const MCValue &Target, const MCFixup &Fixup,
40 const MCFixup &Fixup, bool IsPCRel) const override;
74 const MCFixup &Fixup, in getRelocType() argument
76 return GetRelocTypeInner(Target, Fixup, IsPCRel, Ctx); in getRelocType()
80 const MCFixup &Fixup, in GetRelocTypeInner() argument
86 switch ((unsigned)Fixup.getKind()) { in GetRelocTypeInner()
88 Ctx.reportFatalError(Fixup.getLoc(), "unsupported relocation on symbol"); in GetRelocTypeInner()
143 switch ((unsigned)Fixup.getKind()) { in GetRelocTypeInner()
145 Ctx.reportFatalError(Fixup.getLoc(), "unsupported relocation on symbol"); in GetRelocTypeInner()
H A DARMAsmBackend.h43 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
46 unsigned adjustFixupValue(const MCAssembler &Asm, const MCFixup &Fixup,
51 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
61 const char *reasonForFixupRelaxation(const MCFixup &Fixup,
64 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
/freebsd-12.1/contrib/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVAsmBackend.cpp29 const MCFixup &Fixup, in shouldForceRelocation() argument
33 switch ((unsigned)Fixup.getKind()) { in shouldForceRelocation()
42 Asm.getContext().reportError(Fixup.getLoc(), in shouldForceRelocation()
53 Fixup.getValue()->findAssociatedFragment(); in shouldForceRelocation()
77 switch ((unsigned)Fixup.getKind()) { in fixupNeedsRelaxationAdvanced()
172 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
193 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
210 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
269 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
273 Value = adjustFixupValue(Fixup, Value, Ctx); in applyFixup()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430AsmBackend.cpp33 uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
41 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
51 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
57 bool fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, bool Resolved, in fixupNeedsRelaxationAdvanced() argument
105 uint64_t MSP430AsmBackend::adjustFixupValue(const MCFixup &Fixup, in adjustFixupValue() argument
108 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
112 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned"); in adjustFixupValue()
122 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
139 Value = adjustFixupValue(Fixup, Value, Asm.getContext()); in applyFixup()
140 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/MC/
H A DMCFixup.h103 static MCFixup createAddFor(const MCFixup &Fixup) { in createAddFor() argument
105 FI.Value = Fixup.getValue(); in createAddFor()
106 FI.Offset = Fixup.getOffset(); in createAddFor()
107 FI.Kind = (unsigned)getAddKindForKind(Fixup.getKind()); in createAddFor()
108 FI.Loc = Fixup.getLoc(); in createAddFor()
114 static MCFixup createSubFor(const MCFixup &Fixup) { in createSubFor() argument
116 FI.Value = Fixup.getValue(); in createSubFor()
117 FI.Offset = Fixup.getOffset(); in createSubFor()
118 FI.Kind = (unsigned)getSubKindForKind(Fixup.getKind()); in createSubFor()
119 FI.Loc = Fixup.getLoc(); in createSubFor()
/freebsd-12.1/contrib/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsAsmBackend.cpp42 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
83 Ctx.reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue()
93 Ctx.reportError(Fixup.getLoc(), "out of range PC19 fixup"); in adjustFixupValue()
132 Ctx.reportError(Fixup.getLoc(), "out of range PC7 fixup"); in adjustFixupValue()
142 Ctx.reportError(Fixup.getLoc(), "out of range PC10 fixup"); in adjustFixupValue()
152 Ctx.reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue()
161 Ctx.reportError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue()
249 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
251 Value = adjustFixupValue(Fixup, Value, Ctx); in applyFixup()
257 unsigned Offset = Fixup.getOffset(); in applyFixup()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMachObjectWriter.cpp31 const MCFixup &Fixup, MCValue Target,
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
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()
244 Asm.getContext().reportError(Fixup.getLoc(), in recordScatteredRelocation()
303 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in RecordPPCRelocation() argument
[all …]
H A DPPCAsmBackend.cpp118 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, in applyFixup() argument
122 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup()
125 unsigned Offset = Fixup.getOffset(); in applyFixup()
126 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
137 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, in shouldForceRelocation() argument
139 switch ((PPC::Fixups)Fixup.getKind()) { in shouldForceRelocation()
167 bool fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUAsmBackend.cpp33 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
37 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
81 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
85 switch (static_cast<unsigned>(Fixup.getKind())) { in adjustFixupValue()
90 Ctx->reportError(Fixup.getLoc(), "branch size exceeds simm16"); in adjustFixupValue()
106 void AMDGPUAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, in applyFixup() argument
111 Value = adjustFixupValue(Fixup, Value, &Asm.getContext()); in applyFixup()
115 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
120 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
121 uint32_t Offset = Fixup.getOffset(); in applyFixup()
/freebsd-12.1/contrib/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp34 const MCFixup &Fixup, bool IsPCRel) const override;
44 const MCFixup &Fixup, in getRelocType() argument
47 if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) { in getRelocType()
53 switch((unsigned)Fixup.getKind()) { in getRelocType()
69 switch((unsigned)Fixup.getKind()) { in getRelocType()
73 case FK_Data_2: return ((Fixup.getOffset() % 2) in getRelocType()
76 case FK_Data_4: return ((Fixup.getOffset() % 4) in getRelocType()
79 case FK_Data_8: return ((Fixup.getOffset() % 8) in getRelocType()
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyAsmBackend.cpp47 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
56 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
102 const MCFixup &Fixup, in applyFixup() argument
107 const MCFixupKindInfo &Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
117 unsigned Offset = Fixup.getOffset(); in applyFixup()
H A DWebAssemblyWasmObjectWriter.cpp39 const MCFixup &Fixup) const override;
95 const MCFixup &Fixup) const { in getRelocType()
98 bool IsFunction = IsFunctionExpr(Fixup.getValue()); in getRelocType()
100 switch (unsigned(Fixup.getKind())) { in getRelocType()
121 GetFixupSection(Fixup.getValue()))) { in getRelocType()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGCleanup.cpp335 if (Fixup.Destination == nullptr) continue; in ResolveAllBranchFixups()
345 if (Fixup.OptimisticBranchBlock == nullptr) { in ResolveAllBranchFixups()
348 Fixup.InitialBranch); in ResolveAllBranchFixups()
357 Fixup.Destination); in ResolveAllBranchFixups()
398 if (Fixup.Destination != Block) continue; in ResolveBranchFixups()
400 Fixup.Destination = nullptr; in ResolveBranchFixups()
914 if (!Fixup.Destination) continue; in PopCleanupBlock()
915 if (!Fixup.OptimisticBranchBlock) { in PopCleanupBlock()
1077 Fixup.Destination = Dest.getBlock(); in EmitBranchThroughCleanup()
1079 Fixup.InitialBranch = BI; in EmitBranchThroughCleanup()
[all …]
/freebsd-12.1/contrib/llvm/lib/MC/
H A DMCAssembler.cpp211 const MCExpr *Expr = Fixup.getValue(); in evaluateFixup()
215 if (!Expr->evaluateAsRelocatable(Target, &Layout, &Fixup)) { in evaluateFixup()
221 Ctx.reportError(Fixup.getLoc(), in evaluateFixup()
716 const MCFixup &Fixup) { in handleFixup() argument
734 MCFixup FixupAdd = MCFixup::createAddFor(Fixup); in handleFixup()
739 MCFixup FixupSub = MCFixup::createSubFor(Fixup); in handleFixup()
831 for (const MCFixup &Fixup : Fixups) { in layout() local
836 handleFixup(Layout, Frag, Fixup); in layout()
863 Fixup.getKind() == FK_Data_1) in fixupNeedsRelaxation()
878 for (const MCFixup &Fixup : F->getFixups()) in fragmentNeedsRelaxation() local
[all …]

123456