LLVM  9.0.0svn
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 
15 #include "llvm/ADT/Triple.h"
17 using 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 
32  "WebAssembly 32-bit", "WebAssembly");
34  "WebAssembly 64-bit", "WebAssembly");
35 }
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
This class represents lattice values for constants.
Definition: AllocatorList.h:23
void LLVMInitializeWebAssemblyTargetInfo()
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
This file provides WebAssembly-specific target descriptions.
Target - Wrapper for Target specific information.
Target & getTheWebAssemblyTarget32()
Target & getTheWebAssemblyTarget64()