LLVM  8.0.1
Public Member Functions | Static Public Member Functions | List of all members
llvm::MCSymbolWasm Class Reference

#include "llvm/MC/MCSymbolWasm.h"

Inheritance diagram for llvm::MCSymbolWasm:
Inheritance graph
[legend]
Collaboration diagram for llvm::MCSymbolWasm:
Collaboration graph
[legend]

Public Member Functions

 MCSymbolWasm (const StringMapEntry< bool > *Name, bool isTemporary)
 
const MCExprgetSize () const
 
void setSize (const MCExpr *SS)
 
bool isFunction () const
 
bool isData () const
 
bool isGlobal () const
 
bool isSection () const
 
bool isEvent () const
 
wasm::WasmSymbolType getType () const
 
void setType (wasm::WasmSymbolType type)
 
bool isWeak () const
 
void setWeak (bool isWeak)
 
bool isHidden () const
 
void setHidden (bool isHidden)
 
bool isComdat () const
 
void setComdat (bool isComdat)
 
const StringRef getImportModule () const
 
void setImportModule (StringRef Name)
 
const StringRef getImportName () const
 
void setImportName (StringRef Name)
 
const wasm::WasmSignaturegetSignature () const
 
void setSignature (wasm::WasmSignature *Sig)
 
const wasm::WasmGlobalTypegetGlobalType () const
 
void setGlobalType (wasm::WasmGlobalType GT)
 
const wasm::WasmEventTypegetEventType () const
 
void setEventType (wasm::WasmEventType ET)
 
- Public Member Functions inherited from llvm::MCSymbol
 MCSymbol (const MCSymbol &)=delete
 
MCSymboloperator= (const MCSymbol &)=delete
 
StringRef getName () const
 getName - Get the symbol name. More...
 
bool isRegistered () const
 
void setIsRegistered (bool Value) const
 
void setUsedInReloc () const
 
bool isUsedInReloc () const
 
uint32_t getIndex () const
 Get the (implementation defined) index. More...
 
void setIndex (uint32_t Value) const
 Set the (implementation defined) index. More...
 
bool isUnset () const
 
uint64_t getOffset () const
 
void setOffset (uint64_t Value)
 
uint64_t getCommonSize () const
 Return the size of a 'common' symbol. More...
 
void setCommon (uint64_t Size, unsigned Align)
 Mark this symbol as being 'common'. More...
 
unsigned getCommonAlignment () const
 Return the alignment of a 'common' symbol. More...
 
bool declareCommon (uint64_t Size, unsigned Align)
 Declare this symbol as being 'common'. More...
 
bool isCommon () const
 Is this a 'common' symbol. More...
 
MCFragmentgetFragment (bool SetUsed=true) const
 
bool isExternal () const
 
void setExternal (bool Value) const
 
bool isPrivateExtern () const
 
void setPrivateExtern (bool Value)
 
void print (raw_ostream &OS, const MCAsmInfo *MAI) const
 print - Print the value to the stream OS. More...
 
void dump () const
 dump - Print the value to stderr. More...
 
bool isTemporary () const
 isTemporary - Check if this is an assembler temporary symbol. More...
 
bool isUsed () const
 isUsed - Check if this is used. More...
 
bool isRedefinable () const
 Check if this symbol is redefinable. More...
 
void setRedefinable (bool Value)
 Mark this symbol as redefinable. More...
 
void redefineIfPossible ()
 Prepare this symbol to be redefined. More...
 
bool isDefined () const
 isDefined - Check if this symbol is defined (i.e., it has an address). More...
 
bool isInSection () const
 isInSection - Check if this symbol is defined in some section (i.e., it is defined but not absolute). More...
 
bool isUndefined (bool SetUsed=true) const
 isUndefined - Check if this symbol undefined (i.e., implicitly defined). More...
 
bool isAbsolute () const
 isAbsolute - Check if this is an absolute symbol. More...
 
MCSectiongetSection () const
 Get the section associated with a defined, non-absolute symbol. More...
 
