Path: blob/main/contrib/llvm-project/llvm/lib/Target/AVR/AVRFrameLowering.h
35266 views
//===-- AVRFrameLowering.h - Define frame lowering for AVR ------*- 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//===----------------------------------------------------------------------===//78#ifndef LLVM_AVR_FRAME_LOWERING_H9#define LLVM_AVR_FRAME_LOWERING_H1011#include "llvm/CodeGen/TargetFrameLowering.h"1213namespace llvm {1415/// Utilities for creating function call frames.16class AVRFrameLowering : public TargetFrameLowering {17public:18explicit AVRFrameLowering();1920public:21void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;22void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;23bool hasFP(const MachineFunction &MF) const override;24bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,25MachineBasicBlock::iterator MI,26ArrayRef<CalleeSavedInfo> CSI,27const TargetRegisterInfo *TRI) const override;28bool29restoreCalleeSavedRegisters(MachineBasicBlock &MBB,30MachineBasicBlock::iterator MI,31MutableArrayRef<CalleeSavedInfo> CSI,32const TargetRegisterInfo *TRI) const override;33bool hasReservedCallFrame(const MachineFunction &MF) const override;34bool canSimplifyCallFramePseudos(const MachineFunction &MF) const override;35void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,36RegScavenger *RS = nullptr) const override;37MachineBasicBlock::iterator38eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,39MachineBasicBlock::iterator MI) const override;40};4142} // end namespace llvm4344#endif // LLVM_AVR_FRAME_LOWERING_H454647