xref: /llvm-project/llvm/lib/Transforms/Utils/Utils.cpp (revision 013f4a46d1978e370f940df3cbd04fb0399a04fe)
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/PassRegistry.h"
17 
18 using namespace llvm;
19 
20 /// initializeTransformUtils - Initialize all passes in the TransformUtils
21 /// library.
22 void llvm::initializeTransformUtils(PassRegistry &Registry) {
23   initializeBreakCriticalEdgesPass(Registry);
24   initializeCanonicalizeFreezeInLoopsPass(Registry);
25   initializeLCSSAWrapperPassPass(Registry);
26   initializeLoopSimplifyPass(Registry);
27   initializeLowerGlobalDtorsLegacyPassPass(Registry);
28   initializeLowerInvokeLegacyPassPass(Registry);
29   initializeLowerSwitchLegacyPassPass(Registry);
30   initializePromoteLegacyPassPass(Registry);
31   initializeFixIrreduciblePass(Registry);
32   initializeUnifyLoopExitsLegacyPassPass(Registry);
33 }
34