brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 741cc00 Raw
35 lines · c
1//===-- WebAssemblyTargetInfo.h - WebAssembly Target Impl -------*- C++ -*-===//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-exception6//7//===----------------------------------------------------------------------===//8///9/// \file10/// This file registers the WebAssembly target.11///12//===----------------------------------------------------------------------===//13 14#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_TARGETINFO_WEBASSEMBLYTARGETINFO_H15#define LLVM_LIB_TARGET_WEBASSEMBLY_TARGETINFO_WEBASSEMBLYTARGETINFO_H16 17namespace llvm {18 19class Target;20 21Target &getTheWebAssemblyTarget32();22Target &getTheWebAssemblyTarget64();23 24namespace WebAssembly {25 26int getStackOpcode(unsigned short Opcode);27int getRegisterOpcode(unsigned short Opcode);28int getWasm64Opcode(unsigned short Opcode);29 30} // namespace WebAssembly31 32} // namespace llvm33 34#endif // LLVM_LIB_TARGET_WEBASSEMBLY_TARGETINFO_WEBASSEMBLYTARGETINFO_H35