From 384047f24850af38ac97a1c418a88888783fbc9a Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Thu, 3 Jun 2004 23:29:12 +0000 Subject: [PATCH] Fix broken links as a result of the llvm namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13998 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ProgrammersManual.html | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 8c678a30c06..8ca1cc428f5 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -690,7 +690,7 @@ this, and in other situations, you may find that you want to treat most-specific common base class is Instruction, which includes lots of less closely-related things. For these cases, LLVM provides a handy wrapper class called CallSite. +href="http://llvm.cs.uiuc.edu/doxygen/classllvm_1_1CallSite.html">CallSite. It is essentially a wrapper around an Instruction pointer, with some methods that provide functionality common to CallInsts and InvokeInsts.

@@ -711,17 +711,18 @@ If you look at its definition, it has only a single pointer member.

Frequently, we might have an instance of the Value Class and we want to determine which -Users use the Value. The list of all Users of a -particular Value is called a def-use chain. For example, let's -say we have a Function* named F to a particular function -foo. Finding all of the instructions that use foo is as -simple as iterating over the def-use chain of F:

+href="/doxygen/structllvm_1_1Value.html">Value Class and we want to +determine which Users use the Value. The list of all +Users of a particular Value is called a def-use chain. +For example, let's say we have a Function* named F to a +particular function foo. Finding all of the instructions that +use foo is as simple as iterating over the def-use chain +of F:

Function* F = ...;

for (Value::use_iterator i = F->use_begin(), e = F->use_end(); i != e; ++i) {
if (Instruction *Inst = dyn_cast<Instruction>(*i)) {
cerr << "F is used in instruction:\n";
cerr << *Inst << "\n";
}
}

Alternately, it's common to have an instance of the User Class and need to know what +href="/doxygen/classllvm_1_1User.html">User Class and need to know what Values are used by it. The list of all Values used by a User is known as a use-def chain. Instances of class Instruction are common Users, so we might want to iterate over @@ -912,8 +913,8 @@ and ReplaceInstWithInst.

You can use Value::replaceAllUsesWith and User::replaceUsesOfWith to change more than one use at a time. See the -doxygen documentation for the Value Class -and User Class, respectively, for more +doxygen documentation for the Value Class +and User Class, respectively, for more information.