[LLVMdev] Getting all Basic Blocks in a Loop

Blind Faith person.of.book at gmail.com
Wed Feb 20 02:01:11 PST 2013


I am writing an LLVM  pass, where in certain cases, I want to know all the
basic blocks in a loop. I can get the loop header by using combination of

AU.addRequired < LoopInfo >( );

and

getAnalysis < LoopInfo > ( *F ).isLoopHeader( BB )

But how do I get to know every basic block in that loop.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130220/d6d2e00b/attachment.html>


More information about the llvm-dev mailing list