[LLVMdev] LoopPass Question
Devang Patel
dpatel at apple.com
Tue Aug 19 13:15:54 PDT 2008
On Aug 19, 2008, at 12:32 PM, David Greene wrote:
> Are LoopPasses allowed to maintain state between runOnLoop
> invocations?
What kind of information are you looking to maintain between runOnLoop
invocations ?
>
> The documentation is not clear on this point.
doInitialization() and doFinalization() will be run for each pass
before and after runOnLoop().
For each pass
doInitialization()
For each pass
runOnLoop()
For each pass
doFinalization()
So each pass can collect information during initialization pass to use
during runOnLoop().
-
Devang
More information about the llvm-dev
mailing list