LLVM  8.0.0svn
Public Member Functions | List of all members
llvm::orc::JITSymbolResolverAdapter Class Reference

Legacy adapter. Remove once we kill off the old ORC layers. More...

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

Inheritance diagram for llvm::orc::JITSymbolResolverAdapter:
Inheritance graph
[legend]
Collaboration diagram for llvm::orc::JITSymbolResolverAdapter:
Collaboration graph
[legend]

Public Member Functions

 JITSymbolResolverAdapter (ExecutionSession &ES, SymbolResolver &R, MaterializationResponsibility *MR)
 
Expected< LookupSetgetResponsibilitySet (const LookupSet &Symbols) override
 Returns the subset of the given symbols that should be materialized by the caller. More...
 
void lookup (const LookupSet &Symbols, OnResolvedFunction OnResolved) override
 Returns the fully resolved address and flags for each of the given symbols. More...
 
- Public Member Functions inherited from llvm::JITSymbolResolver
virtual ~JITSymbolResolver ()=default
 

Additional Inherited Members

- Public Types inherited from llvm::JITSymbolResolver
using LookupSet = std::set< StringRef >
 
using LookupResult = std::map< StringRef, JITEvaluatedSymbol >
 
using OnResolvedFunction = std::function< void(Expected< LookupResult >)>
 

Detailed Description

Legacy adapter. Remove once we kill off the old ORC layers.

Definition at line 94 of file Legacy.h.

Constructor & Destructor Documentation

◆ JITSymbolResolverAdapter()

llvm::orc::JITSymbolResolverAdapter::JITSymbolResolverAdapter ( ExecutionSession ES,
SymbolResolver R,
MaterializationResponsibility MR 
)

Definition at line 17 of file Legacy.cpp.

Member Function Documentation

◆ getResponsibilitySet()

Expected< JITSymbolResolverAdapter::LookupSet > llvm::orc::JITSymbolResolverAdapter::getResponsibilitySet ( const LookupSet Symbols)
overridevirtual

Returns the subset of the given symbols that should be materialized by the caller.

Only weak/common symbols should be looked up, as strong definitions are implicitly always part of the caller's responsibility.

Implements llvm::JITSymbolResolver.

Definition at line 52 of file Legacy.cpp.

References llvm::orc::SymbolResolver::getResponsibilitySet(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), and llvm::orc::ExecutionSession::intern().

◆ lookup()

void llvm::orc::JITSymbolResolverAdapter::lookup ( const LookupSet Symbols,
OnResolvedFunction  OnResolved 
)
overridevirtual

Returns the fully resolved address and flags for each of the given symbols.

This method will return an error if any of the given symbols can not be resolved, or if the resolution process itself triggers an error.

Implements llvm::JITSymbolResolver.

Definition at line 21 of file Legacy.cpp.

References llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), and llvm::orc::ExecutionSession::intern().


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