Use MachineBasicBlock::transferSuccessors.
[oota-llvm.git] / include / llvm / CodeGen / ValueTypes.h
index 22538a73d0a4ec9669ae84eac42d4a034446efad..dd9b4ae309dcbd4340163b2f374be31cac0bd972 100644 (file)
@@ -103,7 +103,7 @@ namespace llvm {
     /// an arbitrary precision integer) and the remaining VectorBits upper bits
     /// encode the vector length, offset by one.
     ///
-    /// 31--------------16-----------8-------------0
+    /// 32--------------16-----------8-------------0
     ///  | Vector length | Precision | Simple type |
     ///  |               |      Vector element     |
     ///
@@ -261,6 +261,16 @@ namespace llvm {
               (isExtended() && isVector() && getSizeInBits()==128));
     }
 
+    /// isByteSized - Return true if the bit size is a multiple of 8.
+    inline bool isByteSized() const {
+      return (getSizeInBits() & 7) == 0;
+    }
+
+    /// isRound - Return true if the size is a power-of-two number of bytes.
+    inline bool isRound() const {
+      unsigned BitSize = getSizeInBits();
+      return BitSize >= 8 && !(BitSize & (BitSize - 1));
+    }
 
     /// bitsGT - Return true if this has more bits than VT.
     inline bool bitsGT(MVT VT) const {