//===-- WebAssemblyTargetInfo.cpp - WebAssembly Target Implementation -----===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// /// \file /// This file registers the WebAssembly target. /// //===----------------------------------------------------------------------===// #include "TargetInfo/WebAssemblyTargetInfo.h" #include "llvm/MC/TargetRegistry.h" usingnamespacellvm; #define DEBUG_TYPE … Target &llvm::getTheWebAssemblyTarget32() { … } Target &llvm::getTheWebAssemblyTarget64() { … } extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeWebAssemblyTargetInfo() { … } // Defines llvm::WebAssembly::getWasm64Opcode llvm::WebAssembly::getStackOpcode // which have to be in a shared location between CodeGen and MC. #define GET_INSTRMAP_INFO … #define GET_INSTRINFO_ENUM … #define GET_INSTRINFO_MC_HELPER_DECLS #include "WebAssemblyGenInstrInfo.inc"