diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-09-30 07:06:37 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-09-30 07:06:37 +0000 |
| commit | fbc60722b975acf924db24346ae047225175ef04 (patch) | |
| tree | efe47613b573f1f5f7bfc14aab2cbe19f5acc3f3 | |
| parent | 8688b92b86acb79c01e26d9ae3544e9e7528a907 (diff) | |
| download | bcm5719-llvm-fbc60722b975acf924db24346ae047225175ef04.tar.gz bcm5719-llvm-fbc60722b975acf924db24346ae047225175ef04.zip | |
expose a new virtual method
llvm-svn: 23555
| -rw-r--r-- | llvm/include/llvm/Target/MRegisterInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/Target/MRegisterInfo.h b/llvm/include/llvm/Target/MRegisterInfo.h index ed8ea23c88c..2687a3da63a 100644 --- a/llvm/include/llvm/Target/MRegisterInfo.h +++ b/llvm/include/llvm/Target/MRegisterInfo.h @@ -25,6 +25,7 @@ namespace llvm { class Type; class MachineFunction; class MachineInstr; +class TargetRegisterClass; /// MRegisterDesc - This record contains all of the information known about a /// particular register. The AliasSet field (if not null) contains a pointer to @@ -214,8 +215,14 @@ public: return false; } + /// getCalleeSaveRegs - Return a null-terminated list of all of the + /// callee-save registers on this target. virtual const unsigned* getCalleeSaveRegs() const = 0; + /// getCalleeSaveRegClasses - Return a null-terminated list of the preferred + /// register classes to spill each callee-saved register with. The order and + /// length of this list match the getCalleeSaveRegs() list. + virtual const TargetRegisterClass* const *getCalleeSaveRegClasses() const = 0; //===--------------------------------------------------------------------===// // Register Class Information |

