LLVM 19.0.0git
XtensaFrameLowering.h
Go to the documentation of this file.
1//===- XtensaFrameLowering.h - Define frame lowering for Xtensa --*- 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#ifndef LLVM_LIB_TARGET_XTENSA_XTENSAFRAMELOWERING_H
10#define LLVM_LIB_TARGET_XTENSA_XTENSAFRAMELOWERING_H
11
13
14namespace llvm {
15class XtensaTargetMachine;
16class XtensaSubtarget;
17
19public:
21
22 bool hasFP(const MachineFunction &MF) const override;
23
24 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
25 /// the function.
26 void emitPrologue(MachineFunction &, MachineBasicBlock &) const override;
27 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
28
31 MachineBasicBlock::iterator I) const override;
32};
33
34} // namespace llvm
35
36#endif /* LLVM_LIB_TARGET_XTENSA_XTENSAFRAMELOWERING_H */
MachineBasicBlock & MBB
#define I(x, y, z)
Definition: MD5.cpp:58
Information about stack frame layout on the target.
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
bool hasFP(const MachineFunction &MF) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register.
void emitPrologue(MachineFunction &, MachineBasicBlock &) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
MachineBasicBlock::iterator eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const override
This method is called during prolog/epilog code insertion to eliminate call frame setup and destroy p...
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18