Lines Matching defs:RF

198   bool padInstructionViaRelaxation(MCRelaxableFragment &RF,
202 bool padInstructionViaPrefix(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
205 bool padInstructionEncoding(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
858 static bool isFullyRelaxed(const MCRelaxableFragment &RF) {
859 auto &Inst = RF.getInst();
860 auto &STI = *RF.getSubtargetInfo();
865 bool X86AsmBackend::padInstructionViaPrefix(MCRelaxableFragment &RF,
868 if (!RF.getAllowAutoPadding())
874 if (!isFullyRelaxed(RF))
877 const unsigned OldSize = RF.getContents().size();
885 Emitter.emitPrefix(RF.getInst(), VecOS, STI);
903 const uint8_t Prefix = determinePaddingPrefix(RF.getInst());
907 Code.append(RF.getContents().begin(), RF.getContents().end());
908 RF.getContents() = Code;
911 for (auto &F : RF.getFixups()) {
919 bool X86AsmBackend::padInstructionViaRelaxation(MCRelaxableFragment &RF,
922 if (isFullyRelaxed(RF))
927 MCInst Relaxed = RF.getInst();
928 relaxInstruction(Relaxed, *RF.getSubtargetInfo());
933 Emitter.encodeInstruction(Relaxed, VecOS, Fixups, *RF.getSubtargetInfo());
934 const unsigned OldSize = RF.getContents().size();
940 RF.setInst(Relaxed);
941 RF.getContents() = Code;
942 RF.getFixups() = Fixups;
947 bool X86AsmBackend::padInstructionEncoding(MCRelaxableFragment &RF,
952 Changed |= padInstructionViaRelaxation(RF, Emitter, RemainingSize);
954 Changed |= padInstructionViaPrefix(RF, Emitter, RemainingSize);
993 auto &RF = cast<MCRelaxableFragment>(*I);
994 Relaxable.push_back(&RF);
1026 auto &RF = *Relaxable.pop_back_val();
1030 if (padInstructionEncoding(RF, Asm.getEmitter(), RemainingSize))
1031 FirstChangedFragment = &RF;
1039 if (!isFullyRelaxed(RF))