[llvm-dev] Adding mem2reg pass to pass manager
Xiangyang Guo via llvm-dev
llvm-dev at lists.llvm.org
Mon Oct 5 13:04:59 PDT 2015
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>
More information about the llvm-dev
mailing list