Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / lib / Target / NVPTX / NVPTXFrameLowering.h
bloba5d49ac3ab29308008ef8d27155b55f5956c60a8
1 //===--- NVPTXFrameLowering.h - Define frame lowering for NVPTX -*- 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 //
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
14 #define LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
16 #include "llvm/CodeGen/TargetFrameLowering.h"
17 #include "llvm/Support/TypeSize.h"
19 namespace llvm {
21 class NVPTXFrameLowering : public TargetFrameLowering {
22 public:
23 explicit NVPTXFrameLowering();
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 StackOffset getFrameIndexReference(const MachineFunction &MF, int FI,
29 Register &FrameReg) const override;
31 MachineBasicBlock::iterator
32 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
33 MachineBasicBlock::iterator I) const override;
34 DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override;
37 } // End llvm namespace
39 #endif