[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcRegClassInfo.cpp SparcRegClassInfo.h SparcRegInfo.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Sep 1 14:57:01 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

SparcRegClassInfo.cpp updated: 1.25 -> 1.26
SparcRegClassInfo.h updated: 1.19 -> 1.20
SparcRegInfo.cpp updated: 1.106 -> 1.107

---
Log message:

No longer include IGNode.h in the Sparc global header


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/SparcRegClassInfo.cpp
diff -u llvm/lib/Target/Sparc/SparcRegClassInfo.cpp:1.25 llvm/lib/Target/Sparc/SparcRegClassInfo.cpp:1.26
--- llvm/lib/Target/Sparc/SparcRegClassInfo.cpp:1.25	Fri Jul 25 16:12:15 2003
+++ llvm/lib/Target/Sparc/SparcRegClassInfo.cpp	Mon Sep  1 14:56:48 2003
@@ -8,6 +8,7 @@
 #include "SparcInternals.h"
 #include "llvm/Type.h"
 #include "../../CodeGen/RegAlloc/RegAllocCommon.h"   // FIXME!
+#include "llvm/CodeGen/IGNode.h"
 
 //-----------------------------------------------------------------------------
 // Int Register Class - method for coloring a node in the interference graph.
@@ -160,6 +161,19 @@
 
   Node->setColor(ccReg);                // only one int cc reg is available
 }
+
+
+void SparcFloatCCRegClass::colorIGNode(IGNode *Node,
+                                const std::vector<bool> &IsColorUsedArr) const {
+  for(unsigned c = 0; c != 4; ++c)
+    if (!IsColorUsedArr[c]) { // find unused color
+      Node->setColor(c);   
+      return;
+    }
+  
+  Node->getParentLR()->markForSpill();
+}
+
 
 
 //-----------------------------------------------------------------------------


Index: llvm/lib/Target/Sparc/SparcRegClassInfo.h
diff -u llvm/lib/Target/Sparc/SparcRegClassInfo.h:1.19 llvm/lib/Target/Sparc/SparcRegClassInfo.h:1.20
--- llvm/lib/Target/Sparc/SparcRegClassInfo.h:1.19	Fri Jul 25 16:12:15 2003
+++ llvm/lib/Target/Sparc/SparcRegClassInfo.h	Mon Sep  1 14:56:48 2003
@@ -8,7 +8,6 @@
 #define SPARC_REG_CLASS_INFO_H
 
 #include "llvm/Target/TargetRegInfo.h"
-#include "llvm/CodeGen/IGNode.h"
 
 //-----------------------------------------------------------------------------
 // Integer Register Class
@@ -175,15 +174,7 @@
     : TargetRegClassInfo(ID, 4, 5) {  }
 
   void colorIGNode(IGNode *Node,
-                   const std::vector<bool> &IsColorUsedArr) const {
-    for(unsigned c = 0; c != 4; ++c)
-      if (!IsColorUsedArr[c]) { // find unused color
-        Node->setColor(c);   
-        return;
-      }
-
-    Node->getParentLR()->markForSpill();
-  }
+                   const std::vector<bool> &IsColorUsedArr) const;
   
   // according to  Sparc 64 ABI, all %fp CC regs are volatile
   //


Index: llvm/lib/Target/Sparc/SparcRegInfo.cpp
diff -u llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.106 llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.107
--- llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.106	Tue Jul 29 14:53:21 2003
+++ llvm/lib/Target/Sparc/SparcRegInfo.cpp	Mon Sep  1 14:56:48 2003
@@ -14,6 +14,7 @@
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
 #include "llvm/CodeGen/MachineInstrAnnot.h"
 #include "llvm/CodeGen/LiveRangeInfo.h"
+#include "llvm/CodeGen/IGNode.h"
 #include "llvm/iTerminators.h"
 #include "llvm/iOther.h"
 #include "llvm/Function.h"





More information about the llvm-commits mailing list