<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jun 14, 2013, at 1:12 PM, <a href="mailto:dag@cray.com">dag@cray.com</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">I've been puzzling over this for a day:<br><br>Unable to schedule 'Unnamed pass: implement Pass::getPassName()'<br>required by '<some pass>'<br>Unable to schedule pass<br>UNREACHABLE executed at llvm/lib/VMCore/PassManager.cpp:1213!<br><br>First, why can't getPassName find the name?  I have provided one in the<br>usual way.  Second, why is it unable to schedule the pass?<br></div></blockquote><div dir="auto"><br></div><div dir="auto">The INITIALIZE_PASS macro is the usual way. Is that what you mean?</div><div dir="auto"><br></div><div dir="auto">You would need to initialize each subclass of MyPassBase separately and each needs its own ID.</div><div dir="auto"><br></div><div dir="auto">-Andy</div><br><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">-debug-pass=Details doesn't provide much help.<br><br>This analysis pass is somewhat different in that it has a class<br>hierarchy like this:<br><br>            MyPass<br>              |<br>              V<br>         MyPassBase<T><br>              |<br>              V<br>      MachineFunctionPass<br><br>I pass the static ID down through MyPassBase to MachineFunctionPass in<br>the constructor.<br><br>Is there any reason why this inheritance would cause a problem?  The<br>problem occurred when I factored most of MyPass out into MyPassBase for<br>reuse.<br><br>Thanks!<br><br>                              -David<br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a><span class="Apple-converted-space"> </span>        <a href="http://llvm.cs.uiuc.edu/">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></div></blockquote></div><br></body></html>