[llvm-commits] CVS: llvm/www/docs/ProgrammersManual.html
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 1 18:04:01 PDT 2002
Changes in directory llvm/www/docs:
ProgrammersManual.html updated: 1.32 -> 1.33
---
Log message:
Update manual to reflect recent changes in the Statistic class.
---
Diffs of the changes:
Index: llvm/www/docs/ProgrammersManual.html
diff -u llvm/www/docs/ProgrammersManual.html:1.32 llvm/www/docs/ProgrammersManual.html:1.33
--- llvm/www/docs/ProgrammersManual.html:1.32 Sun Sep 29 12:31:54 2002
+++ llvm/www/docs/ProgrammersManual.html Tue Oct 1 17:39:41 2002
@@ -319,7 +319,7 @@
them out, allowing you to enable them if you need them in the future.<p>
The "<tt><a
-href="/doxygen/StatisticReporter_8h-source.html">StatisticReporter.h</a></tt>"
+href="/doxygen/Statistic_8h-source.html">Support/Statistic.h</a></tt>"
file provides a macro named <tt>DEBUG()</tt> that is a much nicer solution to
this problem. Basically, you can put arbitrary code into the argument of the
<tt>DEBUG</tt> macro, and it is only executed if '<tt>opt</tt>' is run with the
@@ -356,7 +356,7 @@
</b></font></td></tr></table><ul>
The "<tt><a
-href="/doxygen/StatisticReporter_8h-source.html">StatisticReporter.h</a></tt>"
+href="/doxygen/Statistic_8h-source.html">Support/Statistic.h</a></tt>"
file provides a template named <tt>Statistic</tt> that is used as a unified way
to keeping track of what the LLVM compiler is doing and how effective various
optimizations are. It is useful to see what optimizations are contributing to
@@ -376,7 +376,7 @@
<li>Define your statistic like this:<p>
<pre>
-static Statistic<> NumXForms("mypassname\t- The # of times I did stuff");
+static Statistic<> NumXForms("mypassname", "The # of times I did stuff");
</pre><p>
The <tt>Statistic</tt> template can emulate just about any data-type, but if you
@@ -1760,6 +1760,6 @@
<a href="mailto:sabre at nondot.org">Chris Lattner</a></address>
<!-- Created: Tue Aug 6 15:00:33 CDT 2002 -->
<!-- hhmts start -->
-Last modified: Sun Sep 29 12:31:23 CDT 2002
+Last modified: Tue Oct 1 15:35:42 CDT 2002
<!-- hhmts end -->
</font></body></html>
More information about the llvm-commits
mailing list