[PATCH] Re-add DataLayout convenience functions for getting pointer size

Eli Friedman eli.friedman at gmail.com
Mon Jul 22 19:01:05 PDT 2013


On Mon, Jul 22, 2013 at 6:58 PM, Matt Arsenault <arsenm2 at gmail.com> wrote:
>
> On Jul 22, 2013, at 18:48 , Eli Friedman <eli.friedman at gmail.com> wrote:
>
>> Also, I'm not sure I really like the general design of these APIs;
>> what is the benefit of using them over getTypeSizeInBits()?
>
> getTypeSizeInBits doesn't return the same thing for vectors of pointers. It would return n * the pointer size, when you want just the pointer size.

Okay... assume we have getScalarTypeSizeInBits().

-Eli



More information about the llvm-commits mailing list