mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
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
This commit is contained in:
parent
12c3a533c5
commit
00f1c4040c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user