Home
last modified time | relevance | path

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

123456

/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRAsmBackend.cpp106 adjustBranch(Size, Fixup, Value, Ctx); in fixup_call()
225 ldi::fixup(Size, Fixup, Value, Ctx); in lo8()
231 ldi::fixup(Size, Fixup, Value, Ctx); in hi8()
237 ldi::fixup(Size, Fixup, Value, Ctx); in hh8()
243 ldi::fixup(Size, Fixup, Value, Ctx); in ms8()
258 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
342 adjust::fixup_6(Fixup, Value, Ctx); in adjustFixupValue()
349 adjust::fixup_port5(Fixup, Value, Ctx); in adjustFixupValue()
353 adjust::fixup_port6(Fixup, Value, Ctx); in adjustFixupValue()
398 unsigned Offset = Fixup.getOffset(); in applyFixup()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64ELFObjectWriter.cpp145 Ctx.reportError(Fixup.getLoc(), in getRelocType()
153 Ctx.reportError(Fixup.getLoc(), in getRelocType()
175 Ctx.reportError(Fixup.getLoc(), in getRelocType()
191 Ctx.reportError(Fixup.getLoc(), in getRelocType()
203 switch (Fixup.getTargetKind()) { in getRelocType()
244 Ctx.reportError(Fixup.getLoc(), in getRelocType()
259 Ctx.reportError(Fixup.getLoc(), in getRelocType()
274 Ctx.reportError(Fixup.getLoc(), in getRelocType()
333 Ctx.reportError(Fixup.getLoc(), in getRelocType()
382 Ctx.reportError(Fixup.getLoc(), in getRelocType()
[all …]
H A DAArch64AsmBackend.cpp88 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
93 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
159 switch (Fixup.getTargetKind()) { in adjustFixupValue()
164 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
235 Ctx.reportError(Fixup.getLoc(), in adjustFixupValue()
245 Ctx.reportError(Fixup.getLoc(), in adjustFixupValue()
335 Ctx.reportError(Fixup.getLoc(), in adjustFixupValue()
434 unsigned Kind = Fixup.getKind(); in applyFixup()
438 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
447 unsigned Offset = Fixup.getOffset(); in applyFixup()
[all …]
H A DAArch64MachObjectWriter.cpp57 switch (Fixup.getTargetKind()) { in getAArch64FixupKindMachOInfo()
102 Asm.getContext().reportError(Fixup.getLoc(), in getAArch64FixupKindMachOInfo()
161 unsigned Kind = Fixup.getKind(); in recordRelocation()
164 FixupOffset += Fixup.getOffset(); in recordRelocation()
180 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
191 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
210 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
263 Fixup.getLoc(), in recordRelocation()
270 Fixup.getLoc(), in recordRelocation()
310 Fixup.getLoc(), in recordRelocation()
[all …]
H A DAArch64WinCOFFObjectWriter.cpp41 const MCFixup &Fixup, bool IsCrossSection,
50 MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, in getRelocType() argument
52 unsigned FixupKind = Fixup.getKind(); in getRelocType()
59 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType()
67 const MCExpr *Expr = Fixup.getValue(); in getRelocType()
77 Ctx.reportError(Fixup.getLoc(), "relocation variant " + in getRelocType()
87 Ctx.reportError(Fixup.getLoc(), "relocation type " + in getRelocType()
91 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType()
92 Ctx.reportError(Fixup.getLoc(), Twine("relocation type ") + Info.Name + in getRelocType()
160 bool AArch64WinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFAsmBackend.cpp31 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
40 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
87 if (Fixup.getKind() == FK_SecRel_8) { in applyFixup()
91 support::endian::write<uint32_t>(&Data[Fixup.getOffset() + 4], in applyFixup()
94 } else if (Fixup.getKind() == FK_Data_4) { in applyFixup()
96 } else if (Fixup.getKind() == FK_Data_8) { in applyFixup()
98 } else if (Fixup.getKind() == FK_PCRel_4) { in applyFixup()
101 Data[Fixup.getOffset() + 1] = 0x10; in applyFixup()
104 Data[Fixup.getOffset() + 1] = 0x1; in applyFixup()
107 } else if (Fixup.getTargetKind() == BPF::FK_BPF_PCRel_4) { in applyFixup()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp31 const MCFixup &Fixup,
39 const MCFixup &Fixup,
47 const MCFixup &Fixup,
157 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation()
190 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation()
260 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation()
315 Fixup.getLoc(), in RecordX86_64Relocation()
344 Fixup.getLoc(), in RecordX86_64Relocation()
381 Fixup.getLoc(), in recordScatteredRelocation()
397 Fixup.getLoc(), in recordScatteredRelocation()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/
H A DXtensaAsmBackend.cpp40 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
46 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
84 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
96 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
104 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
109 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
124 unsigned Offset = Fixup.getOffset(); in adjustFixupValue()
152 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
154 Value = adjustFixupValue(Fixup, Value, Ctx); in applyFixup()
162 unsigned Offset = Fixup.getOffset(); in applyFixup()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/
H A DVEELFObjectWriter.cpp40 const MCFixup &Fixup, in getRelocType() argument
42 if (const VEMCExpr *SExpr = dyn_cast<VEMCExpr>(Fixup.getValue())) { in getRelocType()
48 switch (Fixup.getTargetKind()) { in getRelocType()
54 Ctx.reportError(Fixup.getLoc(), in getRelocType()
59 Ctx.reportError(Fixup.getLoc(), in getRelocType()
67 Ctx.reportError(Fixup.getLoc(), in getRelocType()
80 switch (Fixup.getTargetKind()) { in getRelocType()
82 Ctx.reportError(Fixup.getLoc(), "Unknown ELF relocation type"); in getRelocType()
97 Ctx.reportError(Fixup.getLoc(), in getRelocType()
105 Ctx.reportError(Fixup.getLoc(), in getRelocType()
[all …]
H A DVEAsmBackend.cpp134 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, in shouldForceRelocation() argument
137 switch ((VE::Fixups)Fixup.getKind()) { in shouldForceRelocation()
158 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
192 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, in applyFixup() argument
196 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup()
200 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
205 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
206 unsigned Offset = Fixup.getOffset(); in applyFixup()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYAsmBackend.cpp86 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
88 switch (Fixup.getTargetKind()) { in adjustFixupValue()
109 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned."); in adjustFixupValue()
174 bool CSKYAsmBackend::fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, in fixupNeedsRelaxationAdvanced() argument
187 switch (Fixup.getTargetKind()) { in fixupNeedsRelaxationAdvanced()
206 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
214 Value = adjustFixupValue(Fixup, Value, Ctx); in applyFixup()
219 unsigned Offset = Fixup.getOffset(); in applyFixup()
264 const MCFixup &Fixup, in shouldForceRelocation() argument
267 if (Fixup.getKind() >= FirstLiteralRelocationKind) in shouldForceRelocation()
[all …]
H A DCSKYELFObjectWriter.cpp29 const MCFixup &Fixup, bool IsPCRel) const override;
36 const MCFixup &Fixup, in getRelocType() argument
38 const MCExpr *Expr = Fixup.getValue(); in getRelocType()
40 unsigned Kind = Fixup.getTargetKind(); in getRelocType()
47 Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType()
72 Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType()
75 Ctx.reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType()
78 Ctx.reportError(Fixup.getLoc(), "2-byte data relocations not supported"); in getRelocType()
107 Ctx.reportError(Fixup.getLoc(), "unknown target FK_Data_4"); in getRelocType()
111 Ctx.reportError(Fixup.getLoc(), in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVAsmBackend.cpp121 switch (Fixup.getTargetKind()) { in shouldForceRelocation()
152 unsigned Kind = Fixup.getTargetKind(); in fixupNeedsRelaxationAdvanced()
415 switch (Fixup.getTargetKind()) { in adjustFixupValue()
436 Ctx.reportError(Fixup.getLoc(), in adjustFixupValue()
533 switch (Fixup.getTargetKind()) { in evaluateTargetFixup()
538 AUIPCFixup = &Fixup; in evaluateTargetFixup()
595 switch (Fixup.getKind()) { in handleAddSubRelocations()
622 Fixup.getOffset(), nullptr, in handleAddSubRelocations()
625 Fixup.getOffset(), nullptr, in handleAddSubRelocations()
639 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
[all …]
H A DRISCVELFObjectWriter.cpp39 const MCFixup &Fixup, bool IsPCRel) const override;
51 const MCFixup &Fixup, in getRelocType() argument
53 const MCExpr *Expr = Fixup.getValue(); in getRelocType()
55 unsigned Kind = Fixup.getTargetKind(); in getRelocType()
61 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
105 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
115 Ctx.reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType()
118 Ctx.reportError(Fixup.getLoc(), "2-byte data relocations not supported"); in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp34 const MCFixup &Fixup,
57 const MCFixup &Fixup, MCValue Target,
144 const MCFixup &Fixup, in RecordARMScatteredHalfRelocation() argument
150 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
164 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
179 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
207 switch (Fixup.getTargetKind()) { in RecordARMScatteredHalfRelocation()
265 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation()
278 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation()
294 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation()
[all …]
H A DARMELFObjectWriter.cpp74 const MCFixup &Fixup, in getRelocType() argument
76 return GetRelocTypeInner(Target, Fixup, IsPCRel, Ctx); in getRelocType()
80 const MCFixup &Fixup, in GetRelocTypeInner() argument
83 unsigned Kind = Fixup.getTargetKind(); in GetRelocTypeInner()
89 switch (Fixup.getTargetKind()) { in GetRelocTypeInner()
96 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner()
188 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner()
197 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner()
206 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner()
270 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner()
[all …]
H A DARMWinCOFFObjectWriter.cpp36 const MCFixup &Fixup, bool IsCrossSection,
46 const MCFixup &Fixup, in getRelocType() argument
52 unsigned FixupKind = Fixup.getKind(); in getRelocType()
55 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType()
64 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType()
95 bool ARMWinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation()
96 return static_cast<unsigned>(Fixup.getKind()) != ARM::fixup_t2_movt_hi16; in recordRelocation()
H A DARMAsmBackend.cpp262 switch (Fixup.getTargetKind()) { in reasonForFixupRelaxation()
342 return reasonForFixupRelaxation(Fixup, Value); in fixupNeedsRelaxation()
448 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
586 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue()
857 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
868 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
887 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
897 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
917 const unsigned FixupKind = Fixup.getKind(); in shouldForceRelocation()
1088 unsigned Kind = Fixup.getKind(); in applyFixup()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430AsmBackend.cpp32 uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
40 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
50 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
56 bool fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, bool Resolved, in fixupNeedsRelaxationAdvanced() argument
97 uint64_t MSP430AsmBackend::adjustFixupValue(const MCFixup &Fixup, in adjustFixupValue() argument
100 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
104 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned"); in adjustFixupValue()
114 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
131 Value = adjustFixupValue(Fixup, Value, Asm.getContext()); in applyFixup()
132 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUAsmBackend.cpp35 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
39 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
71 bool AMDGPUAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
118 switch (Fixup.getTargetKind()) { in adjustFixupValue()
144 if (Fixup.getKind() >= FirstLiteralRelocationKind) in applyFixup()
147 Value = adjustFixupValue(Fixup, Value, &Asm.getContext()); in applyFixup()
151 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
156 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
157 uint32_t Offset = Fixup.getOffset(); in applyFixup()
195 const MCFixup &Fixup, in shouldForceRelocation() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsAsmBackend.cpp41 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
82 Ctx.reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue()
92 Ctx.reportError(Fixup.getLoc(), "out of range PC19 fixup"); in adjustFixupValue()
131 Ctx.reportError(Fixup.getLoc(), "out of range PC7 fixup"); in adjustFixupValue()
141 Ctx.reportError(Fixup.getLoc(), "out of range PC10 fixup"); in adjustFixupValue()
151 Ctx.reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue()
248 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
250 Value = adjustFixupValue(Fixup, Value, Ctx); in applyFixup()
256 unsigned Offset = Fixup.getOffset(); in applyFixup()
549 if (Fixup.getKind() >= FirstLiteralRelocationKind) in shouldForceRelocation()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchAsmBackend.cpp92 switch (Fixup.getTargetKind()) { in adjustFixupValue()
103 reportOutOfRangeError(Ctx, Fixup.getLoc(), 18); in adjustFixupValue()
110 reportOutOfRangeError(Ctx, Fixup.getLoc(), 23); in adjustFixupValue()
155 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
162 if (Fixup.getTargetKind() == FK_Data_leb128) in applyFixup()
163 return fixupLeb128(Ctx, Fixup, Data, Value); in applyFixup()
166 Value = adjustFixupValue(Fixup, Value, Ctx); in applyFixup()
171 unsigned Offset = Fixup.getOffset(); in applyFixup()
225 MCFixup Fixup = in shouldInsertFixupForCodeAlign() local
252 switch (Fixup.getTargetKind()) { in shouldForceRelocation()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCAsmBackend.cpp27 const MCFixup &Fixup, MCContext &Ctx) { in extractBitsForFixup() argument
44 Ctx.reportError(Fixup.getLoc(), "Non-even PC relative offset."); in extractBitsForFixup()
118 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
121 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
125 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
168 const MCFixup &Fixup, in shouldForceRelocation() argument
171 return Fixup.getKind() >= FirstLiteralRelocationKind; in shouldForceRelocation()
175 const MCFixup &Fixup, in applyFixup() argument
180 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
183 unsigned Offset = Fixup.getOffset(); in applyFixup()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCExpr.cpp105 const MCFixup *Fixup) const { in evaluateAsRelocatableImpl()
108 if (!getSubExpr()->evaluateAsRelocatable(Value, Layout, Fixup)) in evaluateAsRelocatableImpl()
113 bool IsHalf16 = Fixup && Fixup->getTargetKind() == PPC::fixup_ppc_half16; in evaluateAsRelocatableImpl()
115 Fixup && Fixup->getTargetKind() == PPC::fixup_ppc_half16ds; in evaluateAsRelocatableImpl()
117 Fixup && Fixup->getTargetKind() == PPC::fixup_ppc_half16dq; in evaluateAsRelocatableImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp33 const MCFixup &Fixup, bool IsPCRel) const override;
42 const MCFixup &Fixup, in getRelocType() argument
44 MCFixupKind Kind = Fixup.getKind(); in getRelocType()
48 if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) { in getRelocType()
54 switch(Fixup.getTargetKind()) { in getRelocType()
72 switch(Fixup.getTargetKind()) { in getRelocType()
77 case FK_Data_2: return ((Fixup.getOffset() % 2) in getRelocType()
80 case FK_Data_4: return ((Fixup.getOffset() % 4) in getRelocType()
83 case FK_Data_8: return ((Fixup.getOffset() % 8) in getRelocType()

123456