@@ -61,22 +61,22 @@ class X86ExpandPseudo : public MachineFunctionPass {
61
61
}
62
62
63
63
private:
64
- void ExpandICallBranchFunnel (MachineBasicBlock *MBB,
64
+ void expandICallBranchFunnel (MachineBasicBlock *MBB,
65
65
MachineBasicBlock::iterator MBBI);
66
66
void expandCALL_RVMARKER (MachineBasicBlock &MBB,
67
67
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);
70
70
71
71
// / This function expands pseudos which affects control flow.
72
72
// / 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);
75
75
76
76
// / Expand X86::VASTART_SAVE_XMM_REGS into set of xmm copying instructions,
77
77
// / placed into separate block guarded by check for al register(for SystemV
78
78
// / abi).
79
- void ExpandVastartSaveXmmRegs (
79
+ void expandVastartSaveXmmRegs (
80
80
MachineBasicBlock *EntryBlk,
81
81
MachineBasicBlock::iterator VAStartPseudoInstr) const ;
82
82
};
@@ -87,7 +87,7 @@ char X86ExpandPseudo::ID = 0;
87
87
INITIALIZE_PASS (X86ExpandPseudo, DEBUG_TYPE, X86_EXPAND_PSEUDO_NAME, false ,
88
88
false )
89
89
90
- void X86ExpandPseudo::ExpandICallBranchFunnel (
90
+ void X86ExpandPseudo::expandICallBranchFunnel (
91
91
MachineBasicBlock *MBB, MachineBasicBlock::iterator MBBI) {
92
92
MachineBasicBlock *JTMBB = MBB;
93
93
MachineInstr *JTInst = &*MBBI;
@@ -259,7 +259,7 @@ void X86ExpandPseudo::expandCALL_RVMARKER(MachineBasicBlock &MBB,
259
259
// / If \p MBBI is a pseudo instruction, this method expands
260
260
// / it to the corresponding (sequence of) actual instruction(s).
261
261
// / \returns true if \p MBBI has been expanded.
262
- bool X86ExpandPseudo::ExpandMI (MachineBasicBlock &MBB,
262
+ bool X86ExpandPseudo::expandMI (MachineBasicBlock &MBB,
263
263
MachineBasicBlock::iterator MBBI) {
264
264
MachineInstr &MI = *MBBI;
265
265
unsigned Opcode = MI.getOpcode ();
@@ -552,7 +552,7 @@ bool X86ExpandPseudo::ExpandMI(MachineBasicBlock &MBB,
552
552
return true ;
553
553
}
554
554
case TargetOpcode::ICALL_BRANCH_FUNNEL:
555
- ExpandICallBranchFunnel (&MBB, MBBI);
555
+ expandICallBranchFunnel (&MBB, MBBI);
556
556
return true ;
557
557
case X86::PLDTILECFGV: {
558
558
MI.setDesc (TII->get (GET_EGPR_IF_ENABLED (X86::LDTILECFG)));
@@ -631,7 +631,7 @@ bool X86ExpandPseudo::ExpandMI(MachineBasicBlock &MBB,
631
631
// | |
632
632
// | |
633
633
//
634
- void X86ExpandPseudo::ExpandVastartSaveXmmRegs (
634
+ void X86ExpandPseudo::expandVastartSaveXmmRegs (
635
635
MachineBasicBlock *EntryBlk,
636
636
MachineBasicBlock::iterator VAStartPseudoInstr) const {
637
637
assert (VAStartPseudoInstr->getOpcode () == X86::VASTART_SAVE_XMM_REGS);
@@ -716,27 +716,27 @@ void X86ExpandPseudo::ExpandVastartSaveXmmRegs(
716
716
717
717
// / Expand all pseudo instructions contained in \p MBB.
718
718
// / \returns true if any expansion occurred for \p MBB.
719
- bool X86ExpandPseudo::ExpandMBB (MachineBasicBlock &MBB) {
719
+ bool X86ExpandPseudo::expandMBB (MachineBasicBlock &MBB) {
720
720
bool Modified = false ;
721
721
722
722
// MBBI may be invalidated by the expansion.
723
723
MachineBasicBlock::iterator MBBI = MBB.begin (), E = MBB.end ();
724
724
while (MBBI != E) {
725
725
MachineBasicBlock::iterator NMBBI = std::next (MBBI);
726
- Modified |= ExpandMI (MBB, MBBI);
726
+ Modified |= expandMI (MBB, MBBI);
727
727
MBBI = NMBBI;
728
728
}
729
729
730
730
return Modified;
731
731
}
732
732
733
- bool X86ExpandPseudo::ExpandPseudosWhichAffectControlFlow (MachineFunction &MF) {
733
+ bool X86ExpandPseudo::expandPseudosWhichAffectControlFlow (MachineFunction &MF) {
734
734
// Currently pseudo which affects control flow is only
735
735
// X86::VASTART_SAVE_XMM_REGS which is located in Entry block.
736
736
// So we do not need to evaluate other blocks.
737
737
for (MachineInstr &Instr : MF.front ().instrs ()) {
738
738
if (Instr.getOpcode () == X86::VASTART_SAVE_XMM_REGS) {
739
- ExpandVastartSaveXmmRegs (&(MF.front ()), Instr);
739
+ expandVastartSaveXmmRegs (&(MF.front ()), Instr);
740
740
return true ;
741
741
}
742
742
}
@@ -751,10 +751,10 @@ bool X86ExpandPseudo::runOnMachineFunction(MachineFunction &MF) {
751
751
X86FI = MF.getInfo <X86MachineFunctionInfo>();
752
752
X86FL = STI->getFrameLowering ();
753
753
754
- bool Modified = ExpandPseudosWhichAffectControlFlow (MF);
754
+ bool Modified = expandPseudosWhichAffectControlFlow (MF);
755
755
756
756
for (MachineBasicBlock &MBB : MF)
757
- Modified |= ExpandMBB (MBB);
757
+ Modified |= expandMBB (MBB);
758
758
return Modified;
759
759
}
760
760
0 commit comments