<div dir="ltr">Just started playing catchup to trunk myself. It seems that `<span class="" style="font-size:12.8px;background-color:rgb(255,255,255)">createBasicAliasAnalysisPass</span><span style="font-size:12.8px">()` is now</span> `createBasicAAWrapperPass()`.<div>-Josh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 4: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>