LLVM  7.0.0
Public Member Functions | List of all members
llvm::orc::ReExportsMaterializationUnit Class Reference

A materialization unit for symbol aliases. More...

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

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

Public Member Functions

 ReExportsMaterializationUnit (VSO *SourceVSO, SymbolAliasMap Aliases)
 SourceVSO is allowed to be nullptr, in which case the source VSO is taken to be whatever VSO these definitions are materialized in. More...
 
- Public Member Functions inherited from llvm::orc::MaterializationUnit
 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...
 

Additional Inherited Members

- Protected Attributes inherited from llvm::orc::MaterializationUnit
SymbolFlagsMap SymbolFlags
 

Detailed Description

A materialization unit for symbol aliases.

Allows existing symbols to be aliased with alternate flags.

Definition at line 296 of file Core.h.

Constructor & Destructor Documentation

◆ ReExportsMaterializationUnit()

llvm::orc::ReExportsMaterializationUnit::ReExportsMaterializationUnit ( VSO *  SourceVSO,
SymbolAliasMap  Aliases 
)

SourceVSO is allowed to be nullptr, in which case the source VSO is taken to be whatever VSO these definitions are materialized in.

This is useful for defining aliases within a VSO.

Note: Care must be taken that no sets of aliases form a cycle, as such a cycle will result in a deadlock when any symbol in the cycle is resolved.

Definition at line 725 of file Core.cpp.

References assert(), llvm::orc::MaterializationResponsibility::delegate(), E, llvm::orc::VSO::getExecutionSession(), llvm::orc::MaterializationResponsibility::getRequestedSymbols(), llvm::orc::MaterializationResponsibility::getTargetVSO(), I, llvm::orc::reexports(), llvm::orc::MaterializationResponsibility::replace(), Result, and llvm::orc::symbolAliases().


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