diff options
Diffstat (limited to 'include/llvm/Target/SubtargetFeature.h')
-rw-r--r-- | include/llvm/Target/SubtargetFeature.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Target/SubtargetFeature.h b/include/llvm/Target/SubtargetFeature.h index 4d504c1..fa815db 100644 --- a/include/llvm/Target/SubtargetFeature.h +++ b/include/llvm/Target/SubtargetFeature.h @@ -34,6 +34,7 @@ namespace llvm { // struct SubtargetFeatureKV { const char *Key; // K-V key string + const char *Desc; // Help descriptor uint32_t Value; // K-V integer value // Compare routine for std binary search @@ -126,6 +127,10 @@ public: /// Adding Features. void AddFeature(const std::string &String, bool IsEnabled = true); + /// Display help for feature choices. + static void Help(const char *Heading, + const SubtargetFeatureKV *Table, size_t TableSize); + /// Parse feature string for quick usage. static uint32_t Parse(const std::string &String, const std::string &DefaultCPU, |