Use std::bitset for SubtargetFeatures
[oota-llvm.git] / include / llvm / MC / MCInstrDesc.h
index c74d1c3fd86df6c4f67d66b0cb9e0c9b84e2d15c..e23a8b61de5dad24166678f6890096f4344a862e 100644 (file)
@@ -144,8 +144,9 @@ public:
   const uint16_t *ImplicitUses; // Registers implicitly read by this instr
   const uint16_t *ImplicitDefs; // Registers implicitly defined by this instr
   const MCOperandInfo *OpInfo;  // 'NumOperands' entries about operands
-  uint64_t
+  FeatureBitset
       DeprecatedFeatureMask; // Feature bits that this is deprecated on, if any
+
   // A complex method to determine is a certain is deprecated or not, and return
   // the reason for deprecation.
   bool (*ComplexDeprecationInfo)(MCInst &, MCSubtargetInfo &, std::string &);
@@ -168,7 +169,7 @@ public:
                          std::string &Info) const {
     if (ComplexDeprecationInfo)
       return ComplexDeprecationInfo(MI, STI, Info);
-    if ((DeprecatedFeatureMask & STI.getFeatureBits()) != 0) {
+    if ((STI.getFeatureBits() & DeprecatedFeatureMask).any()) {
       // FIXME: it would be nice to include the subtarget feature here.
       Info = "deprecated";
       return true;