LLVM  8.0.1
BPFFrameLowering.cpp
Go to the documentation of this file.
1 //===-- BPFFrameLowering.cpp - BPF Frame Information ----------------------===//
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 file contains the BPF implementation of TargetFrameLowering class.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "BPFFrameLowering.h"
15 #include "BPFInstrInfo.h"
16 #include "BPFSubtarget.h"
21 
22 using namespace llvm;
23 
24 bool BPFFrameLowering::hasFP(const MachineFunction &MF) const { return true; }
25 
27  MachineBasicBlock &MBB) const {}
28 
30  MachineBasicBlock &MBB) const {}
31 
33  BitVector &SavedRegs,
34  RegScavenger *RS) const {
36  SavedRegs.reset(BPF::R6);
37  SavedRegs.reset(BPF::R7);
38  SavedRegs.reset(BPF::R8);
39  SavedRegs.reset(BPF::R9);
40 }
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.
virtual void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS=nullptr) const
This method determines which of the registers reported by TargetRegisterInfo::getCalleeSavedRegs() sh...
BitVector & reset()
Definition: BitVector.h:439
#define R6(n)
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override