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 initializeAtomicExpandPass(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 initializeEarlyIfConverterPass(Registry
);
39 initializeEarlyIfPredicatorPass(Registry
);
40 initializeEarlyMachineLICMPass(Registry
);
41 initializeEarlyTailDuplicatePass(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 initializeInterleavedLoadCombinePass(Registry
);
58 initializeInterleavedAccessPass(Registry
);
59 initializeJMCInstrumenterPass(Registry
);
60 initializeLiveDebugValuesPass(Registry
);
61 initializeLiveDebugVariablesPass(Registry
);
62 initializeLiveIntervalsPass(Registry
);
63 initializeLiveRangeShrinkPass(Registry
);
64 initializeLiveStacksPass(Registry
);
65 initializeLiveVariablesPass(Registry
);
66 initializeLocalStackSlotPassPass(Registry
);
67 initializeLowerGlobalDtorsLegacyPassPass(Registry
);
68 initializeLowerIntrinsicsPass(Registry
);
69 initializeMIRAddFSDiscriminatorsPass(Registry
);
70 initializeMIRCanonicalizerPass(Registry
);
71 initializeMIRNamerPass(Registry
);
72 initializeMIRProfileLoaderPassPass(Registry
);
73 initializeMachineBlockFrequencyInfoPass(Registry
);
74 initializeMachineBlockPlacementPass(Registry
);
75 initializeMachineBlockPlacementStatsPass(Registry
);
76 initializeMachineCFGPrinterPass(Registry
);
77 initializeMachineCSEPass(Registry
);
78 initializeMachineCombinerPass(Registry
);
79 initializeMachineCopyPropagationPass(Registry
);
80 initializeMachineCycleInfoPrinterPassPass(Registry
);
81 initializeMachineCycleInfoWrapperPassPass(Registry
);
82 initializeMachineDominatorTreePass(Registry
);
83 initializeMachineFunctionPrinterPassPass(Registry
);
84 initializeMachineLateInstrsCleanupPass(Registry
);
85 initializeMachineLICMPass(Registry
);
86 initializeMachineLoopInfoPass(Registry
);
87 initializeMachineModuleInfoWrapperPassPass(Registry
);
88 initializeMachineOptimizationRemarkEmitterPassPass(Registry
);
89 initializeMachineOutlinerPass(Registry
);
90 initializeMachinePipelinerPass(Registry
);
91 initializeMachineSanitizerBinaryMetadataPass(Registry
);
92 initializeModuloScheduleTestPass(Registry
);
93 initializeMachinePostDominatorTreePass(Registry
);
94 initializeMachineRegionInfoPassPass(Registry
);
95 initializeMachineSchedulerPass(Registry
);
96 initializeMachineSinkingPass(Registry
);
97 initializeMachineUniformityAnalysisPassPass(Registry
);
98 initializeMachineUniformityInfoPrinterPassPass(Registry
);
99 initializeMachineVerifierPassPass(Registry
);
100 initializeObjCARCContractLegacyPassPass(Registry
);
101 initializeOptimizePHIsPass(Registry
);
102 initializePEIPass(Registry
);
103 initializePHIEliminationPass(Registry
);
104 initializePatchableFunctionPass(Registry
);
105 initializePeepholeOptimizerPass(Registry
);
106 initializePostMachineSchedulerPass(Registry
);
107 initializePostRAHazardRecognizerPass(Registry
);
108 initializePostRAMachineSinkingPass(Registry
);
109 initializePostRASchedulerPass(Registry
);
110 initializePreISelIntrinsicLoweringLegacyPassPass(Registry
);
111 initializeProcessImplicitDefsPass(Registry
);
112 initializeRABasicPass(Registry
);
113 initializeRAGreedyPass(Registry
);
114 initializeRegAllocFastPass(Registry
);
115 initializeRegUsageInfoCollectorPass(Registry
);
116 initializeRegUsageInfoPropagationPass(Registry
);
117 initializeRegisterCoalescerPass(Registry
);
118 initializeRemoveRedundantDebugValuesPass(Registry
);
119 initializeRenameIndependentSubregsPass(Registry
);
120 initializeSafeStackLegacyPassPass(Registry
);
121 initializeSelectOptimizePass(Registry
);
122 initializeShadowStackGCLoweringPass(Registry
);
123 initializeShrinkWrapPass(Registry
);
124 initializeSjLjEHPreparePass(Registry
);
125 initializeSlotIndexesPass(Registry
);
126 initializeStackColoringPass(Registry
);
127 initializeStackFrameLayoutAnalysisPassPass(Registry
);
128 initializeStackMapLivenessPass(Registry
);
129 initializeStackProtectorPass(Registry
);
130 initializeStackSlotColoringPass(Registry
);
131 initializeStripDebugMachineModulePass(Registry
);
132 initializeTailDuplicatePass(Registry
);
133 initializeTargetPassConfigPass(Registry
);
134 initializeTwoAddressInstructionPassPass(Registry
);
135 initializeTypePromotionLegacyPass(Registry
);
136 initializeUnpackMachineBundlesPass(Registry
);
137 initializeUnreachableBlockElimLegacyPassPass(Registry
);
138 initializeUnreachableMachineBlockElimPass(Registry
);
139 initializeVirtRegMapPass(Registry
);
140 initializeVirtRegRewriterPass(Registry
);
141 initializeWasmEHPreparePass(Registry
);
142 initializeWinEHPreparePass(Registry
);
143 initializeXRayInstrumentationPass(Registry
);