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