From 1bc193464ca8913994c5392afc808681611e09ea Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 11 Dec 2004 05:12:57 +0000 Subject: [PATCH] Fix some minor spellos and grammaros. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18788 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/WritingAnLLVMPass.html | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index 65a1e0e30cb..e8f00a3cba7 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -155,13 +155,12 @@ source tree in the lib/Transforms/Hello directory.

-

First thing you need to do is create a new directory somewhere in the LLVM -source base. For this example, we'll assume that you made -"lib/Transforms/Hello". The first thing you must do is set up a build -script (Makefile) that will compile the source code for the new pass. To do -this, copy this into "Makefile":

- -
+

First, you need to create a new directory somewhere in the LLVM source + base. For this example, we'll assume that you made + lib/Transforms/Hello. Next, you must set up a build script + (Makefile) that will compile the source code for the new pass. To do this, + copy the following into Makefile:

+
 # Makefile for hello pass
@@ -694,8 +693,8 @@ As such, they are not allowed to do any of the following:

  • Modify or inspect any basic blocks outside of the current one
  • Maintain state across invocations of runOnBasicBlock
  • -
  • Modify the constrol flow graph (by altering terminator instructions)
  • -
  • Any of the things verboten for +
  • Modify the control flow graph (by altering terminator instructions)
  • +
  • Any of the things forbidden for FunctionPasses.
  • @@ -722,7 +721,7 @@ href="#FunctionPass">FunctionPass's have, but also have the followi

    The doIninitialize method is allowed to do most of the things that BasicBlockPass's are not allowed to do, but that FunctionPass's can. The doInitialization method is designed -to do simple initialization type of stuff that does not depend on the +to do simple initialization that does not depend on the BasicBlocks being processed. The doInitialization method call is not scheduled to overlap with any other pass executions (thus it should be very fast).

    @@ -943,11 +942,11 @@ object:

    -If you pass requires a previous pass to be executed (an analysis for example), +If your pass requires a previous pass to be executed (an analysis for example), it can use one of these methods to arrange for it to be run before your pass. LLVM has many different types of analyses and passes that can be required, -spaning the range from DominatorSet to BreakCriticalEdges. -requiring BreakCriticalEdges, for example, guarantees that there will +spanning the range from DominatorSet to BreakCriticalEdges. +Requiring BreakCriticalEdges, for example, guarantees that there will be no critical edges in the CFG when your pass has been run.

    @@ -973,7 +972,7 @@ One of the jobs of the PassManager is to optimize how and when analyses are run. In particular, it attempts to avoid recomputing data unless it needs to. For this reason, passes are allowed to declare that they preserve (i.e., they don't invalidate) an existing analysis if it's available. For example, a simple -constant folding pass would not modify the CFG, so it can't possible effect the +constant folding pass would not modify the CFG, so it can't possibly affect the results of dominator analysis. By default, all passes are assumed to invalidate all others.