From 5abe44bb72fab645b25a9fa87ccfaaa55f3b94d1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 29 Oct 2002 16:51:05 +0000 Subject: [PATCH] Add #includes that were eliminated from headers llvm-svn: 4380 --- llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp | 1 + llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp | 3 ++- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | 1 + llvm/lib/CodeGen/RegAlloc/RegClass.cpp | 10 ++++++++++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp b/llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp index 9e7372177b3b..d18fddacabd4 100644 --- a/llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp +++ b/llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp @@ -5,6 +5,7 @@ //===----------------------------------------------------------------------===// #include "llvm/CodeGen/InterferenceGraph.h" +#include "llvm/CodeGen/IGNode.h" #include "llvm/CodeGen/RegAllocCommon.h" #include "Support/STLExtras.h" #include diff --git a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp index 4e47bfb9e7ad..bb1b0bb089c9 100644 --- a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp +++ b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp @@ -7,6 +7,7 @@ #include "llvm/CodeGen/LiveRangeInfo.h" #include "llvm/CodeGen/RegAllocCommon.h" #include "llvm/CodeGen/RegClass.h" +#include "llvm/CodeGen/IGNode.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/Target/TargetMachine.h" @@ -32,7 +33,7 @@ LiveRangeInfo::~LiveRangeInfo() { // live range. We have to make the other entries NULL when we delete // a live range. - for(LiveRange::iterator LI = LR->begin(); LI != LR->end(); ++LI) + for (LiveRange::iterator LI = LR->begin(); LI != LR->end(); ++LI) LiveRangeMap[*LI] = 0; delete LR; diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index 9e9e5dd124e8..c569a29e8efd 100644 --- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -6,6 +6,7 @@ #include "llvm/CodeGen/RegisterAllocation.h" #include "llvm/CodeGen/RegAllocCommon.h" +#include "llvm/CodeGen/IGNode.h" #include "llvm/CodeGen/PhyRegAlloc.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineInstrAnnot.h" diff --git a/llvm/lib/CodeGen/RegAlloc/RegClass.cpp b/llvm/lib/CodeGen/RegAlloc/RegClass.cpp index 788921ba019f..65716cf2f272 100644 --- a/llvm/lib/CodeGen/RegAlloc/RegClass.cpp +++ b/llvm/lib/CodeGen/RegAlloc/RegClass.cpp @@ -6,6 +6,7 @@ #include "llvm/CodeGen/RegClass.h" #include "llvm/CodeGen/RegAllocCommon.h" +#include "llvm/CodeGen/IGNode.h" using std::cerr; //---------------------------------------------------------------------------- @@ -253,5 +254,14 @@ void RegClass::colorIGNode(IGNode *const Node) } +void RegClass::printIGNodeList() const { + std::cerr << "IG Nodes for Register Class " << RegClassID << ":" << "\n"; + IG.printIGNodeList(); +} + +void RegClass::printIG() { + std::cerr << "IG for Register Class " << RegClassID << ":" << "\n"; + IG.printIG(); +}