]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/llvm/lib/CodeGen/CodeGen.cpp
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / llvm / lib / CodeGen / CodeGen.cpp
1 //===-- CodeGen.cpp -------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements the common initialization routines for the
11 // CodeGen library.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #include "llvm/InitializePasses.h"
16 #include "llvm/PassRegistry.h"
17 #include "llvm-c/Initialization.h"
18
19 using namespace llvm;
20
21 /// initializeCodeGen - Initialize all passes linked into the CodeGen library.
22 void llvm::initializeCodeGen(PassRegistry &Registry) {
23   initializeBasicTTIPass(Registry);
24   initializeBranchFolderPassPass(Registry);
25   initializeCalculateSpillWeightsPass(Registry);
26   initializeDeadMachineInstructionElimPass(Registry);
27   initializeEarlyIfConverterPass(Registry);
28   initializeExpandPostRAPass(Registry);
29   initializeExpandISelPseudosPass(Registry);
30   initializeFinalizeMachineBundlesPass(Registry);
31   initializeGCMachineCodeAnalysisPass(Registry);
32   initializeGCModuleInfoPass(Registry);
33   initializeIfConverterPass(Registry);
34   initializeLiveDebugVariablesPass(Registry);
35   initializeLiveIntervalsPass(Registry);
36   initializeLiveStacksPass(Registry);
37   initializeLiveVariablesPass(Registry);
38   initializeLocalStackSlotPassPass(Registry);
39   initializeMachineBlockFrequencyInfoPass(Registry);
40   initializeMachineBlockPlacementPass(Registry);
41   initializeMachineBlockPlacementStatsPass(Registry);
42   initializeMachineCopyPropagationPass(Registry);
43   initializeMachineCSEPass(Registry);
44   initializeMachineDominatorTreePass(Registry);
45   initializeMachinePostDominatorTreePass(Registry);
46   initializeMachineLICMPass(Registry);
47   initializeMachineLoopInfoPass(Registry);
48   initializeMachineModuleInfoPass(Registry);
49   initializeMachineSchedulerPass(Registry);
50   initializeMachineSinkingPass(Registry);
51   initializeMachineVerifierPassPass(Registry);
52   initializeOptimizePHIsPass(Registry);
53   initializePHIEliminationPass(Registry);
54   initializePeepholeOptimizerPass(Registry);
55   initializePostRASchedulerPass(Registry);
56   initializeProcessImplicitDefsPass(Registry);
57   initializePEIPass(Registry);
58   initializeRegisterCoalescerPass(Registry);
59   initializeSlotIndexesPass(Registry);
60   initializeStackProtectorPass(Registry);
61   initializeStackColoringPass(Registry);
62   initializeStackSlotColoringPass(Registry);
63   initializeStrongPHIEliminationPass(Registry);
64   initializeTailDuplicatePassPass(Registry);
65   initializeTargetPassConfigPass(Registry);
66   initializeTwoAddressInstructionPassPass(Registry);
67   initializeUnpackMachineBundlesPass(Registry);
68   initializeUnreachableBlockElimPass(Registry);
69   initializeUnreachableMachineBlockElimPass(Registry);
70   initializeVirtRegMapPass(Registry);
71   initializeVirtRegRewriterPass(Registry);
72   initializeLowerIntrinsicsPass(Registry);
73   initializeMachineFunctionPrinterPassPass(Registry);
74 }
75
76 void LLVMInitializeCodeGen(LLVMPassRegistryRef R) {
77   initializeCodeGen(*unwrap(R));
78 }