diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2015-01-24 11:13:02 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2015-01-24 11:13:02 +0000 |
| commit | 43e590e51ff943c4763f45552393d772decc5c86 (patch) | |
| tree | f8ef5d87ca04efbafebb0df54326771481a0b60a /llvm/tools | |
| parent | c3bf5bd8cfe98deb5264ba7a5d65a068a5bbd65d (diff) | |
| download | bcm5719-llvm-43e590e51ff943c4763f45552393d772decc5c86.tar.gz bcm5719-llvm-43e590e51ff943c4763f45552393d772decc5c86.zip | |
[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
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/opt/PassRegistry.def | 1 | ||||
| -rw-r--r-- | llvm/tools/opt/Passes.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/opt/PassRegistry.def b/llvm/tools/opt/PassRegistry.def index 2c1b36b01fd..9361d98c9a5 100644 --- a/llvm/tools/opt/PassRegistry.def +++ b/llvm/tools/opt/PassRegistry.def @@ -63,6 +63,7 @@ FUNCTION_ANALYSIS("targetlibinfo", TargetLibraryAnalysis()) FUNCTION_PASS("instcombine", InstCombinePass()) FUNCTION_PASS("invalidate<all>", InvalidateAllAnalysesPass()) FUNCTION_PASS("no-op-function", NoOpFunctionPass()) +FUNCTION_PASS("lower-expect", LowerExpectIntrinsicPass()) FUNCTION_PASS("print", PrintFunctionPass(dbgs())) FUNCTION_PASS("print<assumptions>", AssumptionPrinterPass(dbgs())) FUNCTION_PASS("print<domtree>", DominatorTreePrinterPass(dbgs())) diff --git a/llvm/tools/opt/Passes.cpp b/llvm/tools/opt/Passes.cpp index 1788e695d5e..149432ed3c5 100644 --- a/llvm/tools/opt/Passes.cpp +++ b/llvm/tools/opt/Passes.cpp @@ -26,6 +26,7 @@ #include "llvm/IR/Verifier.h" #include "llvm/Support/Debug.h" #include "llvm/Transforms/InstCombine/InstCombine.h" +#include "llvm/Transforms/Scalar/LowerExpectIntrinsic.h" using namespace llvm; |

