Changes in directory llvm/docs:

ProgrammersManual.html updated: 1.88 -> 1.89
---
Log message:

Use std:: where appropriate



---
Diffs of the changes:  (+5 -5)

 ProgrammersManual.html |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)


Index: llvm/docs/ProgrammersManual.html
diff -u llvm/docs/ProgrammersManual.html:1.88 
llvm/docs/ProgrammersManual.html:1.89
--- llvm/docs/ProgrammersManual.html:1.88       Tue Nov  1 15:12:49 2005
+++ llvm/docs/ProgrammersManual.html    Sun Nov 27 20:30:22 2005
@@ -590,7 +590,7 @@
 an example that prints the name of a <tt>BasicBlock</tt> and the number of
 <tt>Instruction</tt>s it contains:</p>
 
-  <pre>  // func is a pointer to a Function instance<br>  for 
(Function::iterator i = func-&gt;begin(), e = func-&gt;end(); i != e; ++i) 
{<br><br>      // print out the name of the basic block if it has one, and then 
the<br>      // number of instructions that it contains<br><br>      cerr 
&lt;&lt; "Basic block (name=" &lt;&lt; i-&gt;getName() &lt;&lt; ") has " <br>   
        &lt;&lt; i-&gt;size() &lt;&lt; " instructions.\n";<br>  }<br></pre>
+  <pre>  // func is a pointer to a Function instance<br>  for 
(Function::iterator i = func-&gt;begin(), e = func-&gt;end(); i != e; ++i) 
{<br><br>      // print out the name of the basic block if it has one, and then 
the<br>      // number of instructions that it contains<br><br>      std::cerr 
&lt;&lt; "Basic block (name=" &lt;&lt; i-&gt;getName() &lt;&lt; ") has " <br>   
        &lt;&lt; i-&gt;size() &lt;&lt; " instructions.\n";<br>  }<br></pre>
 
 <p>Note that i can be used as if it were a pointer for the purposes of
 invoking member functions of the <tt>Instruction</tt> class.  This is
@@ -645,7 +645,7 @@
 and then instantiate <tt>InstIterator</tt>s explicitly in your code.  Here's a
 small example that shows how to dump all instructions in a function to the 
standard error stream:<p>
 
-  <pre>#include "<a 
href="/doxygen/InstIterator_8h-source.html">llvm/Support/InstIterator.h</a>"<br>...<br>//
 Suppose F is a ptr to a function<br>for (inst_iterator i = inst_begin(F), e = 
inst_end(F); i != e; ++i)<br>  cerr &lt;&lt; *i &lt;&lt; "\n";<br></pre>
+  <pre>#include "<a 
href="/doxygen/InstIterator_8h-source.html">llvm/Support/InstIterator.h</a>"<br>...<br>//
 Suppose F is a ptr to a function<br>for (inst_iterator i = inst_begin(F), e = 
inst_end(F); i != e; ++i)<br>  std::cerr &lt;&lt; *i &lt;&lt; "\n";<br></pre>
 Easy, isn't it?  You can also use <tt>InstIterator</tt>s to fill a
 worklist with its initial contents.  For example, if you wanted to
 initialize a worklist to contain all instructions in a <tt>Function</tt>
@@ -693,7 +693,7 @@
 iterators.  By using these, you can explicitly grab the iterator of something
 without actually obtaining it via iteration over some structure:</p>
 
-  <pre>void printNextInstruction(Instruction* inst) {<br>    
BasicBlock::iterator it(inst);<br>    ++it; // after this line, it refers to 
the instruction after *inst.<br>    if (it != inst-&gt;getParent()-&gt;end()) 
cerr &lt;&lt; *it &lt;&lt; "\n";<br>}<br></pre>
+  <pre>void printNextInstruction(Instruction* inst) {<br>    
BasicBlock::iterator it(inst);<br>    ++it; // after this line, it refers to 
the instruction after *inst.<br>    if (it != inst-&gt;getParent()-&gt;end()) 
std::cerr &lt;&lt; *it &lt;&lt; "\n";<br>}<br></pre>
 
 </div>
 
@@ -768,7 +768,7 @@
 <i>use</i> <tt>foo</tt> is as simple as iterating over the <i>def-use</i> chain
 of <tt>F</tt>:</p>
 
-  <pre>Function* F = ...;<br><br>for (Value::use_iterator i = 
F-&gt;use_begin(), e = F-&gt;use_end(); i != e; ++i) {<br>    if (Instruction 
*Inst = dyn_cast&lt;Instruction&gt;(*i)) {<br>        cerr &lt;&lt; "F is used 
in instruction:\n";<br>        cerr &lt;&lt; *Inst &lt;&lt; "\n";<br>    
}<br>}<br></pre>
+  <pre>Function* F = ...;<br><br>for (Value::use_iterator i = 
F-&gt;use_begin(), e = F-&gt;use_end(); i != e; ++i) {<br>    if (Instruction 
*Inst = dyn_cast&lt;Instruction&gt;(*i)) {<br>        std::cerr &lt;&lt; "F is 
used in instruction:\n";<br>        std::cerr &lt;&lt; *Inst &lt;&lt; "\n";<br> 
   }<br>}<br></pre>
 
 <p>Alternately, it's common to have an instance of the <a
 href="/doxygen/classllvm_1_1User.html">User Class</a> and need to know what
@@ -2277,7 +2277,7 @@
   <a href="mailto:[EMAIL PROTECTED]">Dinakar Dhurjati</a> and
   <a href="mailto:[EMAIL PROTECTED]">Chris Lattner</a><br>
   <a href="http://llvm.cs.uiuc.edu";>The LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2005/11/01 21:12:49 $
+  Last modified: $Date: 2005/11/28 02:30:22 $
 </address>
 
 </body>



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to