1//===--- NVPTXFrameLowering.h - Define frame lowering for NVPTX -*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10//
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
15#define LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
16
17#include "llvm/Target/TargetFrameLowering.h"
18
19namespace llvm {
20class NVPTXSubtarget;
21class NVPTXFrameLowering : public TargetFrameLowering {
22public:
23  explicit NVPTXFrameLowering();
24
25  bool hasFP(const MachineFunction &MF) const override;
26  void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
27  void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
28
29  void
30  eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
31                                MachineBasicBlock::iterator I) const override;
32};
33
34} // End llvm namespace
35
36#endif
37