Initial support for carrying MachineInstrs in SUnits.
[oota-llvm.git] / include / llvm / CodeGen / ValueTypes.h
index 84e77fb77c82f74a1d8ed7227e6996d4db5cd674..c655d3672cfe08f6c815342f7b66407e2e69da77 100644 (file)
@@ -272,6 +272,11 @@ namespace llvm {
       return BitSize >= 8 && !(BitSize & (BitSize - 1));
     }
 
+    /// bitsEq - Return true if this has the same number of bits as VT.
+    bool bitsEq(MVT VT) const {
+      return getSizeInBits() == VT.getSizeInBits();
+    }
+
     /// bitsGT - Return true if this has more bits than VT.
     bool bitsGT(MVT VT) const {
       return getSizeInBits() > VT.getSizeInBits();