LLVM  10.0.0svn
Mips16FrameLowering.h
Go to the documentation of this file.
1 //===-- Mips16FrameLowering.h - Mips16 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 //===----------------------------------------------------------------------===//
8 //
9 //
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_MIPS_MIPS16FRAMELOWERING_H
14 #define LLVM_LIB_TARGET_MIPS_MIPS16FRAMELOWERING_H
15 
16 #include "MipsFrameLowering.h"
17 
18 namespace llvm {
20 public:
21  explicit Mips16FrameLowering(const MipsSubtarget &STI);
22 
23  /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
24  /// the function.
25  void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
26  void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
27 
30  const std::vector<CalleeSavedInfo> &CSI,
31  const TargetRegisterInfo *TRI) const override;
32 
35  std::vector<CalleeSavedInfo> &CSI,
36  const TargetRegisterInfo *TRI) const override;
37 
38  bool hasReservedCallFrame(const MachineFunction &MF) const override;
39 
40  void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
41  RegScavenger *RS) const override;
42 };
43 
44 } // End llvm namespace
45 
46 #endif
Mips16FrameLowering(const MipsSubtarget &STI)
This class represents lattice values for constants.
Definition: AllocatorList.h:23
const MipsSubtarget & STI
unsigned const TargetRegisterInfo * TRI
bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, std::vector< CalleeSavedInfo > &CSI, const TargetRegisterInfo *TRI) const override
restoreCalleeSavedRegisters - Issues instruction(s) to restore all callee saved registers and returns...
void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const override
This method determines which of the registers reported by TargetRegisterInfo::getCalleeSavedRegs() sh...
bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector< CalleeSavedInfo > &CSI, const TargetRegisterInfo *TRI) const override
spillCalleeSavedRegisters - Issues instruction(s) to spill all callee saved registers and returns tru...
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
bool hasReservedCallFrame(const MachineFunction &MF) const override
hasReservedCallFrame - Under normal circumstances, when a frame pointer is not required, we reserve argument space for call sites in the function immediately on entry to the current function.
IRTranslator LLVM IR MI