Riyad Parvez via llvm-dev
2015-Oct-05 19:48 UTC
[llvm-dev] Adding mem2reg pass to pass manager
Hi, I want to add "mem2reg" pass similar to this: PassManager PM; PM.add(new LoopInfo()); PM.add(new Mem2Reg()); // What's the class name for this pass I couldn't find the name of corresponding class and header file of mem2reg pass except "mem2reg.cpp". So how can I add mem2reg pass into my pass manager? Thanks, Riyad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151005/e8fc8db2/attachment.html>
Xiangyang Guo via llvm-dev
2015-Oct-05 20:04 UTC
[llvm-dev] Adding mem2reg pass to pass manager
PM.add(createPromoteMemoryToRegisterPass()) works for me. Hope this helpful. Thanks, Xiangyang 2015-10-05 15:48 GMT-04:00 Riyad Parvez via llvm-dev < llvm-dev at lists.llvm.org>:> Hi, > > I want to add "mem2reg" pass similar to this: > > PassManager PM; > PM.add(new LoopInfo()); > PM.add(new Mem2Reg()); // What's the class name for this pass > > > I couldn't find the name of corresponding class and header file of mem2reg > pass except "mem2reg.cpp". So how can I add mem2reg pass into my pass > manager? > > Thanks, > Riyad > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151005/af4edf17/attachment.html>
Riyad Parvez via llvm-dev
2015-Oct-05 20:09 UTC
[llvm-dev] Adding mem2reg pass to pass manager
On Mon, Oct 5, 2015 at 4:04 PM, Xiangyang Guo <eceguo at gmail.com> wrote:> PM.add(createPromoteMemoryToRegisterPass()) >Did you include "Mem2Reg.cpp"? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151005/5d06d2c7/attachment.html>