Lines Matching defs:Feature
30 static inline bool hasFlag(StringRef Feature) {
31 assert(!Feature.empty() && "Empty string");
33 char Ch = Feature[0];
40 static inline std::string StripFlag(StringRef Feature) {
41 return hasFlag(Feature) ? Feature.substr(1) : Feature;
46 static inline bool isEnabled(StringRef Feature) {
47 assert(!Feature.empty() && "Empty string");
49 char Ch = Feature[0];
116 // Determine the length of the longest CPU and Feature entries.
126 // Print the Feature table.
128 for (auto &Feature : FeatTable)
129 errs() << format(" %-*s - %s.\n", MaxFeatLen, Feature.Key, Feature.Desc);
185 SubtargetFeatures::ToggleFeature(uint64_t Bits, StringRef Feature,
190 Find(StripFlag(Feature), FeatureTable);
208 errs() << "'" << Feature
266 for (auto &Feature : Features) {
268 if (Feature == "+help")
273 Find(StripFlag(Feature), FeatureTable);
277 if (isEnabled(Feature)) {
292 errs() << "'" << Feature