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

Chris Lattner lattner at cs.uiuc.edu
Mon Jan 6 12:29:02 PST 2003


Changes in directory llvm/include/llvm/Target:

MRegisterInfo.h updated: 1.15 -> 1.16

---
Log message:

Add a new getName accessor


---
Diffs of the changes:

Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.15 llvm/include/llvm/Target/MRegisterInfo.h:1.16
--- llvm/include/llvm/Target/MRegisterInfo.h:1.15	Sat Dec 28 14:10:23 2002
+++ llvm/include/llvm/Target/MRegisterInfo.h	Mon Jan  6 12:28:20 2003
@@ -33,6 +33,7 @@
 ///
 namespace MRF {  // MRF = Machine Register Flags
   enum {
+    Other            =   0 << 0,   // This is a non-standard register
     INT8             =   1 << 0,   // This is an 8 bit integer register
     INT16            =   1 << 1,   // This is a 16 bit integer register
     INT32            =   1 << 2,   // This is a 32 bit integer register
@@ -171,6 +172,12 @@
   ///
   const unsigned *getAliasSet(unsigned RegNo) const {
     return get(RegNo).AliasSet;
+  }
+
+  /// getName - Return the symbolic target specific name for the specified
+  /// physical register.
+  const char *getName(unsigned RegNo) const {
+    return get(RegNo).Name;
   }
 
   virtual const unsigned* getCalleeSaveRegs() const = 0;





More information about the llvm-commits mailing list