<div dir="ltr">Walk the uses of the load instruction: <a href="http://llvm.org/docs/doxygen/html/classllvm_1_1Value.html#ac27deb3d41124ec9e679d39021405005">http://llvm.org/docs/doxygen/html/classllvm_1_1Value.html#ac27deb3d41124ec9e679d39021405005</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 4, 2016 at 9:46 AM, Mohammad Norouzi via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi all,<br><br></div>How can i find the instruction that uses the result of a load instruction. For example:<br><pre><span>%16</span> <span>=</span> <span>load</span> <span>i32</span><span>,</span> <span>i32</span><span>*</span> <span>%ptr</span>  </pre></div>%add = add i32 4, %16<br><br></div>In this case, i would like to get the add instruction.<br></div><div><br></div>Best,<br></div>Mo<br></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>