[llvm-dev] Adding mem2reg pass to pass manager

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Mon Oct 5 14:45:30 PDT 2015


> On Oct 5, 2015, at 1:09 PM, Riyad Parvez via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> 
> On Mon, Oct 5, 2015 at 4:04 PM, Xiangyang Guo <eceguo at gmail.com <mailto:eceguo at gmail.com>> wrote:
> PM.add(createPromoteMemoryToRegisterPass())
> 
> Did you include "Mem2Reg.cpp”?

$ grep createPromoteMemoryToRegisterPass include -R
include/llvm/LinkAllPasses.h:      (void) llvm::createPromoteMemoryToRegisterPass();
include/llvm/Transforms/Scalar.h:FunctionPass *createPromoteMemoryToRegisterPass();

It seem this should be enough: #include “llvm/Transforms/Scalar.h” 


— 
Mehdi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151005/cabd4d5f/attachment.html>


More information about the llvm-dev mailing list