1 //===-- CodeGen.cpp -------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file implements the common initialization routines for the
12 //===----------------------------------------------------------------------===//
14 #include "llvm/InitializePasses.h"
15 #include "llvm/PassRegistry.h"
19 /// initializeCodeGen - Initialize all passes linked into the CodeGen library.
20 void llvm::initializeCodeGen(PassRegistry
&Registry
) {
21 initializeAssignmentTrackingAnalysisPass(Registry
);
22 initializeAtomicExpandLegacyPass(Registry
);
23 initializeBasicBlockPathCloningPass(Registry
);
24 initializeBasicBlockSectionsPass(Registry
);
25 initializeBranchFolderPassPass(Registry
);
26 initializeBranchRelaxationPass(Registry
);
27 initializeBreakFalseDepsPass(Registry
);
28 initializeCallBrPreparePass(Registry
);
29 initializeCFGuardLongjmpPass(Registry
);
30 initializeCFIFixupPass(Registry
);
31 initializeCFIInstrInserterPass(Registry
);
32 initializeCheckDebugMachineModulePass(Registry
);
33 initializeCodeGenPrepareLegacyPassPass(Registry
);
34 initializeDeadMachineInstructionElimPass(Registry
);
35 initializeDebugifyMachineModulePass(Registry
);
36 initializeDetectDeadLanesPass(Registry
);
37 initializeDwarfEHPrepareLegacyPassPass(Registry
);
38 initializeEarlyIfConverterLegacyPass(Registry
);
39 initializeEarlyIfPredicatorPass(Registry
);
40 initializeEarlyMachineLICMPass(Registry
);
41 initializeEarlyTailDuplicateLegacyPass(Registry
);
42 initializeExpandLargeDivRemLegacyPassPass(Registry
);
43 initializeExpandLargeFpConvertLegacyPassPass(Registry
);
44 initializeExpandMemCmpLegacyPassPass(Registry
);
45 initializeExpandPostRAPass(Registry
);
46 initializeFEntryInserterPass(Registry
);
47 initializeFinalizeISelPass(Registry
);
48 initializeFinalizeMachineBundlesPass(Registry
);
49 initializeFixupStatepointCallerSavedPass(Registry
);
50 initializeFuncletLayoutPass(Registry
);
51 initializeGCMachineCodeAnalysisPass(Registry
);
52 initializeGCModuleInfoPass(Registry
);
53 initializeHardwareLoopsLegacyPass(Registry
);
54 initializeIfConverterPass(Registry
);
55 initializeImplicitNullChecksPass(Registry
);
56 initializeIndirectBrExpandLegacyPassPass(Registry
);
57 initializeInitUndefPass(Registry
);
58 initializeInterleavedLoadCombinePass(Registry
);
59 initializeInterleavedAccessPass(Registry
);
60 initializeJMCInstrumenterPass(Registry
);
61 initializeLiveDebugValuesPass(Registry
);
62 initializeLiveDebugVariablesPass(Registry
);
63 initializeLiveIntervalsWrapperPassPass(Registry
);
64 initializeLiveRangeShrinkPass(Registry
);
65 initializeLiveStacksPass(Registry
);
66 initializeLiveVariablesWrapperPassPass(Registry
);
67 initializeLocalStackSlotPassPass(Registry
);
68 initializeLowerGlobalDtorsLegacyPassPass(Registry
);
69 initializeLowerIntrinsicsPass(Registry
);
70 initializeMIRAddFSDiscriminatorsPass(Registry
);
71 initializeMIRCanonicalizerPass(Registry
);
72 initializeMIRNamerPass(Registry
);
73 initializeMIRProfileLoaderPassPass(Registry
);
74 initializeMachineBlockFrequencyInfoWrapperPassPass(Registry
);
75 initializeMachineBlockPlacementPass(Registry
);
76 initializeMachineBlockPlacementStatsPass(Registry
);
77 initializeMachineCFGPrinterPass(Registry
);
78 initializeMachineCSELegacyPass(Registry
);
79 initializeMachineCombinerPass(Registry
);
80 initializeMachineCopyPropagationPass(Registry
);
81 initializeMachineCycleInfoPrinterPassPass(Registry
);
82 initializeMachineCycleInfoWrapperPassPass(Registry
);
83 initializeMachineDominatorTreeWrapperPassPass(Registry
);
84 initializeMachineFunctionPrinterPassPass(Registry
);
85 initializeMachineLateInstrsCleanupPass(Registry
);
86 initializeMachineLICMPass(Registry
);
87 initializeMachineLoopInfoWrapperPassPass(Registry
);
88 initializeMachineModuleInfoWrapperPassPass(Registry
);
89 initializeMachineOptimizationRemarkEmitterPassPass(Registry
);
90 initializeMachineOutlinerPass(Registry
);
91 initializeMachinePipelinerPass(Registry
);
92 initializeMachineSanitizerBinaryMetadataPass(Registry
);
93 initializeModuloScheduleTestPass(Registry
);
94 initializeMachinePostDominatorTreeWrapperPassPass(Registry
);
95 initializeMachineRegionInfoPassPass(Registry
);
96 initializeMachineSchedulerPass(Registry
);
97 initializeMachineSinkingPass(Registry
);
98 initializeMachineUniformityAnalysisPassPass(Registry
);
99 initializeMachineUniformityInfoPrinterPassPass(Registry
);
100 initializeMachineVerifierLegacyPassPass(Registry
);
101 initializeObjCARCContractLegacyPassPass(Registry
);
102 initializeOptimizePHIsLegacyPass(Registry
);
103 initializePEIPass(Registry
);
104 initializePHIEliminationPass(Registry
);
105 initializePatchableFunctionPass(Registry
);
106 initializePeepholeOptimizerLegacyPass(Registry
);
107 initializePostMachineSchedulerPass(Registry
);
108 initializePostRAHazardRecognizerPass(Registry
);
109 initializePostRAMachineSinkingPass(Registry
);
110 initializePostRASchedulerPass(Registry
);
111 initializePreISelIntrinsicLoweringLegacyPassPass(Registry
);
112 initializeProcessImplicitDefsPass(Registry
);
113 initializeRABasicPass(Registry
);
114 initializeRAGreedyPass(Registry
);
115 initializeRegAllocFastPass(Registry
);
116 initializeRegUsageInfoCollectorLegacyPass(Registry
);
117 initializeRegUsageInfoPropagationLegacyPass(Registry
);
118 initializeRegisterCoalescerPass(Registry
);
119 initializeRemoveLoadsIntoFakeUsesPass(Registry
);
120 initializeRemoveRedundantDebugValuesPass(Registry
);
121 initializeRenameIndependentSubregsPass(Registry
);
122 initializeSafeStackLegacyPassPass(Registry
);
123 initializeSelectOptimizePass(Registry
);
124 initializeShadowStackGCLoweringPass(Registry
);
125 initializeShrinkWrapPass(Registry
);
126 initializeSjLjEHPreparePass(Registry
);
127 initializeSlotIndexesWrapperPassPass(Registry
);
128 initializeStackColoringLegacyPass(Registry
);
129 initializeStackFrameLayoutAnalysisPassPass(Registry
);
130 initializeStackMapLivenessPass(Registry
);
131 initializeStackProtectorPass(Registry
);
132 initializeStackSlotColoringPass(Registry
);
133 initializeStripDebugMachineModulePass(Registry
);
134 initializeTailDuplicateLegacyPass(Registry
);
135 initializeTargetPassConfigPass(Registry
);
136 initializeTwoAddressInstructionLegacyPassPass(Registry
);
137 initializeTypePromotionLegacyPass(Registry
);
138 initializeUnpackMachineBundlesPass(Registry
);
139 initializeUnreachableBlockElimLegacyPassPass(Registry
);
140 initializeUnreachableMachineBlockElimPass(Registry
);
141 initializeVirtRegMapWrapperLegacyPass(Registry
);
142 initializeVirtRegRewriterPass(Registry
);
143 initializeWasmEHPreparePass(Registry
);
144 initializeWinEHPreparePass(Registry
);
145 initializeXRayInstrumentationPass(Registry
);