bits in a pointer

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?

Thanks,
Preston

DataLayout::getTypeSizeInBits.

-Eli