LLVM  7.0.0
Nios2FrameLowering.h
Go to the documentation of this file.
1 //===-- Nios2FrameLowering.h - Define frame lowering for Nios2 --*- 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 #ifndef LLVM_LIB_TARGET_NIOS2_NIOS2FRAMELOWERING_H
14 #define LLVM_LIB_TARGET_NIOS2_NIOS2FRAMELOWERING_H
15 
16 #include "Nios2.h"
18 
19 namespace llvm {
20 class Nios2Subtarget;
21 
23 protected:
25 
26 public:
27  explicit Nios2FrameLowering(const Nios2Subtarget &sti)
29  STI(sti) {}
30 
31  bool hasFP(const MachineFunction &MF) const override;
32  /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
33  /// the function.
34  void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
35  void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
36 };
37 } // namespace llvm
38 
39 #endif
Nios2FrameLowering(const Nios2Subtarget &sti)
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
const Nios2Subtarget & STI
Information about stack frame layout on the target.
bool hasFP(const MachineFunction &MF) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register...
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.