[llvm-commits] [llvm] r47352 - in /llvm/trunk: include/llvm/ParameterAttributes.h lib/VMCore/ParameterAttributes.cpp

Chris Lattner clattner at apple.com
Tue Feb 19 20:07:36 PST 2008


On Feb 19, 2008, at 3:51 PM, Dale Johannesen wrote:

> +const Attributes Alignment = 0xffff<<16; ///< Alignment of  
> parameter (16 bits)
> +                                    // 0 = unknown, else in clear  
> (not log)

16 bits is a lot of bits for an alignment.  How about 4 bits stored in  
log form, where 0 -> alignment unspecified, and 1-15 mean "1 <<  
(n-1)"?  This gives us lots of bits for other crazy param attrs in the  
future.

-Chris



More information about the llvm-commits mailing list