Owen Anderson | 78b1524 | 2010-10-07 18:41:20 +0000 | [diff] [blame] | 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-c/Initialization.h" |
| 17 | |
| 18 | using namespace llvm; |
| 19 | |
| 20 | /// initializeCodeGen - Initialize all passes linked into the CodeGen library. |
| 21 | void llvm::initializeCodeGen(PassRegistry &Registry) { |
| 22 | initializeCalculateSpillWeightsPass(Registry); |
| 23 | initializeDeadMachineInstructionElimPass(Registry); |
| 24 | initializeGCModuleInfoPass(Registry); |
| 25 | initializeIfConverterPass(Registry); |
Jakob Stoklund Olesen | bb7b23f | 2010-11-30 02:17:10 +0000 | [diff] [blame] | 26 | initializeLiveDebugVariablesPass(Registry); |
Owen Anderson | 78b1524 | 2010-10-07 18:41:20 +0000 | [diff] [blame] | 27 | initializeLiveIntervalsPass(Registry); |
| 28 | initializeLiveStacksPass(Registry); |
| 29 | initializeLiveVariablesPass(Registry); |
| 30 | initializeMachineCSEPass(Registry); |
| 31 | initializeMachineDominatorTreePass(Registry); |
| 32 | initializeMachineLICMPass(Registry); |
| 33 | initializeMachineLoopInfoPass(Registry); |
| 34 | initializeMachineModuleInfoPass(Registry); |
| 35 | initializeMachineSinkingPass(Registry); |
| 36 | initializeMachineVerifierPassPass(Registry); |
| 37 | initializeOptimizePHIsPass(Registry); |
| 38 | initializePHIEliminationPass(Registry); |
| 39 | initializePeepholeOptimizerPass(Registry); |
| 40 | initializePreAllocSplittingPass(Registry); |
| 41 | initializeProcessImplicitDefsPass(Registry); |
| 42 | initializePEIPass(Registry); |
| 43 | initializeRALinScanPass(Registry); |
| 44 | initializeRegisterCoalescerAnalysisGroup(Registry); |
| 45 | initializeRenderMachineFunctionPass(Registry); |
| 46 | initializeSimpleRegisterCoalescingPass(Registry); |
| 47 | initializeSlotIndexesPass(Registry); |
| 48 | initializeLoopSplitterPass(Registry); |
| 49 | initializeStackProtectorPass(Registry); |
| 50 | initializeStackSlotColoringPass(Registry); |
| 51 | initializeStrongPHIEliminationPass(Registry); |
| 52 | initializeTwoAddressInstructionPassPass(Registry); |
| 53 | initializeUnreachableBlockElimPass(Registry); |
| 54 | initializeUnreachableMachineBlockElimPass(Registry); |
| 55 | initializeVirtRegMapPass(Registry); |
Owen Anderson | 081c34b | 2010-10-19 17:21:58 +0000 | [diff] [blame] | 56 | initializeLowerIntrinsicsPass(Registry); |
Owen Anderson | 78b1524 | 2010-10-07 18:41:20 +0000 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | void LLVMInitializeCodeGen(LLVMPassRegistryRef R) { |
| 60 | initializeCodeGen(*unwrap(R)); |
| 61 | } |