LLVM  8.0.1
WebAssemblyTargetInfo.cpp
Go to the documentation of this file.
1 //===-- WebAssemblyTargetInfo.cpp - WebAssembly Target Implementation -----===//
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 /// This file registers the WebAssembly target.
12 ///
13 //===----------------------------------------------------------------------===//
14 
16 #include "llvm/ADT/Triple.h"
18 using namespace llvm;
19 
20 #define DEBUG_TYPE "wasm-target-info"
21 
23  static Target TheWebAssemblyTarget32;
24  return TheWebAssemblyTarget32;
25 }
27  static Target TheWebAssemblyTarget64;
28  return TheWebAssemblyTarget64;
29 }
30 
33  "WebAssembly 32-bit", "WebAssembly");
35  "WebAssembly 64-bit", "WebAssembly");
36 }
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
This class represents lattice values for constants.
Definition: AllocatorList.h:24
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()