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

Evan Cheng evan.cheng at apple.com
Tue Jun 26 13:59:39 PDT 2007



Changes in directory llvm/include/llvm/Target:

MRegisterInfo.h updated: 1.111 -> 1.112
---
Log message:

Add immediate sub-registers.

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

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


Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.111 llvm/include/llvm/Target/MRegisterInfo.h:1.112
--- llvm/include/llvm/Target/MRegisterInfo.h:1.111	Wed Jun 13 17:20:15 2007
+++ llvm/include/llvm/Target/MRegisterInfo.h	Tue Jun 26 15:59:16 2007
@@ -48,6 +48,7 @@
   const char     *Name;         // Assembly language name for the register
   const unsigned *AliasSet;     // Register Alias Set, described above
   const unsigned *SubRegs;      // Sub-register set, described above
+  const unsigned *ImmSubRegs;   // Immediate sub-register set, described above
   const unsigned *SuperRegs;    // Super-register set, described above
 };
 
@@ -326,6 +327,14 @@
     return get(RegNo).SubRegs;
   }
 
+  /// getImmediateSubRegisters - Return the set of registers that are immediate
+  /// sub-registers of the specified register, or a null list of there are none.
+  /// The list returned is zero terminated.
+  ///
+  const unsigned *getImmediateSubRegisters(unsigned RegNo) const {
+    return get(RegNo).ImmSubRegs;
+  }
+
   /// getSuperRegisters - Return the set of registers that are super-registers
   /// of the specified register, or a null list of there are none. The list
   /// returned is zero terminated.






More information about the llvm-commits mailing list