[llvm-commits] CVS: llvm/include/llvm/Target/SubtargetFeature.h
Jim Laskey
jlaskey at apple.com
Fri Sep 2 12:27:57 PDT 2005
Changes in directory llvm/include/llvm/Target:
SubtargetFeature.h updated: 1.2 -> 1.3
---
Log message:
Add help support for -mcpu and -mattr.
---
Diffs of the changes: (+5 -0)
SubtargetFeature.h | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/include/llvm/Target/SubtargetFeature.h
diff -u llvm/include/llvm/Target/SubtargetFeature.h:1.2 llvm/include/llvm/Target/SubtargetFeature.h:1.3
--- llvm/include/llvm/Target/SubtargetFeature.h:1.2 Thu Sep 1 21:51:42 2005
+++ llvm/include/llvm/Target/SubtargetFeature.h Fri Sep 2 14:27:43 2005
@@ -34,6 +34,7 @@
//
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 @@
/// 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,
More information about the llvm-commits
mailing list