Author: bwilson
Date: Fri Nov 12 11:24:52 2010
New Revision: 118900

URL: http://llvm.org/viewvc/llvm-project?rev=118900&view=rev
Log:
Increase VectorTypeBitfields::VecKind field from 2 to 3 bits.
With the addition of 2 enum values for Neon vectors, this field must now
hold 6 different values and so requires 3 bits.  Make the NumElements field
one bit smaller to compensate.

Modified:
    cfe/trunk/include/clang/AST/Type.h

Modified: cfe/trunk/include/clang/AST/Type.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=118900&r1=118899&r2=118900&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Fri Nov 12 11:24:52 2010
@@ -931,10 +931,10 @@
 
     /// VecKind - The kind of vector, either a generic vector type or some
     /// target-specific vector type such as for AltiVec or Neon.
-    unsigned VecKind : 2;
+    unsigned VecKind : 3;
 
     /// NumElements - The number of elements in the vector.
-    unsigned NumElements : 30 - NumTypeBits;
+    unsigned NumElements : 29 - NumTypeBits;
   };
 
   union {


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to