blob: f6857f1bd403b347fb56395768e5c9438d202040 [file] [log] [blame]
Quentin Colombet39293d32016-03-08 01:38:55 +00001//===-- llvm/CodeGen/GlobalISel/GlobalIsel.cpp --- GlobalISel ----*- C++ -*-==//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9/// \file
10// This file implements the common initialization routines for the
11// GlobalISel library.
12//===----------------------------------------------------------------------===//
13
14#include "llvm/InitializePasses.h"
15#include "llvm/PassRegistry.h"
16
17using namespace llvm;
18
19#ifndef LLVM_BUILD_GLOBAL_ISEL
20
21void llvm::initializeGlobalISel(PassRegistry &Registry) {
22}
23
24#else
25
26void llvm::initializeGlobalISel(PassRegistry &Registry) {
27 initializeIRTranslatorPass(Registry);
28}
29#endif // LLVM_BUILD_GLOBAL_ISEL