[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h

Evan Cheng evan.cheng at apple.com
Thu Feb 22 17:07:21 PST 2007



Changes in directory llvm/include/llvm/Target:

MRegisterInfo.h updated: 1.96 -> 1.97
---
Log message:

Temporay hook to enable register scavening for specific targets only.

---
Diffs of the changes:  (+6 -0)

 MRegisterInfo.h |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.96 llvm/include/llvm/Target/MRegisterInfo.h:1.97
--- llvm/include/llvm/Target/MRegisterInfo.h:1.96	Thu Feb 22 08:56:35 2007
+++ llvm/include/llvm/Target/MRegisterInfo.h	Thu Feb 22 19:07:04 2007
@@ -391,6 +391,12 @@
     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