| Akira Hatanaka | d1c43ce | 2012-07-31 22:50:19 +0000 | [diff] [blame] | 1 | //===-- MipsSEFrameLowering.h - Mips32/64 frame lowering --------*- C++ -*-===// | 
|  | 2 | // | 
|  | 3 | //                     The LLVM Compiler Infrastructure | 
|  | 4 | // | 
|  | 5 | // This file is distributed under the University of Illinois Open Source | 
|  | 6 | // License. See LICENSE.TXT for details. | 
|  | 7 | // | 
|  | 8 | //===----------------------------------------------------------------------===// | 
|  | 9 | // | 
|  | 10 | // | 
|  | 11 | // | 
|  | 12 | //===----------------------------------------------------------------------===// | 
|  | 13 |  | 
|  | 14 | #ifndef MIPSSE_FRAMEINFO_H | 
|  | 15 | #define MIPSSE_FRAMEINFO_H | 
|  | 16 |  | 
|  | 17 | #include "MipsFrameLowering.h" | 
|  | 18 |  | 
|  | 19 | namespace llvm { | 
|  | 20 |  | 
|  | 21 | class MipsSEFrameLowering : public MipsFrameLowering { | 
|  | 22 | public: | 
|  | 23 | explicit MipsSEFrameLowering(const MipsSubtarget &STI) | 
| Akira Hatanaka | 6b2d841 | 2013-10-29 19:29:03 +0000 | [diff] [blame] | 24 | : MipsFrameLowering(STI, STI.stackAlignment()) {} | 
| Akira Hatanaka | d1c43ce | 2012-07-31 22:50:19 +0000 | [diff] [blame] | 25 |  | 
|  | 26 | /// emitProlog/emitEpilog - These methods insert prolog and epilog code into | 
|  | 27 | /// the function. | 
|  | 28 | void emitPrologue(MachineFunction &MF) const; | 
|  | 29 | void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const; | 
|  | 30 |  | 
| Eli Bendersky | 8da8716 | 2013-02-21 20:05:00 +0000 | [diff] [blame] | 31 | void eliminateCallFramePseudoInstr(MachineFunction &MF, | 
|  | 32 | MachineBasicBlock &MBB, | 
|  | 33 | MachineBasicBlock::iterator I) const; | 
|  | 34 |  | 
| Akira Hatanaka | d1c43ce | 2012-07-31 22:50:19 +0000 | [diff] [blame] | 35 | bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, | 
|  | 36 | MachineBasicBlock::iterator MI, | 
|  | 37 | const std::vector<CalleeSavedInfo> &CSI, | 
|  | 38 | const TargetRegisterInfo *TRI) const; | 
|  | 39 |  | 
|  | 40 | bool hasReservedCallFrame(const MachineFunction &MF) const; | 
|  | 41 |  | 
|  | 42 | void processFunctionBeforeCalleeSavedScan(MachineFunction &MF, | 
|  | 43 | RegScavenger *RS) const; | 
| Akira Hatanaka | c0b0206 | 2013-01-30 00:26:49 +0000 | [diff] [blame] | 44 | unsigned ehDataReg(unsigned I) const; | 
| Akira Hatanaka | d1c43ce | 2012-07-31 22:50:19 +0000 | [diff] [blame] | 45 | }; | 
|  | 46 |  | 
|  | 47 | } // End llvm namespace | 
|  | 48 |  | 
|  | 49 | #endif |