[llvm-dev] Getting the address of an Operand from LLVM IR

James Molloy via llvm-dev llvm-dev at lists.llvm.org
Mon Sep 5 01:45:20 PDT 2016


Hi,

LLVM IR is too high level to give that kind of information. Stack frames
haven't been created yet and we're a million miles from generating
relocations. There's no guarantee that a pointer type in LLVM IR actually
becomes a pointer when instruction selected!

Cheers,

James

On Mon, 5 Sep 2016 at 09:42 Bernard Nongpoh via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hello There,
>
>  Is it possible to retrieve the memory address of an operand in LLVM IR.
> If so, How to do it.
>
> I know that we cannot determine the absolute address . Can we can at least
> retrieve the relative address of a variable/operand in an instruction.
>
> Thank You in advance.
>
> Regards,
> Bernard
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160905/e31c0c36/attachment-0001.html>


More information about the llvm-dev mailing list