[llvm] 4afae6f - [NFC] Rename MachineFunction::cloneMachineInstrBundle (coding style)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 8 21:13:44 PST 2021
Author: Mircea Trofin
Date: 2021-12-08T21:12:54-08:00
New Revision: 4afae6f7c7f66681c20cb1894f7d0806822ee2ae
URL: https://github.com/llvm/llvm-project/commit/4afae6f7c7f66681c20cb1894f7d0806822ee2ae
DIFF: https://github.com/llvm/llvm-project/commit/4afae6f7c7f66681c20cb1894f7d0806822ee2ae.diff
LOG: [NFC] Rename MachineFunction::cloneMachineInstrBundle (coding style)
Added:
Modified:
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/lib/CodeGen/MachineFunction.cpp
llvm/lib/CodeGen/TargetInstrInfo.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index fe9ae07858e6..c4767a51b094 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/include/llvm/CodeGen/MachineFunction.h
@@ -907,8 +907,10 @@ class LLVM_EXTERNAL_VISIBILITY MachineFunction {
///
/// Note: Does not perform target specific adjustments; consider using
/// TargetInstrInfo::duplicate() intead.
- MachineInstr &CloneMachineInstrBundle(MachineBasicBlock &MBB,
- MachineBasicBlock::iterator InsertBefore, const MachineInstr &Orig);
+ MachineInstr &
+ cloneMachineInstrBundle(MachineBasicBlock &MBB,
+ MachineBasicBlock::iterator InsertBefore,
+ const MachineInstr &Orig);
/// DeleteMachineInstr - Delete the given MachineInstr.
void deleteMachineInstr(MachineInstr *MI);
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index c534506c1c45..1d4e1fbdd803 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -364,8 +364,9 @@ MachineFunction::CloneMachineInstr(const MachineInstr *Orig) {
MachineInstr(*this, *Orig);
}
-MachineInstr &MachineFunction::CloneMachineInstrBundle(MachineBasicBlock &MBB,
- MachineBasicBlock::iterator InsertBefore, const MachineInstr &Orig) {
+MachineInstr &MachineFunction::cloneMachineInstrBundle(
+ MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore,
+ const MachineInstr &Orig) {
MachineInstr *FirstClone = nullptr;
MachineBasicBlock::const_instr_iterator I = Orig.getIterator();
while (true) {
diff --git a/llvm/lib/CodeGen/TargetInstrInfo.cpp b/llvm/lib/CodeGen/TargetInstrInfo.cpp
index 5119dac36713..6dd4dc28845a 100644
--- a/llvm/lib/CodeGen/TargetInstrInfo.cpp
+++ b/llvm/lib/CodeGen/TargetInstrInfo.cpp
@@ -436,7 +436,7 @@ MachineInstr &TargetInstrInfo::duplicate(MachineBasicBlock &MBB,
MachineBasicBlock::iterator InsertBefore, const MachineInstr &Orig) const {
assert(!Orig.isNotDuplicable() && "Instruction cannot be duplicated");
MachineFunction &MF = *MBB.getParent();
- return MF.CloneMachineInstrBundle(MBB, InsertBefore, Orig);
+ return MF.cloneMachineInstrBundle(MBB, InsertBefore, Orig);
}
// If the COPY instruction in MI can be folded to a stack operation, return
More information about the llvm-commits
mailing list