diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-04 00:33:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-04 00:33:08 +0000 |
commit | 6dd98a6c317404b3b700573e6b3a7b627ba38ff4 (patch) | |
tree | a945b93466609b77d0b83c3018d5269663e4a103 /include/llvm | |
parent | 7327d7ee8b730bf7a46c8520a0a59c9344ae5915 (diff) | |
download | external_llvm-6dd98a6c317404b3b700573e6b3a7b627ba38ff4.zip external_llvm-6dd98a6c317404b3b700573e6b3a7b627ba38ff4.tar.gz external_llvm-6dd98a6c317404b3b700573e6b3a7b627ba38ff4.tar.bz2 |
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.h | 24 |
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 0000000..161be18 --- /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 |