LLVM 22.0.0git
WebAssemblyMCAsmInfo.h
Go to the documentation of this file.
1//===-- WebAssemblyMCAsmInfo.h - WebAssembly asm properties -----*- 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 contains the declaration of the WebAssemblyMCAsmInfo class.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_MCTARGETDESC_WEBASSEMBLYMCASMINFO_H
15#define LLVM_LIB_TARGET_WEBASSEMBLY_MCTARGETDESC_WEBASSEMBLYMCASMINFO_H
16
18
19namespace llvm {
20
21class Triple;
22
23class WebAssemblyMCAsmInfo final : public MCAsmInfoWasm {
24public:
25 explicit WebAssemblyMCAsmInfo(const Triple &T,
28};
29
30namespace WebAssembly {
33 S_FUNCINDEX, // Wasm function index
35 S_GOT_TLS, // Wasm global index of TLS symbol
36 S_MBREL, // Memory address relative to __memory_base
37 S_TBREL, // Table index relative to __table_base
38 S_TLSREL, // Memory address relative to __tls_base
39 S_TYPEINDEX, // Reference to a symbol's type (signature)
40};
41}
42} // end namespace llvm
43
44#endif
static LVOptions Options
Definition LVOptions.cpp:25
#define T
Triple - Helper class for working with autoconf configuration names.
Definition Triple.h:47
WebAssemblyMCAsmInfo(const Triple &T, const MCTargetOptions &Options)
This is an optimization pass for GlobalISel generic memory operations.