PPCRegisterBankInfo.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //===-- PPCRegisterBankInfo.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-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. ///
  9. /// \file
  10. /// This file declares the targeting of the RegisterBankInfo class for PowerPC.
  11. ///
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_LIB_TARGET_PPC_GISEL_PPCREGISTERBANKINFO_H
  14. #define LLVM_LIB_TARGET_PPC_GISEL_PPCREGISTERBANKINFO_H
  15. #include "llvm/CodeGen/GlobalISel/RegisterBank.h"
  16. #include "llvm/CodeGen/GlobalISel/RegisterBankInfo.h"
  17. #include "llvm/CodeGen/TargetRegisterInfo.h"
  18. #define GET_REGBANK_DECLARATIONS
  19. #include "PPCGenRegisterBank.inc"
  20. namespace llvm {
  21. class TargetRegisterInfo;
  22. class PPCGenRegisterBankInfo : public RegisterBankInfo {
  23. protected:
  24. #define GET_TARGET_REGBANK_CLASS
  25. #include "PPCGenRegisterBank.inc"
  26. };
  27. class PPCRegisterBankInfo final : public PPCGenRegisterBankInfo {
  28. public:
  29. PPCRegisterBankInfo(const TargetRegisterInfo &TRI);
  30. };
  31. } // namespace llvm
  32. #endif