From 00f1c4040c1f3f9967a5753223832d60ea39d8a2 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 6 Nov 2008 19:47:49 +0000 Subject: 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 --- docs/WritingAnLLVMPass.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/WritingAnLLVMPass.html') diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index 047ac6e..486de6f 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 -- cgit v1.1