1 //==- WebAssemblyMCTargetDesc.h - WebAssembly Target Descriptions -*- C++ -*-=//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief This file provides WebAssembly-specific target descriptions.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_MCTARGETDESC_WEBASSEMBLYMCTARGETDESC_H
16 #define LLVM_LIB_TARGET_WEBASSEMBLY_MCTARGETDESC_WEBASSEMBLYMCTARGETDESC_H
18 #include "llvm/Support/DataTypes.h"
23 class formatted_raw_ostream;
31 class MCSubtargetInfo;
32 class MCTargetStreamer;
37 class raw_pwrite_stream;
39 extern Target TheWebAssemblyTarget32;
40 extern Target TheWebAssemblyTarget64;
42 MCCodeEmitter *createWebAssemblyMCCodeEmitter(const MCInstrInfo &MCII,
43 const MCRegisterInfo &MRI,
46 MCAsmBackend *createWebAssemblyAsmBackend(const Target &T,
47 const MCRegisterInfo &MRI,
48 const Triple &TT, StringRef CPU);
50 } // end namespace llvm
52 // Defines symbolic names for WebAssembly registers. This defines a mapping from
53 // register name to register number.
55 #define GET_REGINFO_ENUM
56 #include "WebAssemblyGenRegisterInfo.inc"
58 // Defines symbolic names for the WebAssembly instructions.
60 #define GET_INSTRINFO_ENUM
61 #include "WebAssemblyGenInstrInfo.inc"
63 #define GET_SUBTARGETINFO_ENUM
64 #include "WebAssemblyGenSubtargetInfo.inc"