From a8e288b52d504e274e8cd57d15cf2615e090c9b8 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Mon, 3 Jan 2011 06:16:07 +0000 Subject: [PATCH] Further expand what a call graph pass may do. The rationale is that after analyzing a function in the SCC, we may want to modify it in a way that requires us to update its uses (f.e. to replace the call with a constant) or its users (f.e. to call it with fewer arguments). llvm-svn: 122739 --- docs/WritingAnLLVMPass.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index 357b585b510..10668b365fd 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -559,11 +559,9 @@ href="#BasicBlockPass">BasicBlockPass, you should derive from
    -
  1. ... not allowed to modify any Functions that are not in -the current SCC.
  2. - -
  3. ... not allowed to inspect any Functions other than those -in the current SCC and the direct callers and direct callees of the SCC.
  4. +
  5. ... not allowed to inspect or modify any Functions other +than those in the current SCC and the direct callers and direct callees of the +SCC.
  6. ... required to preserve the current CallGraph object, updating it to reflect any changes made to the program.