[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / llvm / lib / Transforms / Utils / Utils.cpp
blob51e1e824dd26c2bdbc5d4693f53ce5064071aef7
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/Pass.h"
17 #include "llvm/PassRegistry.h"
19 using namespace llvm;
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);