18 #ifndef LLVM_MC_SUBTARGETFEATURE_H
19 #define LLVM_MC_SUBTARGETFEATURE_H
23 #include "llvm/Support/DataTypes.h"
42 for (
auto I = Init.begin() , E = Init.end();
I != E; ++
I)
91 std::vector<std::string> Features;
const unsigned MAX_SUBTARGET_FEATURES
void getDefaultSubtargetFeatures(const Triple &Triple)
Adds the default features for the specified target triple.
bool operator<(StringRef S) const
SubtargetInfoKV - Used to provide key value pairs for CPU and arbitrary pointers. ...
FeatureBitset ApplyFeatureFlag(FeatureBitset Bits, StringRef Feature, ArrayRef< SubtargetFeatureKV > FeatureTable)
Apply the feature flag and return the newly updated feature bits.
void AddFeature(StringRef String, bool Enable=true)
Adding Features.
SubtargetFeatureKV - Used to provide key value pairs for feature and CPU bit flags.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
void dump() const
dump - Dump feature info.
std::string getString() const
Features string accessors.
Triple - Helper class for working with autoconf configuration names.
bool operator<(StringRef S) const
FeatureBitset(const bitset< MAX_SUBTARGET_FEATURES > &B)
SubtargetFeatures(StringRef Initial="")
SubtargetFeatures - Manages the enabling and disabling of subtarget specific features.
FeatureBitset ToggleFeature(FeatureBitset Bits, StringRef String, ArrayRef< SubtargetFeatureKV > FeatureTable)
ToggleFeature - Toggle a feature and returns the newly updated feature bits.
FeatureBitset(std::initializer_list< unsigned > Init)
void print(raw_ostream &OS) const
Print feature string.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
FeatureBitset getFeatureBits(StringRef CPU, ArrayRef< SubtargetFeatureKV > CPUTable, ArrayRef< SubtargetFeatureKV > FeatureTable)
Get feature bits of a CPU.