forked from OSchip/llvm-project
Add initialization routines to InstCombine.
llvm-svn: 115965
This commit is contained in:
parent
752b60bc01
commit
f7ef5dfccc
|
@ -25,6 +25,7 @@ extern "C" {
|
|||
void LLVMInitializeCore(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeTransformUtils(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeScalarOpts(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeInstCombine(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeIPO(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeAnalysis(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeIPA(LLVMPassRegistryRef R);
|
||||
|
|
|
@ -31,6 +31,10 @@ void initializeTransformUtils(PassRegistry&);
|
|||
/// ScalarOpts library.
|
||||
void initializeScalarOpts(PassRegistry&);
|
||||
|
||||
/// initializeInstCombine - Initialize all passes linked into the
|
||||
/// ScalarOpts library.
|
||||
void initializeInstCombine(PassRegistry&);
|
||||
|
||||
/// initializeIPO - Initialize all passes linked into the IPO library.
|
||||
void initializeIPO(PassRegistry&);
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue