diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-28 00:17:36 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-28 00:17:36 +0000 |
commit | 37f15a6d488d256d371f6c39ab83837bc9c0772d (patch) | |
tree | 7de466e826f5277bbe29babd9706b236f2123dad /include/llvm/Target | |
parent | f5c0fd9e166b850461683e0914d1ff15829d6b67 (diff) | |
download | external_llvm-37f15a6d488d256d371f6c39ab83837bc9c0772d.zip external_llvm-37f15a6d488d256d371f6c39ab83837bc9c0772d.tar.gz external_llvm-37f15a6d488d256d371f6c39ab83837bc9c0772d.tar.bz2 |
MRegisterInfo disowns RegScavenger. It's immutable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/MRegisterInfo.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h index dd666a3..7d41229 100644 --- a/include/llvm/Target/MRegisterInfo.h +++ b/include/llvm/Target/MRegisterInfo.h @@ -214,12 +214,6 @@ protected: virtual ~MRegisterInfo(); public: - /// getRegScavenger - Returns pointer to an instance of register scavenger it - /// the specific target is making use of one. - virtual RegScavenger *getRegScavenger() const { - return NULL; - } - enum { // Define some target independent constants /// NoRegister - This physical register is not a real target register. It /// is useful as a sentinal. @@ -398,6 +392,12 @@ public: return false; } + /// requiresRegisterScavenging - returns true if the target requires (and + /// can make use of) the register scavenger. + virtual bool requiresRegisterScavenging() const { + return false; + } + /// hasFP - Return true if the specified function should have a dedicated frame /// pointer register. For most targets this is true only if the function has /// variable sized allocas or if frame pointer elimination is disabled. @@ -452,7 +452,8 @@ public: /// finished product. The return value is the number of instructions /// added to (negative if removed from) the basic block. /// - virtual void eliminateFrameIndex(MachineBasicBlock::iterator MI) const = 0; + virtual void eliminateFrameIndex(MachineBasicBlock::iterator MI, + RegScavenger *RS = NULL) const = 0; /// emitProlog/emitEpilog - These methods insert prolog and epilog code into /// the function. The return value is the number of instructions |