1 //===-- Utils.cpp - TransformUtils Infrastructure -------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file defines the common initialization infrastructure for the
10 // TransformUtils library.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Transforms/Utils.h"
15 #include "llvm/InitializePasses.h"
16 #include "llvm/Pass.h"
17 #include "llvm/PassRegistry.h"
21 /// initializeTransformUtils - Initialize all passes in the TransformUtils
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
);