xref: /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/Utils.cpp (revision 6580f5c38dd5b01aeeaed16b370f1a12423437f0)
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   initializeBreakCriticalEdgesPass(Registry);
25   initializeCanonicalizeFreezeInLoopsPass(Registry);
26   initializeLCSSAWrapperPassPass(Registry);
27   initializeLoopSimplifyPass(Registry);
28   initializeLowerGlobalDtorsLegacyPassPass(Registry);
29   initializeLowerInvokeLegacyPassPass(Registry);
30   initializeLowerSwitchLegacyPassPass(Registry);
31   initializePromoteLegacyPassPass(Registry);
32   initializeFixIrreduciblePass(Registry);
33   initializeUnifyLoopExitsLegacyPassPass(Registry);
34 }
35