|
LLVM
4.0.0
|
Flags for symbols in the JIT. More...
#include <JITSymbol.h>
Public Types | |
| enum | FlagNames : UnderlyingType { None = 0, Weak = 1U << 0, Common = 1U << 1, Absolute = 1U << 2, Exported = 1U << 3 } |
| typedef uint8_t | UnderlyingType |
Public Member Functions | |
| JITSymbolFlags () | |
| Default-construct a JITSymbolFlags instance. More... | |
| JITSymbolFlags (FlagNames Flags) | |
| Construct a JITSymbolFlags instance from the given flags. 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 36 of file JITSymbol.h.
| typedef uint8_t llvm::JITSymbolFlags::UnderlyingType |
Definition at line 38 of file JITSymbol.h.
| Enumerator | |
|---|---|
| None | |
| Weak | |
| Common | |
| Absolute | |
| Exported | |
Definition at line 40 of file JITSymbol.h.
|
inline |
Default-construct a JITSymbolFlags instance.
Definition at line 49 of file JITSymbol.h.
|
inline |
Construct a JITSymbolFlags instance from the given flags.
Definition at line 52 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, fuzzer::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, fuzzer::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 |
Returns true is the Weak flag is set.
Definition at line 60 of file JITSymbol.h.
References Common.
Referenced by isStrongDefinition().
|
inline |
Returns true is the Weak flag is set.
Definition at line 69 of file JITSymbol.h.
References Exported.
|
inline |
Definition at line 64 of file JITSymbol.h.
References isCommon(), and isWeak().
|
inline |
Returns true is the Weak flag is set.
Definition at line 55 of file JITSymbol.h.
References Weak.
Referenced by isStrongDefinition(), and llvm::RuntimeDyldImpl::loadObjectImpl().
|
inline |
Definition at line 73 of file JITSymbol.h.
1.8.6