llvm.org GIT mirror llvm / 1c4f0f9
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279873 91177308-0d34-0410-b5e6-96231b3b80d8 Quentin Colombet 4 years ago
3 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
131131 Properties.set(static_cast(P));
132132 return *this;
133133 }
134 MachineFunctionProperties &clear(Property P) {
134 MachineFunctionProperties &reset(Property P) {
135135 Properties.reset(static_cast(P));
136136 return *this;
137137 }
139139 Properties |= MFP.Properties;
140140 return *this;
141141 }
142 MachineFunctionProperties &clear(const MachineFunctionProperties &MFP) {
142 MachineFunctionProperties &reset(const MachineFunctionProperties &MFP) {
143143 Properties.reset(MFP.Properties);
144144 return *this;
145145 }
165165
166166 // leaveSSA - Indicates that the machine function is no longer in SSA form.
167167 void leaveSSA() {
168 MF->getProperties().clear(MachineFunctionProperties::Property::IsSSA);
168 MF->getProperties().reset(MachineFunctionProperties::Property::IsSSA);
169169 }
170170
171171 /// tracksLiveness - Returns true when tracking register liveness accurately.
181181 /// This should be called by late passes that invalidate the liveness
182182 /// information.
183183 void invalidateLiveness() {
184 MF->getProperties().clear(
184 MF->getProperties().reset(
185185 MachineFunctionProperties::Property::TracksLiveness);
186186 }
187187
6161 bool RV = runOnMachineFunction(MF);
6262
6363 MFProps.set(SetProperties);
64 MFProps.clear(ClearedProperties);
64 MFProps.reset(ClearedProperties);
6565 return RV;
6666 }
6767