Hi Will,<div><br></div><div>Thanks a lot for the quick response. I was able to get the DSGraph. Guess I was missing the -analyze option. </div><div><br></div><div>Regards,</div><div>Ankita<br><br><div class="gmail_quote">On Sun, Nov 6, 2011 at 12:50 AM, Will Dietz <span dir="ltr"><<a href="mailto:willdtz@gmail.com">willdtz@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Sun, Nov 6, 2011 at 12:24 AM, Ankita (Garg) Goel<br>
<<a href="mailto:gargankita@gmail.com">gargankita@gmail.com</a>> wrote:<br>
> Hi,<br>
> I am using the DSA analysis in llvm-3.0. I am interested in seeing the<br>
> resultant DSGraph for my sample input program. I tried the -dsa-only-print<br>
> parameter, but was not successful in getting the .dot file for the graph as<br>
> mentioned in Printer.cpp. The exact command that I tried is:<br>
> #opt -load <path-to-llvmdatastructures.so> -dsa-local -dsa-bu -dsa-td<br>
> -dsa-only-print < hello.bc<br>
> Is there anything else I need to do to get the graph ? Thanks a lot for your<br>
> help !<br>
><br>
<br>
</div></div>Hi!<br>
<br>
Graph printing is actually done as part of the -analyze option, and by<br>
default will print the globals graph as well as each function's graph.<br>
<br>
If you're interested in only particular functions' graphs, use the<br>
-dsa-only-print option (in addition to -analyze) to specify which<br>
function(s) to limit printing to.  The globals graph is emitted at all<br>
times regardless.<br>
<br>
Hope this helps, and let me know if you have any further questions or issues :)<br>
<font color="#888888"><br>
~Will<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Ankita<br><br><br>
</div>