Path: blob/main/contrib/llvm-project/llvm/lib/Target/BPF/BPFFrameLowering.cpp
35294 views
//===-- BPFFrameLowering.cpp - BPF Frame Information ----------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file contains the BPF implementation of TargetFrameLowering class.9//10//===----------------------------------------------------------------------===//1112#include "BPFFrameLowering.h"13#include "BPFInstrInfo.h"14#include "BPFSubtarget.h"15#include "llvm/CodeGen/MachineFrameInfo.h"16#include "llvm/CodeGen/MachineFunction.h"17#include "llvm/CodeGen/MachineInstrBuilder.h"18#include "llvm/CodeGen/MachineRegisterInfo.h"1920using namespace llvm;2122bool BPFFrameLowering::hasFP(const MachineFunction &MF) const { return true; }2324void BPFFrameLowering::emitPrologue(MachineFunction &MF,25MachineBasicBlock &MBB) const {}2627void BPFFrameLowering::emitEpilogue(MachineFunction &MF,28MachineBasicBlock &MBB) const {}2930void BPFFrameLowering::determineCalleeSaves(MachineFunction &MF,31BitVector &SavedRegs,32RegScavenger *RS) const {33TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS);34SavedRegs.reset(BPF::R6);35SavedRegs.reset(BPF::R7);36SavedRegs.reset(BPF::R8);37SavedRegs.reset(BPF::R9);38}394041