LLVM  6.0.0svn
BPFMCTargetDesc.h
Go to the documentation of this file.
1 //===-- BPFMCTargetDesc.h - BPF Target Descriptions -------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file provides BPF specific target descriptions.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCTARGETDESC_H
15 #define LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCTARGETDESC_H
16 
17 #include "llvm/Config/config.h"
18 #include "llvm/Support/DataTypes.h"
19 
20 #include <memory>
21 
22 namespace llvm {
23 class MCAsmBackend;
24 class MCCodeEmitter;
25 class MCContext;
26 class MCInstrInfo;
27 class MCObjectWriter;
28 class MCRegisterInfo;
29 class MCSubtargetInfo;
30 class MCTargetOptions;
31 class StringRef;
32 class Target;
33 class Triple;
34 class raw_ostream;
35 class raw_pwrite_stream;
36 
37 Target &getTheBPFleTarget();
38 Target &getTheBPFbeTarget();
39 Target &getTheBPFTarget();
40 
41 MCCodeEmitter *createBPFMCCodeEmitter(const MCInstrInfo &MCII,
42  const MCRegisterInfo &MRI,
43  MCContext &Ctx);
44 MCCodeEmitter *createBPFbeMCCodeEmitter(const MCInstrInfo &MCII,
45  const MCRegisterInfo &MRI,
46  MCContext &Ctx);
47 
48 MCAsmBackend *createBPFAsmBackend(const Target &T, const MCRegisterInfo &MRI,
49  const Triple &TT, StringRef CPU,
50  const MCTargetOptions &Options);
51 MCAsmBackend *createBPFbeAsmBackend(const Target &T, const MCRegisterInfo &MRI,
52  const Triple &TT, StringRef CPU,
53  const MCTargetOptions &Options);
54 
55 std::unique_ptr<MCObjectWriter> createBPFELFObjectWriter(raw_pwrite_stream &OS,
56  uint8_t OSABI,
57  bool IsLittleEndian);
58 }
59 
60 // Defines symbolic names for BPF registers. This defines a mapping from
61 // register name to register number.
62 //
63 #define GET_REGINFO_ENUM
64 #include "BPFGenRegisterInfo.inc"
65 
66 // Defines symbolic names for the BPF instructions.
67 //
68 #define GET_INSTRINFO_ENUM
69 #include "BPFGenInstrInfo.inc"
70 
71 #define GET_SUBTARGETINFO_ENUM
72 #include "BPFGenSubtargetInfo.inc"
73 
74 #endif
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
MCAsmBackend * createBPFAsmBackend(const Target &T, const MCRegisterInfo &MRI, const Triple &TT, StringRef CPU, const MCTargetOptions &Options)
MCCodeEmitter * createBPFbeMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)
unsigned const MachineRegisterInfo * MRI
MCAsmBackend * createBPFbeAsmBackend(const Target &T, const MCRegisterInfo &MRI, const Triple &TT, StringRef CPU, const MCTargetOptions &Options)
std::unique_ptr< MCObjectWriter > createBPFELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI, bool IsLittleEndian)
Target & getTheBPFleTarget()
MCCodeEmitter * createBPFMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)
Target & getTheBPFbeTarget()
Target & getTheBPFTarget()