Path: blob/main/contrib/llvm-project/llvm/lib/Target/Mips/Mips16FrameLowering.h
35267 views
//===-- Mips16FrameLowering.h - Mips16 frame lowering ----------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8//9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_MIPS_MIPS16FRAMELOWERING_H13#define LLVM_LIB_TARGET_MIPS_MIPS16FRAMELOWERING_H1415#include "MipsFrameLowering.h"1617namespace llvm {18class Mips16FrameLowering : public MipsFrameLowering {19public:20explicit Mips16FrameLowering(const MipsSubtarget &STI);2122/// emitProlog/emitEpilog - These methods insert prolog and epilog code into23/// the function.24void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;25void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;2627bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,28MachineBasicBlock::iterator MI,29ArrayRef<CalleeSavedInfo> CSI,30const TargetRegisterInfo *TRI) const override;3132bool33restoreCalleeSavedRegisters(MachineBasicBlock &MBB,34MachineBasicBlock::iterator MI,35MutableArrayRef<CalleeSavedInfo> CSI,36const TargetRegisterInfo *TRI) const override;3738bool hasReservedCallFrame(const MachineFunction &MF) const override;3940void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,41RegScavenger *RS) const override;42};4344} // End llvm namespace4546#endif474849