Displaying 3 results from an estimated 3 matches for "98125c13".
2011 Mar 28
0
[LLVMdev] array index access
Hi George,
> I am trying to get the first index into this two-dimensional array, that is *5.*
not sure what you mean, but if you think of your array as being a 10 x 20 matrix
then to get a pointer to element M,N you would do:
getelementptr inbounds [10 x [20 x i32]]* %3, i32 0, i32 %M, i32 %N
>
> %4 = getelementptr inbounds [10 x [20 x i32]]* %3, i32 0, i32 *5*
> *
> *
>
2011 Mar 27
2
[LLVMdev] array index access
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:
2011 Mar 28
2
[LLVMdev] array index access
...> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110328/98125c13/attachment.html>