Describes CPU/feature bits selected for a target (defined in TargetParser).
Declared in <llvm/TargetParser/SubtargetFeature.h>
class SubtargetFeatures;
| Name | Description |
|---|---|
SubtargetFeatures [constructor] | Construct from an optional comma-separated feature string. |
AddFeature | Adds Features. |
addFeaturesVector | Append every feature string from OtherFeatures. |
dump | Dumps feature info. |
getDefaultSubtargetFeatures | Adds the default features for the specified target triple. |
getFeatures | Returns the vector of individual subtarget features. |
getString | Returns features as a string. |
print | Prints feature string. |
| Name | Description |
|---|---|
Split | Splits a string of comma separated items in to a vector of strings. |
StripFlag | Return string stripped of flag. |
hasFlag | Determine if a feature has a flag; '+' or '-' |
isEnabled | Return true if enable flag; '+'. |