xref: /freebsd/contrib/llvm-project/llvm/include/llvm/InitializePasses.h (revision 1db9f3b21e39176dd5b67cf8ac378633b172463e)
1 //===- llvm/InitializePasses.h - Initialize All Passes ----------*- C++ -*-===//
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 contains the declarations for the pass initialization routines
10 // for the entire LLVM project.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_INITIALIZEPASSES_H
15 #define LLVM_INITIALIZEPASSES_H
16 
17 namespace llvm {
18 
19 class PassRegistry;
20 
21 /// Initialize all passes linked into the Core library.
22 void initializeCore(PassRegistry&);
23 
24 /// Initialize all passes linked into the TransformUtils library.
25 void initializeTransformUtils(PassRegistry&);
26 
27 /// Initialize all passes linked into the ScalarOpts library.
28 void initializeScalarOpts(PassRegistry&);
29 
30 /// Initialize all passes linked into the Vectorize library.
31 void initializeVectorization(PassRegistry&);
32 
33 /// Initialize all passes linked into the InstCombine library.
34 void initializeInstCombine(PassRegistry&);
35 
36 /// Initialize all passes linked into the IPO library.
37 void initializeIPO(PassRegistry&);
38 
39 /// Initialize all passes linked into the Analysis library.
40 void initializeAnalysis(PassRegistry&);
41 
42 /// Initialize all passes linked into the CodeGen library.
43 void initializeCodeGen(PassRegistry&);
44 
45 /// Initialize all passes linked into the GlobalISel library.
46 void initializeGlobalISel(PassRegistry&);
47 
48 /// Initialize all passes linked into the CodeGen library.
49 void initializeTarget(PassRegistry&);
50 
51 void initializeAAResultsWrapperPassPass(PassRegistry&);
52 void initializeAlwaysInlinerLegacyPassPass(PassRegistry&);
53 void initializeAssignmentTrackingAnalysisPass(PassRegistry &);
54 void initializeAssumptionCacheTrackerPass(PassRegistry&);
55 void initializeAtomicExpandPass(PassRegistry&);
56 void initializeBasicBlockPathCloningPass(PassRegistry &);
57 void initializeBasicBlockSectionsProfileReaderWrapperPassPass(PassRegistry &);
58 void initializeBasicBlockSectionsPass(PassRegistry &);
59 void initializeBarrierNoopPass(PassRegistry&);
60 void initializeBasicAAWrapperPassPass(PassRegistry&);
61 void initializeBlockFrequencyInfoWrapperPassPass(PassRegistry&);
62 void initializeBranchFolderPassPass(PassRegistry&);
63 void initializeBranchProbabilityInfoWrapperPassPass(PassRegistry&);
64 void initializeBranchRelaxationPass(PassRegistry&);
65 void initializeBreakCriticalEdgesPass(PassRegistry&);
66 void initializeBreakFalseDepsPass(PassRegistry&);
67 void initializeCanonicalizeFreezeInLoopsPass(PassRegistry &);
68 void initializeCFGSimplifyPassPass(PassRegistry&);
69 void initializeCFGuardPass(PassRegistry&);
70 void initializeCFGuardLongjmpPass(PassRegistry&);
71 void initializeCFIFixupPass(PassRegistry&);
72 void initializeCFIInstrInserterPass(PassRegistry&);
73 void initializeCallBrPreparePass(PassRegistry &);
74 void initializeCallGraphDOTPrinterPass(PassRegistry&);
75 void initializeCallGraphViewerPass(PassRegistry&);
76 void initializeCallGraphWrapperPassPass(PassRegistry&);
77 void initializeCheckDebugMachineModulePass(PassRegistry &);
78 void initializeCodeGenPrepareLegacyPassPass(PassRegistry &);
79 void initializeComplexDeinterleavingLegacyPassPass(PassRegistry&);
80 void initializeConstantHoistingLegacyPassPass(PassRegistry&);
81 void initializeCycleInfoWrapperPassPass(PassRegistry &);
82 void initializeDAEPass(PassRegistry&);
83 void initializeDAHPass(PassRegistry&);
84 void initializeDCELegacyPassPass(PassRegistry&);
85 void initializeDeadMachineInstructionElimPass(PassRegistry&);
86 void initializeDebugifyMachineModulePass(PassRegistry &);
87 void initializeDependenceAnalysisWrapperPassPass(PassRegistry&);
88 void initializeDetectDeadLanesPass(PassRegistry&);
89 void initializeDomOnlyPrinterWrapperPassPass(PassRegistry &);
90 void initializeDomOnlyViewerWrapperPassPass(PassRegistry &);
91 void initializeDomPrinterWrapperPassPass(PassRegistry &);
92 void initializeDomViewerWrapperPassPass(PassRegistry &);
93 void initializeDominanceFrontierWrapperPassPass(PassRegistry&);
94 void initializeDominatorTreeWrapperPassPass(PassRegistry&);
95 void initializeDwarfEHPrepareLegacyPassPass(PassRegistry &);
96 void initializeEarlyCSELegacyPassPass(PassRegistry&);
97 void initializeEarlyCSEMemSSALegacyPassPass(PassRegistry&);
98 void initializeEarlyIfConverterPass(PassRegistry&);
99 void initializeEarlyIfPredicatorPass(PassRegistry &);
100 void initializeEarlyMachineLICMPass(PassRegistry&);
101 void initializeEarlyTailDuplicatePass(PassRegistry&);
102 void initializeEdgeBundlesPass(PassRegistry&);
103 void initializeEHContGuardCatchretPass(PassRegistry &);
104 void initializeExpandLargeFpConvertLegacyPassPass(PassRegistry&);
105 void initializeExpandLargeDivRemLegacyPassPass(PassRegistry&);
106 void initializeExpandMemCmpLegacyPassPass(PassRegistry &);
107 void initializeExpandPostRAPass(PassRegistry&);
108 void initializeExpandReductionsPass(PassRegistry&);
109 void initializeExpandVectorPredicationPass(PassRegistry &);
110 void initializeExternalAAWrapperPassPass(PassRegistry&);
111 void initializeFEntryInserterPass(PassRegistry&);
112 void initializeFinalizeISelPass(PassRegistry&);
113 void initializeFinalizeMachineBundlesPass(PassRegistry&);
114 void initializeFixIrreduciblePass(PassRegistry &);
115 void initializeFixupStatepointCallerSavedPass(PassRegistry&);
116 void initializeFlattenCFGLegacyPassPass(PassRegistry &);
117 void initializeFuncletLayoutPass(PassRegistry&);
118 void initializeGCEmptyBasicBlocksPass(PassRegistry &);
119 void initializeGCMachineCodeAnalysisPass(PassRegistry&);
120 void initializeGCModuleInfoPass(PassRegistry&);
121 void initializeGVNLegacyPassPass(PassRegistry&);
122 void initializeGlobalMergePass(PassRegistry&);
123 void initializeGlobalsAAWrapperPassPass(PassRegistry &);
124 void initializeHardwareLoopsLegacyPass(PassRegistry&);
125 void initializeMIRProfileLoaderPassPass(PassRegistry &);
126 void initializeIRSimilarityIdentifierWrapperPassPass(PassRegistry&);
127 void initializeIRTranslatorPass(PassRegistry&);
128 void initializeIVUsersWrapperPassPass(PassRegistry&);
129 void initializeIfConverterPass(PassRegistry&);
130 void initializeImmutableModuleSummaryIndexWrapperPassPass(PassRegistry&);
131 void initializeImplicitNullChecksPass(PassRegistry&);
132 void initializeIndirectBrExpandLegacyPassPass(PassRegistry &);
133 void initializeInferAddressSpacesPass(PassRegistry&);
134 void initializeInstSimplifyLegacyPassPass(PassRegistry &);
135 void initializeInstructionCombiningPassPass(PassRegistry&);
136 void initializeInstructionSelectPass(PassRegistry&);
137 void initializeInterleavedAccessPass(PassRegistry&);
138 void initializeInterleavedLoadCombinePass(PassRegistry &);
139 void initializeIntervalPartitionPass(PassRegistry&);
140 void initializeJMCInstrumenterPass(PassRegistry&);
141 void initializeKCFIPass(PassRegistry &);
142 void initializeLCSSAVerificationPassPass(PassRegistry&);
143 void initializeLCSSAWrapperPassPass(PassRegistry&);
144 void initializeLazyBlockFrequencyInfoPassPass(PassRegistry&);
145 void initializeLazyBranchProbabilityInfoPassPass(PassRegistry&);
146 void initializeLazyMachineBlockFrequencyInfoPassPass(PassRegistry&);
147 void initializeLazyValueInfoWrapperPassPass(PassRegistry&);
148 void initializeLegacyLICMPassPass(PassRegistry&);
149 void initializeLegalizerPass(PassRegistry&);
150 void initializeGISelCSEAnalysisWrapperPassPass(PassRegistry &);
151 void initializeGISelKnownBitsAnalysisPass(PassRegistry &);
152 void initializeLiveDebugValuesPass(PassRegistry&);
153 void initializeLiveDebugVariablesPass(PassRegistry&);
154 void initializeLiveIntervalsPass(PassRegistry&);
155 void initializeLiveRangeShrinkPass(PassRegistry&);
156 void initializeLiveRegMatrixPass(PassRegistry&);
157 void initializeLiveStacksPass(PassRegistry&);
158 void initializeLiveVariablesPass(PassRegistry &);
159 void initializeLoadStoreOptPass(PassRegistry &);
160 void initializeLoadStoreVectorizerLegacyPassPass(PassRegistry&);
161 void initializeLocalStackSlotPassPass(PassRegistry&);
162 void initializeLocalizerPass(PassRegistry&);
163 void initializeLoopDataPrefetchLegacyPassPass(PassRegistry&);
164 void initializeLoopExtractorLegacyPassPass(PassRegistry &);
165 void initializeLoopInfoWrapperPassPass(PassRegistry&);
166 void initializeLoopPassPass(PassRegistry&);
167 void initializeLoopRotateLegacyPassPass(PassRegistry&);
168 void initializeLoopSimplifyPass(PassRegistry&);
169 void initializeLoopStrengthReducePass(PassRegistry&);
170 void initializeLoopUnrollPass(PassRegistry&);
171 void initializeLowerAtomicLegacyPassPass(PassRegistry&);
172 void initializeLowerConstantIntrinsicsPass(PassRegistry&);
173 void initializeLowerEmuTLSPass(PassRegistry&);
174 void initializeLowerGlobalDtorsLegacyPassPass(PassRegistry &);
175 void initializeLowerIntrinsicsPass(PassRegistry&);
176 void initializeLowerInvokeLegacyPassPass(PassRegistry&);
177 void initializeLowerSwitchLegacyPassPass(PassRegistry &);
178 void initializeKCFIPass(PassRegistry &);
179 void initializeMIRAddFSDiscriminatorsPass(PassRegistry &);
180 void initializeMIRCanonicalizerPass(PassRegistry &);
181 void initializeMIRNamerPass(PassRegistry &);
182 void initializeMIRPrintingPassPass(PassRegistry&);
183 void initializeMachineBlockFrequencyInfoPass(PassRegistry&);
184 void initializeMachineBlockPlacementPass(PassRegistry&);
185 void initializeMachineBlockPlacementStatsPass(PassRegistry&);
186 void initializeMachineBranchProbabilityInfoPass(PassRegistry&);
187 void initializeMachineCFGPrinterPass(PassRegistry &);
188 void initializeMachineCSEPass(PassRegistry&);
189 void initializeMachineCombinerPass(PassRegistry&);
190 void initializeMachineCopyPropagationPass(PassRegistry&);
191 void initializeMachineCycleInfoPrinterPassPass(PassRegistry &);
192 void initializeMachineCycleInfoWrapperPassPass(PassRegistry &);
193 void initializeMachineDominanceFrontierPass(PassRegistry&);
194 void initializeMachineDominatorTreePass(PassRegistry&);
195 void initializeMachineFunctionPrinterPassPass(PassRegistry&);
196 void initializeMachineFunctionSplitterPass(PassRegistry &);
197 void initializeMachineLateInstrsCleanupPass(PassRegistry&);
198 void initializeMachineLICMPass(PassRegistry&);
199 void initializeMachineLoopInfoPass(PassRegistry&);
200 void initializeMachineModuleInfoWrapperPassPass(PassRegistry &);
201 void initializeMachineOptimizationRemarkEmitterPassPass(PassRegistry&);
202 void initializeMachineOutlinerPass(PassRegistry&);
203 void initializeMachinePipelinerPass(PassRegistry&);
204 void initializeMachinePostDominatorTreePass(PassRegistry&);
205 void initializeMachineRegionInfoPassPass(PassRegistry&);
206 void initializeMachineSanitizerBinaryMetadataPass(PassRegistry &);
207 void initializeMachineSchedulerPass(PassRegistry&);
208 void initializeMachineSinkingPass(PassRegistry&);
209 void initializeMachineTraceMetricsPass(PassRegistry&);
210 void initializeMachineUniformityInfoPrinterPassPass(PassRegistry &);
211 void initializeMachineUniformityAnalysisPassPass(PassRegistry &);
212 void initializeMachineVerifierPassPass(PassRegistry&);
213 void initializeMemoryDependenceWrapperPassPass(PassRegistry&);
214 void initializeMemorySSAWrapperPassPass(PassRegistry&);
215 void initializeMergeICmpsLegacyPassPass(PassRegistry &);
216 void initializeModuleSummaryIndexWrapperPassPass(PassRegistry&);
217 void initializeModuloScheduleTestPass(PassRegistry&);
218 void initializeNaryReassociateLegacyPassPass(PassRegistry&);
219 void initializeObjCARCContractLegacyPassPass(PassRegistry &);
220 void initializeOptimizationRemarkEmitterWrapperPassPass(PassRegistry&);
221 void initializeOptimizePHIsPass(PassRegistry&);
222 void initializePEIPass(PassRegistry&);
223 void initializePHIEliminationPass(PassRegistry&);
224 void initializePartiallyInlineLibCallsLegacyPassPass(PassRegistry&);
225 void initializePatchableFunctionPass(PassRegistry&);
226 void initializePeepholeOptimizerPass(PassRegistry&);
227 void initializePhiValuesWrapperPassPass(PassRegistry&);
228 void initializePhysicalRegisterUsageInfoPass(PassRegistry&);
229 void initializePlaceBackedgeSafepointsLegacyPassPass(PassRegistry &);
230 void initializePostDomOnlyPrinterWrapperPassPass(PassRegistry &);
231 void initializePostDomOnlyViewerWrapperPassPass(PassRegistry &);
232 void initializePostDomPrinterWrapperPassPass(PassRegistry &);
233 void initializePostDomViewerWrapperPassPass(PassRegistry &);
234 void initializePostDominatorTreeWrapperPassPass(PassRegistry&);
235 void initializePostMachineSchedulerPass(PassRegistry&);
236 void initializePostRAHazardRecognizerPass(PassRegistry&);
237 void initializePostRAMachineSinkingPass(PassRegistry&);
238 void initializePostRASchedulerPass(PassRegistry&);
239 void initializePreISelIntrinsicLoweringLegacyPassPass(PassRegistry&);
240 void initializePrintFunctionPassWrapperPass(PassRegistry&);
241 void initializePrintModulePassWrapperPass(PassRegistry&);
242 void initializeProcessImplicitDefsPass(PassRegistry&);
243 void initializeProfileSummaryInfoWrapperPassPass(PassRegistry&);
244 void initializePromoteLegacyPassPass(PassRegistry&);
245 void initializeRABasicPass(PassRegistry&);
246 void initializePseudoProbeInserterPass(PassRegistry &);
247 void initializeRAGreedyPass(PassRegistry&);
248 void initializeReachingDefAnalysisPass(PassRegistry&);
249 void initializeReassociateLegacyPassPass(PassRegistry&);
250 void initializeRegAllocEvictionAdvisorAnalysisPass(PassRegistry &);
251 void initializeRegAllocFastPass(PassRegistry&);
252 void initializeRegAllocPriorityAdvisorAnalysisPass(PassRegistry &);
253 void initializeRegAllocScoringPass(PassRegistry &);
254 void initializeRegBankSelectPass(PassRegistry&);
255 void initializeRegUsageInfoCollectorPass(PassRegistry&);
256 void initializeRegUsageInfoPropagationPass(PassRegistry&);
257 void initializeRegionInfoPassPass(PassRegistry&);
258 void initializeRegionOnlyPrinterPass(PassRegistry&);
259 void initializeRegionOnlyViewerPass(PassRegistry&);
260 void initializeRegionPrinterPass(PassRegistry&);
261 void initializeRegionViewerPass(PassRegistry&);
262 void initializeRegisterCoalescerPass(PassRegistry&);
263 void initializeRemoveRedundantDebugValuesPass(PassRegistry&);
264 void initializeRenameIndependentSubregsPass(PassRegistry&);
265 void initializeReplaceWithVeclibLegacyPass(PassRegistry &);
266 void initializeResetMachineFunctionPass(PassRegistry&);
267 void initializeSCEVAAWrapperPassPass(PassRegistry&);
268 void initializeSROALegacyPassPass(PassRegistry&);
269 void initializeSafeStackLegacyPassPass(PassRegistry&);
270 void initializeSafepointIRVerifierPass(PassRegistry&);
271 void initializeSelectOptimizePass(PassRegistry &);
272 void initializeScalarEvolutionWrapperPassPass(PassRegistry&);
273 void initializeScalarizeMaskedMemIntrinLegacyPassPass(PassRegistry &);
274 void initializeScavengerTestPass(PassRegistry&);
275 void initializeScopedNoAliasAAWrapperPassPass(PassRegistry&);
276 void initializeSeparateConstOffsetFromGEPLegacyPassPass(PassRegistry &);
277 void initializeShadowStackGCLoweringPass(PassRegistry&);
278 void initializeShrinkWrapPass(PassRegistry&);
279 void initializeSingleLoopExtractorPass(PassRegistry&);
280 void initializeSinkingLegacyPassPass(PassRegistry&);
281 void initializeSjLjEHPreparePass(PassRegistry&);
282 void initializeSlotIndexesPass(PassRegistry&);
283 void initializeSpeculativeExecutionLegacyPassPass(PassRegistry&);
284 void initializeSpillPlacementPass(PassRegistry&);
285 void initializeStackColoringPass(PassRegistry&);
286 void initializeStackFrameLayoutAnalysisPassPass(PassRegistry &);
287 void initializeStackMapLivenessPass(PassRegistry&);
288 void initializeStackProtectorPass(PassRegistry&);
289 void initializeStackSafetyGlobalInfoWrapperPassPass(PassRegistry &);
290 void initializeStackSafetyInfoWrapperPassPass(PassRegistry &);
291 void initializeStackSlotColoringPass(PassRegistry&);
292 void initializeStraightLineStrengthReduceLegacyPassPass(PassRegistry &);
293 void initializeStripDebugMachineModulePass(PassRegistry &);
294 void initializeStructurizeCFGLegacyPassPass(PassRegistry &);
295 void initializeTailCallElimPass(PassRegistry&);
296 void initializeTailDuplicatePass(PassRegistry&);
297 void initializeTargetLibraryInfoWrapperPassPass(PassRegistry&);
298 void initializeTargetPassConfigPass(PassRegistry&);
299 void initializeTargetTransformInfoWrapperPassPass(PassRegistry&);
300 void initializeTLSVariableHoistLegacyPassPass(PassRegistry &);
301 void initializeTwoAddressInstructionPassPass(PassRegistry&);
302 void initializeTypeBasedAAWrapperPassPass(PassRegistry&);
303 void initializeTypePromotionLegacyPass(PassRegistry&);
304 void initializeUniformityInfoWrapperPassPass(PassRegistry &);
305 void initializeUnifyLoopExitsLegacyPassPass(PassRegistry &);
306 void initializeUnpackMachineBundlesPass(PassRegistry&);
307 void initializeUnreachableBlockElimLegacyPassPass(PassRegistry&);
308 void initializeUnreachableMachineBlockElimPass(PassRegistry&);
309 void initializeVerifierLegacyPassPass(PassRegistry&);
310 void initializeVirtRegMapPass(PassRegistry&);
311 void initializeVirtRegRewriterPass(PassRegistry&);
312 void initializeWasmEHPreparePass(PassRegistry&);
313 void initializeWinEHPreparePass(PassRegistry&);
314 void initializeWriteBitcodePassPass(PassRegistry&);
315 void initializeXRayInstrumentationPass(PassRegistry&);
316 
317 } // end namespace llvm
318 
319 #endif // LLVM_INITIALIZEPASSES_H
320