From: Devang Patel
Date: Thu, 6 Nov 2008 19:47:49 +0000 (+0000)
Subject: Clarify documentation. A module pass MP can require a function paqss FP only if FP...
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=00f1c4040c1f3f9967a5753223832d60ea39d8a2;p=oota-llvm.git
Clarify documentation. A module pass MP can require a function paqss FP only if FP does not require any module pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58813 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html
index 047ac6ef2d5..486de6f631c 100644
--- a/docs/WritingAnLLVMPass.html
+++ b/docs/WritingAnLLVMPass.html
@@ -492,7 +492,8 @@ refering to function bodies in no predictable order, or adding and removing
functions. Because nothing is known about the behavior of ModulePass
subclasses, no optimization can be done for their execution. A module pass
can use function level passes (e.g. dominators) using getAnalysis interface
- getAnalysis<DominatorTree>(Function).
+ getAnalysis<DominatorTree>(Function), if the function pass
+does not require any module passes.
To write a correct ModulePass subclass, derive from
ModulePass and overload the runOnModule method with the