1 //===-- BPFRegisterInfo.h - BPF Register Information Impl -------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the BPF implementation of the TargetRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_BPF_BPFREGISTERINFO_H
15 #define LLVM_LIB_TARGET_BPF_BPFREGISTERINFO_H
17 #include "llvm/Target/TargetRegisterInfo.h"
19 #define GET_REGINFO_HEADER
20 #include "BPFGenRegisterInfo.inc"
24 struct BPFRegisterInfo : public BPFGenRegisterInfo {
28 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
30 BitVector getReservedRegs(const MachineFunction &MF) const override;
32 void eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj,
33 unsigned FIOperandNum,
34 RegScavenger *RS = nullptr) const override;
36 unsigned getFrameRegister(const MachineFunction &MF) const override;