[MIPS GlobalISel] Select MSA vector generic and builtin add
[llvm-complete.git] / lib / Target / BPF / MCTargetDesc / BPFMCTargetDesc.h
blob1a391321f60d06ff5e82b2f714de7215551aa6aa
1 //===-- BPFMCTargetDesc.h - BPF Target Descriptions -------------*- 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 // This file provides BPF specific target descriptions.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCTARGETDESC_H
14 #define LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCTARGETDESC_H
16 #include "llvm/Config/config.h"
17 #include "llvm/Support/DataTypes.h"
19 #include <memory>
21 namespace llvm {
22 class MCAsmBackend;
23 class MCCodeEmitter;
24 class MCContext;
25 class MCInstrInfo;
26 class MCObjectTargetWriter;
27 class MCRegisterInfo;
28 class MCSubtargetInfo;
29 class MCTargetOptions;
30 class StringRef;
31 class Target;
32 class Triple;
33 class raw_ostream;
34 class raw_pwrite_stream;
36 MCCodeEmitter *createBPFMCCodeEmitter(const MCInstrInfo &MCII,
37 const MCRegisterInfo &MRI,
38 MCContext &Ctx);
39 MCCodeEmitter *createBPFbeMCCodeEmitter(const MCInstrInfo &MCII,
40 const MCRegisterInfo &MRI,
41 MCContext &Ctx);
43 MCAsmBackend *createBPFAsmBackend(const Target &T, const MCSubtargetInfo &STI,
44 const MCRegisterInfo &MRI,
45 const MCTargetOptions &Options);
46 MCAsmBackend *createBPFbeAsmBackend(const Target &T, const MCSubtargetInfo &STI,
47 const MCRegisterInfo &MRI,
48 const MCTargetOptions &Options);
50 std::unique_ptr<MCObjectTargetWriter> createBPFELFObjectWriter(uint8_t OSABI);
53 // Defines symbolic names for BPF registers. This defines a mapping from
54 // register name to register number.
56 #define GET_REGINFO_ENUM
57 #include "BPFGenRegisterInfo.inc"
59 // Defines symbolic names for the BPF instructions.
61 #define GET_INSTRINFO_ENUM
62 #include "BPFGenInstrInfo.inc"
64 #define GET_SUBTARGETINFO_ENUM
65 #include "BPFGenSubtargetInfo.inc"
67 #endif