summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/SubtargetFeature.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/SubtargetFeature.h b/include/llvm/Target/SubtargetFeature.h
index 38a3cc2fef..fb5dba1f6d 100644
--- a/include/llvm/Target/SubtargetFeature.h
+++ b/include/llvm/Target/SubtargetFeature.h
@@ -22,6 +22,7 @@
#include <vector>
#include <cstring>
#include "llvm/ADT/Triple.h"
+#include "llvm/Support/CommandLine.h"
#include "llvm/System/DataTypes.h"
namespace llvm {
@@ -93,6 +94,12 @@ public:
/// Adding Features.
void AddFeature(const std::string &String, bool IsEnabled = true);
+ /// Add a set of features from the comma-separated string.
+ void AddFeatures(const std::string &String);
+
+ /// Add a set of features from the parsed command line parameters.
+ void AddFeatures(const cl::list<std::string> &List);
+
/// Get feature bits.
uint32_t getBits(const SubtargetFeatureKV *CPUTable,
size_t CPUTableSize,