summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-04 00:33:08 +0000
committerChris Lattner <sabre@nondot.org>2002-02-04 00:33:08 +0000
commit6dd98a6c317404b3b700573e6b3a7b627ba38ff4 (patch)
treea945b93466609b77d0b83c3018d5269663e4a103 /include/llvm
parent7327d7ee8b730bf7a46c8520a0a59c9344ae5915 (diff)
downloadllvm-6dd98a6c317404b3b700573e6b3a7b627ba38ff4.tar.gz
llvm-6dd98a6c317404b3b700573e6b3a7b627ba38ff4.tar.bz2
llvm-6dd98a6c317404b3b700573e6b3a7b627ba38ff4.tar.xz
Split RegisterAllocation stuff OUT of Sparc.cpp into a well defined pass
that has a very minimal interface (like it should have). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/RegisterAllocation.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/RegisterAllocation.h b/include/llvm/CodeGen/RegisterAllocation.h
new file mode 100644
index 0000000000..161be18498
--- /dev/null
+++ b/include/llvm/CodeGen/RegisterAllocation.h
@@ -0,0 +1,24 @@
+//===-- CodeGen/RegisterAllocation.h - RegAlloc Pass -------------*- C++ -*--=//
+//
+// This pass register allocates a module, a method at a time.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CODEGEN_REGISTERALLOCATION_H
+#define LLVM_CODEGEN_REGISTERALLOCATION_H
+
+#include "llvm/Pass.h"
+class TargetMachine;
+
+//----------------------------------------------------------------------------
+// Entry point for register allocation for a module
+//----------------------------------------------------------------------------
+
+class RegisterAllocation : public MethodPass {
+ TargetMachine &Target;
+public:
+ inline RegisterAllocation(TargetMachine &T) : Target(T) {}
+ bool runOnMethod(Method *M);
+};
+
+#endif