[llvm-commits] CVS: llvm/www/docs/ProgrammersManual.html
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 18 00:15:01 PDT 2002
Changes in directory llvm/www/docs:
ProgrammersManual.html updated: 1.28 -> 1.29
---
Log message:
Clean up tags, link to the right .h file
---
Diffs of the changes:
Index: llvm/www/docs/ProgrammersManual.html
diff -u llvm/www/docs/ProgrammersManual.html:1.28 llvm/www/docs/ProgrammersManual.html:1.29
--- llvm/www/docs/ProgrammersManual.html:1.28 Tue Sep 17 22:17:23 2002
+++ llvm/www/docs/ProgrammersManual.html Wed Sep 18 00:14:25 2002
@@ -713,8 +713,8 @@
<pre>
<a href="#Instruction">Instruction</a> *I = .. ;
- <a href="#BasicBlock">BasicBlock</a> *BB = I->getParent();
- BB->getInstList().erase(I);
+ <a href="#BasicBlock">BasicBlock</a> *BB = I->getParent();
+ BB->getInstList().erase(I);
</pre><p>
<!--_______________________________________________________________________-->
@@ -724,13 +724,13 @@
<p><i>Replacing individual instructions</i></p>
<p>
Including "<a
-href="/doxygen/BasicBlock_8h-source.html">llvm/Transforms/Utils/BasicBlock.h
+href="/doxygen/BasicBlockUtils_8h-source.html">llvm/Transforms/Utils/BasicBlockUtils.h
</a>" permits use of two very useful replace functions:
<tt>ReplaceInstWithValue</tt> and <tt>ReplaceInstWithInst</tt>.
<ul>
-<li>ReplaceInstWithValue
+<li><tt>ReplaceInstWithValue</tt>
<p>This function replaces all uses (within a basic block) of a given
instruction with a value, and then removes the original instruction.
@@ -740,11 +740,11 @@
<pre>
AllocaInst* instToReplace = ...;
-ReplaceInstWithValue(*instToReplace->getParent(), instToReplace,
+ReplaceInstWithValue(*instToReplace->getParent(), instToReplace,
Constant::getNullValue(PointerType::get(Type::IntTy)));
</pre>
-<li>ReplaceInstWithInst
+<li><tt>ReplaceInstWithInst</tt>
<p>This function replaces a particular instruction with another
instruction. The following example illustrates the replacement of one
@@ -752,7 +752,7 @@
<pre>
AllocaInst* instToReplace = ...;
-ReplaceInstWithInst(*instToReplace->getParent(), instToReplace,
+ReplaceInstWithInst(*instToReplace->getParent(), instToReplace,
new AllocaInst(Type::IntTy, 0, "ptrToReplacedInt");
</pre>
More information about the llvm-commits
mailing list