[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h
Evan Cheng
evan.cheng at apple.com
Tue Feb 27 13:08:24 PST 2007
Changes in directory llvm/include/llvm/Target:
MRegisterInfo.h updated: 1.97 -> 1.98
---
Log message:
Let MRegisterInfo owns RegScavenger.
---
Diffs of the changes: (+10 -9)
MRegisterInfo.h | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.97 llvm/include/llvm/Target/MRegisterInfo.h:1.98
--- llvm/include/llvm/Target/MRegisterInfo.h:1.97 Thu Feb 22 19:07:04 2007
+++ llvm/include/llvm/Target/MRegisterInfo.h Tue Feb 27 15:08:07 2007
@@ -23,14 +23,15 @@
namespace llvm {
-class Type;
+class BitVector;
+class CalleeSavedInfo;
class MachineFunction;
class MachineInstr;
class MachineLocation;
class MachineMove;
+class RegScavenger;
class TargetRegisterClass;
-class CalleeSavedInfo;
-class BitVector;
+class Type;
/// TargetRegisterDesc - This record contains all of the information known about
/// a particular register. The AliasSet field (if not null) contains a pointer
@@ -213,6 +214,12 @@
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.
@@ -391,12 +398,6 @@
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.
More information about the llvm-commits
mailing list