Hi, I wrote a pass for myself. But the only way I know to run my pass is using the "-load" options of opt. I want to make my pass as a default pass integrated into opt so that I will not have to use the "-load" option every time. How could I do that? Thanks. -- zhouxu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111101/982277aa/attachment.html>
On Nov 1, 2011, at 4:09 AM, zhouxu(NUDT) wrote:> Hi, > I wrote a pass for myself. But the only way I know to run my pass is using the "-load" options of opt. I want to make my pass as a default pass integrated into opt so that I will not have to use the "-load" option every time. How could I do that? Thanks.You can update one of the PassManagerBuilder::populate* methods to insert your pass at desired point. - Devang