llvm.org GIT mirror llvm / 7e94389
[MFProperties] Introduce a reset method with no argument. This method allows to reset all the properties in one go. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279874 91177308-0d34-0410-b5e6-96231b3b80d8 Quentin Colombet 4 years ago
2 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
135135 Properties.reset(static_cast(P));
136136 return *this;
137137 }
138 /// Reset all the properties.
139 MachineFunctionProperties &reset() {
140 Properties.reset();
141 return *this;
142 }
138143 MachineFunctionProperties &set(const MachineFunctionProperties &MFP) {
139144 Properties |= MFP.Properties;
140145 return *this;
310310 if (isSSA(MF))
311311 Properties.set(MachineFunctionProperties::Property::IsSSA);
312312 else
313 Properties.clear(MachineFunctionProperties::Property::IsSSA);
313 Properties.reset(MachineFunctionProperties::Property::IsSSA);
314314
315315 const MachineRegisterInfo &MRI = MF.getRegInfo();
316316 if (MRI.getNumVirtRegs() == 0)