[InstCombine] Signed saturation patterns
[llvm-complete.git] / lib / Target / NVPTX / NVPTXFrameLowering.h
blob40269f58f06e7750946fe643e00bc1d4d707ce0d
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"
18 namespace llvm {
19 class NVPTXSubtarget;
20 class NVPTXFrameLowering : public TargetFrameLowering {
21 public:
22 explicit NVPTXFrameLowering();
24 bool hasFP(const MachineFunction &MF) const override;
25 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
26 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
27 int getFrameIndexReference(const MachineFunction &MF, int FI,
28 unsigned &FrameReg) const override;
30 MachineBasicBlock::iterator
31 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
32 MachineBasicBlock::iterator I) const override;
35 } // End llvm namespace
37 #endif