Lines Matching refs:Feature
31 static inline bool hasFlag(StringRef Feature) {
32 assert(!Feature.empty() && "Empty string");
34 char Ch = Feature[0];
41 static inline std::string StripFlag(StringRef Feature) {
42 return hasFlag(Feature) ? Feature.substr(1) : Feature;
47 static inline bool isEnabled(StringRef Feature) {
48 assert(!Feature.empty() && "Empty string");
50 char Ch = Feature[0];
96 // Determine the length of the longest CPU and Feature entries.
106 // Print the Feature table.
108 for (auto &Feature : FeatTable)
109 errs() << format(" %-*s - %s.\n", MaxFeatLen, Feature.Key, Feature.Desc);
165 SubtargetFeatures::ToggleFeature(FeatureBitset &Bits, StringRef Feature,
170 Find(StripFlag(Feature), FeatureTable);
184 errs() << "'" << Feature
190 void SubtargetFeatures::ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature,
193 assert(hasFlag(Feature));
197 Find(StripFlag(Feature), FeatureTable);
201 if (isEnabled(Feature)) {
213 errs() << "'" << Feature
265 for (auto &Feature : Features) {
267 if (Feature == "+help")
270 ApplyFeatureFlag(Bits, Feature, FeatureTable);