[PM] Port LowerExpectIntrinsic to the new pass manager.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 24 Jan 2015 11:13:02 +0000 (11:13 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 24 Jan 2015 11:13:02 +0000 (11:13 +0000)
commitd4f6d111c12256e7cecc0131879cdc8954575344
tree29dd113ff5c71ad2c566308891c34df7a10d10f9
parentf6efb2b30b725bb7bfe9206d263c80b094c5fc93
[PM] Port LowerExpectIntrinsic to the new pass manager.

This just lifts the logic into a static helper function, sinks the
legacy pass to be a trivial wrapper of that helper fuction, and adds
a trivial wrapper for the new PM as well. Not much to see here.

I switched a test case to run in both modes, but we have to strip the
dead prototypes separately as that pass isn't in the new pass manager
(yet).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226999 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h [new file with mode: 0644]
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
test/Transforms/LowerExpectIntrinsic/basic.ll
tools/opt/PassRegistry.def
tools/opt/Passes.cpp