Lines Matching refs:Fixup
74 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()
177 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
179 Ctx->reportError(Fixup.getLoc(), "fixup must be 4-byte aligned"); in adjustFixupValue()
184 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
186 Ctx->reportError(Fixup.getLoc(), "fixup must be 8-byte aligned"); in adjustFixupValue()
191 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
193 Ctx->reportError(Fixup.getLoc(), "fixup must be 16-byte aligned"); in adjustFixupValue()
197 Ctx->reportError(Fixup.getLoc(), in adjustFixupValue()
203 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
206 Ctx->reportError(Fixup.getLoc(), "fixup not sufficiently aligned"); in adjustFixupValue()
212 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
215 Ctx->reportError(Fixup.getLoc(), "fixup not sufficiently aligned"); in adjustFixupValue()
264 void AArch64AsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
267 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
270 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
272 Value = adjustFixupValue(Fixup, Value, nullptr); in applyFixup()
277 unsigned Offset = Fixup.getOffset(); in applyFixup()
281 unsigned FulleSizeInBytes = getFixupKindContainereSizeInBytes(Fixup.getKind()); in applyFixup()
305 bool AArch64AsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
541 const MCFixup &Fixup, const MCFragment *DF,
547 const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFixup &Fixup, in processFixupValue() argument
562 if ((uint32_t)Fixup.getKind() == AArch64::fixup_aarch64_pcrel_adrp_imm21) in processFixupValue()
569 (void)adjustFixupValue(Fixup, Value, &Asm.getContext()); in processFixupValue()