Update the .cvs files.
[oota-llvm.git] / lib / Target / CellSPU / SPUFrameInfo.h
index 99136c2460265186e0d2fdbaf9cc75e2c200b9f3..e8ca333f0b69b24e5068b80a3fbc477c7633d81e 100644 (file)
@@ -57,6 +57,10 @@ namespace llvm {
     static int fullSpillSize() {
       return (SPURegisterInfo::getNumArgRegs() * stackSlotSize());
     }
+    //! Convert frame index to stack offset
+    static int FItoStackOffset(int frame_index) {
+      return frame_index * stackSlotSize();
+    }
     //! Number of instructions required to overcome hint-for-branch latency
     /*!
       HBR (hint-for-branch) instructions can be inserted when, for example,