LLVM 20.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 "BPFSubtarget.h"
17
18using namespace llvm;
19
21 return true;
22}
23
25 MachineBasicBlock &MBB) const {}
26
28 MachineBasicBlock &MBB) const {}
29
31 BitVector &SavedRegs,
32 RegScavenger *RS) const {
34 SavedRegs.reset(BPF::R6);
35 SavedRegs.reset(BPF::R7);
36 SavedRegs.reset(BPF::R8);
37 SavedRegs.reset(BPF::R9);
38}
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 hasFPImpl(const MachineFunction &MF) const override
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