LLVM
22.0.0git
lib
Target
WebAssembly
MCTargetDesc
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
17
#include "
llvm/MC/MCAsmInfoWasm.h
"
18
19
namespace
llvm
{
20
21
class
Triple
;
22
23
class
WebAssemblyMCAsmInfo
final :
public
MCAsmInfoWasm
{
24
public
:
25
explicit
WebAssemblyMCAsmInfo
(
const
Triple
&
T
,
26
const
MCTargetOptions
&
Options
);
27
~WebAssemblyMCAsmInfo
()
override
;
28
};
29
30
namespace
WebAssembly
{
31
enum
Specifier
{
32
S_None
,
33
S_FUNCINDEX
,
// Wasm function index
34
S_GOT
,
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
Options
static LVOptions Options
Definition
LVOptions.cpp:25
MCAsmInfoWasm.h
T
#define T
Definition
Mips16ISelLowering.cpp:353
llvm::MCAsmInfoWasm::MCAsmInfoWasm
MCAsmInfoWasm()
Definition
MCAsmInfoWasm.cpp:21
llvm::MCTargetOptions
Definition
MCTargetOptions.h:29
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition
Triple.h:47
llvm::WebAssemblyMCAsmInfo::~WebAssemblyMCAsmInfo
~WebAssemblyMCAsmInfo() override
llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo
WebAssemblyMCAsmInfo(const Triple &T, const MCTargetOptions &Options)
Definition
WebAssemblyMCAsmInfo.cpp:36
llvm::WebAssembly
Definition
WasmEHFuncInfo.h:26
llvm::WebAssembly::Specifier
Specifier
Definition
WebAssemblyMCAsmInfo.h:31
llvm::WebAssembly::S_None
@ S_None
Definition
WebAssemblyMCAsmInfo.h:32
llvm::WebAssembly::S_FUNCINDEX
@ S_FUNCINDEX
Definition
WebAssemblyMCAsmInfo.h:33
llvm::WebAssembly::S_GOT_TLS
@ S_GOT_TLS
Definition
WebAssemblyMCAsmInfo.h:35
llvm::WebAssembly::S_TLSREL
@ S_TLSREL
Definition
WebAssemblyMCAsmInfo.h:38
llvm::WebAssembly::S_TYPEINDEX
@ S_TYPEINDEX
Definition
WebAssemblyMCAsmInfo.h:39
llvm::WebAssembly::S_MBREL
@ S_MBREL
Definition
WebAssemblyMCAsmInfo.h:36
llvm::WebAssembly::S_TBREL
@ S_TBREL
Definition
WebAssemblyMCAsmInfo.h:37
llvm::WebAssembly::S_GOT
@ S_GOT
Definition
WebAssemblyMCAsmInfo.h:34
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
AddressRanges.h:18
Generated on
for LLVM by
1.14.0