[ARM] VQADD instructions
[llvm-complete.git] / lib / Target / Mips / MipsSEFrameLowering.h
blob78ffe161d9c6b2335e98cd81ac9541419ec64060
1 //===- MipsSEFrameLowering.h - Mips32/64 frame lowering ---------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_MIPS_MIPSSEFRAMELOWERING_H
10 #define LLVM_LIB_TARGET_MIPS_MIPSSEFRAMELOWERING_H
12 #include "MipsFrameLowering.h"
13 #include <vector>
15 namespace llvm {
17 class MachineBasicBlock;
18 class MachineFunction;
19 class MipsSubtarget;
21 class MipsSEFrameLowering : public MipsFrameLowering {
22 public:
23 explicit MipsSEFrameLowering(const MipsSubtarget &STI);
25 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
26 /// the function.
27 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
28 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
30 int getFrameIndexReference(const MachineFunction &MF, int FI,
31 unsigned &FrameReg) const override;
33 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
34 MachineBasicBlock::iterator MI,
35 const std::vector<CalleeSavedInfo> &CSI,
36 const TargetRegisterInfo *TRI) const override;
38 bool hasReservedCallFrame(const MachineFunction &MF) const override;
40 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
41 RegScavenger *RS) const override;
43 private:
44 void emitInterruptEpilogueStub(MachineFunction &MF,
45 MachineBasicBlock &MBB) const;
46 void emitInterruptPrologueStub(MachineFunction &MF,
47 MachineBasicBlock &MBB) const;
50 } // end namespace llvm
52 #endif // LLVM_LIB_TARGET_MIPS_MIPSSEFRAMELOWERING_H