<p>OK, figured out. The value is an Instruction, the AllocaInst.</p>
<div class="gmail_quote">On Feb 13, 2012 5:08 PM, "Welson Sun" <<a href="mailto:welson.sun@gmail.com">welson.sun@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>If I dump the Value of GetElementPtrInst->getPointerOperand(), I got this:</div><div><br></div><div>%a = alloca [10 x i32], align 16</div><div><br></div><div><br></div><div>Obviously, there should be a way to get the dimension and element type via the "Value" returned from GetElementPtrInst->getPointerOperand(), but how?</div>
<div><br></div><div>What kind of "Value" is this?</div><div><br></div><br clear="all"><div>Thanks!</div>Welson<div><br></div><div><br></div>
</blockquote></div>