diff options
author | Devang Patel <dpatel@apple.com> | 2008-11-06 19:47:49 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-11-06 19:47:49 +0000 |
commit | 00f1c4040c1f3f9967a5753223832d60ea39d8a2 (patch) | |
tree | 94e8e34fc59915fd8804abaa5f657988cc7a806d /docs/WritingAnLLVMPass.html | |
parent | 12c3a533c50fe3c7475c1ff7c1bb4b26e36dc6c3 (diff) | |
download | external_llvm-00f1c4040c1f3f9967a5753223832d60ea39d8a2.zip external_llvm-00f1c4040c1f3f9967a5753223832d60ea39d8a2.tar.gz external_llvm-00f1c4040c1f3f9967a5753223832d60ea39d8a2.tar.bz2 |
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
Diffstat (limited to 'docs/WritingAnLLVMPass.html')
-rw-r--r-- | docs/WritingAnLLVMPass.html | 3 |
1 files changed, 2 insertions, 1 deletions
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 <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 |