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

Florian Hahn via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 12 14:05:10 PST 2018



> 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


More information about the llvm-dev mailing list