LLVM 22.0.0git
WebAssemblyTargetInfo.cpp
Go to the documentation of this file.
1//===-- WebAssemblyTargetInfo.cpp - WebAssembly Target Implementation -----===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8///
9/// \file
10/// This file registers the WebAssembly target.
11///
12//===----------------------------------------------------------------------===//
13
17using namespace llvm;
18
19#define DEBUG_TYPE "wasm-target-info"
20
22 static Target TheWebAssemblyTarget32;
23 return TheWebAssemblyTarget32;
24}
26 static Target TheWebAssemblyTarget64;
27 return TheWebAssemblyTarget64;
28}
29
33 "WebAssembly 32-bit", "WebAssembly");
35 "WebAssembly 64-bit", "WebAssembly");
36}
37
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_ABI
Definition Compiler.h:213
#define LLVM_EXTERNAL_VISIBILITY
Definition Compiler.h:132
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...