[llvm-commits] CVS: llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp LiveRangeInfo.cpp PhyRegAlloc.cpp RegClass.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 29 10:52:01 PST 2002
Changes in directory llvm/lib/CodeGen/RegAlloc:
InterferenceGraph.cpp updated: 1.11 -> 1.12
LiveRangeInfo.cpp updated: 1.34 -> 1.35
PhyRegAlloc.cpp updated: 1.85 -> 1.86
RegClass.cpp updated: 1.18 -> 1.19
---
Log message:
Add #includes that were eliminated from headers
---
Diffs of the changes:
Index: llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp
diff -u llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp:1.11 llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp:1.12
--- llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp:1.11 Tue Oct 29 10:42:34 2002
+++ llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp Tue Oct 29 10:51:05 2002
@@ -5,6 +5,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/CodeGen/InterferenceGraph.h"
+#include "llvm/CodeGen/IGNode.h"
#include "llvm/CodeGen/RegAllocCommon.h"
#include "Support/STLExtras.h"
#include <algorithm>
Index: llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp
diff -u llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp:1.34 llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp:1.35
--- llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp:1.34 Mon Oct 28 13:22:04 2002
+++ llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp Tue Oct 29 10:51:05 2002
@@ -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 @@
// 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;
Index: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.85 llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.86
--- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.85 Mon Oct 28 13:22:04 2002
+++ llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp Tue Oct 29 10:51:05 2002
@@ -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"
Index: llvm/lib/CodeGen/RegAlloc/RegClass.cpp
diff -u llvm/lib/CodeGen/RegAlloc/RegClass.cpp:1.18 llvm/lib/CodeGen/RegAlloc/RegClass.cpp:1.19
--- llvm/lib/CodeGen/RegAlloc/RegClass.cpp:1.18 Tue Oct 22 18:33:57 2002
+++ llvm/lib/CodeGen/RegAlloc/RegClass.cpp Tue Oct 29 10:51:05 2002
@@ -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::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();
+}
More information about the llvm-commits
mailing list