[LLVMdev] How to get the array size of GetElementPtrInst->getPointerOperand() ?

Welson Sun welson.sun at gmail.com
Mon Feb 13 17:08:55 PST 2012

If I dump the Value of GetElementPtrInst->getPointerOperand(), I got this:

%a = alloca [10 x i32], align 16

Obviously, there should be a way to get the dimension and element type via
the "Value" returned from GetElementPtrInst->getPointerOperand(), but how?

What kind of "Value" is this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120213/d0d1d48b/attachment.html>

More information about the llvm-dev mailing list