Lines Matching refs:RF

193   bool padInstructionViaRelaxation(MCRelaxableFragment &RF,
197 bool padInstructionViaPrefix(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
200 bool padInstructionEncoding(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
774 static bool isFullyRelaxed(const MCRelaxableFragment &RF) { in isFullyRelaxed() argument
775 auto &Inst = RF.getInst(); in isFullyRelaxed()
776 auto &STI = *RF.getSubtargetInfo(); in isFullyRelaxed()
781 bool X86AsmBackend::padInstructionViaPrefix(MCRelaxableFragment &RF, in padInstructionViaPrefix() argument
784 if (!RF.getAllowAutoPadding()) in padInstructionViaPrefix()
790 if (!isFullyRelaxed(RF)) in padInstructionViaPrefix()
793 const unsigned OldSize = RF.getContents().size(); in padInstructionViaPrefix()
801 Emitter.emitPrefix(RF.getInst(), VecOS, STI); in padInstructionViaPrefix()
819 const uint8_t Prefix = determinePaddingPrefix(RF.getInst()); in padInstructionViaPrefix()
823 Code.append(RF.getContents().begin(), RF.getContents().end()); in padInstructionViaPrefix()
824 RF.getContents() = Code; in padInstructionViaPrefix()
827 for (auto &F : RF.getFixups()) { in padInstructionViaPrefix()
835 bool X86AsmBackend::padInstructionViaRelaxation(MCRelaxableFragment &RF, in padInstructionViaRelaxation() argument
838 if (isFullyRelaxed(RF)) in padInstructionViaRelaxation()
843 MCInst Relaxed = RF.getInst(); in padInstructionViaRelaxation()
844 relaxInstruction(Relaxed, *RF.getSubtargetInfo()); in padInstructionViaRelaxation()
849 Emitter.encodeInstruction(Relaxed, VecOS, Fixups, *RF.getSubtargetInfo()); in padInstructionViaRelaxation()
850 const unsigned OldSize = RF.getContents().size(); in padInstructionViaRelaxation()
856 RF.setInst(Relaxed); in padInstructionViaRelaxation()
857 RF.getContents() = Code; in padInstructionViaRelaxation()
858 RF.getFixups() = Fixups; in padInstructionViaRelaxation()
863 bool X86AsmBackend::padInstructionEncoding(MCRelaxableFragment &RF, in padInstructionEncoding() argument
868 Changed |= padInstructionViaRelaxation(RF, Emitter, RemainingSize); in padInstructionEncoding()
870 Changed |= padInstructionViaPrefix(RF, Emitter, RemainingSize); in padInstructionEncoding()
909 auto &RF = cast<MCRelaxableFragment>(*I); in finishLayout() local
910 Relaxable.push_back(&RF); in finishLayout()
942 auto &RF = *Relaxable.pop_back_val(); in finishLayout() local
946 if (padInstructionEncoding(RF, Asm.getEmitter(), RemainingSize)) in finishLayout()
947 FirstChangedFragment = &RF; in finishLayout()
955 if (!isFullyRelaxed(RF)) in finishLayout()