diff options
author | Shengchen Kan <shengchen.kan@intel.com> | 2022-03-16 20:21:25 +0800 |
---|---|---|
committer | Shengchen Kan <shengchen.kan@intel.com> | 2022-03-16 20:25:42 +0800 |
commit | 37b378386eefab39ef570db6172a8b8e660d7bfb (patch) | |
tree | 2ea96dcb5e41e7dacc690037142c475f4d77c7b9 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 14d1a582093951973a5b94e4aab4d91ef4a0b80d (diff) | |
download | llvm-37b378386eefab39ef570db6172a8b8e660d7bfb.zip llvm-37b378386eefab39ef570db6172a8b8e660d7bfb.tar.gz llvm-37b378386eefab39ef570db6172a8b8e660d7bfb.tar.bz2 |
[NFC][CodeGen] Rename some functions in MachineInstr.h and remove duplicated comments
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 992ba27..9f6be9a 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -132,7 +132,7 @@ void ilist_callback_traits<MachineBasicBlock>::addNodeToList( // Make sure the instructions have their operands in the reginfo lists. MachineRegisterInfo &RegInfo = MF.getRegInfo(); for (MachineInstr &MI : N->instrs()) - MI.AddRegOperandsToUseLists(RegInfo); + MI.addRegOperandsToUseLists(RegInfo); } void ilist_callback_traits<MachineBasicBlock>::removeNodeFromList( @@ -150,7 +150,7 @@ void ilist_traits<MachineInstr>::addNodeToList(MachineInstr *N) { // Add the instruction's register operands to their corresponding // use/def lists. MachineFunction *MF = Parent->getParent(); - N->AddRegOperandsToUseLists(MF->getRegInfo()); + N->addRegOperandsToUseLists(MF->getRegInfo()); MF->handleInsertion(*N); } @@ -162,7 +162,7 @@ void ilist_traits<MachineInstr>::removeNodeFromList(MachineInstr *N) { // Remove from the use/def lists. if (MachineFunction *MF = N->getMF()) { MF->handleRemoval(*N); - N->RemoveRegOperandsFromUseLists(MF->getRegInfo()); + N->removeRegOperandsFromUseLists(MF->getRegInfo()); } N->setParent(nullptr); |