[LLVMdev] bits in a pointer
Eli Friedman
eli.friedman at gmail.com
Sun Nov 11 14:11:02 PST 2012
On Sun, Nov 11, 2012 at 1:46 PM, Preston Briggs
<preston.briggs at gmail.com> wrote:
> When I have to do arithmetic, using APInt, with the component parts of a
> SCEV *X, I've been using X->getType()->getIntegerBitWidth() to tell me how
> many bits to allocate in my APInts.
>
> Now I've come across a case where the SCEV has a pointer type. How can I
> find the width of a pointer in bits?
DataLayout::getTypeSizeInBits.
-Eli
More information about the llvm-dev
mailing list