[llvm-dev] How to calculate the offset obtained via a GEP instruction

Alberto Barbaro via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 24 23:00:20 PST 2022


Hi all,
so I'm trying to understand how to manually calculate the offset calculated
by a GEP instruction. I found that this question was asked over 6 years ago
on stackoverflow[1] as well but never got a real answer.

Since I need exactly the same, is there anyone willing to help me to
understand how to calculate the offset?

Thanks


[1]
https://stackoverflow.com/questions/32444497/determine-byte-offset-of-getelementptr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20220125/e039d0ba/attachment.html>


More information about the llvm-dev mailing list