1 //===- llvm/InitializePasses.h -------- Initialize All Passes ---*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // This file contains the declarations for the pass initialization routines 11 // for the entire LLVM project. 12 // 13 //===----------------------------------------------------------------------===// 14 15 #ifndef LLVM_INITIALIZEPASSES_H 16 #define LLVM_INITIALIZEPASSES_H 17 18 namespace llvm { 19 20 class PassRegistry; 21 22 /// initializeCore - Initialize all passes linked into the 23 /// TransformUtils library. 24 void initializeCore(PassRegistry&); 25 26 /// initializeTransformUtils - Initialize all passes linked into the 27 /// TransformUtils library. 28 void initializeTransformUtils(PassRegistry&); 29 30 /// initializeScalarOpts - Initialize all passes linked into the 31 /// ScalarOpts library. 32 void initializeScalarOpts(PassRegistry&); 33 34 /// initializeObjCARCOpts - Initialize all passes linked into the ObjCARCOpts 35 /// library. 36 void initializeObjCARCOpts(PassRegistry&); 37 38 /// initializeVectorization - Initialize all passes linked into the 39 /// Vectorize library. 40 void initializeVectorization(PassRegistry&); 41 42 /// initializeInstCombine - Initialize all passes linked into the 43 /// InstCombine library. 44 void initializeInstCombine(PassRegistry&); 45 46 /// initializeIPO - Initialize all passes linked into the IPO library. 47 void initializeIPO(PassRegistry&); 48 49 /// initializeInstrumentation - Initialize all passes linked into the 50 /// Instrumentation library. 51 void initializeInstrumentation(PassRegistry&); 52 53 /// initializeAnalysis - Initialize all passes linked into the Analysis library. 54 void initializeAnalysis(PassRegistry&); 55 56 /// initializeCodeGen - Initialize all passes linked into the CodeGen library. 57 void initializeCodeGen(PassRegistry&); 58 59 /// initializeCodeGen - Initialize all passes linked into the CodeGen library. 60 void initializeTarget(PassRegistry&); 61 62 void initializeAAEvalPass(PassRegistry&); 63 void initializeAddDiscriminatorsPass(PassRegistry&); 64 void initializeADCELegacyPassPass(PassRegistry&); 65 void initializeBDCEPass(PassRegistry&); 66 void initializeAliasSetPrinterPass(PassRegistry&); 67 void initializeAlwaysInlinerPass(PassRegistry&); 68 void initializeArgPromotionPass(PassRegistry&); 69 void initializeAtomicExpandPass(PassRegistry&); 70 void initializeSampleProfileLoaderPass(PassRegistry&); 71 void initializeAlignmentFromAssumptionsPass(PassRegistry&); 72 void initializeBarrierNoopPass(PassRegistry&); 73 void initializeBasicAAWrapperPassPass(PassRegistry&); 74 void initializeCallGraphWrapperPassPass(PassRegistry &); 75 void initializeBlockExtractorPassPass(PassRegistry&); 76 void initializeBlockFrequencyInfoWrapperPassPass(PassRegistry&); 77 void initializeBoundsCheckingPass(PassRegistry&); 78 void initializeBranchFolderPassPass(PassRegistry&); 79 void initializeBranchProbabilityInfoWrapperPassPass(PassRegistry&); 80 void initializeBreakCriticalEdgesPass(PassRegistry&); 81 void initializeCallGraphPrinterPass(PassRegistry&); 82 void initializeCallGraphViewerPass(PassRegistry&); 83 void initializeCFGOnlyPrinterPass(PassRegistry&); 84 void initializeCFGOnlyViewerPass(PassRegistry&); 85 void initializeCFGPrinterPass(PassRegistry&); 86 void initializeCFGSimplifyPassPass(PassRegistry&); 87 void initializeCFLAAWrapperPassPass(PassRegistry&); 88 void initializeExternalAAWrapperPassPass(PassRegistry&); 89 void initializeForwardControlFlowIntegrityPass(PassRegistry&); 90 void initializeFlattenCFGPassPass(PassRegistry&); 91 void initializeStructurizeCFGPass(PassRegistry&); 92 void initializeCFGViewerPass(PassRegistry&); 93 void initializeConstantHoistingPass(PassRegistry&); 94 void initializeCodeGenPreparePass(PassRegistry&); 95 void initializeConstantMergePass(PassRegistry&); 96 void initializeConstantPropagationPass(PassRegistry&); 97 void initializeMachineCopyPropagationPass(PassRegistry&); 98 void initializeCostModelAnalysisPass(PassRegistry&); 99 void initializeCorrelatedValuePropagationPass(PassRegistry&); 100 void initializeCrossDSOCFIPass(PassRegistry&); 101 void initializeDAEPass(PassRegistry&); 102 void initializeDAHPass(PassRegistry&); 103 void initializeDCEPass(PassRegistry&); 104 void initializeDSEPass(PassRegistry&); 105 void initializeDeadInstEliminationPass(PassRegistry&); 106 void initializeDeadMachineInstructionElimPass(PassRegistry&); 107 void initializeDelinearizationPass(PassRegistry &); 108 void initializeDependenceAnalysisPass(PassRegistry&); 109 void initializeDivergenceAnalysisPass(PassRegistry&); 110 void initializeDomOnlyPrinterPass(PassRegistry&); 111 void initializeDomOnlyViewerPass(PassRegistry&); 112 void initializeDomPrinterPass(PassRegistry&); 113 void initializeDomViewerPass(PassRegistry&); 114 void initializeDominanceFrontierPass(PassRegistry&); 115 void initializeDominatorTreeWrapperPassPass(PassRegistry&); 116 void initializeEarlyIfConverterPass(PassRegistry&); 117 void initializeEdgeBundlesPass(PassRegistry&); 118 void initializeExpandPostRAPass(PassRegistry&); 119 void initializeAAResultsWrapperPassPass(PassRegistry &); 120 void initializeGCOVProfilerPass(PassRegistry&); 121 void initializePGOInstrumentationGenPass(PassRegistry&); 122 void initializePGOInstrumentationUsePass(PassRegistry&); 123 void initializeInstrProfilingPass(PassRegistry&); 124 void initializeAddressSanitizerPass(PassRegistry&); 125 void initializeAddressSanitizerModulePass(PassRegistry&); 126 void initializeMemorySanitizerPass(PassRegistry&); 127 void initializeThreadSanitizerPass(PassRegistry&); 128 void initializeSanitizerCoverageModulePass(PassRegistry&); 129 void initializeDataFlowSanitizerPass(PassRegistry&); 130 void initializeScalarizerPass(PassRegistry&); 131 void initializeEarlyCSELegacyPassPass(PassRegistry &); 132 void initializeEliminateAvailableExternallyPass(PassRegistry&); 133 void initializeExpandISelPseudosPass(PassRegistry&); 134 void initializeFunctionAttrsPass(PassRegistry&); 135 void initializeGCMachineCodeAnalysisPass(PassRegistry&); 136 void initializeGCModuleInfoPass(PassRegistry&); 137 void initializeGVNPass(PassRegistry&); 138 void initializeGlobalDCEPass(PassRegistry&); 139 void initializeGlobalOptPass(PassRegistry&); 140 void initializeGlobalsAAWrapperPassPass(PassRegistry&); 141 void initializeIPCPPass(PassRegistry&); 142 void initializeIPSCCPPass(PassRegistry&); 143 void initializeIVUsersPass(PassRegistry&); 144 void initializeIfConverterPass(PassRegistry&); 145 void initializeInductiveRangeCheckEliminationPass(PassRegistry&); 146 void initializeIndVarSimplifyPass(PassRegistry&); 147 void initializeInlineCostAnalysisPass(PassRegistry&); 148 void initializeInstructionCombiningPassPass(PassRegistry&); 149 void initializeInstCountPass(PassRegistry&); 150 void initializeInstNamerPass(PassRegistry&); 151 void initializeInternalizePassPass(PassRegistry&); 152 void initializeIntervalPartitionPass(PassRegistry&); 153 void initializeJumpThreadingPass(PassRegistry&); 154 void initializeLCSSAPass(PassRegistry&); 155 void initializeLICMPass(PassRegistry&); 156 void initializeLazyValueInfoPass(PassRegistry&); 157 void initializeLintPass(PassRegistry&); 158 void initializeLiveDebugVariablesPass(PassRegistry&); 159 void initializeLiveIntervalsPass(PassRegistry&); 160 void initializeLiveRegMatrixPass(PassRegistry&); 161 void initializeLiveStacksPass(PassRegistry&); 162 void initializeLiveVariablesPass(PassRegistry&); 163 void initializeLoaderPassPass(PassRegistry&); 164 void initializeLocalStackSlotPassPass(PassRegistry&); 165 void initializeLoopDeletionPass(PassRegistry&); 166 void initializeLoopExtractorPass(PassRegistry&); 167 void initializeLoopInfoWrapperPassPass(PassRegistry&); 168 void initializeLoopInterchangePass(PassRegistry &); 169 void initializeLoopInstSimplifyPass(PassRegistry&); 170 void initializeLoopRotatePass(PassRegistry&); 171 void initializeLoopSimplifyPass(PassRegistry&); 172 void initializeLoopStrengthReducePass(PassRegistry&); 173 void initializeGlobalMergePass(PassRegistry&); 174 void initializeLoopRerollPass(PassRegistry&); 175 void initializeLoopUnrollPass(PassRegistry&); 176 void initializeLoopUnswitchPass(PassRegistry&); 177 void initializeLoopIdiomRecognizePass(PassRegistry&); 178 void initializeLowerAtomicPass(PassRegistry&); 179 void initializeLowerBitSetsPass(PassRegistry&); 180 void initializeLowerExpectIntrinsicPass(PassRegistry&); 181 void initializeLowerIntrinsicsPass(PassRegistry&); 182 void initializeLowerInvokePass(PassRegistry&); 183 void initializeLowerSwitchPass(PassRegistry&); 184 void initializeLowerEmuTLSPass(PassRegistry&); 185 void initializeMachineBlockFrequencyInfoPass(PassRegistry&); 186 void initializeMachineBlockPlacementPass(PassRegistry&); 187 void initializeMachineBlockPlacementStatsPass(PassRegistry&); 188 void initializeMachineBranchProbabilityInfoPass(PassRegistry&); 189 void initializeMachineCSEPass(PassRegistry&); 190 void initializeImplicitNullChecksPass(PassRegistry&); 191 void initializeMachineDominatorTreePass(PassRegistry&); 192 void initializeMachineDominanceFrontierPass(PassRegistry&); 193 void initializeMachinePostDominatorTreePass(PassRegistry&); 194 void initializeMachineLICMPass(PassRegistry&); 195 void initializeMachineLoopInfoPass(PassRegistry&); 196 void initializeMachineModuleInfoPass(PassRegistry&); 197 void initializeMachineRegionInfoPassPass(PassRegistry&); 198 void initializeMachineSchedulerPass(PassRegistry&); 199 void initializeMachineSinkingPass(PassRegistry&); 200 void initializeMachineTraceMetricsPass(PassRegistry&); 201 void initializeMachineVerifierPassPass(PassRegistry&); 202 void initializeMemCpyOptPass(PassRegistry&); 203 void initializeMemDepPrinterPass(PassRegistry&); 204 void initializeMemDerefPrinterPass(PassRegistry&); 205 void initializeMemoryDependenceAnalysisPass(PassRegistry&); 206 void initializeMergedLoadStoreMotionPass(PassRegistry &); 207 void initializeMetaRenamerPass(PassRegistry&); 208 void initializeMergeFunctionsPass(PassRegistry&); 209 void initializeModuleDebugInfoPrinterPass(PassRegistry&); 210 void initializeNaryReassociatePass(PassRegistry&); 211 void initializeNoAAPass(PassRegistry&); 212 void initializeObjCARCAAWrapperPassPass(PassRegistry&); 213 void initializeObjCARCAPElimPass(PassRegistry&); 214 void initializeObjCARCExpandPass(PassRegistry&); 215 void initializeObjCARCContractPass(PassRegistry&); 216 void initializeObjCARCOptPass(PassRegistry&); 217 void initializePAEvalPass(PassRegistry &); 218 void initializeOptimizePHIsPass(PassRegistry&); 219 void initializePartiallyInlineLibCallsPass(PassRegistry&); 220 void initializePEIPass(PassRegistry&); 221 void initializePHIEliminationPass(PassRegistry&); 222 void initializePartialInlinerPass(PassRegistry&); 223 void initializePeepholeOptimizerPass(PassRegistry&); 224 void initializePostDomOnlyPrinterPass(PassRegistry&); 225 void initializePostDomOnlyViewerPass(PassRegistry&); 226 void initializePostDomPrinterPass(PassRegistry&); 227 void initializePostDomViewerPass(PassRegistry&); 228 void initializePostDominatorTreePass(PassRegistry&); 229 void initializePostRASchedulerPass(PassRegistry&); 230 void initializePostMachineSchedulerPass(PassRegistry&); 231 void initializePrintFunctionPassWrapperPass(PassRegistry&); 232 void initializePrintModulePassWrapperPass(PassRegistry&); 233 void initializePrintBasicBlockPassPass(PassRegistry&); 234 void initializeProcessImplicitDefsPass(PassRegistry&); 235 void initializePromotePassPass(PassRegistry&); 236 void initializePruneEHPass(PassRegistry&); 237 void initializeReassociatePass(PassRegistry&); 238 void initializeRegToMemPass(PassRegistry&); 239 void initializeRegionInfoPassPass(PassRegistry&); 240 void initializeRegionOnlyPrinterPass(PassRegistry&); 241 void initializeRegionOnlyViewerPass(PassRegistry&); 242 void initializeRegionPrinterPass(PassRegistry&); 243 void initializeRegionViewerPass(PassRegistry&); 244 void initializeRewriteStatepointsForGCPass(PassRegistry&); 245 void initializeSafeStackPass(PassRegistry&); 246 void initializeSCCPPass(PassRegistry&); 247 void initializeSROALegacyPassPass(PassRegistry&); 248 void initializeSROA_DTPass(PassRegistry&); 249 void initializeSROA_SSAUpPass(PassRegistry&); 250 void initializeSCEVAAWrapperPassPass(PassRegistry&); 251 void initializeScalarEvolutionWrapperPassPass(PassRegistry&); 252 void initializeShrinkWrapPass(PassRegistry &); 253 void initializeSimpleInlinerPass(PassRegistry&); 254 void initializeShadowStackGCLoweringPass(PassRegistry&); 255 void initializeRegisterCoalescerPass(PassRegistry&); 256 void initializeSingleLoopExtractorPass(PassRegistry&); 257 void initializeSinkingPass(PassRegistry&); 258 void initializeSeparateConstOffsetFromGEPPass(PassRegistry &); 259 void initializeSlotIndexesPass(PassRegistry&); 260 void initializeSpillPlacementPass(PassRegistry&); 261 void initializeSpeculativeExecutionPass(PassRegistry&); 262 void initializeStackProtectorPass(PassRegistry&); 263 void initializeStackColoringPass(PassRegistry&); 264 void initializeStackSlotColoringPass(PassRegistry&); 265 void initializeStraightLineStrengthReducePass(PassRegistry &); 266 void initializeStripDeadDebugInfoPass(PassRegistry&); 267 void initializeStripDeadPrototypesLegacyPassPass(PassRegistry&); 268 void initializeStripDebugDeclarePass(PassRegistry&); 269 void initializeStripNonDebugSymbolsPass(PassRegistry&); 270 void initializeStripSymbolsPass(PassRegistry&); 271 void initializeTailCallElimPass(PassRegistry&); 272 void initializeTailDuplicatePassPass(PassRegistry&); 273 void initializeTargetPassConfigPass(PassRegistry&); 274 void initializeTargetTransformInfoWrapperPassPass(PassRegistry &); 275 void initializeTargetLibraryInfoWrapperPassPass(PassRegistry &); 276 void initializeAssumptionCacheTrackerPass(PassRegistry &); 277 void initializeTwoAddressInstructionPassPass(PassRegistry&); 278 void initializeTypeBasedAAWrapperPassPass(PassRegistry&); 279 void initializeScopedNoAliasAAWrapperPassPass(PassRegistry&); 280 void initializeUnifyFunctionExitNodesPass(PassRegistry&); 281 void initializeUnreachableBlockElimPass(PassRegistry&); 282 void initializeUnreachableMachineBlockElimPass(PassRegistry&); 283 void initializeVerifierLegacyPassPass(PassRegistry&); 284 void initializeVirtRegMapPass(PassRegistry&); 285 void initializeVirtRegRewriterPass(PassRegistry&); 286 void initializeInstSimplifierPass(PassRegistry&); 287 void initializeUnpackMachineBundlesPass(PassRegistry&); 288 void initializeFinalizeMachineBundlesPass(PassRegistry&); 289 void initializeLoopAccessAnalysisPass(PassRegistry&); 290 void initializeLoopVectorizePass(PassRegistry&); 291 void initializeSLPVectorizerPass(PassRegistry&); 292 void initializeBBVectorizePass(PassRegistry&); 293 void initializeMachineFunctionPrinterPassPass(PassRegistry&); 294 void initializeMIRPrintingPassPass(PassRegistry&); 295 void initializeStackMapLivenessPass(PassRegistry&); 296 void initializeLiveDebugValuesPass(PassRegistry&); 297 void initializeMachineCombinerPass(PassRegistry &); 298 void initializeLoadCombinePass(PassRegistry&); 299 void initializeRewriteSymbolsPass(PassRegistry&); 300 void initializeWinEHPreparePass(PassRegistry&); 301 void initializePlaceBackedgeSafepointsImplPass(PassRegistry&); 302 void initializePlaceSafepointsPass(PassRegistry&); 303 void initializeDwarfEHPreparePass(PassRegistry&); 304 void initializeFloat2IntPass(PassRegistry&); 305 void initializeLoopDistributePass(PassRegistry&); 306 void initializeSjLjEHPreparePass(PassRegistry&); 307 void initializeDemandedBitsPass(PassRegistry&); 308 void initializeFuncletLayoutPass(PassRegistry &); 309 void initializeLoopLoadEliminationPass(PassRegistry&); 310 void initializeFunctionImportPassPass(PassRegistry &); 311 } 312 313 #endif 314