Lines Matching refs:Feature
30 static inline bool hasFlag(const StringRef Feature) { in hasFlag() argument
31 assert(!Feature.empty() && "Empty string"); in hasFlag()
33 char Ch = Feature[0]; in hasFlag()
40 static inline std::string StripFlag(const StringRef Feature) { in StripFlag() argument
41 return hasFlag(Feature) ? Feature.substr(1) : Feature; in StripFlag()
46 static inline bool isEnabled(const StringRef Feature) { in isEnabled() argument
47 assert(!Feature.empty() && "Empty string"); in isEnabled()
49 char Ch = Feature[0]; in isEnabled()
56 static inline std::string PrependFlag(const StringRef Feature, in PrependFlag() argument
58 assert(!Feature.empty() && "Empty string"); in PrependFlag()
59 if (hasFlag(Feature)) in PrependFlag()
60 return Feature; in PrependFlag()
62 Prefix += Feature; in PrependFlag()
230 SubtargetFeatures::ToggleFeature(uint64_t Bits, const StringRef Feature, in ToggleFeature() argument
235 Find(StripFlag(Feature), FeatureTable, FeatureTableSize); in ToggleFeature()
250 errs() << "'" << Feature in ToggleFeature()
308 const StringRef Feature = Features[i]; in getFeatureBits() local
311 if (Feature == "+help") in getFeatureBits()
316 Find(StripFlag(Feature), FeatureTable, FeatureTableSize); in getFeatureBits()
320 if (isEnabled(Feature)) { in getFeatureBits()
332 errs() << "'" << Feature in getFeatureBits()