<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hello,<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I am trying to use the LLVM pass registry to schedule a Module pass. This pass requires one analysis ( LoopInfo ).<br>

<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">But as soon as the <i>AU.addRequired<LoopInfo>() </i>method executes I get the following error:<br><i><br>Unable to schedule 'Natural Loop Information' required by 'MyPass.'<br>

Unable to schedule pass<br>UNREACHABLE executed at /...../llvm/lib/IR/PassManager.cpp:1250!</i><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><i>... ... ...<br><br></i>In the pass code I also have the following code:<br>

<i>... ... ...<br>INITIALIZE_PASS_BEGIN(MyPass,"MyPass","MyPass.", false, false)<br>INITIALIZE_PASS_DEPENDENCY(LoopInfo)<br>INITIALIZE_PASS_END(MyPass,"MyPass","MyPass.", false, false)</i></div>

<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><i>... ... ...</i><br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">For what I understood, the PassManager request another PassManager for the lower level function analysis (In this case LoopInfo). And no one is able to answer to that request.<br>

</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks,<br><br clear="all"></div>-- <br><div dir="ltr"><font face="arial, helvetica, sans-serif">Juan Manuel</font></div>


</div>