Path: blob/main/contrib/llvm-project/llvm/lib/Target/BPF/BPFRegisterInfo.h
96353 views
//===-- BPFRegisterInfo.h - BPF Register Information Impl -------*- C++ -*-===//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 the TargetRegisterInfo class.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_BPF_BPFREGISTERINFO_H13#define LLVM_LIB_TARGET_BPF_BPFREGISTERINFO_H1415#include "llvm/CodeGen/TargetRegisterInfo.h"1617#define GET_REGINFO_HEADER18#include "BPFGenRegisterInfo.inc"1920namespace llvm {2122struct BPFRegisterInfo : public BPFGenRegisterInfo {2324BPFRegisterInfo();2526const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;2728BitVector getReservedRegs(const MachineFunction &MF) const override;2930bool eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj,31unsigned FIOperandNum,32RegScavenger *RS = nullptr) const override;3334Register getFrameRegister(const MachineFunction &MF) const override;35};36}3738#endif394041