[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)
commit43e590e51ff943c4763f45552393d772decc5c86
treef8ef5d87ca04efbafebb0df54326771481a0b60a
parentc3bf5bd8cfe98deb5264ba7a5d65a068a5bbd65d
[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).

llvm-svn: 226999
llvm/include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h [new file with mode: 0644]
llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
llvm/test/Transforms/LowerExpectIntrinsic/basic.ll
llvm/tools/opt/PassRegistry.def
llvm/tools/opt/Passes.cpp