[llvm-commits] [llvm-gcc-4.2] r48004 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

Devang Patel dpatel at apple.com
Fri Mar 7 08:37:24 PST 2008


On Mar 6, 2008, at 3:24 PM, Dan Gohman wrote:

> Author: djg
> Date: Thu Mar  6 17:24:19 2008
> New Revision: 48004
>
> URL: http://llvm.org/viewvc/llvm-project?rev=48004&view=rev
> Log:
> Remove the code that restricted integer types to 1, 8, 16, 32, and  
> 64, now
> that llvm codegen supports i128 well enough to get through the llvm- 
> gcc build.

Does this mean now it is possible to have bit-field larger then 64  
bits ? If so then we have hardcoded that limit in couple of places...

llvm-types.cpp

1544     NewFieldTy = Type::Int32Ty;
1545   else {
1546     assert(Size <= 64 && "Bitfield too large!");
1547     NewFieldTy = Type::Int64Ty;
1548   }

1871     if (NumBitsRequired > 64) {
1872       // Use bits from previous field.
1873       NumBitsRequired = FieldSizeInBits - AvailableBits;
1874     } else {

-
Devang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080307/3081a97c/attachment.html>


More information about the llvm-commits mailing list