Lines Matching defs:RF

194   bool padInstructionViaRelaxation(MCRelaxableFragment &RF,
198 bool padInstructionViaPrefix(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
201 bool padInstructionEncoding(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
768 bool X86AsmBackend::padInstructionViaPrefix(MCRelaxableFragment &RF,
771 if (!RF.getAllowAutoPadding())
777 if (mayNeedRelaxation(RF.getInst(), *RF.getSubtargetInfo()))
780 const unsigned OldSize = RF.getContents().size();
787 X86_MC::emitPrefix(Emitter, RF.getInst(), Code, STI);
805 const uint8_t Prefix = determinePaddingPrefix(RF.getInst());
809 Code.append(RF.getContents().begin(), RF.getContents().end());
810 RF.getContents() = Code;
813 for (auto &F : RF.getFixups()) {
821 bool X86AsmBackend::padInstructionViaRelaxation(MCRelaxableFragment &RF,
824 if (!mayNeedRelaxation(RF.getInst(), *RF.getSubtargetInfo()))
829 MCInst Relaxed = RF.getInst();
830 relaxInstruction(Relaxed, *RF.getSubtargetInfo());
834 Emitter.encodeInstruction(Relaxed, Code, Fixups, *RF.getSubtargetInfo());
835 const unsigned OldSize = RF.getContents().size();
841 RF.setInst(Relaxed);
842 RF.getContents() = Code;
843 RF.getFixups() = Fixups;
848 bool X86AsmBackend::padInstructionEncoding(MCRelaxableFragment &RF,
853 Changed |= padInstructionViaRelaxation(RF, Emitter, RemainingSize);
855 Changed |= padInstructionViaPrefix(RF, Emitter, RemainingSize);
893 auto &RF = cast<MCRelaxableFragment>(*I);
894 Relaxable.push_back(&RF);
925 auto &RF = *Relaxable.pop_back_val();
929 if (padInstructionEncoding(RF, Asm.getEmitter(), RemainingSize))
938 if (mayNeedRelaxation(RF.getInst(), *RF.getSubtargetInfo()))