[X86] Convert esp-relative movs of function arguments to pushes, step 2
[oota-llvm.git] / include / llvm / Target / TargetFrameLowering.h
index 277bd98d371c86c137cf6e50573164a1dfc3a55d..f17640f71e933d51c332d9c5f2039e95f776e2e9 100644 (file)
@@ -193,6 +193,11 @@ public:
     return hasReservedCallFrame(MF) || hasFP(MF);
   }
 
+  // needsFrameIndexResolution - Do we need to perform FI resolution for
+  // this function. Normally, this is required only when the function
+  // has any stack objects. However, targets may want to override this.
+  virtual bool needsFrameIndexResolution(const MachineFunction &MF) const;
+
   /// getFrameIndexOffset - Returns the displacement from the frame register to
   /// the stack frame of the specified index.
   virtual int getFrameIndexOffset(const MachineFunction &MF, int FI) const;