[llvm-dev] How to get the destination in a LoadInst

Alberto Barbaro via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 12 13:57:41 PST 2018


Hi,
I would like to get the '5'. I would like to know where the loaded value is
stored. I don't know which method I should use of the LoadInst class.

Hope this clarifies

Thanks

On Wed, Dec 12, 2018, 20:37 Doerfert, Johannes Rudolf <jdoerfert at anl.gov
wrote:

> The LoadInst is %5. I'm not sure what you mean by reference though.
>
> On 12/12, Alberto Barbaro via llvm-dev wrote:
> > Hi all,
> > I have %5 = load i32, i32* %3, align 4 LoadInst and I would like to get
> > reference to the destination ( in this case %5 ). How can I do that?
> >
> > Thanks
>
> > _______________________________________________
> > LLVM Developers mailing list
> > llvm-dev at lists.llvm.org
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
> --
>
> Johannes Doerfert
> Researcher
>
> Argonne National Laboratory
> Lemont, IL 60439, USA
>
> jdoerfert at anl.gov
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181212/fcdfba8a/attachment.html>


More information about the llvm-dev mailing list