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;
38 extern Target TheWebAssemblyTarget32;
39 extern Target TheWebAssemblyTarget64;
41 MCAsmBackend *createWebAssemblyAsmBackend(const Target &T,
42 const MCRegisterInfo &MRI,
43 StringRef TT, StringRef CPU);
45 } // end namespace llvm
47 // Defines symbolic names for WebAssembly registers. This defines a mapping from
48 // register name to register number.
50 #define GET_REGINFO_ENUM
51 #include "WebAssemblyGenRegisterInfo.inc"
53 // Defines symbolic names for the WebAssembly instructions.
55 #define GET_INSTRINFO_ENUM
56 #include "WebAssemblyGenInstrInfo.inc"
58 #define GET_SUBTARGETINFO_ENUM
59 #include "WebAssemblyGenSubtargetInfo.inc"