18 #ifndef LLVM_MC_SUBTARGETFEATURE_H
19 #define LLVM_MC_SUBTARGETFEATURE_H
22 #include "llvm/Support/DataTypes.h"
27 template <
typename T>
class ArrayRef;
97 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. ...
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)...
static GCRegistry::Add< OcamlGC > B("ocaml","ocaml 3.10-compatible GC")
void dump() const
dump - Dump feature info.
std::string getString() const
Features string accessors.
static void ToggleFeature(FeatureBitset &Bits, StringRef String, ArrayRef< SubtargetFeatureKV > FeatureTable)
ToggleFeature - Toggle a feature and update the feature bits.
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(std::initializer_list< unsigned > Init)
static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, ArrayRef< SubtargetFeatureKV > FeatureTable)
Apply the feature flag and update the feature bits.
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.
bool operator<(const SubtargetFeatureKV &Other) const