mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Add initialization routines to InstCombine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115965 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a3208e122c
commit
74cfb0ce1c
@ -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
Block a user