LLVM 17.0.0git
|
#include "llvm/MC/MCSymbolWasm.h"
Static Public Member Functions | |
static bool | classof (const MCSymbol *S) |
Additional Inherited Members | |
![]() | |
enum | SymbolKind { SymbolKindUnset , SymbolKindCOFF , SymbolKindELF , SymbolKindGOFF , SymbolKindMachO , SymbolKindWasm , SymbolKindXCOFF } |
The kind of the symbol. More... | |
enum | Contents : uint8_t { SymContentsUnset , SymContentsOffset , SymContentsVariable , SymContentsCommon , SymContentsTargetCommon } |
A symbol can contain an Offset, or Value, or be Common, but never more than one of these. More... | |
enum | : unsigned { NumCommonAlignmentBits = 5 } |
The alignment of the symbol if it is 'common'. More... | |
enum | : unsigned { NumFlagsBits = 16 } |
The Flags field is used by object file implementations to store additional per symbol information which is not easily classified. More... | |
using | NameEntryStorageTy = union { const StringMapEntry< bool > *NameEntry |
The name for a symbol. | |
![]() | |
MCSymbol (SymbolKind Kind, const StringMapEntry< bool > *Name, bool isTemporary) | |
void * | operator new (size_t s, const StringMapEntry< bool > *Name, MCContext &Ctx) |
uint32_t | getFlags () const |
Get the (implementation defined) symbol flags. | |
void | setFlags (uint32_t Value) const |
Set the (implementation defined) symbol flags. | |
void | modifyFlags (uint32_t Value, uint32_t Mask) const |
Modify the flags via a mask. | |
![]() | |
PointerIntPair< MCFragment *, 1 > | FragmentAndHasName |
If a symbol has a Fragment, the section is implied, so we only need one pointer. | |
unsigned | IsTemporary: 1 |
IsTemporary - True if this is an assembler temporary label, which typically does not survive in the .o file's symbol table. | |
unsigned | IsRedefinable: 1 |
True if this symbol can be redefined. | |
unsigned | IsUsed: 1 |
IsUsed - True if this symbol has been used. | |
unsigned | IsRegistered: 1 |
unsigned | IsExternal: 1 |
True if this symbol is visible outside this translation unit. | |
unsigned | IsPrivateExtern: 1 |
This symbol is private extern. | |
unsigned | Kind: 3 |
LLVM RTTI discriminator. | |
unsigned | IsUsedInReloc: 1 |
True if we have created a relocation that uses this symbol. | |
unsigned | SymbolContents: 3 |
This is actually a Contents enumerator, but is unsigned to avoid sign extension and achieve better bitpacking with MSVC. | |
unsigned | CommonAlignLog2: NumCommonAlignmentBits |
uint32_t | Flags: NumFlagsBits |
uint32_t | Index = 0 |
Index field, for use by the object file implementation. | |
union { | |
uint64_t Offset | |
The offset to apply to the fragment address to form this symbol's value. More... | |
uint64_t CommonSize | |
The size of the symbol, if it is 'common'. More... | |
const MCExpr * Value | |
If non-null, the value for a variable symbol. More... | |
}; | |
uint64_t | AlignmentPadding |
![]() | |
static MCFragment * | AbsolutePseudoFragment = &SentinelFragment |
Definition at line 16 of file MCSymbolWasm.h.
|
inline |
Definition at line 36 of file MCSymbolWasm.h.
Definition at line 38 of file MCSymbolWasm.h.
References llvm::MCSymbol::isWasm().
|
inline |
Definition at line 110 of file MCSymbolWasm.h.
|
inline |
Definition at line 131 of file MCSymbolWasm.h.
References assert().
Referenced by llvm::WebAssemblyTargetAsmStreamer::emitGlobalType().
|
inline |
Definition at line 90 of file MCSymbolWasm.h.
|
inline |
Definition at line 102 of file MCSymbolWasm.h.
References llvm::MCSymbol::getName().
|
inline |
Definition at line 128 of file MCSymbolWasm.h.
Referenced by llvm::WebAssemblyTargetAsmStreamer::emitFunctionType(), and llvm::WebAssemblyTargetAsmStreamer::emitTagType().
Definition at line 40 of file MCSymbolWasm.h.
|
inline |
Definition at line 138 of file MCSymbolWasm.h.
References assert(), and hasTableType().
Referenced by llvm::WebAssemblyTargetAsmStreamer::emitTableType(), and isFunctionTable().
|
inline |
Definition at line 51 of file MCSymbolWasm.h.
Referenced by llvm::WebAssemblyAsmPrinter::emitGlobalVariable(), llvm::WebAssemblyAsmPrinter::emitSymbolType(), and llvm::WebAssembly::wasmSymbolSetType().
|
inline |
Definition at line 109 of file MCSymbolWasm.h.
|
inline |
Definition at line 89 of file MCSymbolWasm.h.
|
inline |
Definition at line 101 of file MCSymbolWasm.h.
|
inline |
Definition at line 137 of file MCSymbolWasm.h.
Referenced by getTableType(), and isFunctionTable().
|
inline |
Definition at line 80 of file MCSymbolWasm.h.
Referenced by isInSymtab(), and setComdat().
|
inline |
Definition at line 45 of file MCSymbolWasm.h.
References llvm::wasm::WASM_SYMBOL_TYPE_DATA.
|
inline |
Definition at line 55 of file MCSymbolWasm.h.
References llvm::MCSymbol::getFlags(), and llvm::wasm::WASM_SYMBOL_EXPORTED.
|
inline |
Definition at line 43 of file MCSymbolWasm.h.
References llvm::wasm::WASM_SYMBOL_TYPE_FUNCTION.
Referenced by llvm::WebAssemblyTargetAsmStreamer::emitFunctionType().
|
inline |
Definition at line 113 of file MCSymbolWasm.h.
References llvm::wasm::WasmTableType::ElemType, getTableType(), hasTableType(), isTable(), and llvm::wasm::WASM_TYPE_FUNCREF.
Referenced by llvm::WebAssembly::getOrCreateFuncrefCallTableSymbol(), and llvm::WebAssembly::getOrCreateFunctionTableSymbol().
|
inline |
Definition at line 46 of file MCSymbolWasm.h.
References llvm::wasm::WASM_SYMBOL_TYPE_GLOBAL.
Referenced by llvm::WebAssemblyTargetAsmStreamer::emitGlobalType().
|
inline |
Definition at line 77 of file MCSymbolWasm.h.
Referenced by setHidden().
|
inline |
Definition at line 62 of file MCSymbolWasm.h.
References llvm::MCSymbol::getFlags(), and llvm::wasm::WASM_SYMBOL_NO_STRIP.
|
inline |
Definition at line 48 of file MCSymbolWasm.h.
References llvm::wasm::WASM_SYMBOL_TYPE_SECTION.
Referenced by isInSymtab().
|
inline |
Definition at line 47 of file MCSymbolWasm.h.
References llvm::wasm::WASM_SYMBOL_TYPE_TABLE.
Referenced by llvm::WebAssemblyTargetAsmStreamer::emitTableType(), and isFunctionTable().
|
inline |
Definition at line 49 of file MCSymbolWasm.h.
References llvm::wasm::WASM_SYMBOL_TYPE_TAG.
Referenced by llvm::WebAssemblyTargetAsmStreamer::emitTagType().
|
inline |
Definition at line 69 of file MCSymbolWasm.h.
References llvm::MCSymbol::getFlags(), and llvm::wasm::WASM_SYMBOL_TLS.
|
inline |
Definition at line 123 of file MCSymbolWasm.h.
|
inline |
Definition at line 126 of file MCSymbolWasm.h.
Referenced by isInSymtab().
|
inline |
Definition at line 74 of file MCSymbolWasm.h.
Referenced by setWeak().
|
inline |
Definition at line 86 of file MCSymbolWasm.h.
Referenced by isInSymtab().
|
inline |
Definition at line 81 of file MCSymbolWasm.h.
References isComdat().
Referenced by llvm::MCContext::getWasmSection().
|
inline |
Definition at line 58 of file MCSymbolWasm.h.
References llvm::MCSymbol::modifyFlags(), and llvm::wasm::WASM_SYMBOL_EXPORTED.
|
inline |
Definition at line 111 of file MCSymbolWasm.h.
References Name.
|
inline |
Definition at line 117 of file MCSymbolWasm.h.
References llvm::wasm::FUNCREF, setTableType(), setType(), and llvm::wasm::WASM_SYMBOL_TYPE_TABLE.
Referenced by llvm::WebAssembly::getOrCreateFunctionTableSymbol().
|
inline |
Definition at line 135 of file MCSymbolWasm.h.
Referenced by llvm::WebAssembly::wasmSymbolSetType().
|
inline |
Definition at line 78 of file MCSymbolWasm.h.
References isHidden().
|
inline |
Definition at line 99 of file MCSymbolWasm.h.
References Name.
|
inline |
Definition at line 107 of file MCSymbolWasm.h.
References Name.
|
inline |
Definition at line 65 of file MCSymbolWasm.h.
References llvm::MCSymbol::modifyFlags(), and llvm::wasm::WASM_SYMBOL_NO_STRIP.
Referenced by LowerCallResults().
|
inline |
Definition at line 87 of file MCSymbolWasm.h.
Referenced by llvm::WebAssembly::getOrCreateFuncrefCallTableSymbol(), and llvm::WebAssembly::getOrCreateFunctionTableSymbol().
|
inline |
Definition at line 129 of file MCSymbolWasm.h.
Definition at line 41 of file MCSymbolWasm.h.
|
inline |
Definition at line 143 of file MCSymbolWasm.h.
References setTableType(), and llvm::wasm::WASM_LIMITS_FLAG_NONE.
|
inline |
Definition at line 142 of file MCSymbolWasm.h.
Referenced by llvm::WebAssembly::getOrCreateFuncrefCallTableSymbol(), setFunctionTable(), setTableType(), and llvm::WebAssembly::wasmSymbolSetType().
|
inline |
Definition at line 70 of file MCSymbolWasm.h.
References llvm::MCSymbol::modifyFlags(), and llvm::wasm::WASM_SYMBOL_TLS.
|
inline |
Definition at line 53 of file MCSymbolWasm.h.
Referenced by llvm::WebAssembly::getOrCreateFuncrefCallTableSymbol(), setFunctionTable(), and llvm::WebAssembly::wasmSymbolSetType().
|
inline |
Definition at line 122 of file MCSymbolWasm.h.
|
inline |
Definition at line 125 of file MCSymbolWasm.h.
|
inline |
Definition at line 75 of file MCSymbolWasm.h.
References isWeak().
Referenced by llvm::WebAssembly::getOrCreateFuncrefCallTableSymbol().