[llvm-dev] Get elements from a getelementptr constant expression

Damilola Orikogbo via llvm-dev llvm-dev at lists.llvm.org
Tue May 30 19:13:09 PDT 2017


Hi,

I have this instruction,

 store i32 (...)** bitcast (i8** getelementptr inbounds ([5 x i8*], [5 x
i8*]* @_ZTV9Rectangle, i32 0, i32 2) to i32 (...)**), i32 (...)*** %5,
align 8

and was wondering how to access the indices of the getelementptr. How would
i print out all pointers stored from index 0 to 5.

Cheers,


Dami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170530/4bd0d076/attachment.html>


More information about the llvm-dev mailing list