<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 5, 2015, at 1:09 PM, Riyad Parvez via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Oct 5, 2015 at 4:04 PM, Xiangyang Guo <span dir="ltr" class=""><<a href="mailto:eceguo@gmail.com" target="_blank" class="">eceguo@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">PM.add(createPromoteMemoryToRegisterPass())</div></blockquote></div><br class="">Did you include "Mem2Reg.cpp”?</div></div></div></blockquote><div><br class=""></div></div><div class="">$ grep createPromoteMemoryToRegisterPass include -R</div><div class="">include/llvm/LinkAllPasses.h:      (void) llvm::createPromoteMemoryToRegisterPass();<br class="">include/llvm/Transforms/Scalar.h:FunctionPass *createPromoteMemoryToRegisterPass();<br class=""><br class=""></div><div class="">It seem this should be enough: #include “llvm/Transforms/Scalar.h” </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">— </div><div class="">Mehdi</div><div class=""><br class=""></div></body></html>