<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Kapil,<div><br><div><div>On Oct 8, 2008, at 10:19 AM, kapil anand wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi all,<br><br>I need a new kind of analysis on LLVM Module, so I made a new pass to do this. This new pass extends the ModulePass class and follows the conventions used in GlobalModRefPass, which is also a Module Pass.I need the CallGraph analysis for this pass, hence I have added (addRequired(CallGraph)) in getAnalysisUsage function of this new pass.</div></blockquote><div><br></div><div>A module pass may not required CallGraph. Probably, you want to make your pass a CallGraphSCCPass, e.g. Inliner.</div><br><blockquote type="cite"><div dir="ltr"><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">I also added it to CallGraph Analysis group through "RegisterAnalysisGroup"</span></div></blockquote><blockquote type="cite"><div dir="ltr"> <br>This new pass is not part of any LLVM library  and is not present in LLVM source tree . Rather it is part of my own project tree. I included required header files and specified the required library in the linker. It compiles and links fine but when I reach at getAnalysis function to get CallGraph analysis, it gives me following runtime error<br> <br>Assertion  "resover && pass has not been inserted into a Pass Manager Object" failed. <br><br>What other steps do I need to follow to get rid of this error.<br><br>Thanks<br><br>--Kapil<br><br><br></div> _______________________________________________<br>LLVM Developers mailing list<br>LLVMdev@cs.uiuc.edu         <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><br></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>-</div><div>Devang</div><div><br></div></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>