void setFragment (MCFragment *F) const
 Mark the symbol as defined in the fragment F. More...
 
void setUndefined ()
 Mark the symbol as undefined. More...
 
bool isELF () const
 
bool isCOFF () const
 
bool isMachO () const
 
bool isWasm () const
 
bool isVariable () const
 isVariable - Check if this is a variable symbol. More...
 
const MCExprgetVariableValue (bool SetUsed=true) const
 getVariableValue - Get the value for variable symbols. More...
 
void setVariableValue (const MCExpr *Value)
 

Static Public Member Functions

static bool classof (const MCSymbol *S)
 

Additional Inherited Members

- Protected Types inherited from llvm::MCSymbol
enum  SymbolKind {
  SymbolKindUnset, SymbolKindCOFF, SymbolKindELF, SymbolKindMachO,
  SymbolKindWasm
}
 The kind of the symbol. More...
 
enum  Contents : uint8_t { SymContentsUnset, SymContentsOffset, SymContentsVariable, SymContentsCommon }
 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', or -1. 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. More...
 
- Protected Member Functions inherited from llvm::MCSymbol
 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. More...
 
void setFlags (uint32_t Value) const
 Set the (implementation defined) symbol flags. More...
 
void modifyFlags (uint32_t Value, uint32_t Mask) const
 Modify the flags via a mask. More...
 
- Protected Attributes inherited from llvm::MCSymbol
PointerIntPair< MCFragment *, 1 > FragmentAndHasName
 If a symbol has a Fragment, the section is implied, so we only need one pointer. More...
 
unsigned IsTemporary: 1
 IsTemporary - True if this is an assembler temporary label, which typically does not survive in the .o file's symbol table. More...
 
unsigned IsRedefinable: 1
 True if this symbol can be redefined. More...
 
unsigned IsUsed: 1
 IsUsed - True if this symbol has been used. More...
 
unsigned IsRegistered: 1
 
unsigned IsExternal: 1
 This symbol is visible outside this translation unit. More...
 
unsigned IsPrivateExtern: 1
 This symbol is private extern. More...
 
unsigned Kind: 3
 LLVM RTTI discriminator. More...
 
unsigned IsUsedInReloc: 1
 True if we have created a relocation that uses this symbol. More...
 
unsigned SymbolContents: 2
 This is actually a Contents enumerator, but is unsigned to avoid sign extension and achieve better bitpacking with MSVC. More...
 
unsigned CommonAlignLog2: NumCommonAlignmentBits
 
uint32_t Flags: NumFlagsBits
 
uint32_t Index = 0
 Index field, for use by the object file implementation. More...
 
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 Protected Attributes inherited from llvm::MCSymbol
static MCFragmentAbsolutePseudoFragment = &SentinelFragment
 

Detailed Description

Definition at line 17 of file MCSymbolWasm.h.

Constructor & Destructor Documentation

◆ MCSymbolWasm()

llvm::MCSymbolWasm::MCSymbolWasm ( const StringMapEntry< bool > *  Name,
bool  isTemporary 
)
inline

Definition at line 35 of file MCSymbolWasm.h.

Member Function Documentation

◆ classof()

static bool llvm::MCSymbolWasm::classof ( const MCSymbol S)
inlinestatic

Definition at line 37 of file MCSymbolWasm.h.

References llvm::MCSymbol::isWasm().

◆ getEventType()

const wasm::WasmEventType& llvm::MCSymbolWasm::getEventType ( ) const
inline

◆ getGlobalType()

const wasm::WasmGlobalType& llvm::MCSymbolWasm::getGlobalType ( ) const
inline

◆ getImportModule()

const StringRef llvm::MCSymbolWasm::getImportModule ( ) const
inline

Definition at line 59 of file MCSymbolWasm.h.

References llvm::Optional< T >::getValue(), and llvm::Optional< T >::hasValue().

Referenced by isInSymtab().

◆ getImportName()

