[PM] Port TargetLibraryInfo to the new pass manager, provided by the
authorChandler Carruth <chandlerc@gmail.com>
Thu, 15 Jan 2015 11:39:46 +0000 (11:39 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 15 Jan 2015 11:39:46 +0000 (11:39 +0000)
commit8ca43224db45c489cf7bf765d057f3d1a92be92b
tree3526b396632e0358095fda441c1bec6cef640f6d
parentbe742b745be27611d2080c977de25459aeee947d
[PM] Port TargetLibraryInfo to the new pass manager, provided by the
TargetLibraryAnalysis pass.

There are actually no direct tests of this already in the tree. I've
added the most basic test that the pass manager bits themselves work,
and the TLI object produced will be tested by an upcoming patches as
they port passes which rely on TLI.

This is starting to point out the awkwardness of the invalidate API --
it seems poorly fitting on the *result* object. I suspect I will change
it to live on the analysis instead, but that's not for this change, and
I'd rather have a few more passes ported in order to have more
experience with how this plays out.

I believe there is only one more analysis required in order to start
porting instcombine. =]

llvm-svn: 226160
llvm/include/llvm/Analysis/TargetLibraryInfo.h
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/test/Other/new-pass-manager.ll
llvm/tools/opt/PassRegistry.def
llvm/tools/opt/Passes.cpp