Lines Matching defs:Asm
115 bool RISCVAsmBackend::shouldForceRelocation(const MCAssembler &Asm,
144 const MCAssembler &Asm, const MCFixup &Fixup, bool Resolved, uint64_t Value,
206 bool RISCVAsmBackend::relaxDwarfLineAddr(const MCAssembler &Asm,
209 MCContext &C = Asm.getContext();
219 AddrDelta.evaluateKnownAbsolute(Value, Asm);
272 bool RISCVAsmBackend::relaxDwarfCFA(const MCAssembler &Asm,
281 if (AddrDelta.evaluateAsAbsolute(Value, Asm))
284 AddrDelta.evaluateKnownAbsolute(Value, Asm);
291 assert(Asm.getContext().getAsmInfo()->getMinInstAlignment() == 1 &&
334 std::pair<bool, bool> RISCVAsmBackend::relaxLEB128(const MCAssembler &Asm,
344 return std::make_pair(Expr.evaluateKnownAbsolute(Value, Asm), false);
521 bool RISCVAsmBackend::evaluateTargetFixup(const MCAssembler &Asm,
543 Asm.getContext().reportError(Fixup.getLoc(),
551 if (!AUIPCExpr->evaluateAsRelocatable(AUIPCTarget, &Asm, AUIPCFixup))
571 Value = Asm.getSymbolOffset(SA) + AUIPCTarget.getConstant();
572 Value -= Asm.getFragmentOffset(*AUIPCDF) + AUIPCFixup->getOffset();
574 if (shouldForceRelocation(Asm, *AUIPCFixup, AUIPCTarget, Value, STI)) {
582 bool RISCVAsmBackend::handleAddSubRelocations(const MCAssembler &Asm,
621 auto &Assembler = const_cast<MCAssembler &>(Asm);
622 Asm.getWriter().recordRelocation(Assembler, &F, FA, A, FixedValueA);
623 Asm.getWriter().recordRelocation(Assembler, &F, FB, B, FixedValueB);
628 void RISCVAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
636 MCContext &Ctx = Asm.getContext();
686 bool RISCVAsmBackend::shouldInsertFixupForCodeAlign(MCAssembler &Asm,
699 MCContext &Ctx = Asm.getContext();
708 Asm.getWriter().recordRelocation(Asm, &AF, Fixup, NopBytes, FixedValue);