Lines Matching defs:RF
192 bool padInstructionViaRelaxation(MCRelaxableFragment &RF,
196 bool padInstructionViaPrefix(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
199 bool padInstructionEncoding(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
773 bool X86AsmBackend::padInstructionViaPrefix(MCRelaxableFragment &RF,
776 if (!RF.getAllowAutoPadding())
782 if (mayNeedRelaxation(RF.getInst(), *RF.getSubtargetInfo()))
785 const unsigned OldSize = RF.getContents().size();
792 X86_MC::emitPrefix(Emitter, RF.getInst(), Code, STI);
810 const uint8_t Prefix = determinePaddingPrefix(RF.getInst());
814 Code.append(RF.getContents().begin(), RF.getContents().end());
815 RF.setContents(Code);
818 for (auto &F : RF.getFixups()) {
826 bool X86AsmBackend::padInstructionViaRelaxation(MCRelaxableFragment &RF,
829 if (!mayNeedRelaxation(RF.getInst(), *RF.getSubtargetInfo()))
834 MCInst Relaxed = RF.getInst();
835 relaxInstruction(Relaxed, *RF.getSubtargetInfo());
839 Emitter.encodeInstruction(Relaxed, Code, Fixups, *RF.getSubtargetInfo());
840 const unsigned OldSize = RF.getContents().size();
846 RF.setInst(Relaxed);
847 RF.setContents(Code);
848 RF.getFixups() = Fixups;
853 bool X86AsmBackend::padInstructionEncoding(MCRelaxableFragment &RF,
858 Changed |= padInstructionViaRelaxation(RF, Emitter, RemainingSize);
860 Changed |= padInstructionViaPrefix(RF, Emitter, RemainingSize);
896 auto &RF = cast<MCRelaxableFragment>(*I);
897 Relaxable.push_back(&RF);
928 auto &RF = *Relaxable.pop_back_val();
932 if (padInstructionEncoding(RF, Asm.getEmitter(), RemainingSize))
941 if (mayNeedRelaxation(RF.getInst(), *RF.getSubtargetInfo()))