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 TheWebAssemblyTarget;
40 MCAsmBackend *createWebAssemblyAsmBackend(const Target &T,
41 const MCRegisterInfo &MRI,
42 StringRef TT, StringRef CPU);
44 } // end namespace llvm
46 // Defines symbolic names for WebAssembly registers. This defines a mapping from
47 // register name to register number.
49 #define GET_SUBTARGETINFO_ENUM
50 #include "WebAssemblyGenSubtargetInfo.inc"