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 #include "llvm/Support/TypeSize.h"
180b57cec5SDimitry Andric 
190b57cec5SDimitry Andric namespace llvm {
200b57cec5SDimitry Andric 
210b57cec5SDimitry Andric class NVPTXFrameLowering : public TargetFrameLowering {
220b57cec5SDimitry Andric public:
230b57cec5SDimitry Andric   explicit NVPTXFrameLowering();
240b57cec5SDimitry Andric 
250b57cec5SDimitry Andric   bool hasFP(const MachineFunction &MF) const override;
260b57cec5SDimitry Andric   void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
270b57cec5SDimitry Andric   void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
280b57cec5SDimitry Andric   StackOffset getFrameIndexReference(const MachineFunction &MF, int FI,
290b57cec5SDimitry Andric                                      Register &FrameReg) const override;
300b57cec5SDimitry Andric 
310b57cec5SDimitry Andric   MachineBasicBlock::iterator
320b57cec5SDimitry Andric   eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
330b57cec5SDimitry Andric                                 MachineBasicBlock::iterator I) const override;
340b57cec5SDimitry Andric   DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override;
350b57cec5SDimitry Andric };
360b57cec5SDimitry Andric 
370b57cec5SDimitry Andric } // End llvm namespace
38 
39 #endif
40