Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 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" |
Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 19 | |
| 20 | namespace llvm { |
| 21 | |
| 22 | class formatted_raw_ostream; |
| 23 | class MCAsmBackend; |
| 24 | class MCCodeEmitter; |
| 25 | class MCContext; |
| 26 | class MCInstrInfo; |
| 27 | class MCRegisterInfo; |
| 28 | class MCObjectWriter; |
| 29 | class MCStreamer; |
| 30 | class MCSubtargetInfo; |
| 31 | class MCTargetStreamer; |
| 32 | class StringRef; |
| 33 | class Target; |
| 34 | class Triple; |
| 35 | class raw_ostream; |
Dan Gohman | 53828fd | 2015-11-23 16:50:18 +0000 | [diff] [blame] | 36 | class raw_pwrite_stream; |
Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 37 | |
Dan Gohman | d82494b | 2015-07-01 21:42:34 +0000 | [diff] [blame] | 38 | extern Target TheWebAssemblyTarget32; |
| 39 | extern Target TheWebAssemblyTarget64; |
Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 40 | |
Dan Gohman | 53828fd | 2015-11-23 16:50:18 +0000 | [diff] [blame] | 41 | MCCodeEmitter *createWebAssemblyMCCodeEmitter(const MCInstrInfo &MCII, |
Dan Gohman | 53828fd | 2015-11-23 16:50:18 +0000 | [diff] [blame] | 42 | MCContext &Ctx); |
| 43 | |
Dan Gohman | cceedf7 | 2016-01-08 00:43:54 +0000 | [diff] [blame^] | 44 | MCAsmBackend *createWebAssemblyAsmBackend(const Triple &TT); |
Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 45 | |
Dan Gohman | 05ac43f | 2015-12-17 01:39:00 +0000 | [diff] [blame] | 46 | MCObjectWriter *createWebAssemblyELFObjectWriter(raw_pwrite_stream &OS, |
| 47 | bool Is64Bit, uint8_t OSABI); |
| 48 | |
Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 49 | } // end namespace llvm |
| 50 | |
| 51 | // Defines symbolic names for WebAssembly registers. This defines a mapping from |
| 52 | // register name to register number. |
| 53 | // |
JF Bastien | 5ca0bac | 2015-07-10 18:23:10 +0000 | [diff] [blame] | 54 | #define GET_REGINFO_ENUM |
| 55 | #include "WebAssemblyGenRegisterInfo.inc" |
| 56 | |
JF Bastien | b9073fb | 2015-07-22 21:28:15 +0000 | [diff] [blame] | 57 | // Defines symbolic names for the WebAssembly instructions. |
| 58 | // |
| 59 | #define GET_INSTRINFO_ENUM |
| 60 | #include "WebAssemblyGenInstrInfo.inc" |
| 61 | |
Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 62 | #define GET_SUBTARGETINFO_ENUM |
| 63 | #include "WebAssemblyGenSubtargetInfo.inc" |
| 64 | |
| 65 | #endif |