[flang][cuda] Adding atomicadd as a cudadevice intrinsic and converting it LLVM diale...
[llvm-project.git] / llvm / lib / Target / M68k / GISel / M68kRegisterBankInfo.h
blob6122db8b489898a19ec65b141ab6db34ad04cdc3
1 //===-- M68kRegisterBankInfo.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 /// \file
9 /// This file declares the targeting of the RegisterBankInfo class for M68k.
10 /// \todo This should be generated by TableGen.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_M68K_GLSEL_M68KREGISTERBANKINFO_H
14 #define LLVM_LIB_TARGET_M68K_GLSEL_M68KREGISTERBANKINFO_H
16 #include "llvm/CodeGen/RegisterBankInfo.h"
18 #define GET_REGBANK_DECLARATIONS
19 #include "M68kGenRegisterBank.inc"
20 #undef GET_REGBANK_DECLARATIONS
22 namespace llvm {
24 class TargetRegisterInfo;
26 class M68kGenRegisterBankInfo : public RegisterBankInfo {
27 protected:
28 #define GET_TARGET_REGBANK_CLASS
29 #include "M68kGenRegisterBank.inc"
30 #undef GET_TARGET_REGBANK_CLASS
33 /// This class provides the information for the target register banks.
34 class M68kRegisterBankInfo final : public M68kGenRegisterBankInfo {
35 public:
36 M68kRegisterBankInfo(const TargetRegisterInfo &TRI);
38 const InstructionMapping &
39 getInstrMapping(const MachineInstr &MI) const override;
41 } // end namespace llvm
42 #endif // LLVM_LIB_TARGET_M68K_GLSEL_M68KREGISTERBANKINFO_H