[LLVMdev] how to access loopInfo
Jochen Wilhelmy
j.wilhelmy at arcor.de
Thu Mar 11 10:36:55 PST 2010
Hi!
I'd like to analyze a function with the llvm::LoopInfo pass and then
write some info to disk. I create a FunctionPassManager and insert it and
a DominatorTree which is required by LoopInfo.
As it turns out the analysis info is only available to other
passes and gets cleared when the run function of the pass manager returns.
I therefore guess that I need to create an own pass.
Is this correct?
This means that I also have to register it using llvm::RegisterPass but
it will
be of no use to other passes.
Therefore I ask if this is the way to go.
- Jochen
More information about the llvm-dev
mailing list