diff options
author | Owen Anderson <resistor@mac.com> | 2010-10-07 20:04:55 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-10-07 20:04:55 +0000 |
commit | f7ef5dfccc1d3fc26f3015c1249c53ada1757990 (patch) | |
tree | b756659536cbe787805ea42628261ff124bd8ba1 /llvm/lib/Transforms | |
parent | 752b60bc01edaf17075ff59eef95b7b6b1d7127e (diff) | |
download | bcm5719-llvm-f7ef5dfccc1d3fc26f3015c1249c53ada1757990.tar.gz bcm5719-llvm-f7ef5dfccc1d3fc26f3015c1249c53ada1757990.zip |
Add initialization routines to InstCombine.
llvm-svn: 115965
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index e46c67994e2..5ac5bd4f792 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -48,6 +48,7 @@ #include "llvm/Support/PatternMatch.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/Statistic.h" +#include "llvm-c/Initialization.h" #include <algorithm> #include <climits> using namespace llvm; @@ -58,6 +59,14 @@ STATISTIC(NumConstProp, "Number of constant folds"); STATISTIC(NumDeadInst , "Number of dead inst eliminated"); STATISTIC(NumSunkInst , "Number of instructions sunk"); +// Initialization Routines +void llvm::initializeInstCombine(PassRegistry &Registry) { + initializeInstCombinerPass(Registry); +} + +void LLVMInitializeInstCombine(LLVMPassRegistryRef R) { + initializeInstCombine(*unwrap(R)); +} char InstCombiner::ID = 0; INITIALIZE_PASS(InstCombiner, "instcombine", |