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 initializeAAEvalLegacyPassPass(PassRegistry&); 52 void initializeAAResultsWrapperPassPass(PassRegistry&); 53 void initializeAlwaysInlinerLegacyPassPass(PassRegistry&); 54 void initializeAssignmentTrackingAnalysisPass(PassRegistry &); 55 void initializeAssumeBuilderPassLegacyPassPass(PassRegistry &); 56 void initializeAssumptionCacheTrackerPass(PassRegistry&); 57 void initializeAtomicExpandPass(PassRegistry&); 58 void initializeBasicBlockSectionsProfileReaderPass(PassRegistry &); 59 void initializeBasicBlockSectionsPass(PassRegistry &); 60 void initializeBarrierNoopPass(PassRegistry&); 61 void initializeBasicAAWrapperPassPass(PassRegistry&); 62 void initializeBlockFrequencyInfoWrapperPassPass(PassRegistry&); 63 void initializeBranchFolderPassPass(PassRegistry&); 64 void initializeBranchProbabilityInfoWrapperPassPass(PassRegistry&); 65 void initializeBranchRelaxationPass(PassRegistry&); 66 void initializeBreakCriticalEdgesPass(PassRegistry&); 67 void initializeBreakFalseDepsPass(PassRegistry&); 68 void initializeCanonicalizeFreezeInLoopsPass(PassRegistry &); 69 void initializeCFGOnlyPrinterLegacyPassPass(PassRegistry&); 70 void initializeCFGOnlyViewerLegacyPassPass(PassRegistry&); 71 void initializeCFGPrinterLegacyPassPass(PassRegistry&); 72 void initializeCFGSimplifyPassPass(PassRegistry&); 73 void initializeCFGuardPass(PassRegistry&); 74 void initializeCFGuardLongjmpPass(PassRegistry&); 75 void initializeCFGViewerLegacyPassPass(PassRegistry&); 76 void initializeCFIFixupPass(PassRegistry&); 77 void initializeCFIInstrInserterPass(PassRegistry&); 78 void initializeCallBrPreparePass(PassRegistry &); 79 void initializeCallGraphDOTPrinterPass(PassRegistry&); 80 void initializeCallGraphPrinterLegacyPassPass(PassRegistry&); 81 void initializeCallGraphViewerPass(PassRegistry&); 82 void initializeCallGraphWrapperPassPass(PassRegistry&); 83 void initializeCheckDebugMachineModulePass(PassRegistry &); 84 void initializeCodeGenPreparePass(PassRegistry&); 85 void initializeComplexDeinterleavingLegacyPassPass(PassRegistry&); 86 void initializeConstantHoistingLegacyPassPass(PassRegistry&); 87 void initializeCostModelAnalysisPass(PassRegistry&); 88 void initializeCycleInfoWrapperPassPass(PassRegistry &); 89 void initializeDAEPass(PassRegistry&); 90 void initializeDAHPass(PassRegistry&); 91 void initializeDCELegacyPassPass(PassRegistry&); 92 void initializeDeadMachineInstructionElimPass(PassRegistry&); 93 void initializeDebugifyMachineModulePass(PassRegistry &); 94 void initializeDelinearizationPass(PassRegistry&); 95 void initializeDependenceAnalysisWrapperPassPass(PassRegistry&); 96 void initializeDetectDeadLanesPass(PassRegistry&); 97 void initializeDomOnlyPrinterWrapperPassPass(PassRegistry &); 98 void initializeDomOnlyViewerWrapperPassPass(PassRegistry &); 99 void initializeDomPrinterWrapperPassPass(PassRegistry &); 100 void initializeDomViewerWrapperPassPass(PassRegistry &); 101 void initializeDominanceFrontierWrapperPassPass(PassRegistry&); 102 void initializeDominatorTreeWrapperPassPass(PassRegistry&); 103 void initializeDwarfEHPrepareLegacyPassPass(PassRegistry &); 104 void initializeEarlyCSELegacyPassPass(PassRegistry&); 105 void initializeEarlyCSEMemSSALegacyPassPass(PassRegistry&); 106 void initializeEarlyIfConverterPass(PassRegistry&); 107 void initializeEarlyIfPredicatorPass(PassRegistry &); 108 void initializeEarlyMachineLICMPass(PassRegistry&); 109 void initializeEarlyTailDuplicatePass(PassRegistry&); 110 void initializeEdgeBundlesPass(PassRegistry&); 111 void initializeEHContGuardCatchretPass(PassRegistry &); 112 void initializeExpandLargeFpConvertLegacyPassPass(PassRegistry&); 113 void initializeExpandLargeDivRemLegacyPassPass(PassRegistry&); 114 void initializeExpandMemCmpPassPass(PassRegistry&); 115 void initializeExpandPostRAPass(PassRegistry&); 116 void initializeExpandReductionsPass(PassRegistry&); 117 void initializeExpandVectorPredicationPass(PassRegistry &); 118 void initializeMakeGuardsExplicitLegacyPassPass(PassRegistry&); 119 void initializeExternalAAWrapperPassPass(PassRegistry&); 120 void initializeFEntryInserterPass(PassRegistry&); 121 void initializeFinalizeISelPass(PassRegistry&); 122 void initializeFinalizeMachineBundlesPass(PassRegistry&); 123 void initializeFixIrreduciblePass(PassRegistry &); 124 void initializeFixupStatepointCallerSavedPass(PassRegistry&); 125 void initializeFlattenCFGLegacyPassPass(PassRegistry &); 126 void initializeFuncletLayoutPass(PassRegistry&); 127 void initializeGCMachineCodeAnalysisPass(PassRegistry&); 128 void initializeGCModuleInfoPass(PassRegistry&); 129 void initializeGVNLegacyPassPass(PassRegistry&); 130 void initializeGlobalMergePass(PassRegistry&); 131 void initializeGlobalsAAWrapperPassPass(PassRegistry&); 132 void initializeGuardWideningLegacyPassPass(PassRegistry&); 133 void initializeHardwareLoopsLegacyPass(PassRegistry&); 134 void initializeMIRProfileLoaderPassPass(PassRegistry &); 135 void initializeIRSimilarityIdentifierWrapperPassPass(PassRegistry&); 136 void initializeIRTranslatorPass(PassRegistry&); 137 void initializeIVUsersWrapperPassPass(PassRegistry&); 138 void initializeIfConverterPass(PassRegistry&); 139 void initializeImmutableModuleSummaryIndexWrapperPassPass(PassRegistry&); 140 void initializeImplicitNullChecksPass(PassRegistry&); 141 void initializeIndirectBrExpandPassPass(PassRegistry&); 142 void initializeInferAddressSpacesPass(PassRegistry&); 143 void initializeInstCountLegacyPassPass(PassRegistry &); 144 void initializeInstSimplifyLegacyPassPass(PassRegistry &); 145 void initializeInstructionCombiningPassPass(PassRegistry&); 146 void initializeInstructionSelectPass(PassRegistry&); 147 void initializeInterleavedAccessPass(PassRegistry&); 148 void initializeInterleavedLoadCombinePass(PassRegistry &); 149 void initializeIntervalPartitionPass(PassRegistry&); 150 void initializeJMCInstrumenterPass(PassRegistry&); 151 void initializeKCFIPass(PassRegistry &); 152 void initializeLCSSAVerificationPassPass(PassRegistry&); 153 void initializeLCSSAWrapperPassPass(PassRegistry&); 154 void initializeLazyBlockFrequencyInfoPassPass(PassRegistry&); 155 void initializeLazyBranchProbabilityInfoPassPass(PassRegistry&); 156 void initializeLazyMachineBlockFrequencyInfoPassPass(PassRegistry&); 157 void initializeLazyValueInfoPrinterPass(PassRegistry&); 158 void initializeLazyValueInfoWrapperPassPass(PassRegistry&); 159 void initializeLegacyLICMPassPass(PassRegistry&); 160 void initializeLegacyLoopSinkPassPass(PassRegistry&); 161 void initializeLegalizerPass(PassRegistry&); 162 void initializeGISelCSEAnalysisWrapperPassPass(PassRegistry &); 163 void initializeGISelKnownBitsAnalysisPass(PassRegistry &); 164 void initializeLiveDebugValuesPass(PassRegistry&); 165 void initializeLiveDebugVariablesPass(PassRegistry&); 166 void initializeLiveIntervalsPass(PassRegistry&); 167 void initializeLiveRangeShrinkPass(PassRegistry&); 168 void initializeLiveRegMatrixPass(PassRegistry&); 169 void initializeLiveStacksPass(PassRegistry&); 170 void initializeLiveVariablesPass(PassRegistry &); 171 void initializeLoadStoreOptPass(PassRegistry &); 172 void initializeLoadStoreVectorizerLegacyPassPass(PassRegistry&); 173 void initializeLocalStackSlotPassPass(PassRegistry&); 174 void initializeLocalizerPass(PassRegistry&); 175 void initializeLoopDataPrefetchLegacyPassPass(PassRegistry&); 176 void initializeLoopExtractorLegacyPassPass(PassRegistry &); 177 void initializeLoopGuardWideningLegacyPassPass(PassRegistry&); 178 void initializeLoopInfoWrapperPassPass(PassRegistry&); 179 void initializeLoopInstSimplifyLegacyPassPass(PassRegistry&); 180 void initializeLoopPassPass(PassRegistry&); 181 void initializeLoopPredicationLegacyPassPass(PassRegistry&); 182 void initializeLoopRotateLegacyPassPass(PassRegistry&); 183 void initializeLoopSimplifyCFGLegacyPassPass(PassRegistry&); 184 void initializeLoopSimplifyPass(PassRegistry&); 185 void initializeLoopStrengthReducePass(PassRegistry&); 186 void initializeLoopUnrollPass(PassRegistry&); 187 void initializeLowerAtomicLegacyPassPass(PassRegistry&); 188 void initializeLowerConstantIntrinsicsPass(PassRegistry&); 189 void initializeLowerEmuTLSPass(PassRegistry&); 190 void initializeLowerExpectIntrinsicPass(PassRegistry&); 191 void initializeLowerGlobalDtorsLegacyPassPass(PassRegistry &); 192 void initializeLowerGuardIntrinsicLegacyPassPass(PassRegistry&); 193 void initializeLowerWidenableConditionLegacyPassPass(PassRegistry&); 194 void initializeLowerIntrinsicsPass(PassRegistry&); 195 void initializeLowerInvokeLegacyPassPass(PassRegistry&); 196 void initializeLowerSwitchLegacyPassPass(PassRegistry &); 197 void initializeKCFIPass(PassRegistry &); 198 void initializeMIRAddFSDiscriminatorsPass(PassRegistry &); 199 void initializeMIRCanonicalizerPass(PassRegistry &); 200 void initializeMIRNamerPass(PassRegistry &); 201 void initializeMIRPrintingPassPass(PassRegistry&); 202 void initializeMachineBlockFrequencyInfoPass(PassRegistry&); 203 void initializeMachineBlockPlacementPass(PassRegistry&); 204 void initializeMachineBlockPlacementStatsPass(PassRegistry&); 205 void initializeMachineBranchProbabilityInfoPass(PassRegistry&); 206 void initializeMachineCFGPrinterPass(PassRegistry &); 207 void initializeMachineCSEPass(PassRegistry&); 208 void initializeMachineCombinerPass(PassRegistry&); 209 void initializeMachineCopyPropagationPass(PassRegistry&); 210 void initializeMachineCycleInfoPrinterPassPass(PassRegistry &); 211 void initializeMachineCycleInfoWrapperPassPass(PassRegistry &); 212 void initializeMachineDominanceFrontierPass(PassRegistry&); 213 void initializeMachineDominatorTreePass(PassRegistry&); 214 void initializeMachineFunctionPrinterPassPass(PassRegistry&); 215 void initializeMachineFunctionSplitterPass(PassRegistry &); 216 void initializeMachineLateInstrsCleanupPass(PassRegistry&); 217 void initializeMachineLICMPass(PassRegistry&); 218 void initializeMachineLoopInfoPass(PassRegistry&); 219 void initializeMachineModuleInfoWrapperPassPass(PassRegistry &); 220 void initializeMachineOptimizationRemarkEmitterPassPass(PassRegistry&); 221 void initializeMachineOutlinerPass(PassRegistry&); 222 void initializeMachinePipelinerPass(PassRegistry&); 223 void initializeMachinePostDominatorTreePass(PassRegistry&); 224 void initializeMachineRegionInfoPassPass(PassRegistry&); 225 void initializeMachineSanitizerBinaryMetadataPass(PassRegistry &); 226 void initializeMachineSchedulerPass(PassRegistry&); 227 void initializeMachineSinkingPass(PassRegistry&); 228 void initializeMachineTraceMetricsPass(PassRegistry&); 229 void initializeMachineUniformityInfoPrinterPassPass(PassRegistry &); 230 void initializeMachineUniformityAnalysisPassPass(PassRegistry &); 231 void initializeMachineVerifierPassPass(PassRegistry&); 232 void initializeMemoryDependenceWrapperPassPass(PassRegistry&); 233 void initializeMemorySSAWrapperPassPass(PassRegistry&); 234 void initializeMergeICmpsLegacyPassPass(PassRegistry &); 235 void initializeMergedLoadStoreMotionLegacyPassPass(PassRegistry&); 236 void initializeModuleSummaryIndexWrapperPassPass(PassRegistry&); 237 void initializeModuloScheduleTestPass(PassRegistry&); 238 void initializeNaryReassociateLegacyPassPass(PassRegistry&); 239 void initializeObjCARCContractLegacyPassPass(PassRegistry &); 240 void initializeOptimizationRemarkEmitterWrapperPassPass(PassRegistry&); 241 void initializeOptimizePHIsPass(PassRegistry&); 242 void initializePEIPass(PassRegistry&); 243 void initializePHIEliminationPass(PassRegistry&); 244 void initializePartiallyInlineLibCallsLegacyPassPass(PassRegistry&); 245 void initializePatchableFunctionPass(PassRegistry&); 246 void initializePeepholeOptimizerPass(PassRegistry&); 247 void initializePhiValuesWrapperPassPass(PassRegistry&); 248 void initializePhysicalRegisterUsageInfoPass(PassRegistry&); 249 void initializePlaceBackedgeSafepointsLegacyPassPass(PassRegistry &); 250 void initializePostDomOnlyPrinterWrapperPassPass(PassRegistry &); 251 void initializePostDomOnlyViewerWrapperPassPass(PassRegistry &); 252 void initializePostDomPrinterWrapperPassPass(PassRegistry &); 253 void initializePostDomViewerWrapperPassPass(PassRegistry &); 254 void initializePostDominatorTreeWrapperPassPass(PassRegistry&); 255 void initializePostMachineSchedulerPass(PassRegistry&); 256 void initializePostRAHazardRecognizerPass(PassRegistry&); 257 void initializePostRAMachineSinkingPass(PassRegistry&); 258 void initializePostRASchedulerPass(PassRegistry&); 259 void initializePreISelIntrinsicLoweringLegacyPassPass(PassRegistry&); 260 void initializePredicateInfoPrinterLegacyPassPass(PassRegistry&); 261 void initializePrintFunctionPassWrapperPass(PassRegistry&); 262 void initializePrintModulePassWrapperPass(PassRegistry&); 263 void initializeProcessImplicitDefsPass(PassRegistry&); 264 void initializeProfileSummaryInfoWrapperPassPass(PassRegistry&); 265 void initializePromoteLegacyPassPass(PassRegistry&); 266 void initializeRABasicPass(PassRegistry&); 267 void initializePseudoProbeInserterPass(PassRegistry &); 268 void initializeRAGreedyPass(PassRegistry&); 269 void initializeReachingDefAnalysisPass(PassRegistry&); 270 void initializeReassociateLegacyPassPass(PassRegistry&); 271 void initializeRedundantDbgInstEliminationPass(PassRegistry&); 272 void initializeRegAllocEvictionAdvisorAnalysisPass(PassRegistry &); 273 void initializeRegAllocFastPass(PassRegistry&); 274 void initializeRegAllocPriorityAdvisorAnalysisPass(PassRegistry &); 275 void initializeRegAllocScoringPass(PassRegistry &); 276 void initializeRegBankSelectPass(PassRegistry&); 277 void initializeRegToMemLegacyPass(PassRegistry&); 278 void initializeRegUsageInfoCollectorPass(PassRegistry&); 279 void initializeRegUsageInfoPropagationPass(PassRegistry&); 280 void initializeRegionInfoPassPass(PassRegistry&); 281 void initializeRegionOnlyPrinterPass(PassRegistry&); 282 void initializeRegionOnlyViewerPass(PassRegistry&); 283 void initializeRegionPrinterPass(PassRegistry&); 284 void initializeRegionViewerPass(PassRegistry&); 285 void initializeRegisterCoalescerPass(PassRegistry&); 286 void initializeRemoveRedundantDebugValuesPass(PassRegistry&); 287 void initializeRenameIndependentSubregsPass(PassRegistry&); 288 void initializeReplaceWithVeclibLegacyPass(PassRegistry &); 289 void initializeResetMachineFunctionPass(PassRegistry&); 290 void initializeSCEVAAWrapperPassPass(PassRegistry&); 291 void initializeSROALegacyPassPass(PassRegistry&); 292 void initializeSafeStackLegacyPassPass(PassRegistry&); 293 void initializeSafepointIRVerifierPass(PassRegistry&); 294 void initializeSelectOptimizePass(PassRegistry &); 295 void initializeScalarEvolutionWrapperPassPass(PassRegistry&); 296 void initializeScalarizeMaskedMemIntrinLegacyPassPass(PassRegistry &); 297 void initializeScalarizerLegacyPassPass(PassRegistry&); 298 void initializeScavengerTestPass(PassRegistry&); 299 void initializeScopedNoAliasAAWrapperPassPass(PassRegistry&); 300 void initializeSeparateConstOffsetFromGEPLegacyPassPass(PassRegistry &); 301 void initializeShadowStackGCLoweringPass(PassRegistry&); 302 void initializeShrinkWrapPass(PassRegistry&); 303 void initializeSimpleLoopUnswitchLegacyPassPass(PassRegistry&); 304 void initializeSingleLoopExtractorPass(PassRegistry&); 305 void initializeSinkingLegacyPassPass(PassRegistry&); 306 void initializeSjLjEHPreparePass(PassRegistry&); 307 void initializeSlotIndexesPass(PassRegistry&); 308 void initializeSpeculativeExecutionLegacyPassPass(PassRegistry&); 309 void initializeSpillPlacementPass(PassRegistry&); 310 void initializeStackColoringPass(PassRegistry&); 311 void initializeStackFrameLayoutAnalysisPassPass(PassRegistry &); 312 void initializeStackMapLivenessPass(PassRegistry&); 313 void initializeStackProtectorPass(PassRegistry&); 314 void initializeStackSafetyGlobalInfoWrapperPassPass(PassRegistry &); 315 void initializeStackSafetyInfoWrapperPassPass(PassRegistry &); 316 void initializeStackSlotColoringPass(PassRegistry&); 317 void initializeStraightLineStrengthReduceLegacyPassPass(PassRegistry &); 318 void initializeStripDebugMachineModulePass(PassRegistry &); 319 void initializeStripGCRelocatesLegacyPass(PassRegistry &); 320 void initializeStructurizeCFGLegacyPassPass(PassRegistry &); 321 void initializeTailCallElimPass(PassRegistry&); 322 void initializeTailDuplicatePass(PassRegistry&); 323 void initializeTargetLibraryInfoWrapperPassPass(PassRegistry&); 324 void initializeTargetPassConfigPass(PassRegistry&); 325 void initializeTargetTransformInfoWrapperPassPass(PassRegistry&); 326 void initializeTLSVariableHoistLegacyPassPass(PassRegistry &); 327 void initializeTwoAddressInstructionPassPass(PassRegistry&); 328 void initializeTypeBasedAAWrapperPassPass(PassRegistry&); 329 void initializeTypePromotionLegacyPass(PassRegistry&); 330 void initializeUniformityInfoWrapperPassPass(PassRegistry &); 331 void initializeUnifyFunctionExitNodesLegacyPassPass(PassRegistry &); 332 void initializeUnifyLoopExitsLegacyPassPass(PassRegistry &); 333 void initializeUnpackMachineBundlesPass(PassRegistry&); 334 void initializeUnreachableBlockElimLegacyPassPass(PassRegistry&); 335 void initializeUnreachableMachineBlockElimPass(PassRegistry&); 336 void initializeVerifierLegacyPassPass(PassRegistry&); 337 void initializeVirtRegMapPass(PassRegistry&); 338 void initializeVirtRegRewriterPass(PassRegistry&); 339 void initializeWasmEHPreparePass(PassRegistry&); 340 void initializeWinEHPreparePass(PassRegistry&); 341 void initializeWriteBitcodePassPass(PassRegistry&); 342 void initializeXRayInstrumentationPass(PassRegistry&); 343 344 } // end namespace llvm 345 346 #endif // LLVM_INITIALIZEPASSES_H 347