Prevent repetitive warnings for unrecognized processors and features
[oota-llvm.git] / include / llvm / MC / SubtargetFeature.h
index d0735ccd9fa3179414314398457923a5d159ba85..ad7fec53ac3ec9dcbfc5e86fe16209fe9fa00de3 100644 (file)
@@ -101,6 +101,12 @@ public:
 
   /// Adds the default features for the specified target triple.
   void getDefaultSubtargetFeatures(const Triple& Triple);
+
+  /// Find KV in array using binary search.
+  /// T should be either SubtargetFeatureKV or SubtargetInfoKV
+  template<typename T>
+  static const T *Find(StringRef Key, const T *Array, size_t Length,
+                       const char* KeyType);
 };
 
 } // End namespace llvm