• Home
  • Raw
  • Download

Lines Matching refs:RF

198   bool padInstructionViaRelaxation(MCRelaxableFragment &RF,
202 bool padInstructionViaPrefix(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
205 bool padInstructionEncoding(MCRelaxableFragment &RF, MCCodeEmitter &Emitter,
849 static bool isFullyRelaxed(const MCRelaxableFragment &RF) { in isFullyRelaxed() argument
850 auto &Inst = RF.getInst(); in isFullyRelaxed()
851 auto &STI = *RF.getSubtargetInfo(); in isFullyRelaxed()
856 bool X86AsmBackend::padInstructionViaPrefix(MCRelaxableFragment &RF, in padInstructionViaPrefix() argument
859 if (!RF.getAllowAutoPadding()) in padInstructionViaPrefix()
865 if (!isFullyRelaxed(RF)) in padInstructionViaPrefix()
868 const unsigned OldSize = RF.getContents().size(); in padInstructionViaPrefix()
876 Emitter.emitPrefix(RF.getInst(), VecOS, STI); in padInstructionViaPrefix()
894 const uint8_t Prefix = determinePaddingPrefix(RF.getInst()); in padInstructionViaPrefix()
898 Code.append(RF.getContents().begin(), RF.getContents().end()); in padInstructionViaPrefix()
899 RF.getContents() = Code; in padInstructionViaPrefix()
902 for (auto &F : RF.getFixups()) { in padInstructionViaPrefix()
910 bool X86AsmBackend::padInstructionViaRelaxation(MCRelaxableFragment &RF, in padInstructionViaRelaxation() argument
913 if (isFullyRelaxed(RF)) in padInstructionViaRelaxation()
918 MCInst Relaxed = RF.getInst(); in padInstructionViaRelaxation()
919 relaxInstruction(Relaxed, *RF.getSubtargetInfo()); in padInstructionViaRelaxation()
924 Emitter.encodeInstruction(Relaxed, VecOS, Fixups, *RF.getSubtargetInfo()); in padInstructionViaRelaxation()
925 const unsigned OldSize = RF.getContents().size(); in padInstructionViaRelaxation()
931 RF.setInst(Relaxed); in padInstructionViaRelaxation()
932 RF.getContents() = Code; in padInstructionViaRelaxation()
933 RF.getFixups() = Fixups; in padInstructionViaRelaxation()
938 bool X86AsmBackend::padInstructionEncoding(MCRelaxableFragment &RF, in padInstructionEncoding() argument
943 Changed |= padInstructionViaRelaxation(RF, Emitter, RemainingSize); in padInstructionEncoding()
945 Changed |= padInstructionViaPrefix(RF, Emitter, RemainingSize); in padInstructionEncoding()
981 auto &RF = cast<MCRelaxableFragment>(*I); in finishLayout() local
982 Relaxable.push_back(&RF); in finishLayout()
1014 auto &RF = *Relaxable.pop_back_val(); in finishLayout() local
1018 if (padInstructionEncoding(RF, Asm.getEmitter(), RemainingSize)) in finishLayout()
1019 FirstChangedFragment = &RF; in finishLayout()
1027 if (!isFullyRelaxed(RF)) in finishLayout()