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:
b180e3e
)
Add MRegisterInfo::getNumRegs().
author
Alkis Evlogimenos
<alkis@evlogimenos.com>
Sun, 1 Feb 2004 17:14:20 +0000
(17:14 +0000)
committer
Alkis Evlogimenos
<alkis@evlogimenos.com>
Sun, 1 Feb 2004 17:14:20 +0000
(17:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11058
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 3d67d8c40915966242a3014c5a2e009314048107..b808ca3001c3955fbf716121338321211987e9af 100644
(file)
--- a/
include/llvm/Target/MRegisterInfo.h
+++ b/
include/llvm/Target/MRegisterInfo.h
@@
-182,6
+182,12
@@
public:
return get(RegNo).Name;
}
+ /// getNumRegs - Return the number of registers this target has
+ /// (useful for sizing arrays holding per register information)
+ unsigned getNumRegs() const {
+ return NumRegs;
+ }
+
virtual const unsigned* getCalleeSaveRegs() const = 0;