xref: /freebsd-src/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCTargetDesc.h (revision e8d8bef961a50d4dc22501cde4fb9fb0be1b2532)
1*e8d8bef9SDimitry Andric //===-- CSKYMCTargetDesc.h - CSKY Target Descriptions -----------*- C++ -*-===//
2*e8d8bef9SDimitry Andric //
3*e8d8bef9SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*e8d8bef9SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*e8d8bef9SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*e8d8bef9SDimitry Andric //
7*e8d8bef9SDimitry Andric //===----------------------------------------------------------------------===//
8*e8d8bef9SDimitry Andric //
9*e8d8bef9SDimitry Andric // This file provides CSKY specific target descriptions.
10*e8d8bef9SDimitry Andric //
11*e8d8bef9SDimitry Andric //===----------------------------------------------------------------------===//
12*e8d8bef9SDimitry Andric 
13*e8d8bef9SDimitry Andric #ifndef LLVM_LIB_TARGET_CSKY_MCTARGETDESC_CSKYMCTARGETDESC_H
14*e8d8bef9SDimitry Andric #define LLVM_LIB_TARGET_CSKY_MCTARGETDESC_CSKYMCTARGETDESC_H
15*e8d8bef9SDimitry Andric 
16*e8d8bef9SDimitry Andric #include "llvm/MC/MCTargetOptions.h"
17*e8d8bef9SDimitry Andric #include <memory>
18*e8d8bef9SDimitry Andric 
19*e8d8bef9SDimitry Andric namespace llvm {
20*e8d8bef9SDimitry Andric class MCAsmBackend;
21*e8d8bef9SDimitry Andric class MCCodeEmitter;
22*e8d8bef9SDimitry Andric class MCContext;
23*e8d8bef9SDimitry Andric class MCInstrInfo;
24*e8d8bef9SDimitry Andric class MCRegisterInfo;
25*e8d8bef9SDimitry Andric class MCObjectTargetWriter;
26*e8d8bef9SDimitry Andric class MCRegisterInfo;
27*e8d8bef9SDimitry Andric class MCSubtargetInfo;
28*e8d8bef9SDimitry Andric class Target;
29*e8d8bef9SDimitry Andric class Triple;
30*e8d8bef9SDimitry Andric 
31*e8d8bef9SDimitry Andric std::unique_ptr<MCObjectTargetWriter> createCSKYELFObjectWriter();
32*e8d8bef9SDimitry Andric 
33*e8d8bef9SDimitry Andric MCAsmBackend *createCSKYAsmBackend(const Target &T, const MCSubtargetInfo &STI,
34*e8d8bef9SDimitry Andric                                    const MCRegisterInfo &MRI,
35*e8d8bef9SDimitry Andric                                    const MCTargetOptions &Options);
36*e8d8bef9SDimitry Andric 
37*e8d8bef9SDimitry Andric MCCodeEmitter *createCSKYMCCodeEmitter(const MCInstrInfo &MCII,
38*e8d8bef9SDimitry Andric                                        const MCRegisterInfo &MRI,
39*e8d8bef9SDimitry Andric                                        MCContext &Ctx);
40*e8d8bef9SDimitry Andric } // namespace llvm
41*e8d8bef9SDimitry Andric 
42*e8d8bef9SDimitry Andric #define GET_REGINFO_ENUM
43*e8d8bef9SDimitry Andric #include "CSKYGenRegisterInfo.inc"
44*e8d8bef9SDimitry Andric 
45*e8d8bef9SDimitry Andric #define GET_INSTRINFO_ENUM
46*e8d8bef9SDimitry Andric #include "CSKYGenInstrInfo.inc"
47*e8d8bef9SDimitry Andric 
48*e8d8bef9SDimitry Andric #endif // LLVM_LIB_TARGET_CSKY_MCTARGETDESC_CSKYMCTARGETDESC_H
49