Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRAsmBackend.cpp34 std::string Description, const MCFixup &Fixup, in unsigned_width() argument
44 Ctx->reportError(Fixup.getLoc(), Diagnostic); in unsigned_width()
49 static void adjustBranch(unsigned Size, const MCFixup &Fixup, uint64_t &Value, in adjustBranch() argument
53 unsigned_width(Size + 1, Value, std::string("branch target"), Fixup, Ctx); in adjustBranch()
60 static bool adjustRelativeBranch(unsigned Size, const MCFixup &Fixup, in adjustRelativeBranch() argument
99 static void fixup_call(unsigned Size, const MCFixup &Fixup, uint64_t &Value, in fixup_call() argument
101 adjustBranch(Size, Fixup, Value, Ctx); in fixup_call()
115 static void fixup_7_pcrel(unsigned Size, const MCFixup &Fixup, uint64_t &Value, in fixup_7_pcrel() argument
117 if (!adjustRelativeBranch(Size, Fixup, Value, Ctx->getSubtargetInfo())) { in fixup_7_pcrel()
131 static void fixup_13_pcrel(unsigned Size, const MCFixup &Fixup, uint64_t &Value, in fixup_13_pcrel() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFAsmBackend.cpp68 void BPFAsmBackend::applyFixup(const MCFragment &F, const MCFixup &Fixup, in applyFixup() argument
72 maybeAddReloc(F, Fixup, Target, Value, IsResolved); in applyFixup()
73 if (Fixup.getKind() == FK_SecRel_8) { in applyFixup()
77 support::endian::write<uint32_t>(&Data[Fixup.getOffset() + 4], in applyFixup()
80 } else if (Fixup.getKind() == FK_Data_4 && !Fixup.isPCRel()) { in applyFixup()
81 support::endian::write<uint32_t>(&Data[Fixup.getOffset()], Value, Endian); in applyFixup()
82 } else if (Fixup.getKind() == FK_Data_8) { in applyFixup()
83 support::endian::write<uint64_t>(&Data[Fixup.getOffset()], Value, Endian); in applyFixup()
84 } else if (Fixup.getKind() == FK_Data_4 && Fixup.isPCRel()) { in applyFixup()
87 Data[Fixup.getOffset() + 1] = 0x10; in applyFixup()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp31 const MCFixup &Fixup,
38 const MCFixup &Fixup,
45 const MCFixup &Fixup,
49 const MCFragment *Fragment, const MCFixup &Fixup,
57 const MCFragment *Fragment, const MCFixup &Fixup, in recordRelocation() argument
60 RecordX86_64Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation()
62 RecordX86Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation()
101 const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) { in RecordX86_64Relocation() argument
102 unsigned IsPCRel = Fixup.isPCRel(); in RecordX86_64Relocation()
103 unsigned IsRIPRel = isFixupKindRIPRel(Fixup.getKind()); in RecordX86_64Relocation()
[all …]
H A DX86WinCOFFObjectWriter.cpp31 const MCFixup &Fixup, bool IsCrossSection,
43 const MCFixup &Fixup, in getRelocType() argument
47 unsigned FixupKind = Fixup.getKind(); in getRelocType()
48 bool PCRel = Fixup.isPCRel(); in getRelocType()
60 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType()
95 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
119 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/
H A DXtensaAsmBackend.cpp70 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
72 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
86 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
94 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
99 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()
111 Ctx.reportError(Fixup.getLoc(), "fixup value must be 4-byte aligned"); in adjustFixupValue()
116 Ctx.reportError(Fixup.getLoc(), "loop fixup value out of range"); in adjustFixupValue()
119 unsigned Offset = Fixup.getOffset(); in adjustFixupValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYAsmBackend.cpp72 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
74 switch (Fixup.getKind()) { in adjustFixupValue()
93 Ctx.reportError(Fixup.getLoc(), "out of range pc-relative fixup value."); in adjustFixupValue()
95 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned."); in adjustFixupValue()
100 Ctx.reportError(Fixup.getLoc(), "out of range pc-relative fixup value."); in adjustFixupValue()
102 Ctx.reportError(Fixup.getLoc(), "fixup value must be 4-byte aligned."); in adjustFixupValue()
107 Ctx.reportError(Fixup.getLoc(), "out of range pc-relative fixup value."); in adjustFixupValue()
109 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned."); in adjustFixupValue()
114 Ctx.reportError(Fixup.getLoc(), "out of range pc-relative fixup value."); in adjustFixupValue()
116 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned."); in adjustFixupValue()
[all …]
H A DCSKYELFObjectWriter.cpp37 unsigned CSKYELFObjectWriter::getRelocType(const MCFixup &Fixup, in getRelocType() argument
40 const MCExpr *Expr = Fixup.getValue(); in getRelocType()
42 auto Kind = Fixup.getKind(); in getRelocType()
62 reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType()
86 reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType()
89 reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType()
92 reportError(Fixup.getLoc(), "2-byte data relocations not supported"); in getRelocType()
121 reportError(Fixup.getLoc(), "unknown target FK_Data_4"); in getRelocType()
125 reportError(Fixup.getLoc(), "invalid fixup for 4-byte data relocation"); in getRelocType()
145 reportError(Fixup.getLoc(), "8-byte data relocations not supported"); in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64ELFObjectWriter.cpp42 bool isNonILP32reloc(const MCFixup &Fixup, AArch64::Specifier RefKind) const;
58 bool AArch64ELFObjectWriter::isNonILP32reloc(const MCFixup &Fixup, in isNonILP32reloc() argument
60 if (Fixup.getKind() != AArch64::fixup_aarch64_movw) in isNonILP32reloc()
75 reportError(Fixup.getLoc(), in isNonILP32reloc()
84 unsigned AArch64ELFObjectWriter::getRelocType(const MCFixup &Fixup, in getRelocType() argument
87 auto Kind = Fixup.getKind(); in getRelocType()
108 if (mc::isRelocation(Fixup.getKind())) in getRelocType()
114 reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType()
124 reportError(Fixup.getLoc(), "8 byte PC relative data " in getRelocType()
132 reportError(Fixup.getLoc(), in getRelocType()
[all …]
H A DAArch64MachObjectWriter.cpp35 bool getAArch64FixupKindMachOInfo(const MCFixup &Fixup, unsigned &RelocType,
44 const MCFragment *Fragment, const MCFixup &Fixup,
51 const MCFixup &Fixup, unsigned &RelocType, AArch64::Specifier Spec, in getAArch64FixupKindMachOInfo() argument
56 switch (Fixup.getKind()) { in getAArch64FixupKindMachOInfo()
101 reportError(Fixup.getLoc(), "ADR/ADRP relocations must be GOT relative"); in getAArch64FixupKindMachOInfo()
149 const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) { in recordRelocation() argument
150 unsigned IsPCRel = Fixup.isPCRel(); in recordRelocation()
158 unsigned Kind = Fixup.getKind(); in recordRelocation()
161 FixupOffset += Fixup.getOffset(); in recordRelocation()
177 reportError(Fixup.getLoc(), "conditional branch requires assembler-local" in recordRelocation()
[all …]
H A DAArch64AsmBackend.cpp85 bool fixupNeedsRelaxation(const MCFixup &Fixup,
141 static uint64_t adjustFixupValue(const MCFixup &Fixup, const MCValue &Target, in adjustFixupValue() argument
145 switch (Fixup.getKind()) { in adjustFixupValue()
150 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
156 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
164 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
166 Ctx.reportError(Fixup.getLoc(), "fixup not sufficiently aligned"); in adjustFixupValue()
175 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
182 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
184 Ctx.reportError(Fixup.getLoc(), "fixup must be 2-byte aligned"); in adjustFixupValue()
[all …]
H A DAArch64WinCOFFObjectWriter.cpp39 const MCFixup &Fixup, bool IsCrossSection,
48 MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, in getRelocType() argument
50 unsigned FixupKind = Fixup.getKind(); in getRelocType()
51 bool PCRel = Fixup.isPCRel(); in getRelocType()
58 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType()
66 const MCExpr *Expr = Fixup.getValue(); in getRelocType()
76 Ctx.reportError(Fixup.getLoc(), "relocation specifier " + in getRelocType()
86 Ctx.reportError(Fixup.getLoc(), "relocation specifier " + in getRelocType()
90 MCFixupKindInfo Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType()
91 Ctx.reportError(Fixup.getLoc(), Twine("relocation type ") + Info.Name + in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/
H A DVEELFObjectWriter.cpp39 unsigned VEELFObjectWriter::getRelocType(const MCFixup &Fixup, in getRelocType() argument
53 if (auto *SExpr = dyn_cast<MCSpecifierExpr>(Fixup.getValue())) { in getRelocType()
59 switch (Fixup.getKind()) { in getRelocType()
61 reportError(Fixup.getLoc(), "Unsupported pc-relative fixup kind"); in getRelocType()
64 reportError(Fixup.getLoc(), in getRelocType()
68 reportError(Fixup.getLoc(), in getRelocType()
74 reportError(Fixup.getLoc(), in getRelocType()
87 switch (Fixup.getKind()) { in getRelocType()
89 reportError(Fixup.getLoc(), "Unknown ELF relocation type"); in getRelocType()
92 reportError(Fixup.getLoc(), "1-byte data relocation is not supported"); in getRelocType()
[all …]
H A DVEAsmBackend.cpp154 void VEAsmBackend::applyFixup(const MCFragment &F, const MCFixup &Fixup, in applyFixup() argument
157 switch (Fixup.getKind()) { in applyFixup()
165 maybeAddReloc(F, Fixup, Target, Value, IsResolved); in applyFixup()
166 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup()
170 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
175 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
176 unsigned Offset = Fixup.getOffset(); in applyFixup()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVAsmBackend.cpp107 bool RISCVAsmBackend::fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, in fixupNeedsRelaxationAdvanced() argument
112 auto Kind = Fixup.getKind(); in fixupNeedsRelaxationAdvanced()
329 std::pair<MCFixupKind, MCFixupKind> Fixup; in relaxDwarfLineAddr() local
343 Fixup = RISCV::getRelocPairForSize(PtrSize); in relaxDwarfLineAddr()
348 Fixup = RISCV::getRelocPairForSize(2); in relaxDwarfLineAddr()
353 Fixups.push_back(MCFixup::create(Offset, MBE.getLHS(), std::get<0>(Fixup))); in relaxDwarfLineAddr()
354 Fixups.push_back(MCFixup::create(Offset, MBE.getRHS(), std::get<1>(Fixup))); in relaxDwarfLineAddr()
393 std::pair<unsigned, unsigned> Fixup) { in relaxDwarfCFA() argument
395 Fixups.push_back(MCFixup::create(Offset, MBE.getLHS(), std::get<0>(Fixup))); in relaxDwarfCFA()
396 Fixups.push_back(MCFixup::create(Offset, MBE.getRHS(), std::get<1>(Fixup))); in relaxDwarfCFA()
[all …]
H A DRISCVELFObjectWriter.cpp48 unsigned RISCVELFObjectWriter::getRelocType(const MCFixup &Fixup, in getRelocType() argument
51 auto Kind = Fixup.getKind(); in getRelocType()
65 reportError(Fixup.getLoc(), "%" + RISCV::getSpecifierName(Spec) + in getRelocType()
74 if (mc::isRelocation(Fixup.getKind())) in getRelocType()
80 reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
113 reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
117 reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType()
120 reportError(Fixup.getLoc(), "2-byte data relocations not supported"); in getRelocType()
139 reportError(Fixup.getLoc(), "No relocation for CI-type instructions"); in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp33 const MCFixup &Fixup, MCValue Target,
39 const MCFixup &Fixup, MCValue Target,
52 const MCFragment *Fragment, const MCFixup &Fixup,
136 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in recordARMScatteredHalfRelocation() argument
138 uint32_t FixupOffset = Asm.getFragmentOffset(*Fragment) + Fixup.getOffset(); in recordARMScatteredHalfRelocation()
141 reportError(Fixup.getLoc(), "can not encode offset '0x" + in recordARMScatteredHalfRelocation()
147 unsigned IsPCRel = Fixup.isPCRel(); in recordARMScatteredHalfRelocation()
154 reportError(Fixup.getLoc(), in recordARMScatteredHalfRelocation()
167 reportError(Fixup.getLoc(), in recordARMScatteredHalfRelocation()
195 switch (Fixup.getKind()) { in recordARMScatteredHalfRelocation()
[all …]
H A DARMAsmBackend.cpp216 const char *ARMAsmBackend::reasonForFixupRelaxation(const MCFixup &Fixup, in reasonForFixupRelaxation() argument
218 switch (Fixup.getKind()) { in reasonForFixupRelaxation()
314 bool ARMAsmBackend::fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, in fixupNeedsRelaxationAdvanced() argument
319 if (needsInterworking(*Asm, Sym, Fixup.getKind())) in fixupNeedsRelaxationAdvanced()
324 return reasonForFixupRelaxation(Fixup, Value); in fixupNeedsRelaxationAdvanced()
418 const MCFixup &Fixup, in adjustFixupValue() argument
422 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
430 Ctx.reportError(Fixup.getLoc(), "Relocation Not In Range"); in adjustFixupValue()
518 Ctx.reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
539 Ctx.reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
[all …]
H A DARMELFObjectWriter.cpp75 unsigned ARMELFObjectWriter::getRelocType(const MCFixup &Fixup, in getRelocType() argument
78 auto Kind = Fixup.getKind(); in getRelocType()
82 reportError(Fixup.getLoc(), in getRelocType()
108 switch (Fixup.getKind()) { in getRelocType()
110 reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
115 reportError(Fixup.getLoc(), in getRelocType()
202 reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
207 reportError(Fixup.getLoc(), "invalid fixup for 1-byte data relocation"); in getRelocType()
215 reportError(Fixup.getLoc(), "invalid fixup for 2-byte data relocation"); in getRelocType()
223 reportError(Fixup.getLoc(), "invalid fixup for 4-byte data relocation"); in getRelocType()
[all …]
H A DARMWinCOFFObjectWriter.cpp35 const MCFixup &Fixup, bool IsCrossSection,
45 const MCFixup &Fixup, in getRelocType() argument
49 unsigned FixupKind = Fixup.getKind(); in getRelocType()
53 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType()
63 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
94 bool ARMWinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation()
95 return static_cast<unsigned>(Fixup.getKind()) != ARM::fixup_t2_movt_hi16; in recordRelocation()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsAsmBackend.cpp34 static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
37 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
64 Ctx.reportError(Fixup.getLoc(), 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()
168 Ctx.reportError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchAsmBackend.cpp91 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
93 switch (Fixup.getKind()) { in adjustFixupValue()
104 reportOutOfRangeError(Ctx, Fixup.getLoc(), 18); in adjustFixupValue()
106 Ctx.reportError(Fixup.getLoc(), "fixup value must be 4-byte aligned"); in adjustFixupValue()
111 reportOutOfRangeError(Ctx, Fixup.getLoc(), 23); in adjustFixupValue()
113 Ctx.reportError(Fixup.getLoc(), "fixup value must be 4-byte aligned"); in adjustFixupValue()
118 reportOutOfRangeError(Ctx, Fixup.getLoc(), 28); in adjustFixupValue()
120 Ctx.reportError(Fixup.getLoc(), "fixup value must be 4-byte aligned"); in adjustFixupValue()
134 static void fixupLeb128(MCContext &Ctx, const MCFixup &Fixup, in fixupLeb128() argument
140 Ctx.reportError(Fixup.getLoc(), "Invalid uleb128 value!"); in fixupLeb128()
[all …]
H A DLoongArchELFObjectWriter.cpp47 unsigned LoongArchELFObjectWriter::getRelocType(const MCFixup &Fixup, in getRelocType() argument
71 auto Kind = Fixup.getKind(); in getRelocType()
72 if (mc::isRelocation(Fixup.getKind())) in getRelocType()
76 reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType()
79 reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType()
82 reportError(Fixup.getLoc(), "2-byte data relocations not supported"); in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430AsmBackend.cpp30 uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
78 uint64_t MSP430AsmBackend::adjustFixupValue(const MCFixup &Fixup, in adjustFixupValue() argument
81 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
85 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned"); in adjustFixupValue()
95 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
107 void MSP430AsmBackend::applyFixup(const MCFragment &F, const MCFixup &Fixup, in applyFixup() argument
111 maybeAddReloc(F, Fixup, Target, Value, IsResolved); in applyFixup()
112 Value = adjustFixupValue(Fixup, Value, getContext()); in applyFixup()
113 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
120 unsigned Offset = Fixup.getOffset(); in applyFixup()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp35 unsigned getRelocType(const MCFixup &Fixup, const MCValue &Target,
42 unsigned SparcELFObjectWriter::getRelocType(const MCFixup &Fixup, in getRelocType() argument
71 auto Kind = Fixup.getKind(); in getRelocType()
72 if (mc::isRelocation(Fixup.getKind())) in getRelocType()
75 if (const auto *SExpr = dyn_cast<MCSpecifierExpr>(Fixup.getValue())) { in getRelocType()
96 switch(Fixup.getKind()) { in getRelocType()
101 case FK_Data_2: return ((Fixup.getOffset() % 2) in getRelocType()
104 case FK_Data_4: return ((Fixup.getOffset() % 4) in getRelocType()
107 case FK_Data_8: return ((Fixup.getOffset() % 8) in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUAsmBackend.cpp38 bool fixupNeedsRelaxation(const MCFixup &Fixup,
66 bool AMDGPUAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
107 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
111 switch (Fixup.getKind()) { in adjustFixupValue()
116 Ctx->reportError(Fixup.getLoc(), "branch size exceeds simm16"); in adjustFixupValue()
131 void AMDGPUAsmBackend::applyFixup(const MCFragment &F, const MCFixup &Fixup, in applyFixup() argument
137 maybeAddReloc(F, Fixup, Target, Value, IsResolved); in applyFixup()
138 if (mc::isRelocation(Fixup.getKind())) in applyFixup()
141 Value = adjustFixupValue(Fixup, Value, &getContext()); in applyFixup()
145 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
[all …]

12345