[llvm-dev] How to get the destination in a LoadInst (original) (raw)

Alberto Barbaro via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 12 14:12:55 PST 2018


Thanks Florian, I'm not sure yet but tomorrow I'll try. At the moment I don't see why I should iterate on a list just for getting the 5 out that LoadInst CTI on but I'm.sure I'm missing something :)

Thanks a lot

On Wed, Dec 12, 2018, 22:05 Florian Hahn <florian_hahn at apple.com wrote:

> On Dec 12, 2018, at 13:57, Alberto Barbaro via llvm-dev <_ _llvm-dev at lists.llvm.org> wrote: > > 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. Take a look at the users of the load instruction: http://llvm.org/docs/ProgrammersManual.html#iterating-over-def-use-use-def-chains Is this what you are looking for? Cheers, Florian -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181212/9afca509/attachment.html>



More information about the llvm-dev mailing list