[llvm] r279873 - [MFProperties][NFC] Rename clear into reset to match BitVector naming.
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 26 15:09:09 PDT 2016
Author: qcolombet
Date: Fri Aug 26 17:09:08 2016
New Revision: 279873
URL: http://llvm.org/viewvc/llvm-project?rev=279873&view=rev
Log:
[MFProperties][NFC] Rename clear into reset to match BitVector naming.
The name clear is used to reset all the bit in bitvectors and using it
to reset just properties was confusing.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineFunction.h
llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h
llvm/trunk/lib/CodeGen/MachineFunctionPass.cpp
Modified: llvm/trunk/include/llvm/CodeGen/MachineFunction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineFunction.h?rev=279873&r1=279872&r2=279873&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineFunction.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineFunction.h Fri Aug 26 17:09:08 2016
@@ -132,7 +132,7 @@ public:
Properties.set(static_cast<unsigned>(P));
return *this;
}
- MachineFunctionProperties &clear(Property P) {
+ MachineFunctionProperties &reset(Property P) {
Properties.reset(static_cast<unsigned>(P));
return *this;
}
@@ -140,7 +140,7 @@ public:
Properties |= MFP.Properties;
return *this;
}
- MachineFunctionProperties &clear(const MachineFunctionProperties &MFP) {
+ MachineFunctionProperties &reset(const MachineFunctionProperties &MFP) {
Properties.reset(MFP.Properties);
return *this;
}
Modified: llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h?rev=279873&r1=279872&r2=279873&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h Fri Aug 26 17:09:08 2016
@@ -166,7 +166,7 @@ public:
// leaveSSA - Indicates that the machine function is no longer in SSA form.
void leaveSSA() {
- MF->getProperties().clear(MachineFunctionProperties::Property::IsSSA);
+ MF->getProperties().reset(MachineFunctionProperties::Property::IsSSA);
}
/// tracksLiveness - Returns true when tracking register liveness accurately.
@@ -182,7 +182,7 @@ public:
/// This should be called by late passes that invalidate the liveness
/// information.
void invalidateLiveness() {
- MF->getProperties().clear(
+ MF->getProperties().reset(
MachineFunctionProperties::Property::TracksLiveness);
}
Modified: llvm/trunk/lib/CodeGen/MachineFunctionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFunctionPass.cpp?rev=279873&r1=279872&r2=279873&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFunctionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFunctionPass.cpp Fri Aug 26 17:09:08 2016
@@ -62,7 +62,7 @@ bool MachineFunctionPass::runOnFunction(
bool RV = runOnMachineFunction(MF);
MFProps.set(SetProperties);
- MFProps.clear(ClearedProperties);
+ MFProps.reset(ClearedProperties);
return RV;
}
More information about the llvm-commits
mailing list