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-exception
6//
7//===----------------------------------------------------------------------===//
8///
9/// \file
10/// This file registers the WebAssembly target.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_TARGETINFO_WEBASSEMBLYTARGETINFO_H
15#define LLVM_LIB_TARGET_WEBASSEMBLY_TARGETINFO_WEBASSEMBLYTARGETINFO_H
16
17#include <cstdint>
18
19namespace llvm {
20
21class Target;
22
23Target &getTheWebAssemblyTarget32();
24Target &getTheWebAssemblyTarget64();
25
26namespace WebAssembly {
27
28int32_t getStackOpcode(uint32_t Opcode);
29int32_t getRegisterOpcode(uint32_t Opcode);
30int32_t getWasm64Opcode(uint32_t Opcode);
31
32} // namespace WebAssembly
33
34} // namespace llvm
35
36#endif // LLVM_LIB_TARGET_WEBASSEMBLY_TARGETINFO_WEBASSEMBLYTARGETINFO_H
37