Skip to content

Commit 265e49d

Browse files
committed
[X86][NFC] Lowercase first letter of function names in X86ExpandPseudo.cpp
1 parent 273cfd3 commit 265e49d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

llvm/lib/Target/X86/X86ExpandPseudo.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,22 @@ class X86ExpandPseudo : public MachineFunctionPass {
6161
}
6262

6363
private:
64-
void ExpandICallBranchFunnel(MachineBasicBlock *MBB,
64+
void expandICallBranchFunnel(MachineBasicBlock *MBB,
6565
MachineBasicBlock::iterator MBBI);
6666
void expandCALL_RVMARKER(MachineBasicBlock &MBB,
6767
MachineBasicBlock::iterator MBBI);
68-
bool ExpandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI);
69-
bool ExpandMBB(MachineBasicBlock &MBB);
68+
bool expandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI);
69+
bool expandMBB(MachineBasicBlock &MBB);
7070

7171
/// This function expands pseudos which affects control flow.
7272
/// It is done in separate pass to simplify blocks navigation in main
73-
/// pass(calling ExpandMBB).
74-
bool ExpandPseudosWhichAffectControlFlow(MachineFunction &MF);
73+
/// pass(calling expandMBB).
74+
bool expandPseudosWhichAffectControlFlow(MachineFunction &MF);
7575

7676
/// Expand X86::VASTART_SAVE_XMM_REGS into set of xmm copying instructions,
7777
/// placed into separate block guarded by check for al register(for SystemV
7878
/// abi).
79-
void ExpandVastartSaveXmmRegs(
79+
void expandVastartSaveXmmRegs(
8080
MachineBasicBlock *EntryBlk,
8181
MachineBasicBlock::iterator VAStartPseudoInstr) const;
8282
};
@@ -87,7 +87,7 @@ char X86ExpandPseudo::ID = 0;
8787
INITIALIZE_PASS(X86ExpandPseudo, DEBUG_TYPE, X86_EXPAND_PSEUDO_NAME, false,
8888
false)
8989

90-
void X86ExpandPseudo::ExpandICallBranchFunnel(
90+
void X86ExpandPseudo::expandICallBranchFunnel(
9191
MachineBasicBlock *MBB, MachineBasicBlock::iterator MBBI) {
9292
MachineBasicBlock *JTMBB = MBB;
9393
MachineInstr *JTInst = &*MBBI;
@@ -259,7 +259,7 @@ void X86ExpandPseudo::expandCALL_RVMARKER(MachineBasicBlock &MBB,
259259
/// If \p MBBI is a pseudo instruction, this method expands
260260
/// it to the corresponding (sequence of) actual instruction(s).
261261
/// \returns true if \p MBBI has been expanded.
262-
bool X86ExpandPseudo::ExpandMI(MachineBasicBlock &MBB,
262+
bool X86ExpandPseudo::expandMI(MachineBasicBlock &MBB,
263263
MachineBasicBlock::iterator MBBI) {
264264
MachineInstr &MI = *MBBI;
265265
unsigned Opcode = MI.getOpcode();
@@ -552,7 +552,7 @@ bool X86ExpandPseudo::ExpandMI(MachineBasicBlock &MBB,
552552
return true;
553553
}
554554
case TargetOpcode::ICALL_BRANCH_FUNNEL:
555-
ExpandICallBranchFunnel(&MBB, MBBI);
555+
expandICallBranchFunnel(&MBB, MBBI);
556556
return true;
557557
case X86::PLDTILECFGV: {
558558
MI.setDesc(TII->get(GET_EGPR_IF_ENABLED(X86::LDTILECFG)));
@@ -631,7 +631,7 @@ bool X86ExpandPseudo::ExpandMI(MachineBasicBlock &MBB,
631631
// | |
632632
// | |
633633
//
634-
void X86ExpandPseudo::ExpandVastartSaveXmmRegs(
634+
void X86ExpandPseudo::expandVastartSaveXmmRegs(
635635
MachineBasicBlock *EntryBlk,
636636
MachineBasicBlock::iterator VAStartPseudoInstr) const {
637637
assert(VAStartPseudoInstr->getOpcode() == X86::VASTART_SAVE_XMM_REGS);
@@ -716,27 +716,27 @@ void X86ExpandPseudo::ExpandVastartSaveXmmRegs(
716716

717717
/// Expand all pseudo instructions contained in \p MBB.
718718
/// \returns true if any expansion occurred for \p MBB.
719-
bool X86ExpandPseudo::ExpandMBB(MachineBasicBlock &MBB) {
719+
bool X86ExpandPseudo::expandMBB(MachineBasicBlock &MBB) {
720720
bool Modified = false;
721721

722722
// MBBI may be invalidated by the expansion.
723723
MachineBasicBlock::iterator MBBI = MBB.begin(), E = MBB.end();
724724
while (MBBI != E) {
725725
MachineBasicBlock::iterator NMBBI = std::next(MBBI);
726-
Modified |= ExpandMI(MBB, MBBI);
726+
Modified |= expandMI(MBB, MBBI);
727727
MBBI = NMBBI;
728728
}
729729

730730
return Modified;
731731
}
732732

733-
bool X86ExpandPseudo::ExpandPseudosWhichAffectControlFlow(MachineFunction &MF) {
733+
bool X86ExpandPseudo::expandPseudosWhichAffectControlFlow(MachineFunction &MF) {
734734
// Currently pseudo which affects control flow is only
735735
// X86::VASTART_SAVE_XMM_REGS which is located in Entry block.
736736
// So we do not need to evaluate other blocks.
737737
for (MachineInstr &Instr : MF.front().instrs()) {
738738
if (Instr.getOpcode() == X86::VASTART_SAVE_XMM_REGS) {
739-
ExpandVastartSaveXmmRegs(&(MF.front()), Instr);
739+
expandVastartSaveXmmRegs(&(MF.front()), Instr);
740740
return true;
741741
}
742742
}
@@ -751,10 +751,10 @@ bool X86ExpandPseudo::runOnMachineFunction(MachineFunction &MF) {
751751
X86FI = MF.getInfo<X86MachineFunctionInfo>();
752752
X86FL = STI->getFrameLowering();
753753

754-
bool Modified = ExpandPseudosWhichAffectControlFlow(MF);
754+
bool Modified = expandPseudosWhichAffectControlFlow(MF);
755755

756756
for (MachineBasicBlock &MBB : MF)
757-
Modified |= ExpandMBB(MBB);
757+
Modified |= expandMBB(MBB);
758758
return Modified;
759759
}
760760

0 commit comments

Comments
 (0)