xref: /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/Utils.cpp (revision 5f757f3ff9144b609b3c433dfd370cc6bdc191ad)
10b57cec5SDimitry Andric //===-- Utils.cpp - TransformUtils Infrastructure -------------------------===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric //
90b57cec5SDimitry Andric // This file defines the common initialization infrastructure for the
100b57cec5SDimitry Andric // TransformUtils library.
110b57cec5SDimitry Andric //
120b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
130b57cec5SDimitry Andric 
140b57cec5SDimitry Andric #include "llvm/Transforms/Utils.h"
150b57cec5SDimitry Andric #include "llvm/InitializePasses.h"
161fd87a68SDimitry Andric #include "llvm/Pass.h"
170b57cec5SDimitry Andric #include "llvm/PassRegistry.h"
180b57cec5SDimitry Andric 
190b57cec5SDimitry Andric using namespace llvm;
200b57cec5SDimitry Andric 
210b57cec5SDimitry Andric /// initializeTransformUtils - Initialize all passes in the TransformUtils
220b57cec5SDimitry Andric /// library.
230b57cec5SDimitry Andric void llvm::initializeTransformUtils(PassRegistry &Registry) {
240b57cec5SDimitry Andric   initializeBreakCriticalEdgesPass(Registry);
255ffd83dbSDimitry Andric   initializeCanonicalizeFreezeInLoopsPass(Registry);
260b57cec5SDimitry Andric   initializeLCSSAWrapperPassPass(Registry);
270b57cec5SDimitry Andric   initializeLoopSimplifyPass(Registry);
28*81ad6265SDimitry Andric   initializeLowerGlobalDtorsLegacyPassPass(Registry);
290b57cec5SDimitry Andric   initializeLowerInvokeLegacyPassPass(Registry);
30e8d8bef9SDimitry Andric   initializeLowerSwitchLegacyPassPass(Registry);
310b57cec5SDimitry Andric   initializePromoteLegacyPassPass(Registry);
325ffd83dbSDimitry Andric   initializeFixIrreduciblePass(Registry);
33e8d8bef9SDimitry Andric   initializeUnifyLoopExitsLegacyPassPass(Registry);
340b57cec5SDimitry Andric }
35