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