[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h
Evan Cheng
evan.cheng at apple.com
Fri Apr 20 14:28:22 PDT 2007
Changes in directory llvm/include/llvm/Target:
MRegisterInfo.h updated: 1.104 -> 1.105
---
Log message:
Add sub-registers set accessor.
---
Diffs of the changes: (+8 -0)
MRegisterInfo.h | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.104 llvm/include/llvm/Target/MRegisterInfo.h:1.105
--- llvm/include/llvm/Target/MRegisterInfo.h:1.104 Fri Apr 20 16:11:22 2007
+++ llvm/include/llvm/Target/MRegisterInfo.h Fri Apr 20 16:28:05 2007
@@ -270,6 +270,14 @@
return get(RegNo).AliasSet;
}
+ /// getSubRegisters - Return the set of registers that are sub-registers of
+ // the specified register, or a null list of there are none. The list
+ /// returned is zero terminated.
+ ///
+ const unsigned *getSubRegisters(unsigned RegNo) const {
+ return get(RegNo).SubRegs;
+ }
+
/// getName - Return the symbolic target specific name for the specified
/// physical register.
const char *getName(unsigned RegNo) const {
More information about the llvm-commits
mailing list