projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fe9907
)
Add sub-registers set accessor.
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 20 Apr 2007 21:28:05 +0000
(21:28 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 20 Apr 2007 21:28:05 +0000
(21:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36282
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Target/MRegisterInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/Target/MRegisterInfo.h
b/include/llvm/Target/MRegisterInfo.h
index 585f4bc37bbd60492cc0ac33a4ed9b6d2a72ad2c..79a2a86713240b07637a10c877b7baf86abf2255 100644
(file)
--- 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 {