LLVM  13.0.0git
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 
31  const TargetRegisterInfo *TRI) const override;
32 
33  bool
37  const TargetRegisterInfo *TRI) const override;
38 
39  bool hasReservedCallFrame(const MachineFunction &MF) const override;
40 
41  void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
42  RegScavenger *RS) const override;
43 };
44 
45 } // End llvm namespace
46 
47 #endif
MI
IRTranslator LLVM IR MI
Definition: IRTranslator.cpp:100
llvm
Definition: AllocatorList.h:23
llvm::Mips16FrameLowering::spillCalleeSavedRegisters
bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, ArrayRef< CalleeSavedInfo > CSI, const TargetRegisterInfo *TRI) const override
spillCalleeSavedRegisters - Issues instruction(s) to spill all callee saved registers and returns tru...
Definition: Mips16FrameLowering.cpp:112
llvm::TargetRegisterInfo
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
Definition: TargetRegisterInfo.h:231
TRI
unsigned const TargetRegisterInfo * TRI
Definition: MachineSink.cpp:1567
llvm::MutableArrayRef
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...
Definition: ArrayRef.h:305
llvm::Mips16FrameLowering::determineCalleeSaves
void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const override
This method determines which of the registers reported by TargetRegisterInfo::getCalleeSavedRegs() sh...
Definition: Mips16FrameLowering.cpp:159
llvm::BitVector
Definition: BitVector.h:74
llvm::MipsFrameLowering::STI
const MipsSubtarget & STI
Definition: MipsFrameLowering.h:24
llvm::MachineBasicBlock
Definition: MachineBasicBlock.h:95
llvm::Mips16FrameLowering::hasReservedCallFrame
bool hasReservedCallFrame(const MachineFunction &MF) const override
hasReservedCallFrame - Under normal circumstances, when a frame pointer is not required,...
Definition: Mips16FrameLowering.cpp:152
llvm::Mips16FrameLowering
Definition: Mips16FrameLowering.h:19
MipsFrameLowering.h
llvm::RegScavenger
Definition: RegisterScavenging.h:34
llvm::MachineFunction
Definition: MachineFunction.h:230
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: APInt.h:32
llvm::MipsFrameLowering
Definition: MipsFrameLowering.h:22
llvm::MipsSubtarget
Definition: MipsSubtarget.h:39
llvm::Mips16FrameLowering::restoreCalleeSavedRegisters
bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, MutableArrayRef< CalleeSavedInfo > CSI, const TargetRegisterInfo *TRI) const override
restoreCalleeSavedRegisters - Issues instruction(s) to restore all callee saved registers and returns...
Definition: Mips16FrameLowering.cpp:138
MBB
MachineBasicBlock & MBB
Definition: AArch64SLSHardening.cpp:74
llvm::Mips16FrameLowering::emitPrologue
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
Definition: Mips16FrameLowering.cpp:42
llvm::Mips16FrameLowering::Mips16FrameLowering
Mips16FrameLowering(const MipsSubtarget &STI)
Definition: Mips16FrameLowering.cpp:39
llvm::Mips16FrameLowering::emitEpilogue
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
Definition: Mips16FrameLowering.cpp:91
llvm::MachineInstrBundleIterator< MachineInstr >