[LLVMdev] index of an array

georgebaah gtg498n at mail.gatech.edu
Sun Mar 27 14:02:37 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 go about getting the value (5)?
Thanks.

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


More information about the llvm-dev mailing list