40 lines · c
1//===-- BPFRegisterBankInfo.h -----------------------------------*- C++ -*-===//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-exception6//7//===----------------------------------------------------------------------===//8///9/// \file10/// This file declares the targeting of the RegisterBankInfo class for BPF.11///12//===----------------------------------------------------------------------===//13 14#ifndef LLVM_LIB_TARGET_BPF_GISEL_BPFREGISTERBANKINFO_H15#define LLVM_LIB_TARGET_BPF_GISEL_BPFREGISTERBANKINFO_H16 17#include "MCTargetDesc/BPFMCTargetDesc.h"18#include "llvm/CodeGen/RegisterBankInfo.h"19#include "llvm/CodeGen/TargetRegisterInfo.h"20 21#define GET_REGBANK_DECLARATIONS22#include "BPFGenRegisterBank.inc"23 24namespace llvm {25class TargetRegisterInfo;26 27class BPFGenRegisterBankInfo : public RegisterBankInfo {28protected:29#define GET_TARGET_REGBANK_CLASS30#include "BPFGenRegisterBank.inc"31};32 33class BPFRegisterBankInfo final : public BPFGenRegisterBankInfo {34public:35 BPFRegisterBankInfo(const TargetRegisterInfo &TRI);36};37} // namespace llvm38 39#endif40