[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Target / MSP430 / MSP430FrameLowering.h
blobf6995edf4b0ad168b194e30c897afe0e5c22d42f
1 //==- MSP430FrameLowering.h - Define frame lowering for MSP430 --*- 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 //
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_MSP430_MSP430FRAMELOWERING_H
14 #define LLVM_LIB_TARGET_MSP430_MSP430FRAMELOWERING_H
16 #include "MSP430.h"
17 #include "llvm/CodeGen/TargetFrameLowering.h"
19 namespace llvm {
20 class MSP430FrameLowering : public TargetFrameLowering {
21 protected:
23 public:
24 explicit MSP430FrameLowering()
25 : TargetFrameLowering(TargetFrameLowering::StackGrowsDown, Align(2), -2,
26 Align(2)) {}
28 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
29 /// the function.
30 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
31 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
33 MachineBasicBlock::iterator
34 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
35 MachineBasicBlock::iterator I) const override;
37 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
38 MachineBasicBlock::iterator MI,
39 ArrayRef<CalleeSavedInfo> CSI,
40 const TargetRegisterInfo *TRI) const override;
41 bool
42 restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
43 MachineBasicBlock::iterator MI,
44 MutableArrayRef<CalleeSavedInfo> CSI,
45 const TargetRegisterInfo *TRI) const override;
47 bool hasFP(const MachineFunction &MF) const override;
48 bool hasReservedCallFrame(const MachineFunction &MF) const override;
49 void processFunctionBeforeFrameFinalized(MachineFunction &MF,
50 RegScavenger *RS = nullptr) const override;
53 } // End llvm namespace
55 #endif