1 //===-- CodeGen.cpp -------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 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/PassRegistry.h" 16 17 using namespace llvm; 18 19 /// initializeCodeGen - Initialize all passes linked into the CodeGen library. 20 void llvm::initializeCodeGen(PassRegistry &Registry) { 21 initializeAssignmentTrackingAnalysisPass(Registry); 22 initializeAtomicExpandPass(Registry); 23 initializeBasicBlockSectionsPass(Registry); 24 initializeBranchFolderPassPass(Registry); 25 initializeBranchRelaxationPass(Registry); 26 initializeBreakFalseDepsPass(Registry); 27 initializeCallBrPreparePass(Registry); 28 initializeCFGuardLongjmpPass(Registry); 29 initializeCFIFixupPass(Registry); 30 initializeCFIInstrInserterPass(Registry); 31 initializeCheckDebugMachineModulePass(Registry); 32 initializeCodeGenPreparePass(Registry); 33 initializeDeadMachineInstructionElimPass(Registry); 34 initializeDebugifyMachineModulePass(Registry); 35 initializeDetectDeadLanesPass(Registry); 36 initializeDwarfEHPrepareLegacyPassPass(Registry); 37 initializeEarlyIfConverterPass(Registry); 38 initializeEarlyIfPredicatorPass(Registry); 39 initializeEarlyMachineLICMPass(Registry); 40 initializeEarlyTailDuplicatePass(Registry); 41 initializeExpandLargeDivRemLegacyPassPass(Registry); 42 initializeExpandLargeFpConvertLegacyPassPass(Registry); 43 initializeExpandMemCmpPassPass(Registry); 44 initializeExpandPostRAPass(Registry); 45 initializeFEntryInserterPass(Registry); 46 initializeFinalizeISelPass(Registry); 47 initializeFinalizeMachineBundlesPass(Registry); 48 initializeFixupStatepointCallerSavedPass(Registry); 49 initializeFuncletLayoutPass(Registry); 50 initializeGCMachineCodeAnalysisPass(Registry); 51 initializeGCModuleInfoPass(Registry); 52 initializeHardwareLoopsLegacyPass(Registry); 53 initializeIfConverterPass(Registry); 54 initializeImplicitNullChecksPass(Registry); 55 initializeIndirectBrExpandPassPass(Registry); 56 initializeInterleavedLoadCombinePass(Registry); 57 initializeInterleavedAccessPass(Registry); 58 initializeJMCInstrumenterPass(Registry); 59 initializeLiveDebugValuesPass(Registry); 60 initializeLiveDebugVariablesPass(Registry); 61 initializeLiveIntervalsPass(Registry); 62 initializeLiveRangeShrinkPass(Registry); 63 initializeLiveStacksPass(Registry); 64 initializeLiveVariablesPass(Registry); 65 initializeLocalStackSlotPassPass(Registry); 66 initializeLowerGlobalDtorsLegacyPassPass(Registry); 67 initializeLowerIntrinsicsPass(Registry); 68 initializeMIRAddFSDiscriminatorsPass(Registry); 69 initializeMIRCanonicalizerPass(Registry); 70 initializeMIRNamerPass(Registry); 71 initializeMIRProfileLoaderPassPass(Registry); 72 initializeMachineBlockFrequencyInfoPass(Registry); 73 initializeMachineBlockPlacementPass(Registry); 74 initializeMachineBlockPlacementStatsPass(Registry); 75 initializeMachineCFGPrinterPass(Registry); 76 initializeMachineCSEPass(Registry); 77 initializeMachineCombinerPass(Registry); 78 initializeMachineCopyPropagationPass(Registry); 79 initializeMachineCycleInfoPrinterPassPass(Registry); 80 initializeMachineCycleInfoWrapperPassPass(Registry); 81 initializeMachineDominatorTreePass(Registry); 82 initializeMachineFunctionPrinterPassPass(Registry); 83 initializeMachineLateInstrsCleanupPass(Registry); 84 initializeMachineLICMPass(Registry); 85 initializeMachineLoopInfoPass(Registry); 86 initializeMachineModuleInfoWrapperPassPass(Registry); 87 initializeMachineOptimizationRemarkEmitterPassPass(Registry); 88 initializeMachineOutlinerPass(Registry); 89 initializeMachinePipelinerPass(Registry); 90 initializeMachineSanitizerBinaryMetadataPass(Registry); 91 initializeModuloScheduleTestPass(Registry); 92 initializeMachinePostDominatorTreePass(Registry); 93 initializeMachineRegionInfoPassPass(Registry); 94 initializeMachineSchedulerPass(Registry); 95 initializeMachineSinkingPass(Registry); 96 initializeMachineUniformityAnalysisPassPass(Registry); 97 initializeMachineUniformityInfoPrinterPassPass(Registry); 98 initializeMachineVerifierPassPass(Registry); 99 initializeObjCARCContractLegacyPassPass(Registry); 100 initializeOptimizePHIsPass(Registry); 101 initializePEIPass(Registry); 102 initializePHIEliminationPass(Registry); 103 initializePatchableFunctionPass(Registry); 104 initializePeepholeOptimizerPass(Registry); 105 initializePostMachineSchedulerPass(Registry); 106 initializePostRAHazardRecognizerPass(Registry); 107 initializePostRAMachineSinkingPass(Registry); 108 initializePostRASchedulerPass(Registry); 109 initializePreISelIntrinsicLoweringLegacyPassPass(Registry); 110 initializeProcessImplicitDefsPass(Registry); 111 initializeRABasicPass(Registry); 112 initializeRAGreedyPass(Registry); 113 initializeRegAllocFastPass(Registry); 114 initializeRegUsageInfoCollectorPass(Registry); 115 initializeRegUsageInfoPropagationPass(Registry); 116 initializeRegisterCoalescerPass(Registry); 117 initializeRemoveRedundantDebugValuesPass(Registry); 118 initializeRenameIndependentSubregsPass(Registry); 119 initializeSafeStackLegacyPassPass(Registry); 120 initializeSelectOptimizePass(Registry); 121 initializeShadowStackGCLoweringPass(Registry); 122 initializeShrinkWrapPass(Registry); 123 initializeSjLjEHPreparePass(Registry); 124 initializeSlotIndexesPass(Registry); 125 initializeStackColoringPass(Registry); 126 initializeStackFrameLayoutAnalysisPassPass(Registry); 127 initializeStackMapLivenessPass(Registry); 128 initializeStackProtectorPass(Registry); 129 initializeStackSlotColoringPass(Registry); 130 initializeStripDebugMachineModulePass(Registry); 131 initializeTailDuplicatePass(Registry); 132 initializeTargetPassConfigPass(Registry); 133 initializeTwoAddressInstructionPassPass(Registry); 134 initializeTypePromotionLegacyPass(Registry); 135 initializeUnpackMachineBundlesPass(Registry); 136 initializeUnreachableBlockElimLegacyPassPass(Registry); 137 initializeUnreachableMachineBlockElimPass(Registry); 138 initializeVirtRegMapPass(Registry); 139 initializeVirtRegRewriterPass(Registry); 140 initializeWasmEHPreparePass(Registry); 141 initializeWinEHPreparePass(Registry); 142 initializeXRayInstrumentationPass(Registry); 143 } 144