summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/GlobalISel/GlobalISel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/GlobalISel.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/GlobalISel.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/GlobalISel.cpp b/llvm/lib/CodeGen/GlobalISel/GlobalISel.cpp
new file mode 100644
index 000000000000..e0391e6f6467
--- /dev/null
+++ b/llvm/lib/CodeGen/GlobalISel/GlobalISel.cpp
@@ -0,0 +1,24 @@
+//===-- llvm/CodeGen/GlobalISel/GlobalIsel.cpp --- GlobalISel ----*- C++ -*-==//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+/// \file
+// This file implements the common initialization routines for the
+// GlobalISel library.
+//===----------------------------------------------------------------------===//
+
+#include "llvm/InitializePasses.h"
+#include "llvm/PassRegistry.h"
+
+using namespace llvm;
+
+void llvm::initializeGlobalISel(PassRegistry &Registry) {
+ initializeIRTranslatorPass(Registry);
+ initializeLegalizerPass(Registry);
+ initializeLocalizerPass(Registry);
+ initializeRegBankSelectPass(Registry);
+ initializeInstructionSelectPass(Registry);
+}