10b57cec5SDimitry Andric //===-- BPFRegisterInfo.h - BPF Register Information Impl -------*- C++ -*-===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric // 90b57cec5SDimitry Andric // This file contains the BPF implementation of the TargetRegisterInfo class. 100b57cec5SDimitry Andric // 110b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 120b57cec5SDimitry Andric 130b57cec5SDimitry Andric #ifndef LLVM_LIB_TARGET_BPF_BPFREGISTERINFO_H 140b57cec5SDimitry Andric #define LLVM_LIB_TARGET_BPF_BPFREGISTERINFO_H 150b57cec5SDimitry Andric 160b57cec5SDimitry Andric #include "llvm/CodeGen/TargetRegisterInfo.h" 170b57cec5SDimitry Andric 180b57cec5SDimitry Andric #define GET_REGINFO_HEADER 190b57cec5SDimitry Andric #include "BPFGenRegisterInfo.inc" 200b57cec5SDimitry Andric 210b57cec5SDimitry Andric namespace llvm { 220b57cec5SDimitry Andric 230b57cec5SDimitry Andric struct BPFRegisterInfo : public BPFGenRegisterInfo { 240b57cec5SDimitry Andric 250b57cec5SDimitry Andric BPFRegisterInfo(); 260b57cec5SDimitry Andric 270b57cec5SDimitry Andric const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override; 280b57cec5SDimitry Andric 290b57cec5SDimitry Andric BitVector getReservedRegs(const MachineFunction &MF) const override; 300b57cec5SDimitry Andric 31*bdd1243dSDimitry Andric bool eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj, 320b57cec5SDimitry Andric unsigned FIOperandNum, 330b57cec5SDimitry Andric RegScavenger *RS = nullptr) const override; 340b57cec5SDimitry Andric 350b57cec5SDimitry Andric Register getFrameRegister(const MachineFunction &MF) const override; 360b57cec5SDimitry Andric }; 370b57cec5SDimitry Andric } 380b57cec5SDimitry Andric 390b57cec5SDimitry Andric #endif 40