[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)
commite2ffd02ad3f08a8b9f22ee24e68ffde0615d41d5
treef202b79268253386edf509133e1310f0d9c4cba5
parenteeeec3ce0d358ac43148030636ec9d4372953165
[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. =]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226160 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetLibraryInfo.h
lib/Analysis/TargetLibraryInfo.cpp
test/Other/new-pass-manager.ll
tools/opt/PassRegistry.def
tools/opt/Passes.cpp