LLVM 19.0.0git
BPFFrameLowering.cpp
Go to the documentation of this file.
1//===-- BPFFrameLowering.cpp - BPF Frame Information ----------------------===//
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// This file contains the BPF implementation of TargetFrameLowering class.
10//
11//===----------------------------------------------------------------------===//
12
13#include "BPFFrameLowering.h"
14#include "BPFInstrInfo.h"
15#include "BPFSubtarget.h"
20
21using namespace llvm;
22
23bool BPFFrameLowering::hasFP(const MachineFunction &MF) const { return true; }
24
26 MachineBasicBlock &MBB) const {}
27
29 MachineBasicBlock &MBB) const {}
30
32 BitVector &SavedRegs,
33 RegScavenger *RS) const {
35 SavedRegs.reset(BPF::R6);
36 SavedRegs.reset(BPF::R7);
37 SavedRegs.reset(BPF::R8);
38 SavedRegs.reset(BPF::R9);
39}
MachineBasicBlock & MBB
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const override
This method determines which of the registers reported by TargetRegisterInfo::getCalleeSavedRegs() sh...
bool hasFP(const MachineFunction &MF) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register.
BitVector & reset()
Definition: BitVector.h:392
virtual void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS=nullptr) const
This method determines which of the registers reported by TargetRegisterInfo::getCalleeSavedRegs() sh...
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18