[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / lib / CodeGen / GlobalISel / GlobalISel.cpp
blobe0391e6f6467b08d7cb20227c0142217be9f53e0
1 //===-- llvm/CodeGen/GlobalISel/GlobalIsel.cpp --- GlobalISel ----*- C++ -*-==//
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 /// \file
9 // This file implements the common initialization routines for the
10 // GlobalISel library.
11 //===----------------------------------------------------------------------===//
13 #include "llvm/InitializePasses.h"
14 #include "llvm/PassRegistry.h"
16 using namespace llvm;
18 void llvm::initializeGlobalISel(PassRegistry &Registry) {
19 initializeIRTranslatorPass(Registry);
20 initializeLegalizerPass(Registry);
21 initializeLocalizerPass(Registry);
22 initializeRegBankSelectPass(Registry);
23 initializeInstructionSelectPass(Registry);