1 //===-- llvm/CodeGen/GlobalISel/GlobalIsel.cpp --- GlobalISel ----*- C++ -*-==//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements the common initialization routines for the
11 // GlobalISel library.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/InitializePasses.h"
15 #include "llvm/PassRegistry.h"
19 #ifndef LLVM_BUILD_GLOBAL_ISEL
21 void llvm::initializeGlobalISel(PassRegistry &Registry) {
26 void llvm::initializeGlobalISel(PassRegistry &Registry) {
27 initializeIRTranslatorPass(Registry);
28 initializeLegalizerPass(Registry);
29 initializeLocalizerPass(Registry);
30 initializeRegBankSelectPass(Registry);
31 initializeInstructionSelectPass(Registry);
33 #endif // LLVM_BUILD_GLOBAL_ISEL