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 #include "llvm/PassRegistry.h" 18 19 using namespace llvm; 20 21 /// initializeCodeGen - Initialize all passes linked into the CodeGen library. initializeCodeGen(PassRegistry & Registry)22void llvm::initializeCodeGen(PassRegistry &Registry) { 23 initializeAtomicExpandPass(Registry); 24 initializeBranchFolderPassPass(Registry); 25 initializeCodeGenPreparePass(Registry); 26 initializeDeadMachineInstructionElimPass(Registry); 27 initializeDwarfEHPreparePass(Registry); 28 initializeEarlyIfConverterPass(Registry); 29 initializeExpandISelPseudosPass(Registry); 30 initializeExpandPostRAPass(Registry); 31 initializeFinalizeMachineBundlesPass(Registry); 32 initializeFuncletLayoutPass(Registry); 33 initializeGCMachineCodeAnalysisPass(Registry); 34 initializeGCModuleInfoPass(Registry); 35 initializeIfConverterPass(Registry); 36 initializeLiveDebugVariablesPass(Registry); 37 initializeLiveIntervalsPass(Registry); 38 initializeLiveStacksPass(Registry); 39 initializeLiveVariablesPass(Registry); 40 initializeLocalStackSlotPassPass(Registry); 41 initializeLowerIntrinsicsPass(Registry); 42 initializeMachineBlockFrequencyInfoPass(Registry); 43 initializeMachineBlockPlacementPass(Registry); 44 initializeMachineBlockPlacementStatsPass(Registry); 45 initializeMachineCSEPass(Registry); 46 initializeImplicitNullChecksPass(Registry); 47 initializeMachineCombinerPass(Registry); 48 initializeMachineCopyPropagationPass(Registry); 49 initializeMachineDominatorTreePass(Registry); 50 initializeMachineFunctionPrinterPassPass(Registry); 51 initializeMachineLICMPass(Registry); 52 initializeMachineLoopInfoPass(Registry); 53 initializeMachineModuleInfoPass(Registry); 54 initializeMachinePostDominatorTreePass(Registry); 55 initializeMachineSchedulerPass(Registry); 56 initializeMachineSinkingPass(Registry); 57 initializeMachineVerifierPassPass(Registry); 58 initializeOptimizePHIsPass(Registry); 59 initializePEIPass(Registry); 60 initializePHIEliminationPass(Registry); 61 initializePeepholeOptimizerPass(Registry); 62 initializePostMachineSchedulerPass(Registry); 63 initializePostRASchedulerPass(Registry); 64 initializeProcessImplicitDefsPass(Registry); 65 initializeRegisterCoalescerPass(Registry); 66 initializeShrinkWrapPass(Registry); 67 initializeSlotIndexesPass(Registry); 68 initializeStackColoringPass(Registry); 69 initializeStackMapLivenessPass(Registry); 70 initializeLiveDebugValuesPass(Registry); 71 initializeStackProtectorPass(Registry); 72 initializeStackSlotColoringPass(Registry); 73 initializeTailDuplicatePassPass(Registry); 74 initializeTargetPassConfigPass(Registry); 75 initializeTwoAddressInstructionPassPass(Registry); 76 initializeUnpackMachineBundlesPass(Registry); 77 initializeUnreachableBlockElimPass(Registry); 78 initializeUnreachableMachineBlockElimPass(Registry); 79 initializeVirtRegMapPass(Registry); 80 initializeVirtRegRewriterPass(Registry); 81 initializeWinEHPreparePass(Registry); 82 } 83 LLVMInitializeCodeGen(LLVMPassRegistryRef R)84void LLVMInitializeCodeGen(LLVMPassRegistryRef R) { 85 initializeCodeGen(*unwrap(R)); 86 } 87