@@ -2938,21 +2938,21 @@ bool RISCVInstrInfo::shouldOutlineFromFunctionByDefault(
29382938 return MF.getFunction ().hasMinSize ();
29392939}
29402940
2941- static bool IsCandidatePatchable (const MachineInstr &MI) {
2941+ static bool isCandidatePatchable (const MachineInstr &MI) {
29422942 const MachineBasicBlock *MBB = MI.getParent ();
29432943 const MachineFunction *MF = MBB->getParent ();
29442944 const Function &F = MF->getFunction ();
29452945 return F.getFnAttribute (" fentry-call" ).getValueAsBool () ||
29462946 F.hasFnAttribute (" patchable-function-entry" );
29472947}
29482948
2949- static bool CannotInsertTailCall (const MachineInstr &MI) {
2949+ static bool cannotInsertTailCall (const MachineInstr &MI) {
29502950 if (MI.isTerminator ())
2951- return IsCandidatePatchable (MI);
2951+ return isCandidatePatchable (MI);
29522952 return true ;
29532953}
29542954
2955- static bool MIUseX5 (const MachineInstr &MI, const TargetRegisterInfo *TRI) {
2955+ static bool isMIUsesX5 (const MachineInstr &MI, const TargetRegisterInfo *TRI) {
29562956 return MI.modifiesRegister (RISCV::X5, TRI) ||
29572957 MI.getDesc ().hasImplicitDefOfPhysReg (RISCV::X5);
29582958}
@@ -2963,18 +2963,18 @@ RISCVInstrInfo::getOutliningCandidateInfo(
29632963 std::vector<outliner::Candidate> &RepeatedSequenceLocs,
29642964 unsigned MinRepeats) const {
29652965
2966- auto CandidateUseX5 = [](outliner::Candidate &C) {
2966+ auto CandidateUsesX5 = [](outliner::Candidate &C) {
29672967 const TargetRegisterInfo *TRI = C.getMF ()->getSubtarget ().getRegisterInfo ();
29682968 for (const MachineInstr &MI : C)
2969- if (MIUseX5 (MI, TRI))
2969+ if (isMIUsesX5 (MI, TRI))
29702970 return true ;
29712971 return !C.isAvailableAcrossAndOutOfSeq (RISCV::X5, *TRI);
29722972 };
29732973
2974- auto CannotInsertCall = [CandidateUseX5 ](outliner::Candidate &C) {
2975- if (!CandidateUseX5 (C))
2974+ auto CannotInsertCall = [CandidateUsesX5 ](outliner::Candidate &C) {
2975+ if (!CandidateUsesX5 (C))
29762976 return false ;
2977- if (!CannotInsertTailCall (C.back ()))
2977+ if (!cannotInsertTailCall (C.back ()))
29782978 return false ;
29792979 return true ;
29802980 };
@@ -2990,12 +2990,12 @@ RISCVInstrInfo::getOutliningCandidateInfo(
29902990 for (auto &MI : RepeatedSequenceLocs[0 ])
29912991 SequenceSize += getInstSizeInBytes (MI);
29922992
2993- if (!CannotInsertTailCall (RepeatedSequenceLocs[0 ].back ())) {
2993+ if (!cannotInsertTailCall (RepeatedSequenceLocs[0 ].back ())) {
29942994 // tail function = 8 bytes. Can't be compressed
29952995 for (auto &C : RepeatedSequenceLocs)
29962996 C.setCallInfo (MachineOutlinerTailCall, 8 );
29972997
2998- // Using tail call we move ret instrunction from caller to calee .
2998+ // Using tail call we move ret instruction from caller to calle .
29992999 // So, FrameOverhead for this is 0
30003000 return std::make_unique<outliner::OutlinedFunction>(
30013001 RepeatedSequenceLocs, SequenceSize, 0 , MachineOutlinerTailCall);
@@ -3037,7 +3037,7 @@ RISCVInstrInfo::getOutliningTypeImpl(const MachineModuleInfo &MMI,
30373037 return F.needsUnwindTableEntry () ? outliner::InstrType::Illegal
30383038 : outliner::InstrType::Invisible;
30393039
3040- if (CannotInsertTailCall (MBB->back ()) && MIUseX5 (MI, TRI))
3040+ if (cannotInsertTailCall (MBB->back ()) && isMIUsesX5 (MI, TRI))
30413041 return outliner::InstrType::Illegal;
30423042
30433043 // Make sure the operands don't reference something unsafe.
@@ -3080,9 +3080,9 @@ void RISCVInstrInfo::buildOutlinedFrame(
30803080
30813081 // Add in a return instruction to the end of the outlined frame.
30823082 MBB.insert (MBB.end (), BuildMI (MF, DebugLoc (), get (RISCV::JALR))
3083- .addReg (RISCV::X0, RegState::Define)
3084- .addReg (RISCV::X5)
3085- .addImm (0 ));
3083+ .addReg (RISCV::X0, RegState::Define)
3084+ .addReg (RISCV::X5)
3085+ .addImm (0 ));
30863086}
30873087
30883088MachineBasicBlock::iterator RISCVInstrInfo::insertOutlinedCall (
0 commit comments