[mlir][scf]: Add value bound between scf for loop yield and result (#123200)
[llvm-project.git] / llvm / lib / Transforms / Utils / Utils.cpp
blob5c85cde0cf96fdaf1b9ef30339a93b4f221668e2
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.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Transforms/Utils.h"
15 #include "llvm/InitializePasses.h"
16 #include "llvm/PassRegistry.h"
18 using namespace llvm;
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);