• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===--------------------- R600FrameLowering.h ------------------*- 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 #ifndef LLVM_LIB_TARGET_AMDGPU_R600FRAMELOWERING_H
10 #define LLVM_LIB_TARGET_AMDGPU_R600FRAMELOWERING_H
11 
12 #include "AMDGPUFrameLowering.h"
13 #include "llvm/Support/TypeSize.h"
14 
15 namespace llvm {
16 
17 class R600FrameLowering : public AMDGPUFrameLowering {
18 public:
19   R600FrameLowering(StackDirection D, Align StackAl, int LAO,
20                     Align TransAl = Align(1))
AMDGPUFrameLowering(D,StackAl,LAO,TransAl)21       : AMDGPUFrameLowering(D, StackAl, LAO, TransAl) {}
22   ~R600FrameLowering() override;
23 
emitPrologue(MachineFunction & MF,MachineBasicBlock & MBB)24   void emitPrologue(MachineFunction &MF,
25                     MachineBasicBlock &MBB) const override {}
emitEpilogue(MachineFunction & MF,MachineBasicBlock & MBB)26   void emitEpilogue(MachineFunction &MF,
27                     MachineBasicBlock &MBB) const override {}
28   StackOffset getFrameIndexReference(const MachineFunction &MF, int FI,
29                                      Register &FrameReg) const override;
30 
hasFP(const MachineFunction & MF)31   bool hasFP(const MachineFunction &MF) const override {
32     return false;
33   }
34 };
35 
36 } // end namespace llvm
37 
38 #endif // LLVM_LIB_TARGET_AMDGPU_R600FRAMELOWERING_H
39