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 <div><br></div><div>AU.addRequired < LoopInfo >( );</div><div><br></div>
<div>and </div><div><br></div><div>getAnalysis < LoopInfo > ( *F ).isLoopHeader( BB )</div><div><br></div><div>But how do I get to know every basic block in that loop.</div>