diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-04-20 21:28:05 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-04-20 21:28:05 +0000 |
commit | e3e31c22bf7ebed9e8e00ede4f4aa87ce2225528 (patch) | |
tree | 1a0e8d3ee8d6d57a3e2d4551bcce3ea15dcb20d6 /include/llvm/Target/MRegisterInfo.h | |
parent | 9fe9907ff9ee265cb0e741c6cf1074daf3eee6c4 (diff) | |
download | external_llvm-e3e31c22bf7ebed9e8e00ede4f4aa87ce2225528.zip external_llvm-e3e31c22bf7ebed9e8e00ede4f4aa87ce2225528.tar.gz external_llvm-e3e31c22bf7ebed9e8e00ede4f4aa87ce2225528.tar.bz2 |
Add sub-registers set accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/MRegisterInfo.h')
-rw-r--r-- | include/llvm/Target/MRegisterInfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h index 585f4bc..79a2a86 100644 --- a/include/llvm/Target/MRegisterInfo.h +++ b/include/llvm/Target/MRegisterInfo.h @@ -270,6 +270,14 @@ public: 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 { |