llvm.org GIT mirror llvm / 78b1524
Add initialization routines for CodeGen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115949 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 10 years ago
4 changed file(s) with 64 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3434
3535 /// initializeIPA - Initialize all passes linked into the IPA library.
3636 void initializeIPA(PassRegistry&);
37
38 /// initializeCodeGen - Initialize all passes linked into the CodeGen library.
39 void initializeCodeGen(PassRegistry&);
3740
3841 void initializeAAEvalPass(PassRegistry&);
3942 void initializeADCEPass(PassRegistry&);
2626 void LLVMInitializeIPO(LLVMPassRegistryRef R);
2727 void LLVMInitializeAnalysis(LLVMPassRegistryRef R);
2828 void LLVMInitializeIPA(LLVMPassRegistryRef R);
29 void LLVMInitializeCodeGen(LLVMPassRegistryRef R);
2930
3031 #ifdef __cplusplus
3132 }
33 BranchFolding.cpp
44 CalcSpillWeights.cpp
55 CallingConvLower.cpp
6 CodeGen.cpp
67 CodePlacementOpt.cpp
78 CriticalAntiDepBreaker.cpp
89 DeadMachineInstructionElim.cpp
0 //===-- CodeGen.cpp -------------------------------------------------------===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements the common initialization routines for the
10 // CodeGen library.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "llvm/InitializePasses.h"
15 #include "llvm-c/Initialization.h"
16
17 using namespace llvm;
18
19 /// initializeCodeGen - Initialize all passes linked into the CodeGen library.
20 void llvm::initializeCodeGen(PassRegistry &Registry) {
21 initializeCalculateSpillWeightsPass(Registry);
22 initializeDeadMachineInstructionElimPass(Registry);
23 initializeGCModuleInfoPass(Registry);
24 initializeIfConverterPass(Registry);
25 initializeLiveIntervalsPass(Registry);
26 initializeLiveStacksPass(Registry);
27 initializeLiveVariablesPass(Registry);
28 initializeMachineCSEPass(Registry);
29 initializeMachineDominatorTreePass(Registry);
30 initializeMachineLICMPass(Registry);
31 initializeMachineLoopInfoPass(Registry);
32 initializeMachineModuleInfoPass(Registry);
33 initializeMachineSinkingPass(Registry);
34 initializeMachineVerifierPassPass(Registry);
35 initializeOptimizePHIsPass(Registry);
36 initializePHIEliminationPass(Registry);
37 initializePeepholeOptimizerPass(Registry);
38 initializePreAllocSplittingPass(Registry);
39 initializeProcessImplicitDefsPass(Registry);
40 initializePEIPass(Registry);
41 initializeRALinScanPass(Registry);
42 initializeRegisterCoalescerAnalysisGroup(Registry);
43 initializeRenderMachineFunctionPass(Registry);
44 initializeSimpleRegisterCoalescingPass(Registry);
45 initializeSlotIndexesPass(Registry);
46 initializeLoopSplitterPass(Registry);
47 initializeStackProtectorPass(Registry);
48 initializeStackSlotColoringPass(Registry);
49 initializeStrongPHIEliminationPass(Registry);
50 initializeTwoAddressInstructionPassPass(Registry);
51 initializeUnreachableBlockElimPass(Registry);
52 initializeUnreachableMachineBlockElimPass(Registry);
53 initializeVirtRegMapPass(Registry);
54 }
55
56 void LLVMInitializeCodeGen(LLVMPassRegistryRef R) {
57 initializeCodeGen(*unwrap(R));
58 }