[WebAssembly] Initial WebAssembly backend
[oota-llvm.git] / lib / Target / WebAssembly / MCTargetDesc / WebAssemblyMCTargetDesc.h
1 //==- WebAssemblyMCTargetDesc.h - WebAssembly 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 /// \file
11 /// \brief This file provides WebAssembly-specific target descriptions.
12 ///
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_MCTARGETDESC_WEBASSEMBLYMCTARGETDESC_H
16 #define LLVM_LIB_TARGET_WEBASSEMBLY_MCTARGETDESC_WEBASSEMBLYMCTARGETDESC_H
17
18 #include "llvm/Support/DataTypes.h"
19 #include <string>
20
21 namespace llvm {
22
23 class formatted_raw_ostream;
24 class MCAsmBackend;
25 class MCCodeEmitter;
26 class MCContext;
27 class MCInstrInfo;
28 class MCRegisterInfo;
29 class MCObjectWriter;
30 class MCStreamer;
31 class MCSubtargetInfo;
32 class MCTargetStreamer;
33 class StringRef;
34 class Target;
35 class Triple;
36 class raw_ostream;
37
38 extern Target TheWebAssemblyTarget;
39
40 MCAsmBackend *createWebAssemblyAsmBackend(const Target &T,
41                                           const MCRegisterInfo &MRI,
42                                           StringRef TT, StringRef CPU);
43
44 } // end namespace llvm
45
46 // Defines symbolic names for WebAssembly registers. This defines a mapping from
47 // register name to register number.
48 //
49 #define GET_SUBTARGETINFO_ENUM
50 #include "WebAssemblyGenSubtargetInfo.inc"
51
52 #endif