[llvm-commits] CVS: llvm/www/docs/ProgrammersManual.html

Christopher Lattner lattner at cs.uiuc.edu
Fri Sep 6 17:14:00 PDT 2002


Changes in directory llvm/www/docs:

ProgrammersManual.html updated: 1.7 -> 1.8

---
Log message:

Minor fixes html type fixes: & -> &  > -> > etc.
Hopefully permission thing works this time.


---
Diffs of the changes:

Index: llvm/www/docs/ProgrammersManual.html
diff -u llvm/www/docs/ProgrammersManual.html:1.7 llvm/www/docs/ProgrammersManual.html:1.8
--- llvm/www/docs/ProgrammersManual.html:1.7	Fri Sep  6 17:09:21 2002
+++ llvm/www/docs/ProgrammersManual.html	Fri Sep  6 17:12:58 2002
@@ -229,8 +229,8 @@
       // print out the name of the basic block if it has one, and then the
       // number of instructions that it contains
 
-      cerr << "Basic block (name=" << i->getName() << ") has " 
-           << i->size() << " instructions.\n";
+      cerr << "Basic block (name=" << i->getName() << ") has " 
+           << i->size() << " instructions.\n";
   }
 </pre>
 
@@ -279,9 +279,9 @@
 <tt>j</tt> is a <tt>BasicBlock::const_iterator</tt>:
 
 <pre>
-    Instruction& inst = *i;   // grab reference to instruction reference
-    Instruction* pinst = &*i; // grab pointer to instruction reference
-    const Instruction& inst = *j;
+    Instruction& inst = *i;   // grab reference to instruction reference
+    Instruction* pinst = &*i; // grab pointer to instruction reference
+    const Instruction& inst = *j;
 </pre>
 However, the iterators you'll be working with in the LLVM framework
 are special: they will automatically convert to a ptr-to-instance type
@@ -292,7 +292,7 @@
 result of overloading casting mechanisms).  Thus the last line of the
 last example,
 
-<pre>Instruction* pinst = &*i;</pre>
+<pre>Instruction* pinst = &*i;</pre>
 
 is semantically equivalent to
 
@@ -305,7 +305,7 @@
 
 <pre>
 BasicBlock::iterator bbi = ...;
-BranchInst* b = dyn_cast<BranchInst>(&*bbi);
+BranchInst* b = dyn_cast<BranchInst>(&*bbi);
 </pre>
 
 The following code snippet illustrates use of the conversion
@@ -1240,6 +1240,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: Fri Sep  6 17:08:58 CDT 2002
+Last modified: Fri Sep  6 17:12:14 CDT 2002
 <!-- hhmts end -->
 </font></body></html>





More information about the llvm-commits mailing list