Allow a target to choose whether to prefer the scavenger emergency spill slot
[oota-llvm.git] / include / llvm / Target / TargetRegisterInfo.h
index 121091c9b49b5fdefa5c8d934b93d801b24df61a..af10748ef4f392b712f6060940134a9e2d3cffd8 100644 (file)
@@ -631,6 +631,13 @@ public:
     return false;
   }
 
+  /// useFPForScavengingIndex - returns true if the target wants to use
+  /// frame pointer based accesses to spill to the scavenger emergency spill
+  /// slot.
+  virtual bool useFPForScavengingIndex(const MachineFunction &MF) const {
+    return true;
+  }
+
   /// requiresFrameIndexScavenging - returns true if the target requires post
   /// PEI scavenging of registers for materializing frame index constants.
   virtual bool requiresFrameIndexScavenging(const MachineFunction &MF) const {