aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachinePassRegistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/MachinePassRegistry.cpp')
-rw-r--r--lib/CodeGen/MachinePassRegistry.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/CodeGen/MachinePassRegistry.cpp b/lib/CodeGen/MachinePassRegistry.cpp
new file mode 100644
index 0000000..a5f4408
--- /dev/null
+++ b/lib/CodeGen/MachinePassRegistry.cpp
@@ -0,0 +1,31 @@
+//===-- MachineInstr.cpp --------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by James M. Laskey and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/CodeGen/MachinePassRegistry.h"
+#include <iostream>
+
+using namespace llvm;
+
+
+//===---------------------------------------------------------------------===//
+///
+/// RegisterRegAlloc class - Track the registration of register allocators.
+///
+//===---------------------------------------------------------------------===//
+MachinePassRegistry<RegisterRegAlloc::FunctionPassCtor>
+RegisterRegAlloc::Registry;
+
+
+//===---------------------------------------------------------------------===//
+///
+/// RegisterScheduler class - Track the registration of instruction schedulers.
+///
+//===---------------------------------------------------------------------===//
+MachinePassRegistry<RegisterScheduler::FunctionPassCtor>
+RegisterScheduler::Registry;