[llvm-commits] [llvm] r58813 - /llvm/trunk/docs/WritingAnLLVMPass.html
Devang Patel
dpatel at apple.com
Thu Nov 6 11:47:49 PST 2008
Author: dpatel
Date: Thu Nov 6 13:47:49 2008
New Revision: 58813
URL: http://llvm.org/viewvc/llvm-project?rev=58813&view=rev
Log:
Clarify documentation. A module pass MP can require a function paqss FP only if FP does not require any module pass.
Modified:
llvm/trunk/docs/WritingAnLLVMPass.html
Modified: llvm/trunk/docs/WritingAnLLVMPass.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/WritingAnLLVMPass.html?rev=58813&r1=58812&r2=58813&view=diff
==============================================================================
--- llvm/trunk/docs/WritingAnLLVMPass.html (original)
+++ llvm/trunk/docs/WritingAnLLVMPass.html Thu Nov 6 13:47:49 2008
@@ -492,7 +492,8 @@
functions. Because nothing is known about the behavior of <tt>ModulePass</tt>
subclasses, no optimization can be done for their execution. A module pass
can use function level passes (e.g. dominators) using getAnalysis interface
-<tt> getAnalysis<DominatorTree>(Function)</tt>. </p>
+<tt> getAnalysis<DominatorTree>(Function)</tt>, if the function pass
+does not require any module passes. </p>
<p>To write a correct <tt>ModulePass</tt> subclass, derive from
<tt>ModulePass</tt> and overload the <tt>runOnModule</tt> method with the
More information about the llvm-commits
mailing list