[llvm] bbc89fa - [Passes] clang-format initialization files (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 01:12:18 PDT 2024


Author: Nikita Popov
Date: 2024-08-16T10:12:09+02:00
New Revision: bbc89faf4edf36ceeeef87150e8a7e7a1fd5051a

URL: https://github.com/llvm/llvm-project/commit/bbc89faf4edf36ceeeef87150e8a7e7a1fd5051a
DIFF: https://github.com/llvm/llvm-project/commit/bbc89faf4edf36ceeeef87150e8a7e7a1fd5051a.diff

LOG: [Passes] clang-format initialization files (NFC)

These regularly get touched when adding or removing passes, and
always cause issues with clang-format.

Added: 
    

Modified: 
    llvm/include/llvm/InitializePasses.h
    llvm/include/llvm/LinkAllPasses.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/InitializePasses.h b/llvm/include/llvm/InitializePasses.h
index 0cd0d2edc2366..a4ac314bb590e 100644
--- a/llvm/include/llvm/InitializePasses.h
+++ b/llvm/include/llvm/InitializePasses.h
@@ -19,304 +19,304 @@ namespace llvm {
 class PassRegistry;
 
 /// Initialize all passes linked into the Core library.
-void initializeCore(PassRegistry&);
+void initializeCore(PassRegistry &);
 
 /// Initialize all passes linked into the TransformUtils library.
-void initializeTransformUtils(PassRegistry&);
+void initializeTransformUtils(PassRegistry &);
 
 /// Initialize all passes linked into the ScalarOpts library.
-void initializeScalarOpts(PassRegistry&);
+void initializeScalarOpts(PassRegistry &);
 
 /// Initialize all passes linked into the Vectorize library.
-void initializeVectorization(PassRegistry&);
+void initializeVectorization(PassRegistry &);
 
 /// Initialize all passes linked into the InstCombine library.
-void initializeInstCombine(PassRegistry&);
+void initializeInstCombine(PassRegistry &);
 
 /// Initialize all passes linked into the IPO library.
-void initializeIPO(PassRegistry&);
+void initializeIPO(PassRegistry &);
 
 /// Initialize all passes linked into the Analysis library.
-void initializeAnalysis(PassRegistry&);
+void initializeAnalysis(PassRegistry &);
 
 /// Initialize all passes linked into the CodeGen library.
-void initializeCodeGen(PassRegistry&);
+void initializeCodeGen(PassRegistry &);
 
 /// Initialize all passes linked into the GlobalISel library.
-void initializeGlobalISel(PassRegistry&);
+void initializeGlobalISel(PassRegistry &);
 
 /// Initialize all passes linked into the CodeGen library.
-void initializeTarget(PassRegistry&);
+void initializeTarget(PassRegistry &);
 
-void initializeAAResultsWrapperPassPass(PassRegistry&);
-void initializeAlwaysInlinerLegacyPassPass(PassRegistry&);
+void initializeAAResultsWrapperPassPass(PassRegistry &);
+void initializeAlwaysInlinerLegacyPassPass(PassRegistry &);
 void initializeAssignmentTrackingAnalysisPass(PassRegistry &);
-void initializeAssumptionCacheTrackerPass(PassRegistry&);
+void initializeAssumptionCacheTrackerPass(PassRegistry &);
 void initializeAtomicExpandLegacyPass(PassRegistry &);
 void initializeBasicBlockPathCloningPass(PassRegistry &);
 void initializeBasicBlockSectionsProfileReaderWrapperPassPass(PassRegistry &);
 void initializeBasicBlockSectionsPass(PassRegistry &);
-void initializeBarrierNoopPass(PassRegistry&);
-void initializeBasicAAWrapperPassPass(PassRegistry&);
-void initializeBlockFrequencyInfoWrapperPassPass(PassRegistry&);
-void initializeBranchFolderPassPass(PassRegistry&);
-void initializeBranchProbabilityInfoWrapperPassPass(PassRegistry&);
-void initializeBranchRelaxationPass(PassRegistry&);
-void initializeBreakCriticalEdgesPass(PassRegistry&);
-void initializeBreakFalseDepsPass(PassRegistry&);
+void initializeBarrierNoopPass(PassRegistry &);
+void initializeBasicAAWrapperPassPass(PassRegistry &);
+void initializeBlockFrequencyInfoWrapperPassPass(PassRegistry &);
+void initializeBranchFolderPassPass(PassRegistry &);
+void initializeBranchProbabilityInfoWrapperPassPass(PassRegistry &);
+void initializeBranchRelaxationPass(PassRegistry &);
+void initializeBreakCriticalEdgesPass(PassRegistry &);
+void initializeBreakFalseDepsPass(PassRegistry &);
 void initializeCanonicalizeFreezeInLoopsPass(PassRegistry &);
-void initializeCFGSimplifyPassPass(PassRegistry&);
-void initializeCFGuardPass(PassRegistry&);
-void initializeCFGuardLongjmpPass(PassRegistry&);
-void initializeCFIFixupPass(PassRegistry&);
-void initializeCFIInstrInserterPass(PassRegistry&);
+void initializeCFGSimplifyPassPass(PassRegistry &);
+void initializeCFGuardPass(PassRegistry &);
+void initializeCFGuardLongjmpPass(PassRegistry &);
+void initializeCFIFixupPass(PassRegistry &);
+void initializeCFIInstrInserterPass(PassRegistry &);
 void initializeCallBrPreparePass(PassRegistry &);
-void initializeCallGraphDOTPrinterPass(PassRegistry&);
-void initializeCallGraphViewerPass(PassRegistry&);
-void initializeCallGraphWrapperPassPass(PassRegistry&);
+void initializeCallGraphDOTPrinterPass(PassRegistry &);
+void initializeCallGraphViewerPass(PassRegistry &);
+void initializeCallGraphWrapperPassPass(PassRegistry &);
 void initializeCheckDebugMachineModulePass(PassRegistry &);
 void initializeCodeGenPrepareLegacyPassPass(PassRegistry &);
-void initializeComplexDeinterleavingLegacyPassPass(PassRegistry&);
-void initializeConstantHoistingLegacyPassPass(PassRegistry&);
+void initializeComplexDeinterleavingLegacyPassPass(PassRegistry &);
+void initializeConstantHoistingLegacyPassPass(PassRegistry &);
 void initializeCycleInfoWrapperPassPass(PassRegistry &);
-void initializeDAEPass(PassRegistry&);
-void initializeDAHPass(PassRegistry&);
-void initializeDCELegacyPassPass(PassRegistry&);
+void initializeDAEPass(PassRegistry &);
+void initializeDAHPass(PassRegistry &);
+void initializeDCELegacyPassPass(PassRegistry &);
 void initializeDXILMetadataAnalysisWrapperPassPass(PassRegistry &);
 void initializeDXILMetadataAnalysisWrapperPrinterPass(PassRegistry &);
 void initializeDXILResourceWrapperPassPass(PassRegistry &);
-void initializeDeadMachineInstructionElimPass(PassRegistry&);
+void initializeDeadMachineInstructionElimPass(PassRegistry &);
 void initializeDebugifyMachineModulePass(PassRegistry &);
-void initializeDependenceAnalysisWrapperPassPass(PassRegistry&);
-void initializeDetectDeadLanesPass(PassRegistry&);
+void initializeDependenceAnalysisWrapperPassPass(PassRegistry &);
+void initializeDetectDeadLanesPass(PassRegistry &);
 void initializeDomOnlyPrinterWrapperPassPass(PassRegistry &);
 void initializeDomOnlyViewerWrapperPassPass(PassRegistry &);
 void initializeDomPrinterWrapperPassPass(PassRegistry &);
 void initializeDomViewerWrapperPassPass(PassRegistry &);
-void initializeDominanceFrontierWrapperPassPass(PassRegistry&);
-void initializeDominatorTreeWrapperPassPass(PassRegistry&);
+void initializeDominanceFrontierWrapperPassPass(PassRegistry &);
+void initializeDominatorTreeWrapperPassPass(PassRegistry &);
 void initializeDwarfEHPrepareLegacyPassPass(PassRegistry &);
-void initializeEarlyCSELegacyPassPass(PassRegistry&);
-void initializeEarlyCSEMemSSALegacyPassPass(PassRegistry&);
-void initializeEarlyIfConverterPass(PassRegistry&);
+void initializeEarlyCSELegacyPassPass(PassRegistry &);
+void initializeEarlyCSEMemSSALegacyPassPass(PassRegistry &);
+void initializeEarlyIfConverterPass(PassRegistry &);
 void initializeEarlyIfPredicatorPass(PassRegistry &);
-void initializeEarlyMachineLICMPass(PassRegistry&);
-void initializeEarlyTailDuplicatePass(PassRegistry&);
-void initializeEdgeBundlesPass(PassRegistry&);
+void initializeEarlyMachineLICMPass(PassRegistry &);
+void initializeEarlyTailDuplicatePass(PassRegistry &);
+void initializeEdgeBundlesPass(PassRegistry &);
 void initializeEHContGuardCatchretPass(PassRegistry &);
-void initializeExpandLargeFpConvertLegacyPassPass(PassRegistry&);
-void initializeExpandLargeDivRemLegacyPassPass(PassRegistry&);
+void initializeExpandLargeFpConvertLegacyPassPass(PassRegistry &);
+void initializeExpandLargeDivRemLegacyPassPass(PassRegistry &);
 void initializeExpandMemCmpLegacyPassPass(PassRegistry &);
-void initializeExpandPostRAPass(PassRegistry&);
-void initializeExpandReductionsPass(PassRegistry&);
+void initializeExpandPostRAPass(PassRegistry &);
+void initializeExpandReductionsPass(PassRegistry &);
 void initializeExpandVariadicsPass(PassRegistry &);
 void initializeExpandVectorPredicationPass(PassRegistry &);
-void initializeExternalAAWrapperPassPass(PassRegistry&);
-void initializeFEntryInserterPass(PassRegistry&);
-void initializeFinalizeISelPass(PassRegistry&);
-void initializeFinalizeMachineBundlesPass(PassRegistry&);
+void initializeExternalAAWrapperPassPass(PassRegistry &);
+void initializeFEntryInserterPass(PassRegistry &);
+void initializeFinalizeISelPass(PassRegistry &);
+void initializeFinalizeMachineBundlesPass(PassRegistry &);
 void initializeFixIrreduciblePass(PassRegistry &);
-void initializeFixupStatepointCallerSavedPass(PassRegistry&);
+void initializeFixupStatepointCallerSavedPass(PassRegistry &);
 void initializeFlattenCFGLegacyPassPass(PassRegistry &);
-void initializeFuncletLayoutPass(PassRegistry&);
+void initializeFuncletLayoutPass(PassRegistry &);
 void initializeGCEmptyBasicBlocksPass(PassRegistry &);
-void initializeGCMachineCodeAnalysisPass(PassRegistry&);
-void initializeGCModuleInfoPass(PassRegistry&);
-void initializeGVNLegacyPassPass(PassRegistry&);
-void initializeGlobalMergePass(PassRegistry&);
+void initializeGCMachineCodeAnalysisPass(PassRegistry &);
+void initializeGCModuleInfoPass(PassRegistry &);
+void initializeGVNLegacyPassPass(PassRegistry &);
+void initializeGlobalMergePass(PassRegistry &);
 void initializeGlobalsAAWrapperPassPass(PassRegistry &);
-void initializeHardwareLoopsLegacyPass(PassRegistry&);
+void initializeHardwareLoopsLegacyPass(PassRegistry &);
 void initializeMIRProfileLoaderPassPass(PassRegistry &);
-void initializeIRSimilarityIdentifierWrapperPassPass(PassRegistry&);
-void initializeIRTranslatorPass(PassRegistry&);
-void initializeIVUsersWrapperPassPass(PassRegistry&);
-void initializeIfConverterPass(PassRegistry&);
-void initializeImmutableModuleSummaryIndexWrapperPassPass(PassRegistry&);
-void initializeImplicitNullChecksPass(PassRegistry&);
+void initializeIRSimilarityIdentifierWrapperPassPass(PassRegistry &);
+void initializeIRTranslatorPass(PassRegistry &);
+void initializeIVUsersWrapperPassPass(PassRegistry &);
+void initializeIfConverterPass(PassRegistry &);
+void initializeImmutableModuleSummaryIndexWrapperPassPass(PassRegistry &);
+void initializeImplicitNullChecksPass(PassRegistry &);
 void initializeIndirectBrExpandLegacyPassPass(PassRegistry &);
-void initializeInferAddressSpacesPass(PassRegistry&);
+void initializeInferAddressSpacesPass(PassRegistry &);
 void initializeInstSimplifyLegacyPassPass(PassRegistry &);
-void initializeInstructionCombiningPassPass(PassRegistry&);
-void initializeInstructionSelectPass(PassRegistry&);
-void initializeInterleavedAccessPass(PassRegistry&);
+void initializeInstructionCombiningPassPass(PassRegistry &);
+void initializeInstructionSelectPass(PassRegistry &);
+void initializeInterleavedAccessPass(PassRegistry &);
 void initializeInterleavedLoadCombinePass(PassRegistry &);
-void initializeJMCInstrumenterPass(PassRegistry&);
+void initializeJMCInstrumenterPass(PassRegistry &);
 void initializeKCFIPass(PassRegistry &);
-void initializeLCSSAVerificationPassPass(PassRegistry&);
-void initializeLCSSAWrapperPassPass(PassRegistry&);
-void initializeLazyBlockFrequencyInfoPassPass(PassRegistry&);
-void initializeLazyBranchProbabilityInfoPassPass(PassRegistry&);
-void initializeLazyMachineBlockFrequencyInfoPassPass(PassRegistry&);
-void initializeLazyValueInfoWrapperPassPass(PassRegistry&);
-void initializeLegacyLICMPassPass(PassRegistry&);
-void initializeLegalizerPass(PassRegistry&);
+void initializeLCSSAVerificationPassPass(PassRegistry &);
+void initializeLCSSAWrapperPassPass(PassRegistry &);
+void initializeLazyBlockFrequencyInfoPassPass(PassRegistry &);
+void initializeLazyBranchProbabilityInfoPassPass(PassRegistry &);
+void initializeLazyMachineBlockFrequencyInfoPassPass(PassRegistry &);
+void initializeLazyValueInfoWrapperPassPass(PassRegistry &);
+void initializeLegacyLICMPassPass(PassRegistry &);
+void initializeLegalizerPass(PassRegistry &);
 void initializeGISelCSEAnalysisWrapperPassPass(PassRegistry &);
 void initializeGISelKnownBitsAnalysisPass(PassRegistry &);
-void initializeLiveDebugValuesPass(PassRegistry&);
-void initializeLiveDebugVariablesPass(PassRegistry&);
+void initializeLiveDebugValuesPass(PassRegistry &);
+void initializeLiveDebugVariablesPass(PassRegistry &);
 void initializeLiveIntervalsWrapperPassPass(PassRegistry &);
-void initializeLiveRangeShrinkPass(PassRegistry&);
-void initializeLiveRegMatrixPass(PassRegistry&);
-void initializeLiveStacksPass(PassRegistry&);
+void initializeLiveRangeShrinkPass(PassRegistry &);
+void initializeLiveRegMatrixPass(PassRegistry &);
+void initializeLiveStacksPass(PassRegistry &);
 void initializeLiveVariablesWrapperPassPass(PassRegistry &);
 void initializeLoadStoreOptPass(PassRegistry &);
-void initializeLoadStoreVectorizerLegacyPassPass(PassRegistry&);
-void initializeLocalStackSlotPassPass(PassRegistry&);
-void initializeLocalizerPass(PassRegistry&);
-void initializeLoopDataPrefetchLegacyPassPass(PassRegistry&);
+void initializeLoadStoreVectorizerLegacyPassPass(PassRegistry &);
+void initializeLocalStackSlotPassPass(PassRegistry &);
+void initializeLocalizerPass(PassRegistry &);
+void initializeLoopDataPrefetchLegacyPassPass(PassRegistry &);
 void initializeLoopExtractorLegacyPassPass(PassRegistry &);
-void initializeLoopInfoWrapperPassPass(PassRegistry&);
-void initializeLoopPassPass(PassRegistry&);
-void initializeLoopSimplifyPass(PassRegistry&);
-void initializeLoopStrengthReducePass(PassRegistry&);
-void initializeLoopUnrollPass(PassRegistry&);
-void initializeLowerAtomicLegacyPassPass(PassRegistry&);
-void initializeLowerConstantIntrinsicsPass(PassRegistry&);
-void initializeLowerEmuTLSPass(PassRegistry&);
+void initializeLoopInfoWrapperPassPass(PassRegistry &);
+void initializeLoopPassPass(PassRegistry &);
+void initializeLoopSimplifyPass(PassRegistry &);
+void initializeLoopStrengthReducePass(PassRegistry &);
+void initializeLoopUnrollPass(PassRegistry &);
+void initializeLowerAtomicLegacyPassPass(PassRegistry &);
+void initializeLowerConstantIntrinsicsPass(PassRegistry &);
+void initializeLowerEmuTLSPass(PassRegistry &);
 void initializeLowerGlobalDtorsLegacyPassPass(PassRegistry &);
-void initializeLowerIntrinsicsPass(PassRegistry&);
-void initializeLowerInvokeLegacyPassPass(PassRegistry&);
+void initializeLowerIntrinsicsPass(PassRegistry &);
+void initializeLowerInvokeLegacyPassPass(PassRegistry &);
 void initializeLowerSwitchLegacyPassPass(PassRegistry &);
 void initializeKCFIPass(PassRegistry &);
 void initializeMIRAddFSDiscriminatorsPass(PassRegistry &);
 void initializeMIRCanonicalizerPass(PassRegistry &);
 void initializeMIRNamerPass(PassRegistry &);
-void initializeMIRPrintingPassPass(PassRegistry&);
+void initializeMIRPrintingPassPass(PassRegistry &);
 void initializeMachineBlockFrequencyInfoWrapperPassPass(PassRegistry &);
-void initializeMachineBlockPlacementPass(PassRegistry&);
-void initializeMachineBlockPlacementStatsPass(PassRegistry&);
+void initializeMachineBlockPlacementPass(PassRegistry &);
+void initializeMachineBlockPlacementStatsPass(PassRegistry &);
 void initializeMachineBranchProbabilityInfoWrapperPassPass(PassRegistry &);
 void initializeMachineCFGPrinterPass(PassRegistry &);
-void initializeMachineCSEPass(PassRegistry&);
-void initializeMachineCombinerPass(PassRegistry&);
-void initializeMachineCopyPropagationPass(PassRegistry&);
+void initializeMachineCSEPass(PassRegistry &);
+void initializeMachineCombinerPass(PassRegistry &);
+void initializeMachineCopyPropagationPass(PassRegistry &);
 void initializeMachineCycleInfoPrinterPassPass(PassRegistry &);
 void initializeMachineCycleInfoWrapperPassPass(PassRegistry &);
-void initializeMachineDominanceFrontierPass(PassRegistry&);
+void initializeMachineDominanceFrontierPass(PassRegistry &);
 void initializeMachineDominatorTreeWrapperPassPass(PassRegistry &);
-void initializeMachineFunctionPrinterPassPass(PassRegistry&);
+void initializeMachineFunctionPrinterPassPass(PassRegistry &);
 void initializeMachineFunctionSplitterPass(PassRegistry &);
-void initializeMachineLateInstrsCleanupPass(PassRegistry&);
-void initializeMachineLICMPass(PassRegistry&);
+void initializeMachineLateInstrsCleanupPass(PassRegistry &);
+void initializeMachineLICMPass(PassRegistry &);
 void initializeMachineLoopInfoWrapperPassPass(PassRegistry &);
 void initializeMachineModuleInfoWrapperPassPass(PassRegistry &);
-void initializeMachineOptimizationRemarkEmitterPassPass(PassRegistry&);
-void initializeMachineOutlinerPass(PassRegistry&);
-void initializeMachinePipelinerPass(PassRegistry&);
+void initializeMachineOptimizationRemarkEmitterPassPass(PassRegistry &);
+void initializeMachineOutlinerPass(PassRegistry &);
+void initializeMachinePipelinerPass(PassRegistry &);
 void initializeMachinePostDominatorTreeWrapperPassPass(PassRegistry &);
-void initializeMachineRegionInfoPassPass(PassRegistry&);
+void initializeMachineRegionInfoPassPass(PassRegistry &);
 void initializeMachineSanitizerBinaryMetadataPass(PassRegistry &);
-void initializeMachineSchedulerPass(PassRegistry&);
-void initializeMachineSinkingPass(PassRegistry&);
-void initializeMachineTraceMetricsPass(PassRegistry&);
+void initializeMachineSchedulerPass(PassRegistry &);
+void initializeMachineSinkingPass(PassRegistry &);
+void initializeMachineTraceMetricsPass(PassRegistry &);
 void initializeMachineUniformityInfoPrinterPassPass(PassRegistry &);
 void initializeMachineUniformityAnalysisPassPass(PassRegistry &);
 void initializeMachineVerifierLegacyPassPass(PassRegistry &);
-void initializeMemoryDependenceWrapperPassPass(PassRegistry&);
-void initializeMemorySSAWrapperPassPass(PassRegistry&);
+void initializeMemoryDependenceWrapperPassPass(PassRegistry &);
+void initializeMemorySSAWrapperPassPass(PassRegistry &);
 void initializeMergeICmpsLegacyPassPass(PassRegistry &);
-void initializeModuleSummaryIndexWrapperPassPass(PassRegistry&);
-void initializeModuloScheduleTestPass(PassRegistry&);
-void initializeNaryReassociateLegacyPassPass(PassRegistry&);
+void initializeModuleSummaryIndexWrapperPassPass(PassRegistry &);
+void initializeModuloScheduleTestPass(PassRegistry &);
+void initializeNaryReassociateLegacyPassPass(PassRegistry &);
 void initializeObjCARCContractLegacyPassPass(PassRegistry &);
-void initializeOptimizationRemarkEmitterWrapperPassPass(PassRegistry&);
-void initializeOptimizePHIsPass(PassRegistry&);
-void initializePEIPass(PassRegistry&);
-void initializePHIEliminationPass(PassRegistry&);
-void initializePartiallyInlineLibCallsLegacyPassPass(PassRegistry&);
-void initializePatchableFunctionPass(PassRegistry&);
-void initializePeepholeOptimizerPass(PassRegistry&);
-void initializePhiValuesWrapperPassPass(PassRegistry&);
-void initializePhysicalRegisterUsageInfoPass(PassRegistry&);
+void initializeOptimizationRemarkEmitterWrapperPassPass(PassRegistry &);
+void initializeOptimizePHIsPass(PassRegistry &);
+void initializePEIPass(PassRegistry &);
+void initializePHIEliminationPass(PassRegistry &);
+void initializePartiallyInlineLibCallsLegacyPassPass(PassRegistry &);
+void initializePatchableFunctionPass(PassRegistry &);
+void initializePeepholeOptimizerPass(PassRegistry &);
+void initializePhiValuesWrapperPassPass(PassRegistry &);
+void initializePhysicalRegisterUsageInfoPass(PassRegistry &);
 void initializePlaceBackedgeSafepointsLegacyPassPass(PassRegistry &);
 void initializePostDomOnlyPrinterWrapperPassPass(PassRegistry &);
 void initializePostDomOnlyViewerWrapperPassPass(PassRegistry &);
 void initializePostDomPrinterWrapperPassPass(PassRegistry &);
 void initializePostDomViewerWrapperPassPass(PassRegistry &);
-void initializePostDominatorTreeWrapperPassPass(PassRegistry&);
-void initializePostInlineEntryExitInstrumenterPass(PassRegistry&);
-void initializePostMachineSchedulerPass(PassRegistry&);
-void initializePostRAHazardRecognizerPass(PassRegistry&);
-void initializePostRAMachineSinkingPass(PassRegistry&);
-void initializePostRASchedulerPass(PassRegistry&);
-void initializePreISelIntrinsicLoweringLegacyPassPass(PassRegistry&);
-void initializePrintFunctionPassWrapperPass(PassRegistry&);
-void initializePrintModulePassWrapperPass(PassRegistry&);
-void initializeProcessImplicitDefsPass(PassRegistry&);
-void initializeProfileSummaryInfoWrapperPassPass(PassRegistry&);
-void initializePromoteLegacyPassPass(PassRegistry&);
-void initializeRABasicPass(PassRegistry&);
+void initializePostDominatorTreeWrapperPassPass(PassRegistry &);
+void initializePostInlineEntryExitInstrumenterPass(PassRegistry &);
+void initializePostMachineSchedulerPass(PassRegistry &);
+void initializePostRAHazardRecognizerPass(PassRegistry &);
+void initializePostRAMachineSinkingPass(PassRegistry &);
+void initializePostRASchedulerPass(PassRegistry &);
+void initializePreISelIntrinsicLoweringLegacyPassPass(PassRegistry &);
+void initializePrintFunctionPassWrapperPass(PassRegistry &);
+void initializePrintModulePassWrapperPass(PassRegistry &);
+void initializeProcessImplicitDefsPass(PassRegistry &);
+void initializeProfileSummaryInfoWrapperPassPass(PassRegistry &);
+void initializePromoteLegacyPassPass(PassRegistry &);
+void initializeRABasicPass(PassRegistry &);
 void initializePseudoProbeInserterPass(PassRegistry &);
-void initializeRAGreedyPass(PassRegistry&);
-void initializeReachingDefAnalysisPass(PassRegistry&);
-void initializeReassociateLegacyPassPass(PassRegistry&);
+void initializeRAGreedyPass(PassRegistry &);
+void initializeReachingDefAnalysisPass(PassRegistry &);
+void initializeReassociateLegacyPassPass(PassRegistry &);
 void initializeRegAllocEvictionAdvisorAnalysisPass(PassRegistry &);
-void initializeRegAllocFastPass(PassRegistry&);
+void initializeRegAllocFastPass(PassRegistry &);
 void initializeRegAllocPriorityAdvisorAnalysisPass(PassRegistry &);
 void initializeRegAllocScoringPass(PassRegistry &);
-void initializeRegBankSelectPass(PassRegistry&);
-void initializeRegUsageInfoCollectorPass(PassRegistry&);
-void initializeRegUsageInfoPropagationPass(PassRegistry&);
-void initializeRegionInfoPassPass(PassRegistry&);
-void initializeRegionOnlyPrinterPass(PassRegistry&);
-void initializeRegionOnlyViewerPass(PassRegistry&);
-void initializeRegionPrinterPass(PassRegistry&);
-void initializeRegionViewerPass(PassRegistry&);
-void initializeRegisterCoalescerPass(PassRegistry&);
-void initializeRemoveRedundantDebugValuesPass(PassRegistry&);
-void initializeRenameIndependentSubregsPass(PassRegistry&);
+void initializeRegBankSelectPass(PassRegistry &);
+void initializeRegUsageInfoCollectorPass(PassRegistry &);
+void initializeRegUsageInfoPropagationPass(PassRegistry &);
+void initializeRegionInfoPassPass(PassRegistry &);
+void initializeRegionOnlyPrinterPass(PassRegistry &);
+void initializeRegionOnlyViewerPass(PassRegistry &);
+void initializeRegionPrinterPass(PassRegistry &);
+void initializeRegionViewerPass(PassRegistry &);
+void initializeRegisterCoalescerPass(PassRegistry &);
+void initializeRemoveRedundantDebugValuesPass(PassRegistry &);
+void initializeRenameIndependentSubregsPass(PassRegistry &);
 void initializeReplaceWithVeclibLegacyPass(PassRegistry &);
-void initializeResetMachineFunctionPass(PassRegistry&);
-void initializeSCEVAAWrapperPassPass(PassRegistry&);
-void initializeSROALegacyPassPass(PassRegistry&);
-void initializeSafeStackLegacyPassPass(PassRegistry&);
-void initializeSafepointIRVerifierPass(PassRegistry&);
+void initializeResetMachineFunctionPass(PassRegistry &);
+void initializeSCEVAAWrapperPassPass(PassRegistry &);
+void initializeSROALegacyPassPass(PassRegistry &);
+void initializeSafeStackLegacyPassPass(PassRegistry &);
+void initializeSafepointIRVerifierPass(PassRegistry &);
 void initializeSelectOptimizePass(PassRegistry &);
-void initializeScalarEvolutionWrapperPassPass(PassRegistry&);
+void initializeScalarEvolutionWrapperPassPass(PassRegistry &);
 void initializeScalarizeMaskedMemIntrinLegacyPassPass(PassRegistry &);
-void initializeScavengerTestPass(PassRegistry&);
-void initializeScopedNoAliasAAWrapperPassPass(PassRegistry&);
+void initializeScavengerTestPass(PassRegistry &);
+void initializeScopedNoAliasAAWrapperPassPass(PassRegistry &);
 void initializeSeparateConstOffsetFromGEPLegacyPassPass(PassRegistry &);
-void initializeShadowStackGCLoweringPass(PassRegistry&);
-void initializeShrinkWrapPass(PassRegistry&);
-void initializeSingleLoopExtractorPass(PassRegistry&);
-void initializeSinkingLegacyPassPass(PassRegistry&);
-void initializeSjLjEHPreparePass(PassRegistry&);
+void initializeShadowStackGCLoweringPass(PassRegistry &);
+void initializeShrinkWrapPass(PassRegistry &);
+void initializeSingleLoopExtractorPass(PassRegistry &);
+void initializeSinkingLegacyPassPass(PassRegistry &);
+void initializeSjLjEHPreparePass(PassRegistry &);
 void initializeSlotIndexesWrapperPassPass(PassRegistry &);
-void initializeSpeculativeExecutionLegacyPassPass(PassRegistry&);
-void initializeSpillPlacementPass(PassRegistry&);
-void initializeStackColoringPass(PassRegistry&);
+void initializeSpeculativeExecutionLegacyPassPass(PassRegistry &);
+void initializeSpillPlacementPass(PassRegistry &);
+void initializeStackColoringPass(PassRegistry &);
 void initializeStackFrameLayoutAnalysisPassPass(PassRegistry &);
-void initializeStackMapLivenessPass(PassRegistry&);
-void initializeStackProtectorPass(PassRegistry&);
+void initializeStackMapLivenessPass(PassRegistry &);
+void initializeStackProtectorPass(PassRegistry &);
 void initializeStackSafetyGlobalInfoWrapperPassPass(PassRegistry &);
 void initializeStackSafetyInfoWrapperPassPass(PassRegistry &);
-void initializeStackSlotColoringPass(PassRegistry&);
+void initializeStackSlotColoringPass(PassRegistry &);
 void initializeStraightLineStrengthReduceLegacyPassPass(PassRegistry &);
 void initializeStripDebugMachineModulePass(PassRegistry &);
 void initializeStructurizeCFGLegacyPassPass(PassRegistry &);
-void initializeTailCallElimPass(PassRegistry&);
-void initializeTailDuplicatePass(PassRegistry&);
-void initializeTargetLibraryInfoWrapperPassPass(PassRegistry&);
-void initializeTargetPassConfigPass(PassRegistry&);
-void initializeTargetTransformInfoWrapperPassPass(PassRegistry&);
+void initializeTailCallElimPass(PassRegistry &);
+void initializeTailDuplicatePass(PassRegistry &);
+void initializeTargetLibraryInfoWrapperPassPass(PassRegistry &);
+void initializeTargetPassConfigPass(PassRegistry &);
+void initializeTargetTransformInfoWrapperPassPass(PassRegistry &);
 void initializeTLSVariableHoistLegacyPassPass(PassRegistry &);
 void initializeTwoAddressInstructionLegacyPassPass(PassRegistry &);
-void initializeTypeBasedAAWrapperPassPass(PassRegistry&);
-void initializeTypePromotionLegacyPass(PassRegistry&);
+void initializeTypeBasedAAWrapperPassPass(PassRegistry &);
+void initializeTypePromotionLegacyPass(PassRegistry &);
 void initializeInitUndefPass(PassRegistry &);
 void initializeUniformityInfoWrapperPassPass(PassRegistry &);
 void initializeUnifyLoopExitsLegacyPassPass(PassRegistry &);
-void initializeUnpackMachineBundlesPass(PassRegistry&);
-void initializeUnreachableBlockElimLegacyPassPass(PassRegistry&);
-void initializeUnreachableMachineBlockElimPass(PassRegistry&);
-void initializeVerifierLegacyPassPass(PassRegistry&);
-void initializeVirtRegMapPass(PassRegistry&);
-void initializeVirtRegRewriterPass(PassRegistry&);
-void initializeWasmEHPreparePass(PassRegistry&);
-void initializeWinEHPreparePass(PassRegistry&);
-void initializeWriteBitcodePassPass(PassRegistry&);
-void initializeXRayInstrumentationPass(PassRegistry&);
+void initializeUnpackMachineBundlesPass(PassRegistry &);
+void initializeUnreachableBlockElimLegacyPassPass(PassRegistry &);
+void initializeUnreachableMachineBlockElimPass(PassRegistry &);
+void initializeVerifierLegacyPassPass(PassRegistry &);
+void initializeVirtRegMapPass(PassRegistry &);
+void initializeVirtRegRewriterPass(PassRegistry &);
+void initializeWasmEHPreparePass(PassRegistry &);
+void initializeWinEHPreparePass(PassRegistry &);
+void initializeWriteBitcodePassPass(PassRegistry &);
+void initializeXRayInstrumentationPass(PassRegistry &);
 
 } // end namespace llvm
 

diff  --git a/llvm/include/llvm/LinkAllPasses.h b/llvm/include/llvm/LinkAllPasses.h
index 967238e8d03b6..e6a70dfd1ea6f 100644
--- a/llvm/include/llvm/LinkAllPasses.h
+++ b/llvm/include/llvm/LinkAllPasses.h
@@ -48,110 +48,111 @@
 #include <cstdlib>
 
 namespace {
-  struct ForcePassLinking {
-    ForcePassLinking() {
-      // We must reference the passes in such a way that compilers will not
-      // delete it all as dead code, even with whole program optimization,
-      // yet is effectively a NO-OP. As the compiler isn't smart enough
-      // to know that getenv() never returns -1, this will do the job.
-      // This is so that globals in the translation units where these functions
-      // are defined are forced to be initialized, populating various
-      // registries.
-      if (std::getenv("bar") != (char*) -1)
-        return;
+struct ForcePassLinking {
+  ForcePassLinking() {
+    // We must reference the passes in such a way that compilers will not
+    // delete it all as dead code, even with whole program optimization,
+    // yet is effectively a NO-OP. As the compiler isn't smart enough
+    // to know that getenv() never returns -1, this will do the job.
+    // This is so that globals in the translation units where these functions
+    // are defined are forced to be initialized, populating various
+    // registries.
+    if (std::getenv("bar") != (char *)-1)
+      return;
 
-      (void)llvm::createAtomicExpandLegacyPass();
-      (void) llvm::createBasicAAWrapperPass();
-      (void) llvm::createSCEVAAWrapperPass();
-      (void) llvm::createTypeBasedAAWrapperPass();
-      (void) llvm::createScopedNoAliasAAWrapperPass();
-      (void) llvm::createBreakCriticalEdgesPass();
-      (void) llvm::createCallGraphDOTPrinterPass();
-      (void) llvm::createCallGraphViewerPass();
-      (void) llvm::createCFGSimplificationPass();
-      (void) llvm::createStructurizeCFGPass();
-      (void) llvm::createDXILResourceWrapperPassPass();
-      (void) llvm::createDeadArgEliminationPass();
-      (void) llvm::createDeadCodeEliminationPass();
-      (void) llvm::createDependenceAnalysisWrapperPass();
-      (void) llvm::createDomOnlyPrinterWrapperPassPass();
-      (void) llvm::createDomPrinterWrapperPassPass();
-      (void) llvm::createDomOnlyViewerWrapperPassPass();
-      (void) llvm::createDomViewerWrapperPassPass();
-      (void) llvm::createAlwaysInlinerLegacyPass();
-      (void) llvm::createGlobalsAAWrapperPass();
-      (void) llvm::createInstSimplifyLegacyPass();
-      (void) llvm::createInstructionCombiningPass();
-      (void) llvm::createJMCInstrumenterPass();
-      (void) llvm::createKCFIPass();
-      (void) llvm::createLCSSAPass();
-      (void) llvm::createLICMPass();
-      (void) llvm::createLazyValueInfoPass();
-      (void) llvm::createLoopExtractorPass();
-      (void) llvm::createLoopSimplifyPass();
-      (void) llvm::createLoopStrengthReducePass();
-      (void)llvm::createLoopUnrollPass();
-      (void) llvm::createLowerGlobalDtorsLegacyPass();
-      (void) llvm::createLowerInvokePass();
-      (void) llvm::createLowerSwitchPass();
-      (void) llvm::createNaryReassociatePass();
-      (void) llvm::createObjCARCContractPass();
-      (void) llvm::createPromoteMemoryToRegisterPass();
-      (void)llvm::createPostDomOnlyPrinterWrapperPassPass();
-      (void)llvm::createPostDomPrinterWrapperPassPass();
-      (void)llvm::createPostDomOnlyViewerWrapperPassPass();
-      (void)llvm::createPostDomViewerWrapperPassPass();
-      (void) llvm::createReassociatePass();
-      (void) llvm::createRegionInfoPass();
-      (void) llvm::createRegionOnlyPrinterPass();
-      (void) llvm::createRegionOnlyViewerPass();
-      (void) llvm::createRegionPrinterPass();
-      (void) llvm::createRegionViewerPass();
-      (void) llvm::createSafeStackPass();
-      (void) llvm::createSROAPass();
-      (void) llvm::createSingleLoopExtractorPass();
-      (void) llvm::createTailCallEliminationPass();
-      (void)llvm::createTLSVariableHoistPass();
-      (void) llvm::createConstantHoistingPass();
-      (void)llvm::createCodeGenPrepareLegacyPass();
-      (void) llvm::createPostInlineEntryExitInstrumenterPass();
-      (void) llvm::createEarlyCSEPass();
-      (void) llvm::createGVNPass();
-      (void) llvm::createPostDomTree();
-      (void) llvm::createMergeICmpsLegacyPass();
-      (void) llvm::createExpandLargeDivRemPass();
-      (void)llvm::createExpandMemCmpLegacyPass();
-      std::string buf;
-      llvm::raw_string_ostream os(buf);
-      (void) llvm::createPrintModulePass(os);
-      (void) llvm::createPrintFunctionPass(os);
-      (void) llvm::createSinkingPass();
-      (void) llvm::createLowerAtomicPass();
-      (void) llvm::createLoadStoreVectorizerPass();
-      (void) llvm::createPartiallyInlineLibCallsPass();
-      (void) llvm::createSeparateConstOffsetFromGEPPass();
-      (void) llvm::createSpeculativeExecutionPass();
-      (void) llvm::createSpeculativeExecutionIfHasBranchDivergencePass();
-      (void) llvm::createStraightLineStrengthReducePass();
-      (void)llvm::createScalarizeMaskedMemIntrinLegacyPass();
-      (void) llvm::createHardwareLoopsLegacyPass();
-      (void) llvm::createUnifyLoopExitsPass();
-      (void) llvm::createFixIrreduciblePass();
-      (void)llvm::createSelectOptimizePass();
+    (void)llvm::createAtomicExpandLegacyPass();
+    (void)llvm::createBasicAAWrapperPass();
+    (void)llvm::createSCEVAAWrapperPass();
+    (void)llvm::createTypeBasedAAWrapperPass();
+    (void)llvm::createScopedNoAliasAAWrapperPass();
+    (void)llvm::createBreakCriticalEdgesPass();
+    (void)llvm::createCallGraphDOTPrinterPass();
+    (void)llvm::createCallGraphViewerPass();
+    (void)llvm::createCFGSimplificationPass();
+    (void)llvm::createStructurizeCFGPass();
+    (void)llvm::createDXILResourceWrapperPassPass();
+    (void)llvm::createDeadArgEliminationPass();
+    (void)llvm::createDeadCodeEliminationPass();
+    (void)llvm::createDependenceAnalysisWrapperPass();
+    (void)llvm::createDomOnlyPrinterWrapperPassPass();
+    (void)llvm::createDomPrinterWrapperPassPass();
+    (void)llvm::createDomOnlyViewerWrapperPassPass();
+    (void)llvm::createDomViewerWrapperPassPass();
+    (void)llvm::createAlwaysInlinerLegacyPass();
+    (void)llvm::createGlobalsAAWrapperPass();
+    (void)llvm::createInstSimplifyLegacyPass();
+    (void)llvm::createInstructionCombiningPass();
+    (void)llvm::createJMCInstrumenterPass();
+    (void)llvm::createKCFIPass();
+    (void)llvm::createLCSSAPass();
+    (void)llvm::createLICMPass();
+    (void)llvm::createLazyValueInfoPass();
+    (void)llvm::createLoopExtractorPass();
+    (void)llvm::createLoopSimplifyPass();
+    (void)llvm::createLoopStrengthReducePass();
+    (void)llvm::createLoopUnrollPass();
+    (void)llvm::createLowerGlobalDtorsLegacyPass();
+    (void)llvm::createLowerInvokePass();
+    (void)llvm::createLowerSwitchPass();
+    (void)llvm::createNaryReassociatePass();
+    (void)llvm::createObjCARCContractPass();
+    (void)llvm::createPromoteMemoryToRegisterPass();
+    (void)llvm::createPostDomOnlyPrinterWrapperPassPass();
+    (void)llvm::createPostDomPrinterWrapperPassPass();
+    (void)llvm::createPostDomOnlyViewerWrapperPassPass();
+    (void)llvm::createPostDomViewerWrapperPassPass();
+    (void)llvm::createReassociatePass();
+    (void)llvm::createRegionInfoPass();
+    (void)llvm::createRegionOnlyPrinterPass();
+    (void)llvm::createRegionOnlyViewerPass();
+    (void)llvm::createRegionPrinterPass();
+    (void)llvm::createRegionViewerPass();
+    (void)llvm::createSafeStackPass();
+    (void)llvm::createSROAPass();
+    (void)llvm::createSingleLoopExtractorPass();
+    (void)llvm::createTailCallEliminationPass();
+    (void)llvm::createTLSVariableHoistPass();
+    (void)llvm::createConstantHoistingPass();
+    (void)llvm::createCodeGenPrepareLegacyPass();
+    (void)llvm::createPostInlineEntryExitInstrumenterPass();
+    (void)llvm::createEarlyCSEPass();
+    (void)llvm::createGVNPass();
+    (void)llvm::createPostDomTree();
+    (void)llvm::createMergeICmpsLegacyPass();
+    (void)llvm::createExpandLargeDivRemPass();
+    (void)llvm::createExpandMemCmpLegacyPass();
+    std::string buf;
+    llvm::raw_string_ostream os(buf);
+    (void)llvm::createPrintModulePass(os);
+    (void)llvm::createPrintFunctionPass(os);
+    (void)llvm::createSinkingPass();
+    (void)llvm::createLowerAtomicPass();
+    (void)llvm::createLoadStoreVectorizerPass();
+    (void)llvm::createPartiallyInlineLibCallsPass();
+    (void)llvm::createSeparateConstOffsetFromGEPPass();
+    (void)llvm::createSpeculativeExecutionPass();
+    (void)llvm::createSpeculativeExecutionIfHasBranchDivergencePass();
+    (void)llvm::createStraightLineStrengthReducePass();
+    (void)llvm::createScalarizeMaskedMemIntrinLegacyPass();
+    (void)llvm::createHardwareLoopsLegacyPass();
+    (void)llvm::createUnifyLoopExitsPass();
+    (void)llvm::createFixIrreduciblePass();
+    (void)llvm::createSelectOptimizePass();
 
-      (void)new llvm::ScalarEvolutionWrapperPass();
-      llvm::Function::Create(nullptr, llvm::GlobalValue::ExternalLinkage)->viewCFGOnly();
-      llvm::RGPassManager RGM;
-      llvm::TargetLibraryInfoImpl TLII;
-      llvm::TargetLibraryInfo TLI(TLII);
-      llvm::AliasAnalysis AA(TLI);
-      llvm::BatchAAResults BAA(AA);
-      llvm::AliasSetTracker X(BAA);
-      X.add(llvm::MemoryLocation()); // for -print-alias-sets
-      (void) llvm::AreStatisticsEnabled();
-      (void) llvm::sys::RunningOnValgrind();
-    }
-  } ForcePassLinking; // Force link by creating a global definition.
-}
+    (void)new llvm::ScalarEvolutionWrapperPass();
+    llvm::Function::Create(nullptr, llvm::GlobalValue::ExternalLinkage)
+        ->viewCFGOnly();
+    llvm::RGPassManager RGM;
+    llvm::TargetLibraryInfoImpl TLII;
+    llvm::TargetLibraryInfo TLI(TLII);
+    llvm::AliasAnalysis AA(TLI);
+    llvm::BatchAAResults BAA(AA);
+    llvm::AliasSetTracker X(BAA);
+    X.add(llvm::MemoryLocation()); // for -print-alias-sets
+    (void)llvm::AreStatisticsEnabled();
+    (void)llvm::sys::RunningOnValgrind();
+  }
+} ForcePassLinking; // Force link by creating a global definition.
+} // namespace
 
 #endif


        


More information about the llvm-commits mailing list