[PowerPC] Do not emit record-form rotates when record-form andi/andis suffices
[llvm-core.git] / lib / Target / NVPTX / NVPTXFrameLowering.h
blob0a7856b9d5de1138ae98380e115652af6c43396e
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 //
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
15 #define LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
17 #include "llvm/CodeGen/TargetFrameLowering.h"
19 namespace llvm {
20 class NVPTXSubtarget;
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 int getFrameIndexReference(const MachineFunction &MF, int FI,
29 unsigned &FrameReg) const override;
31 MachineBasicBlock::iterator
32 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
33 MachineBasicBlock::iterator I) const override;
36 } // End llvm namespace
38 #endif