| OLD | NEW |
| 1 //===-- MipsFrameLowering.h - Define frame lowering for Mips ----*- C++ -*-===// | 1 //===-- MipsFrameLowering.h - Define frame lowering for Mips ----*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // | 10 // |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 const MipsSubtarget &STI; | 25 const MipsSubtarget &STI; |
| 26 | 26 |
| 27 public: | 27 public: |
| 28 explicit MipsFrameLowering(const MipsSubtarget &sti, unsigned Alignment) | 28 explicit MipsFrameLowering(const MipsSubtarget &sti, unsigned Alignment) |
| 29 : TargetFrameLowering(StackGrowsDown, Alignment, 0, Alignment), STI(sti) {} | 29 : TargetFrameLowering(StackGrowsDown, Alignment, 0, Alignment), STI(sti) {} |
| 30 | 30 |
| 31 static const MipsFrameLowering *create(const MipsSubtarget &ST); | 31 static const MipsFrameLowering *create(const MipsSubtarget &ST); |
| 32 | 32 |
| 33 bool hasFP(const MachineFunction &MF) const override; | 33 bool hasFP(const MachineFunction &MF) const override; |
| 34 | 34 |
| 35 bool isFPCloseToIncomingSP() const override { return false; } |
| 36 |
| 35 void | 37 void |
| 36 eliminateCallFramePseudoInstr(MachineFunction &MF, | 38 eliminateCallFramePseudoInstr(MachineFunction &MF, |
| 37 MachineBasicBlock &MBB, | 39 MachineBasicBlock &MBB, |
| 38 MachineBasicBlock::iterator I) const override; | 40 MachineBasicBlock::iterator I) const override; |
| 39 | 41 |
| 40 protected: | 42 protected: |
| 41 uint64_t estimateStackSize(const MachineFunction &MF) const; | 43 uint64_t estimateStackSize(const MachineFunction &MF) const; |
| 42 }; | 44 }; |
| 43 | 45 |
| 44 /// Create MipsFrameLowering objects. | 46 /// Create MipsFrameLowering objects. |
| 45 const MipsFrameLowering *createMips16FrameLowering(const MipsSubtarget &ST); | 47 const MipsFrameLowering *createMips16FrameLowering(const MipsSubtarget &ST); |
| 46 const MipsFrameLowering *createMipsSEFrameLowering(const MipsSubtarget &ST); | 48 const MipsFrameLowering *createMipsSEFrameLowering(const MipsSubtarget &ST); |
| 47 | 49 |
| 48 } // End llvm namespace | 50 } // End llvm namespace |
| 49 | 51 |
| 50 #endif | 52 #endif |
| OLD | NEW |