Lines Matching refs:RF

194   bool padInstructionViaRelaxation(MCRelaxableFragment &RF,
198 bool padInstructionViaPrefix(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
201 bool padInstructionEncoding(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
758 bool X86AsmBackend::padInstructionViaPrefix(MCRelaxableFragment &RF, in padInstructionViaPrefix() argument
761 if (!RF.getAllowAutoPadding()) in padInstructionViaPrefix()
767 if (mayNeedRelaxation(RF.getInst(), *RF.getSubtargetInfo())) in padInstructionViaPrefix()
770 const unsigned OldSize = RF.getContents().size(); in padInstructionViaPrefix()
777 Emitter.emitPrefix(RF.getInst(), Code, STI); in padInstructionViaPrefix()
795 const uint8_t Prefix = determinePaddingPrefix(RF.getInst()); in padInstructionViaPrefix()
799 Code.append(RF.getContents().begin(), RF.getContents().end()); in padInstructionViaPrefix()
800 RF.getContents() = Code; in padInstructionViaPrefix()
803 for (auto &F : RF.getFixups()) { in padInstructionViaPrefix()
811 bool X86AsmBackend::padInstructionViaRelaxation(MCRelaxableFragment &RF, in padInstructionViaRelaxation() argument
814 if (!mayNeedRelaxation(RF.getInst(), *RF.getSubtargetInfo())) in padInstructionViaRelaxation()
819 MCInst Relaxed = RF.getInst(); in padInstructionViaRelaxation()
820 relaxInstruction(Relaxed, *RF.getSubtargetInfo()); in padInstructionViaRelaxation()
824 Emitter.encodeInstruction(Relaxed, Code, Fixups, *RF.getSubtargetInfo()); in padInstructionViaRelaxation()
825 const unsigned OldSize = RF.getContents().size(); in padInstructionViaRelaxation()
831 RF.setInst(Relaxed); in padInstructionViaRelaxation()
832 RF.getContents() = Code; in padInstructionViaRelaxation()
833 RF.getFixups() = Fixups; in padInstructionViaRelaxation()
838 bool X86AsmBackend::padInstructionEncoding(MCRelaxableFragment &RF, in padInstructionEncoding() argument
843 Changed |= padInstructionViaRelaxation(RF, Emitter, RemainingSize); in padInstructionEncoding()
845 Changed |= padInstructionViaPrefix(RF, Emitter, RemainingSize); in padInstructionEncoding()
884 auto &RF = cast<MCRelaxableFragment>(*I); in finishLayout() local
885 Relaxable.push_back(&RF); in finishLayout()
917 auto &RF = *Relaxable.pop_back_val(); in finishLayout() local
921 if (padInstructionEncoding(RF, Asm.getEmitter(), RemainingSize)) in finishLayout()
922 FirstChangedFragment = &RF; in finishLayout()
930 if (mayNeedRelaxation(RF.getInst(), *RF.getSubtargetInfo())) in finishLayout()