1 //===-- Utils.cpp - TransformUtils Infrastructure -------------------------===// 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 defines the common initialization infrastructure for the 10 // TransformUtils library. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #include "llvm/Transforms/Utils.h" 15 #include "llvm/InitializePasses.h" 16 #include "llvm/Pass.h" 17 #include "llvm/PassRegistry.h" 18 19 using namespace llvm; 20 21 /// initializeTransformUtils - Initialize all passes in the TransformUtils 22 /// library. 23 void llvm::initializeTransformUtils(PassRegistry &Registry) { 24 initializeAssumeBuilderPassLegacyPassPass(Registry); 25 initializeBreakCriticalEdgesPass(Registry); 26 initializeCanonicalizeFreezeInLoopsPass(Registry); 27 initializeLCSSAWrapperPassPass(Registry); 28 initializeLoopSimplifyPass(Registry); 29 initializeLowerGlobalDtorsLegacyPassPass(Registry); 30 initializeLowerInvokeLegacyPassPass(Registry); 31 initializeLowerSwitchLegacyPassPass(Registry); 32 initializePromoteLegacyPassPass(Registry); 33 initializeUnifyFunctionExitNodesLegacyPassPass(Registry); 34 initializeStripGCRelocatesLegacyPass(Registry); 35 initializePredicateInfoPrinterLegacyPassPass(Registry); 36 initializeFixIrreduciblePass(Registry); 37 initializeUnifyLoopExitsLegacyPassPass(Registry); 38 } 39