[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9RegInfo.h

Brian Gaeke gaeke at cs.uiuc.edu
Thu Jun 3 00:12:19 PDT 2004


Changes in directory llvm/lib/Target/SparcV9:

SparcV9RegInfo.h updated: 1.14 -> 1.15

---
Log message:

Fix big mistake in my last checkin... the big question is, how did I ever
get this to link before?


---
Diffs of the changes:  (+7 -7)

Index: llvm/lib/Target/SparcV9/SparcV9RegInfo.h
diff -u llvm/lib/Target/SparcV9/SparcV9RegInfo.h:1.14 llvm/lib/Target/SparcV9/SparcV9RegInfo.h:1.15
--- llvm/lib/Target/SparcV9/SparcV9RegInfo.h:1.14	Wed Jun  2 21:45:09 2004
+++ llvm/lib/Target/SparcV9/SparcV9RegInfo.h	Thu Jun  3 00:03:00 2004
@@ -53,7 +53,7 @@
   // This defaults to marking a single register but may mark multiple
   // registers when a single number denotes paired registers.
   // 
-  void markColorsUsed(unsigned RegInClass,
+  virtual void markColorsUsed(unsigned RegInClass,
                               int UserRegType,
                               int RegTypeWanted,
                               std::vector<bool> &IsColorUsedArr) const {
@@ -69,7 +69,7 @@
   // for paired registers and other such silliness.
   // It returns -1 if no unused color is found.
   // 
-  int findUnusedColor(int RegTypeWanted,
+  virtual int findUnusedColor(int RegTypeWanted,
                           const std::vector<bool> &IsColorUsedArr) const {
     // find first unused color in the IsColorUsedArr directly
     unsigned NC = this->getNumOfAvailRegs();
@@ -82,18 +82,18 @@
 
   // This method should find a color which is not used by neighbors
   // (i.e., a false position in IsColorUsedArr) and 
-  void colorIGNode(IGNode *Node,
-                           const std::vector<bool> &IsColorUsedArr) const;
+  virtual void colorIGNode(IGNode *Node,
+                           const std::vector<bool> &IsColorUsedArr) const = 0;
 
   // Check whether a specific register is volatile, i.e., whether it is not
   // preserved across calls
-  bool isRegVolatile(int Reg) const;
+  virtual bool isRegVolatile(int Reg) const = 0;
 
   // Check whether a specific register is modified as a side-effect of the
   // call instruction itself,
-  bool modifiedByCall(int Reg) const {return false; }
+  virtual bool modifiedByCall(int Reg) const { return false; }
 
-  virtual const char* const getRegName(unsigned reg) const;
+  virtual const char* const getRegName(unsigned reg) const = 0;
 
   TargetRegClassInfo(unsigned ID, unsigned NVR, unsigned NAR)
     : RegClassID(ID), NumOfAvailRegs(NVR), NumOfAllRegs(NAR) {}





More information about the llvm-commits mailing list