Add X86 BZHI instruction as well as BMI2 feature detection.
[oota-llvm.git] / lib / Target / X86 / X86Subtarget.h
index 3258d3d0ada398be44d5ac64712c723f4ee0ed8b..81fa176bd07edc16237179622f800ae46cf83f58 100644 (file)
@@ -105,6 +105,9 @@ protected:
   /// HasBMI - Processor has BMI1 instructions.
   bool HasBMI;
 
+  /// HasBMI2 - Processor has BMI2 instructions.
+  bool HasBMI2;
+
   /// IsBTMemSlow - True if BT (bit test) of memory instructions are slow.
   bool IsBTMemSlow;
 
@@ -192,6 +195,7 @@ public:
   bool hasF16C() const { return HasF16C; }
   bool hasLZCNT() const { return HasLZCNT; }
   bool hasBMI() const { return HasBMI; }
+  bool hasBMI2() const { return HasBMI2; }
   bool isBTMemSlow() const { return IsBTMemSlow; }
   bool isUnalignedMemAccessFast() const { return IsUAMemFast; }
   bool hasVectorUAMem() const { return HasVectorUAMem; }