1//===-- WebAssemblyTargetInfo.cpp - WebAssembly Target Implementation -----===//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//===----------------------------------------------------------------------===//
10/// This file registers the WebAssembly target.
12//===----------------------------------------------------------------------===//
19 #define DEBUG_TYPE "wasm-target-info"
22 static Target TheWebAssemblyTarget32;
23 return TheWebAssemblyTarget32;
26 static Target TheWebAssemblyTarget64;
27 return TheWebAssemblyTarget64;
33 "WebAssembly 32-bit",
"WebAssembly");
35 "WebAssembly 64-bit",
"WebAssembly");
38// Defines llvm::WebAssembly::getWasm64Opcode llvm::WebAssembly::getStackOpcode
39// which have to be in a shared location between CodeGen and MC.
40 #define GET_INSTRMAP_INFO 1
41 #define GET_INSTRINFO_ENUM 1
42 #define GET_INSTRINFO_MC_HELPER_DECLS
43#include "WebAssemblyGenInstrInfo.inc"
#define LLVM_EXTERNAL_VISIBILITY
static TableGen::Emitter::Opt Y("gen-skeleton-entry", EmitSkeleton, "Generate example skeleton entry")
static TableGen::Emitter::OptClass< SkeletonEmitter > X("gen-skeleton-class", "Generate example skeleton class")
LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeWebAssemblyTargetInfo()
This file registers the WebAssembly target.
Target - Wrapper for Target specific information.
This is an optimization pass for GlobalISel generic memory operations.
Target & getTheWebAssemblyTarget32()
Target & getTheWebAssemblyTarget64()
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...