Home
last modified time | relevance | path

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

12345

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRAsmBackend.cpp106 adjustBranch(Size, Fixup, Value, Ctx); in fixup_call()
215 ldi::fixup(Size, Fixup, Value, Ctx); in lo8()
221 ldi::fixup(Size, Fixup, Value, Ctx); in hi8()
227 ldi::fixup(Size, Fixup, Value, Ctx); in hh8()
233 ldi::fixup(Size, Fixup, Value, Ctx); in ms8()
249 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
329 adjust::fixup_6(Fixup, Value, Ctx); in adjustFixupValue()
336 adjust::fixup_port5(Fixup, Value, Ctx); in adjustFixupValue()
340 adjust::fixup_port6(Fixup, Value, Ctx); in adjustFixupValue()
379 unsigned Offset = Fixup.getOffset(); in applyFixup()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64ELFObjectWriter.cpp140 Ctx.reportError(Fixup.getLoc(), in getRelocType()
148 Ctx.reportError(Fixup.getLoc(), in getRelocType()
170 Ctx.reportError(Fixup.getLoc(), in getRelocType()
194 switch (Fixup.getTargetKind()) { in getRelocType()
228 Ctx.reportError(Fixup.getLoc(), in getRelocType()
243 Ctx.reportError(Fixup.getLoc(), in getRelocType()
258 Ctx.reportError(Fixup.getLoc(), in getRelocType()
317 Ctx.reportError(Fixup.getLoc(), in getRelocType()
366 Ctx.reportError(Fixup.getLoc(), in getRelocType()
381 Ctx.reportError(Fixup.getLoc(), in getRelocType()
[all …]
H A DAArch64MachObjectWriter.cpp57 switch (Fixup.getTargetKind()) { in getAArch64FixupKindMachOInfo()
102 Asm.getContext().reportError(Fixup.getLoc(), in getAArch64FixupKindMachOInfo()
163 unsigned Kind = Fixup.getKind(); in recordRelocation()
166 FixupOffset += Fixup.getOffset(); in recordRelocation()
182 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
193 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
212 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
265 Fixup.getLoc(), in recordRelocation()
272 Fixup.getLoc(), in recordRelocation()
312 Fixup.getLoc(), in recordRelocation()
[all …]
H A DAArch64AsmBackend.cpp85 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
90 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
153 switch (Fixup.getTargetKind()) { 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()
226 Ctx.reportError(Fixup.getLoc(), in adjustFixupValue()
236 Ctx.reportError(Fixup.getLoc(), in adjustFixupValue()
392 unsigned Kind = Fixup.getKind(); in applyFixup()
396 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
405 unsigned Offset = Fixup.getOffset(); in applyFixup()
[all …]
H A DAArch64WinCOFFObjectWriter.cpp38 const MCFixup &Fixup, bool IsCrossSection,
47 MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, in getRelocType() argument
49 unsigned FixupKind = Fixup.getKind(); in getRelocType()
56 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType()
64 const MCExpr *Expr = Fixup.getValue(); in getRelocType()
74 Ctx.reportError(Fixup.getLoc(), "relocation variant " + in getRelocType()
84 Ctx.reportError(Fixup.getLoc(), "relocation type " + in getRelocType()
88 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType()
89 Ctx.reportError(Fixup.getLoc(), Twine("relocation type ") + Info.Name + in getRelocType()
157 bool AArch64WinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFAsmBackend.cpp29 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
38 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
66 if (Fixup.getKind() == FK_SecRel_8) { in applyFixup()
70 support::endian::write<uint32_t>(&Data[Fixup.getOffset() + 4], in applyFixup()
73 } else if (Fixup.getKind() == FK_Data_4) { in applyFixup()
75 } else if (Fixup.getKind() == FK_Data_8) { in applyFixup()
77 } else if (Fixup.getKind() == FK_PCRel_4) { in applyFixup()
80 Data[Fixup.getOffset() + 1] = 0x10; in applyFixup()
81 support::endian::write32le(&Data[Fixup.getOffset() + 4], Value); in applyFixup()
83 Data[Fixup.getOffset() + 1] = 0x1; in applyFixup()
[all …]
/freebsd-13.1/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 …]
H A DX86WinCOFFObjectWriter.cpp30 const MCFixup &Fixup, bool IsCrossSection,
42 const MCFixup &Fixup, in getRelocType() argument
46 unsigned FixupKind = Fixup.getKind(); in getRelocType()
56 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType()
88 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
110 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYAsmBackend.cpp54 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
56 switch (Fixup.getTargetKind()) { in adjustFixupValue()
68 Ctx.reportError(Fixup.getLoc(), "out of range pc-relative fixup value."); in adjustFixupValue()
70 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned."); in adjustFixupValue()
77 Ctx.reportError(Fixup.getLoc(), "fixup value must be 4-byte aligned."); in adjustFixupValue()
84 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned."); in adjustFixupValue()
91 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned."); in adjustFixupValue()
97 void CSKYAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, in applyFixup() argument
102 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
110 Value = adjustFixupValue(Fixup, Value, Ctx); in applyFixup()
[all …]
/freebsd-13.1/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
96 uint64_t MSP430AsmBackend::adjustFixupValue(const MCFixup &Fixup, in adjustFixupValue() argument
99 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
103 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned"); in adjustFixupValue()
113 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
130 Value = adjustFixupValue(Fixup, Value, Asm.getContext()); in applyFixup()
131 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMELFObjectWriter.cpp73 const MCFixup &Fixup, in getRelocType() argument
75 return GetRelocTypeInner(Target, Fixup, IsPCRel, Ctx); in getRelocType()
79 const MCFixup &Fixup, in GetRelocTypeInner() argument
82 unsigned Kind = Fixup.getTargetKind(); in GetRelocTypeInner()
88 switch (Fixup.getTargetKind()) { in GetRelocTypeInner()
95 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner()
167 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner()
176 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner()
185 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner()
249 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner()
[all …]
H A DARMMachObjectWriter.cpp34 const MCFixup &Fixup,
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()
389 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
[all …]
H A DARMWinCOFFObjectWriter.cpp37 const MCFixup &Fixup, bool IsCrossSection,
47 const MCFixup &Fixup, in getRelocType() argument
53 unsigned FixupKind = Fixup.getKind(); in getRelocType()
56 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType()
65 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType()
96 bool ARMWinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation()
97 return static_cast<unsigned>(Fixup.getKind()) != ARM::fixup_t2_movt_hi16; in recordRelocation()
H A DARMAsmBackend.cpp246 switch (Fixup.getTargetKind()) { in reasonForFixupRelaxation()
326 return reasonForFixupRelaxation(Fixup, Value); in fixupNeedsRelaxation()
431 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
556 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue()
825 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
836 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
855 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
865 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
884 const unsigned FixupKind = Fixup.getKind(); in shouldForceRelocation()
1047 unsigned Kind = Fixup.getKind(); in applyFixup()
[all …]
H A DARMAsmBackend.h44 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
47 unsigned adjustFixupValue(const MCAssembler &Asm, const MCFixup &Fixup,
52 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
62 const char *reasonForFixupRelaxation(const MCFixup &Fixup,
65 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVAsmBackend.cpp119 if (Fixup.getKind() >= FirstLiteralRelocationKind) in shouldForceRelocation()
121 switch (Fixup.getTargetKind()) { in shouldForceRelocation()
154 switch (Fixup.getTargetKind()) { in fixupNeedsRelaxationAdvanced()
232 std::pair<unsigned, unsigned> Fixup; in relaxDwarfLineAddr() local
375 switch (Fixup.getTargetKind()) { in adjustFixupValue()
494 switch (Fixup.getTargetKind()) { in evaluateTargetFixup()
498 AUIPCFixup = &Fixup; in evaluateTargetFixup()
553 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
561 Value = adjustFixupValue(Fixup, Value, Ctx); in applyFixup()
566 unsigned Offset = Fixup.getOffset(); in applyFixup()
[all …]
H A DRISCVELFObjectWriter.cpp38 const MCFixup &Fixup, bool IsPCRel) const override;
50 const MCFixup &Fixup, in getRelocType() argument
52 const MCExpr *Expr = Fixup.getValue(); in getRelocType()
54 unsigned Kind = Fixup.getTargetKind(); in getRelocType()
60 Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType()
110 Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType()
113 Ctx.reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType()
116 Ctx.reportError(Fixup.getLoc(), "2-byte data relocations not supported"); in getRelocType()
/freebsd-13.1/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()
160 Ctx.reportError(Fixup.getLoc(), "out of range PC18 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()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUAsmBackend.cpp32 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
36 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
63 bool AMDGPUAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
106 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
110 switch (Fixup.getTargetKind()) { in adjustFixupValue()
115 Ctx->reportError(Fixup.getLoc(), "branch size exceeds simm16"); in adjustFixupValue()
131 void AMDGPUAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, in applyFixup() argument
136 Value = adjustFixupValue(Fixup, Value, &Asm.getContext()); in applyFixup()
140 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
145 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
[all …]
H A DAMDGPUELFObjectWriter.cpp26 const MCFixup &Fixup, bool IsPCRel) const override;
41 const MCFixup &Fixup, in getRelocType() argument
68 switch (Fixup.getKind()) { in getRelocType()
79 if (Fixup.getTargetKind() == AMDGPU::fixup_si_sopp_br) { in getRelocType()
84 Ctx.reportError(Fixup.getLoc(), Twine("undefined label '") + in getRelocType()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A 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(Fixup.getTargetKind()) { in getRelocType()
68 switch(Fixup.getTargetKind()) { 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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCAsmBackend.cpp55 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
57 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
61 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
114 const MCFixup &Fixup, in shouldForceRelocation() argument
116 return Fixup.getKind() >= FirstLiteralRelocationKind; in shouldForceRelocation()
120 const MCFixup &Fixup, in applyFixup() argument
125 MCFixupKind Kind = Fixup.getKind(); in applyFixup()
128 unsigned Offset = Fixup.getOffset(); in applyFixup()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/
H A DVEAsmBackend.cpp130 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, in shouldForceRelocation() argument
132 switch ((VE::Fixups)Fixup.getKind()) { in shouldForceRelocation()
153 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
186 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, in applyFixup() argument
190 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup()
194 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
199 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
200 unsigned Offset = Fixup.getOffset(); in applyFixup()
H A DVEELFObjectWriter.cpp31 const MCFixup &Fixup, bool IsPCRel) const override;
39 const MCFixup &Fixup, in getRelocType() argument
41 if (const VEMCExpr *SExpr = dyn_cast<VEMCExpr>(Fixup.getValue())) { in getRelocType()
47 switch (Fixup.getTargetKind()) { in getRelocType()
66 switch (Fixup.getTargetKind()) { in getRelocType()
/freebsd-13.1/contrib/llvm-project/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
95 const MCFixup &Fixup, in applyFixup() argument
100 const MCFixupKindInfo &Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
110 unsigned Offset = Fixup.getOffset(); in applyFixup()

12345