xref: /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/NVPTXFrameLowering.h (revision 5ffd83dbcc34f10e07f6d3e968ae6365869615f4)
10b57cec5SDimitry Andric //===--- NVPTXFrameLowering.h - Define frame lowering for NVPTX -*- C++ -*-===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric //
90b57cec5SDimitry Andric //
100b57cec5SDimitry Andric //
110b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
120b57cec5SDimitry Andric 
130b57cec5SDimitry Andric #ifndef LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
140b57cec5SDimitry Andric #define LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
150b57cec5SDimitry Andric 
160b57cec5SDimitry Andric #include "llvm/CodeGen/TargetFrameLowering.h"
170b57cec5SDimitry Andric 
180b57cec5SDimitry Andric namespace llvm {
19*5ffd83dbSDimitry Andric 
200b57cec5SDimitry Andric class NVPTXFrameLowering : public TargetFrameLowering {
210b57cec5SDimitry Andric public:
220b57cec5SDimitry Andric   explicit NVPTXFrameLowering();
230b57cec5SDimitry Andric 
240b57cec5SDimitry Andric   bool hasFP(const MachineFunction &MF) const override;
250b57cec5SDimitry Andric   void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
260b57cec5SDimitry Andric   void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
270b57cec5SDimitry Andric   int getFrameIndexReference(const MachineFunction &MF, int FI,
28*5ffd83dbSDimitry Andric                              Register &FrameReg) const override;
290b57cec5SDimitry Andric 
300b57cec5SDimitry Andric   MachineBasicBlock::iterator
310b57cec5SDimitry Andric   eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
320b57cec5SDimitry Andric                                 MachineBasicBlock::iterator I) const override;
33*5ffd83dbSDimitry Andric   DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override;
340b57cec5SDimitry Andric };
350b57cec5SDimitry Andric 
360b57cec5SDimitry Andric } // End llvm namespace
370b57cec5SDimitry Andric 
380b57cec5SDimitry Andric #endif
39