<div dir="ltr"><span style="font-size:12.8px">Hi Dean, thank you for the response!</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">I'm a newbie to LLVM, a student working on an LLVM project so I'm not quite sure of what you're suggesting, please excuse my naivety.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">To clarify there used to exist this </span><a href="http://llvm.org/releases/1.0/docs/CommandGuide/lli.html" target="_blank" style="font-size:12.8px">http://llvm.org/releases/1.0/docs/CommandGuide/lli.html</a><span style="font-size:12.8px"> where you could type "lli -trace 'filename.bc' and you would get a dump of the dynamic excutiion trace.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">  I need something like:</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px"> to record the execution (statement/instruction) trace of a program. For example, a C program is like this:</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px"><br></div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">1:    sum = 0;</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">2:    for(i = 0; i < 2; i++)</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">3:        sum += i;</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">4:    printf("%d", sum);</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px"><br></div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">    The execution trace would be something like 1->2->3->2->3->2->4.<br><br>Is there some way of achieving this, this was possible in previous verions of LLVM <2.6 i believe; I need guidance of replicating this on the newer version(using 3.8).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 May 2016 at 21:18, Dean Michael Berris <span dir="ltr"><<a href="mailto:dberris@google.com" target="_blank">dberris@google.com</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">Hi Ammar,<div><br></div><div>I'm not sure about lli, but recently I sent an RFC for XRay, which does a combination of compiler-inserted instrumentation points and a runtime library that will allow for enabling these instrumentation points. Those could be used to log/trace function calls.</div><div><br></div><div>I'm currently working on getting that into LLVM, Clang, and compiler-rt among other things.</div><div><br></div><div>Does that help?</div><div><br></div><div>PS. More information in the whitepaper (<a href="https://research.google.com/pubs/pub45287.html" target="_blank">https://research.google.com/pubs/pub45287.html</a>) we recently published.</div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Wed, May 4, 2016 at 2:05 PM Ammar Naqvi via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><p dir="ltr">hi everyone, </p>
<p dir="ltr">I'm trying to get something like the lli - trace functionality that has been deprecated. </p>
<p dir="ltr">I need the same thing that the trace command was doing i. e. the dynamic execution trace,  any idea on what it has moved to if it still exists or how to implement it? </p>
<p dir="ltr">Best Regards, <br>
Ammar Naqvi </p></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">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>
</blockquote></div>
</blockquote></div><br></div>