Lines Matching refs:Bits
135 void SetImpliedBits(FeatureBitset &Bits, const SubtargetFeatureKV *FeatureEntry, in SetImpliedBits() argument
141 Bits |= FE.Value; in SetImpliedBits()
142 SetImpliedBits(Bits, &FE, FeatureTable); in SetImpliedBits()
151 void ClearImpliedBits(FeatureBitset &Bits, in ClearImpliedBits() argument
158 Bits &= ~FE.Value; in ClearImpliedBits()
159 ClearImpliedBits(Bits, &FE, FeatureTable); in ClearImpliedBits()
166 SubtargetFeatures::ToggleFeature(FeatureBitset &Bits, StringRef Feature, in ToggleFeature() argument
174 if ((Bits & FeatureEntry->Value) == FeatureEntry->Value) { in ToggleFeature()
175 Bits &= ~FeatureEntry->Value; in ToggleFeature()
177 ClearImpliedBits(Bits, FeatureEntry, FeatureTable); in ToggleFeature()
179 Bits |= FeatureEntry->Value; in ToggleFeature()
182 SetImpliedBits(Bits, FeatureEntry, FeatureTable); in ToggleFeature()
191 void SubtargetFeatures::ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, in ApplyFeatureFlag() argument
203 Bits |= FeatureEntry->Value; in ApplyFeatureFlag()
206 SetImpliedBits(Bits, FeatureEntry, FeatureTable); in ApplyFeatureFlag()
208 Bits &= ~FeatureEntry->Value; in ApplyFeatureFlag()
211 ClearImpliedBits(Bits, FeatureEntry, FeatureTable); in ApplyFeatureFlag()
238 FeatureBitset Bits; in getFeatureBits() local
251 Bits = CPUEntry->Value; in getFeatureBits()
256 SetImpliedBits(Bits, &FE, FeatureTable); in getFeatureBits()
271 ApplyFeatureFlag(Bits, Feature, FeatureTable); in getFeatureBits()
274 return Bits; in getFeatureBits()