|
LLVM
5.0.0
|
Flags for symbols in the JIT. More...
#include "llvm/ExecutionEngine/JITSymbol.h"
Public Types | |
| enum | FlagNames : UnderlyingType { None = 0, HasError = 1U << 0, Weak = 1U << 1, Common = 1U << 2, Absolute = 1U << 3, Exported = 1U << 4 } |
| using | UnderlyingType = uint8_t |
Public Member Functions | |
| JITSymbolFlags ()=default | |
| Default-construct a JITSymbolFlags instance. More... | |
| JITSymbolFlags (FlagNames Flags) | |
| Construct a JITSymbolFlags instance from the given flags. More... | |
| bool | hasError () const |
| Return true if there was an error retrieving this symbol. More... | |
| bool | isWeak () const |
| Returns true is the Weak flag is set. More... | |
| bool | isCommon () const |
| Returns true is the Weak flag is set. More... | |
| bool | isStrongDefinition () const |
| bool | isExported () const |
| Returns true is the Weak flag is set. More... | |
| operator UnderlyingType & () | |
Static Public Member Functions | |
| static JITSymbolFlags | fromGlobalValue (const GlobalValue &GV) |
| Construct a JITSymbolFlags value based on the flags of the given global value. More... | |
| static JITSymbolFlags | fromObjectSymbol (const object::BasicSymbolRef &Symbol) |
| Construct a JITSymbolFlags value based on the flags of the given libobject symbol. More... | |
Flags for symbols in the JIT.
Definition at line 40 of file JITSymbol.h.
| using llvm::JITSymbolFlags::UnderlyingType = uint8_t |
Definition at line 42 of file JITSymbol.h.
| Enumerator | |
|---|---|
| None | |
| HasError | |
| Weak | |
| Common | |
| Absolute | |
| Exported | |
Definition at line 44 of file JITSymbol.h.
|
default |
Default-construct a JITSymbolFlags instance.
|
inline |
Construct a JITSymbolFlags instance from the given flags.
Definition at line 57 of file JITSymbol.h.
|
static |
Construct a JITSymbolFlags value based on the flags of the given global value.
Definition at line 20 of file JITSymbol.cpp.
References Common, Exported, Flags, llvm::GlobalValue::hasCommonLinkage(), llvm::GlobalValue::hasHiddenVisibility(), llvm::GlobalValue::hasLinkOnceLinkage(), llvm::GlobalValue::hasLocalLinkage(), llvm::GlobalValue::hasWeakLinkage(), None, and Weak.
|
static |
Construct a JITSymbolFlags value based on the flags of the given libobject symbol.
Definition at line 32 of file JITSymbol.cpp.
References Common, Exported, Flags, llvm::object::BasicSymbolRef::getFlags(), None, llvm::object::BasicSymbolRef::SF_Common, llvm::object::BasicSymbolRef::SF_Exported, llvm::object::BasicSymbolRef::SF_Weak, and Weak.
Referenced by llvm::RuntimeDyldImpl::emitCommonSymbols(), and llvm::RuntimeDyldImpl::loadObjectImpl().
|
inline |
Return true if there was an error retrieving this symbol.
Definition at line 60 of file JITSymbol.h.
References HasError.
Referenced by llvm::JITSymbol::getAddress(), llvm::JITSymbol::JITSymbol(), llvm::JITSymbol::operator bool(), llvm::JITSymbol::operator=(), llvm::JITSymbol::takeError(), and llvm::JITSymbol::~JITSymbol().
|
inline |
Returns true is the Weak flag is set.
Definition at line 70 of file JITSymbol.h.
References Common.
Referenced by isStrongDefinition().
|
inline |
Returns true is the Weak flag is set.
Definition at line 79 of file JITSymbol.h.
References Exported.
|
inline |
Definition at line 74 of file JITSymbol.h.
References isCommon(), and isWeak().
|
inline |
Returns true is the Weak flag is set.
Definition at line 65 of file JITSymbol.h.
References Weak.
Referenced by isStrongDefinition(), and llvm::RuntimeDyldImpl::loadObjectImpl().
|
inline |
Definition at line 83 of file JITSymbol.h.
1.8.6