| //==--- MipsFrameLowering.h - Define frame lowering for Mips --*- C++ -*---===// |
| // The LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| //===----------------------------------------------------------------------===// |
| #include "MipsSubtarget.h" |
| #include "llvm/Target/TargetFrameLowering.h" |
| class MipsFrameLowering : public TargetFrameLowering { |
| const MipsSubtarget &STI; |
| explicit MipsFrameLowering(const MipsSubtarget &sti) |
| : TargetFrameLowering(StackGrowsDown, sti.hasMips64() ? 16 : 8, 0), |
| bool targetHandlesStackFrameRounding() const; |
| /// emitProlog/emitEpilog - These methods insert prolog and epilog code into |
| void emitPrologue(MachineFunction &MF) const; |
| void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const; |
| bool hasFP(const MachineFunction &MF) const; |
| void processFunctionBeforeCalleeSavedScan(MachineFunction &MF, |