18 #ifndef LLVM_MC_SUBTARGETFEATURE_H
19 #define LLVM_MC_SUBTARGETFEATURE_H
22 #include "llvm/Support/DataTypes.h"
73 std::vector<std::string> Features;
87 size_t FeatureTableSize);
94 size_t FeatureTableSize);
void getDefaultSubtargetFeatures(const Triple &Triple)
Adds the default features for the specified target triple.
bool operator<(StringRef S) const
SubtargetFeatures(const StringRef Initial="")
std::string getString() const
Features string accessors.
uint64_t getFeatureBits(const StringRef CPU, const SubtargetFeatureKV *CPUTable, size_t CPUTableSize, const SubtargetFeatureKV *FeatureTable, size_t FeatureTableSize)
Get feature bits of a CPU.
void AddFeature(const StringRef String, bool IsEnabled=true)
Adding Features.
bool operator<(StringRef S) const
uint64_t ToggleFeature(uint64_t Bits, const StringRef String, const SubtargetFeatureKV *FeatureTable, size_t FeatureTableSize)
void print(raw_ostream &OS) const
Print feature string.