LLVM 19.0.0git
WebAssemblyTargetInfo.h
Go to the documentation of this file.
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
17namespace llvm {
18
19class Target;
20
23
24namespace WebAssembly {
25
26int getStackOpcode(unsigned short Opcode);
27int getRegisterOpcode(unsigned short Opcode);
28int getWasm64Opcode(unsigned short Opcode);
29
30} // namespace WebAssembly
31
32} // namespace llvm
33
34#endif // LLVM_LIB_TARGET_WEBASSEMBLY_TARGETINFO_WEBASSEMBLYTARGETINFO_H
int getWasm64Opcode(unsigned short Opcode)
int getRegisterOpcode(unsigned short Opcode)
int getStackOpcode(unsigned short Opcode)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
Target & getTheWebAssemblyTarget32()
Target & getTheWebAssemblyTarget64()