<div dir="ltr">FWIW the new PassManager probably isn't quite ready yet, as I understand it, so you may be best off sticking with the legacy stuff for now. The naming's perhaps a bit unfortunate, but was chosen this way to reduce some of the renaming churn, if I recall correctly (though I can't quite recall exactly why/how).</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 1:43 PM, Frank Winter via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I try to keep my code in sync with recent changes made to trunk (coming from 3.6).<br>
<br>
I see the FunctionPassManager has changed and I see there's a legacy version, but I try to keep up with the mainstream and prefer to use non-legacy stuff.<br>
<br>
I also see that the examples were not updated.<br>
<br>
Before I could do<br>
<br>
llvm::FunctionPassManager *functionPassManager = new llvm::FunctionPassManager(Mod);<br>
functionPassManager->add(llvm::createBasicAliasAnalysisPass());<br>
<br>
Now, the createBasicAliasAnalysisPass() is no longer there.<br>
<br>
But I see there's a void PassManagerBuilder::addInitialAliasAnalysisPasses.<br>
<br>
Is this what I should use now?<br>
<br>
Also, I couldn't figure out equivalent code for this:<br>
<br>
targetMachine->addAnalysisPasses(*functionPassManager);<br>
functionPassManager->add(new llvm::TargetLibraryInfo(llvm::Triple(Mod->getTargetTriple())));<br>
functionPassManager->add(new llvm::DataLayoutPass());<br>
<br>
<br>
Thanks,<br>
Frank<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div>