mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[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. llvm-svn: 279873
This commit is contained in:
parent
2dbd047f3a
commit
e0a55b84fa
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ bool MachineFunctionPass::runOnFunction(Function &F) {
|
||||
bool RV = runOnMachineFunction(MF);
|
||||
|
||||
MFProps.set(SetProperties);
|
||||
MFProps.clear(ClearedProperties);
|
||||
MFProps.reset(ClearedProperties);
|
||||
return RV;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user