const StringRef llvm::MCSymbolWasm::getImportName ( ) const
inline

◆ getSignature()

const wasm::WasmSignature* llvm::MCSymbolWasm::getSignature ( ) const
inline

◆ getSize()

const MCExpr* llvm::MCSymbolWasm::getSize ( ) const
inline

Definition at line 39 of file MCSymbolWasm.h.

Referenced by isInSymtab().

◆ getType()

wasm::WasmSymbolType llvm::MCSymbolWasm::getType ( ) const
inline

Definition at line 47 of file MCSymbolWasm.h.

◆ isComdat()

bool llvm::MCSymbolWasm::isComdat ( ) const
inline

Definition at line 56 of file MCSymbolWasm.h.

Referenced by isInSymtab(), and setComdat().

◆ isData()

bool llvm::MCSymbolWasm::isData ( ) const
inline

Definition at line 43 of file MCSymbolWasm.h.

References llvm::wasm::WASM_SYMBOL_TYPE_DATA.

Referenced by isInSymtab().

◆ isEvent()

bool llvm::MCSymbolWasm::isEvent ( ) const
inline

◆ isFunction()

bool llvm::MCSymbolWasm::isFunction ( ) const
inline

◆ isGlobal()

bool llvm::MCSymbolWasm::isGlobal ( ) const
inline

◆ isHidden()

bool llvm::MCSymbolWasm::isHidden ( ) const
inline

Definition at line 53 of file MCSymbolWasm.h.

Referenced by setHidden().

◆ isSection()

bool llvm::MCSymbolWasm::isSection ( ) const
inline

Definition at line 45 of file MCSymbolWasm.h.

References llvm::wasm::WASM_SYMBOL_TYPE_SECTION.

Referenced by isInSymtab().

◆ isWeak()

bool llvm::MCSymbolWasm::isWeak ( ) const
inline

Definition at line 50 of file MCSymbolWasm.h.

Referenced by setWeak().

◆ setComdat()

void llvm::MCSymbolWasm::setComdat ( bool  isComdat)
inline

Definition at line 57 of file MCSymbolWasm.h.

References isComdat().

Referenced by llvm::MCContext::getWasmSection().

◆ setEventType()

void llvm::MCSymbolWasm::setEventType ( wasm::WasmEventType  ET)
inline

Definition at line 88 of file MCSymbolWasm.h.

◆ setGlobalType()

void llvm::MCSymbolWasm::setGlobalType ( wasm::WasmGlobalType  GT)
inline

Definition at line 82 of file MCSymbolWasm.h.

References llvm::AArch64CC::GT.

◆ setHidden()

void llvm::MCSymbolWasm::setHidden ( bool  isHidden)
inline

Definition at line 54 of file MCSymbolWasm.h.

References isHidden().

◆ setImportModule()

void llvm::MCSymbolWasm::setImportModule ( StringRef  Name)
inline

Definition at line 65 of file MCSymbolWasm.h.

References Name.

◆ setImportName()

void llvm::MCSymbolWasm::setImportName ( StringRef  Name)
inline

Definition at line 73 of file MCSymbolWasm.h.

References Name.

◆ setSignature()

void llvm::MCSymbolWasm::setSignature ( wasm::WasmSignature Sig)
inline

Definition at line 76 of file MCSymbolWasm.h.

Referenced by llvm::WebAssemblyMCInstLower::Lower().

◆ setSize()

void llvm::MCSymbolWasm::setSize ( const MCExpr SS)
inline

Definition at line 40 of file MCSymbolWasm.h.

◆ setType()

void llvm::MCSymbolWasm::setType ( wasm::WasmSymbolType  type)
inline

Definition at line 48 of file MCSymbolWasm.h.

Referenced by llvm::WebAssemblyMCInstLower::Lower().

◆ setWeak()

void llvm::MCSymbolWasm::setWeak ( bool  isWeak)
inline

Definition at line 51 of file MCSymbolWasm.h.

References isWeak().


The documentation for this class was generated from the following file: