[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h

Chris Lattner lattner at cs.uiuc.edu
Fri Sep 30 00:06:49 PDT 2005



Changes in directory llvm/include/llvm/Target:

MRegisterInfo.h updated: 1.59 -> 1.60
---
Log message:

expose a new virtual method


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

 MRegisterInfo.h |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.59 llvm/include/llvm/Target/MRegisterInfo.h:1.60
--- llvm/include/llvm/Target/MRegisterInfo.h:1.59	Thu Sep 29 20:28:14 2005
+++ llvm/include/llvm/Target/MRegisterInfo.h	Fri Sep 30 02:06:37 2005
@@ -25,6 +25,7 @@
 class Type;
 class MachineFunction;
 class MachineInstr;
+class TargetRegisterClass;
 
 /// MRegisterDesc - This record contains all of the information known about a
 /// particular register.  The AliasSet field (if not null) contains a pointer to
@@ -214,8 +215,14 @@
     return false;
   }
 
+  /// getCalleeSaveRegs - Return a null-terminated list of all of the
+  /// callee-save registers on this target.
   virtual const unsigned* getCalleeSaveRegs() const = 0;
 
+  /// getCalleeSaveRegClasses - Return a null-terminated list of the preferred
+  /// register classes to spill each callee-saved register with.  The order and
+  /// length of this list match the getCalleeSaveRegs() list.
+  virtual const TargetRegisterClass* const *getCalleeSaveRegClasses() const = 0;
 
   //===--------------------------------------------------------------------===//
   // Register Class Information






More information about the llvm-commits mailing list