[LLVMdev] array index access

George Baah georgebaah at gmail.com
Sun Mar 27 14:22:09 PDT 2011


Hi Everyone,
  I am trying to get the first index into this two-dimensional array, that
is *5.*

%4 = getelementptr inbounds [10 x [20 x i32]]* %3, i32 0, i32 *5*
*
*
I can iterate over the GEP and get the types of the operands but not
the values.

How do I get the value (5)?
Thanks.

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


More information about the llvm-dev mailing list