aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-23 15:13:04 +0000
committerChris Lattner <sabre@nondot.org>2003-09-23 15:13:04 +0000
commit8474f6fcda95068c373e68a43fb0cf5a12662f97 (patch)
treeae403c7951548bb63f24a1cbe94c9232bf14fb03 /lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
parent5c344415fa0aeedffc2ed32e4e9be132aa0674ec (diff)
Move getAnalysisUsage method from header to .cpp file. Add a normal file
header comment git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAlloc/PhyRegAlloc.cpp')
-rw-r--r--lib/CodeGen/RegAlloc/PhyRegAlloc.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
index 0c64846e5c..92cf376516 100644
--- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
+++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
@@ -43,6 +43,12 @@ FunctionPass *getRegisterAllocator(TargetMachine &T) {
return new PhyRegAlloc (T);
}
+void PhyRegAlloc::getAnalysisUsage(AnalysisUsage &AU) const {
+ AU.addRequired<LoopInfo> ();
+ AU.addRequired<FunctionLiveVarInfo> ();
+}
+
+
//----------------------------------------------------------------------------
// This method initially creates interference graphs (one in each reg class)