Provide a target override for the latest regalloc heuristic.
[oota-llvm.git] / include / llvm / Target / TargetFrameLowering.h
index d5f30f40addbe519ed7f062f048c5c30a46df903..a60147f5c092a3d5ae3ec74a51424ebaab991d25 100644 (file)
@@ -88,6 +88,11 @@ public:
   ///
   int getOffsetOfLocalArea() const { return LocalAreaOffset; }
 
+  /// isFPCloseToIncomingSP - Return true if the frame pointer is close to
+  /// the incoming stack pointer, false if it is close to the post-prologue
+  /// stack pointer.
+  virtual bool isFPCloseToIncomingSP() const { return true; }
+
   /// getCalleeSavedSpillSlots - This method returns a pointer to an array of
   /// pairs, that contains an entry for each callee saved register that must be
   /// spilled to a particular stack location if it is spilled.