This method allows to reset all the properties in one go.
llvm-svn: 279874
Properties.reset(static_cast<unsigned>(P));
return *this;
}
+ /// Reset all the properties.
+ MachineFunctionProperties &reset() {
+ Properties.reset();
+ return *this;
+ }
MachineFunctionProperties &set(const MachineFunctionProperties &MFP) {
Properties |= MFP.Properties;
return *this;
if (isSSA(MF))
Properties.set(MachineFunctionProperties::Property::IsSSA);
else
- Properties.clear(MachineFunctionProperties::Property::IsSSA);
+ Properties.reset(MachineFunctionProperties::Property::IsSSA);
const MachineRegisterInfo &MRI = MF.getRegInfo();
if (MRI.getNumVirtRegs() == 0)