[LLVMdev] PointerIntPair causing trouble

Chris Lattner clattner at apple.com
Fri May 1 17:45:05 PDT 2009


On May 1, 2009, at 5:39 PM, Gordon Henriksen wrote:
>> (1) we could specialize PointerLikeTypeTraits for User*, and leave  
>> the default value of NumLowBitsAvailable at 3.
>> (2) we could drop the default NumLowBitsAvailable to 2 (or even use  
>> _alignof and similar compiler-specific extensions to determine it),  
>> and allow classes that assert that they are only ever allocated  
>> through malloc to relax it back up to 3.
>>
>
> Something like this device should suffice; no need for extensions.

That's already in llvm/Support/AlignOf.h.

-Chris




More information about the llvm-dev mailing list