LLVM  8.0.1
BPFFrameLowering.h
Go to the documentation of this file.
1 //===-- BPFFrameLowering.h - Define frame lowering for BPF -----*- 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 // This class implements BPF-specific bits of TargetFrameLowering class.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_BPF_BPFFRAMELOWERING_H
15 #define LLVM_LIB_TARGET_BPF_BPFFRAMELOWERING_H
16 
18 
19 namespace llvm {
20 class BPFSubtarget;
21 
23 public:
24  explicit BPFFrameLowering(const BPFSubtarget &sti)
26 
27  void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
28  void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
29 
30  bool hasFP(const MachineFunction &MF) const override;
31  void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
32  RegScavenger *RS) const override;
33 
36  MachineBasicBlock::iterator MI) const override {
37  return MBB.erase(MI);
38  }
39 };
40 }
41 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
bool hasFP(const MachineFunction &MF) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register...
void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const override
This method determines which of the registers reported by TargetRegisterInfo::getCalleeSavedRegs() sh...
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
instr_iterator erase(instr_iterator I)
Remove an instruction from the instruction list and delete it.
Information about stack frame layout on the target.
BPFFrameLowering(const BPFSubtarget &sti)
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
IRTranslator LLVM IR MI
MachineBasicBlock::iterator eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MI) const override
This method is called during prolog/epilog code insertion to eliminate call frame setup and destroy p...