LLVM  5.0.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::JITSymbolFlags Class Reference

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...
 

Detailed Description

Flags for symbols in the JIT.

Definition at line 40 of file JITSymbol.h.

Member Typedef Documentation

Definition at line 42 of file JITSymbol.h.

Member Enumeration Documentation

Enumerator
None 
HasError 
Weak 
Common 
Absolute 
Exported 

Definition at line 44 of file JITSymbol.h.

Constructor & Destructor Documentation

llvm::JITSymbolFlags::JITSymbolFlags ( )
default

Default-construct a JITSymbolFlags instance.

llvm::JITSymbolFlags::JITSymbolFlags ( FlagNames  Flags)
inline

Construct a JITSymbolFlags instance from the given flags.

Definition at line 57 of file JITSymbol.h.

Member Function Documentation

JITSymbolFlags llvm::JITSymbolFlags::fromGlobalValue ( const GlobalValue &  GV)
static
JITSymbolFlags llvm::JITSymbolFlags::fromObjectSymbol ( const object::BasicSymbolRef &  Symbol)
static
bool llvm::JITSymbolFlags::hasError ( ) const
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().

bool llvm::JITSymbolFlags::isCommon ( ) const
inline

Returns true is the Weak flag is set.

Definition at line 70 of file JITSymbol.h.

References Common.

Referenced by isStrongDefinition().

bool llvm::JITSymbolFlags::isExported ( ) const
inline

Returns true is the Weak flag is set.

Definition at line 79 of file JITSymbol.h.

References Exported.

bool llvm::JITSymbolFlags::isStrongDefinition ( ) const
inline

Definition at line 74 of file JITSymbol.h.

References isCommon(), and isWeak().

bool llvm::JITSymbolFlags::isWeak ( ) const
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().

llvm::JITSymbolFlags::operator UnderlyingType & ( )
inline

Definition at line 83 of file JITSymbol.h.


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