It would be great help if someone can point me to similar code in Analysis or Transform, i.e. tracing value dependencies chains. <div><br></div><div>Thanks,</div><div>Manish<br><br><div class="gmail_quote">On Wed, Aug 3, 2011 at 10:47 AM, Manish Gupta <span dir="ltr"><<a href="mailto:manishg@cs.ucsd.edu">manishg@cs.ucsd.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello All,<div><br></div><div>What would be the best way to trace Value Dependency Chains in LLVM. Can I use some API to perform this?</div>

<div><br></div><div>The use-def chain process mentioned at <a href="http://llvm.org/docs/ProgrammersManual.html#iterate_chains" target="_blank">http://llvm.org/docs/ProgrammersManual.html#iterate_chains</a> will just get the values (Operands) being used in the current Instruction. For getting the values operands in the particular instruction are influenced from I have to recursively call the use-def on these operands. I was wondering if there is already available better way of doing this in LLVM. </div>


<div><br></div><div>Thanks,</div><div>Manish</div>
</blockquote></div><br></div>