Hi,<div>I need to find out all the places where the value of a variable is being used. For this I have to implement reaching definitions(def-use chains).</div><div>When I searched for its implementation I found <a href="http://llvm.org/docs/ProgrammersManual.html#iterate_chains" target="_blank">Iterating over def-use & use-def chains</a>. will this work for finding the places where a variable is reaching?</div>

<div><br></div><div>I tried to use "use_iterator", but couldn't make it out. Is it a must to write LLVM Pass to use op_iterator and use_iterator?</div><div>please give me any references or examples to understand more about use_iterator.</div>

<div><br></div><div><div><br></div>Best Regards,<div>Srikanth Vaindam</div><br><br>
</div>