Home | History | Annotate | Download | only in MC

Lines Matching defs:Feature

28 /// hasFlag - Determine if a feature has a flag; '+' or '-'
30 static inline bool hasFlag(const StringRef Feature) {
31 assert(!Feature.empty() && "Empty string");
33 char Ch = Feature[0];
40 static inline std::string StripFlag(const StringRef Feature) {
41 return hasFlag(Feature) ? Feature.substr(1) : Feature;
46 static inline bool isEnabled(const StringRef Feature) {
47 assert(!Feature.empty() && "Empty string");
49 char Ch = Feature[0];
56 static inline std::string PrependFlag(const StringRef Feature,
58 assert(!Feature.empty() && "Empty string");
59 if (hasFlag(Feature))
60 return Feature;
62 Prefix += Feature;
97 // Start with the first feature
99 // For each successive feature
103 // Add the feature
146 /// Display help for feature choices.
150 // Determine the length of the longest CPU and Feature entries.
162 // Print the Feature table.
170 errs() << "Use +feature to enable a feature, or -feature to disable it.\n"
189 /// SetImpliedBits - For each feature that is (transitively) implied by this
190 /// feature, set it.
208 /// ClearImpliedBits - For each feature that (transitively) implies this
209 /// feature, clear it.
227 /// ToggleFeature - Toggle a feature and returns the newly updated feature
230 SubtargetFeatures::ToggleFeature(uint64_t Bits, const StringRef Feature,
233 // Find feature in table.
235 Find(StripFlag(Feature), FeatureTable, FeatureTableSize);
241 // For each feature that implies this, clear it.
246 // For each feature that this implies, set it.
250 errs() << "'" << Feature
251 << "' is not a recognized feature for this target"
252 << " (ignoring feature)\n";
259 /// getFeatureBits - Get feature bits a CPU.
290 // Set base feature bits
293 // Set the feature implied by this CPU feature, if any.
306 // Iterate through each feature
308 const StringRef Feature = Features[i];
311 if (Feature == "+help")
314 // Find feature in table.
316 Find(StripFlag(Feature), FeatureTable, FeatureTableSize);
319 // Enable/disable feature in bits
320 if (isEnabled(Feature)) {
323 // For each feature that this implies, set it.
328 // For each feature that implies this, clear it.
332 errs() << "'" << Feature
333 << "' is not a recognized feature for this target"
334 << " (ignoring feature)\n";
365 /// print - Print feature string.
373 /// dump - Dump feature info.