[LLVMdev] Use LoopInfo in a non-pass class such as ProfileInfoLoader?
tynarex at gmail.com
Tue Oct 6 21:33:29 CDT 2009
I'm adding loop profiling to LLVM built-in profiler. I'm just
wondering in a class that's not a pass, such as ProfileInfoLoader, how
can I get information produced by passes such as LoopInfo and
In other words, ProfileInfoLoader is not a pass, so it can't call
AnalysisUsage::addRequired and AnalysisUsage::getAnalysisUsage
directly. Then how can it know if an arbitrary basic block is a loop
header using information/classes/methods available to it?
Thanks a lot!
More information about the LLVMdev