LLVM  7.0.0
Public Member Functions | Protected Attributes | List of all members
llvm::orc::MaterializationUnit Class Referenceabstract

A MaterializationUnit represents a set of symbol definitions that can be materialized as a group, or individually discarded (when overriding definitions are encountered). More...

#include "llvm/ExecutionEngine/Orc/Core.h"

Inheritance diagram for llvm::orc::MaterializationUnit:
[legend]
Collaboration diagram for llvm::orc::MaterializationUnit:
[legend]

Public Member Functions

 MaterializationUnit (SymbolFlagsMap InitalSymbolFlags)
 
virtual ~MaterializationUnit ()
 
const SymbolFlagsMap & getSymbols () const
 Return the set of symbols that this source provides. More...
 
void doMaterialize (VSO &V)
 Called by materialization dispatchers (see ExecutionSession::DispatchMaterializationFunction) to trigger materialization of this MaterializationUnit. More...
 
void doDiscard (const VSO &V, SymbolStringPtr Name)
 Called by VSOs to notify MaterializationUnits that the given symbol has been overridden. More...
 

Protected Attributes

SymbolFlagsMap SymbolFlags
 

Detailed Description

A MaterializationUnit represents a set of symbol definitions that can be materialized as a group, or individually discarded (when overriding definitions are encountered).

MaterializationUnits are used when providing lazy definitions of symbols to VSOs. The VSO will call materialize when the address of a symbol is requested via the lookup method. The VSO will call discard if a stronger definition is added or already present.

Definition at line 205 of file Core.h.

Constructor & Destructor Documentation

◆ MaterializationUnit()

llvm::orc::MaterializationUnit::MaterializationUnit ( SymbolFlagsMap  InitalSymbolFlags)
inline

Definition at line 207 of file Core.h.

◆ ~MaterializationUnit()

virtual llvm::orc::MaterializationUnit::~MaterializationUnit ( )
inlinevirtual

Definition at line 210 of file Core.h.

Member Function Documentation

◆ doDiscard()

void llvm::orc::MaterializationUnit::doDiscard ( const VSO &  V,
SymbolStringPtr  Name 
)
inline

Called by VSOs to notify MaterializationUnits that the given symbol has been overridden.

Definition at line 224 of file Core.h.

Referenced by llvm::orc::VSO::dump().

◆ doMaterialize()

void llvm::orc::MaterializationUnit::doMaterialize ( VSO &  V)
inline

Called by materialization dispatchers (see ExecutionSession::DispatchMaterializationFunction) to trigger materialization of this MaterializationUnit.

Definition at line 218 of file Core.h.

◆ getSymbols()

const SymbolFlagsMap& llvm::orc::MaterializationUnit::getSymbols ( ) const
inline

Return the set of symbols that this source provides.

Definition at line 213 of file Core.h.

Referenced by llvm::orc::VSO::dump().

Member Data Documentation

◆ SymbolFlags

SymbolFlagsMap llvm::orc::MaterializationUnit::SymbolFlags
protected

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