Hi all,<br><br>How Can I get the Loops around an Instruction?<br><br>I know I can get the basic block of an instruction using inst.getParent() which returns a BasicBlock*. Now I want to use the getLoopFor(BasicBlock) method of the class LoopInfo.<br>
But I dont know how to get the LoopInfo.<br><br>BasicBlock* bb = inst.getParent();<br><br>(... what should I add here?)<br><br>Loop* innerloop = LI -> getLoopFor(bb):<br><br>Thanks.<br><br>