|
LLVM
7.0.0
|
Namespaces | |
| remote | |
| rpc | |
Classes | |
| class | AbsoluteSymbolsMaterializationUnit |
| A MaterializationUnit implementation for pre-existing absolute symbols. More... | |
| class | AsynchronousSymbolQuery |
| A symbol query that returns results via a callback when results are ready. More... | |
| class | BasicIRLayerMaterializationUnit |
| MaterializationUnit that materializes modules by calling the 'emit' method on the given IRLayer. More... | |
| class | BasicObjectLayerMaterializationUnit |
| Materializes the given object file (represented by a MemoryBuffer instance) by calling 'emit' on the given ObjectLayer. More... | |
| class | CompileOnDemandLayer |
| Compile-on-demand layer. More... | |
| class | CompileOnDemandLayer2 |
| class | CtorDtorIterator |
| This iterator provides a convenient way to iterate over the elements of an llvm.global_ctors/llvm.global_dtors instance. More... | |
| class | CtorDtorRunner |
| Convenience class for recording constructor/destructor names for later execution. More... | |
| class | CtorDtorRunner2 |
| class | DuplicateDefinition |
| class | DynamicLibraryFallbackGenerator |
| A utility class to expose symbols found via dlsym to the JIT. More... | |
| class | ExecutionSession |
| An ExecutionSession represents a running JIT program. More... | |
| class | ExecutionSessionBase |
| Base utilities for ExecutionSession. More... | |
| class | ExtractingIRMaterializationUnit |
| class | FailedToMaterialize |
| Used to notify a VSO that the given set of symbols failed to materialize. More... | |
| class | GenericIndirectStubsInfo |
| Provide information about stub blocks generated by the makeIndirectStubsBlock function. More... | |
| class | GlobalMappingLayer |
| Global mapping layer. More... | |
| class | GlobalRenamer |
| class | IndirectStubsManager |
| Base class for managing collections of named indirect stubs. More... | |
| class | IRCompileLayer |
| Eager IR compiling layer. More... | |
| class | IRCompileLayer2 |
| class | IRLayer |
| Interface for layers that accept LLVM IR. More... | |
| class | IRMaterializationUnit |
| IRMaterializationUnit is a convenient base class for MaterializationUnits wrapping LLVM IR. More... | |
| class | IRTransformLayer |
| IR mutating layer. More... | |
| class | IRTransformLayer2 |
| class | JITCompileCallbackManager |
| Target-independent base class for compile callback management. More... | |
| class | JITSymbolNotFound |
| class | JITSymbolResolverAdapter |
| class | JITTargetMachineBuilder |
| A utility class for building TargetMachines for JITs. More... | |
| class | LambdaResolver |
| class | LambdaSymbolResolver |
| Implements SymbolResolver with a pair of supplied function objects for convenience. More... | |
| class | LazyEmittingLayer |
| Lazy-emitting IR layer. More... | |
| class | LegacyLookupFnResolver |
| An ORC SymbolResolver implementation that uses a legacy findSymbol-like function to perform lookup;. More... | |
| class | LLJIT |
| A pre-fabricated ORC JIT stack that can serve as an alternative to MCJIT. More... | |
| class | LLLazyJIT |
| An extended version of LLJIT that supports lazy function-at-a-time compilation of LLVM IR. More... | |
| class | LocalCXXRuntimeOverrides |
| class | LocalCXXRuntimeOverrides2 |
| class | LocalCXXRuntimeOverridesBase |
| Support class for static dtor execution. More... | |
| class | LocalIndirectStubsManager |
| IndirectStubsManager implementation for the host architecture, e.g. More... | |
| class | LocalJITCompileCallbackManager |
| Manage compile callbacks for in-process JITs. More... | |
| class | MangleAndInterner |
| Mangles symbol names then uniques them in the context of an ExecutionSession. More... | |
| class | MaterializationResponsibility |
| Tracks responsibility for materialization, and mediates interactions between MaterializationUnits and VSOs. More... | |
| class | MaterializationUnit |
| A MaterializationUnit represents a set of symbol definitions that can be materialized as a group, or individually discarded (when overriding definitions are encountered). More... | |
| class | MultiThreadedSimpleCompiler |
| A thread-safe version of SimpleCompiler. More... | |
| class | NullLegacyResolver |
| SymbolResolver impliementation that rejects all resolution requests. More... | |
| class | NullResolver |
| class | ObjectLayer |
| Interface for Layers that accept object files. More... | |
| class | ObjectTransformLayer |
| Object mutating layer. More... | |
| class | ObjectTransformLayer2 |
| class | OrcAArch64 |
| class | OrcGenericABI |
| Generic ORC ABI support. More... | |
| class | OrcI386 |
| I386 support. More... | |
| class | OrcMCJITReplacement |
| class | OrcX86_64_Base |
| X86_64 code that's common to all ABIs. More... | |
| class | OrcX86_64_SysV |
| X86_64 support for SysV ABI (Linux, MacOSX). More... | |
| class | OrcX86_64_Win32 |
| X86_64 support for Win32. More... | |
| class | ReExportsMaterializationUnit |
| A materialization unit for symbol aliases. More... | |
| class | RemoteObjectClientLayer |
| RemoteObjectClientLayer forwards the ORC Object Layer API over an RPC connection. More... | |
| class | RemoteObjectLayer |
| Base class containing common utilities for RemoteObjectClientLayer and RemoteObjectServerLayer. More... | |
| class | RemoteObjectLayerAPI |
| RPC API needed by RemoteObjectClientLayer and RemoteObjectServerLayer. More... | |
| class | RemoteObjectServerLayer |
| RemoteObjectServerLayer acts as a server and handling RPC calls for the object layer API from the given RPC connection. More... | |
| class | RTDyldObjectLinkingLayer |
| Bare bones object linking layer. More... | |
| class | RTDyldObjectLinkingLayer2 |
| class | RTDyldObjectLinkingLayerBase |
| class | SimpleCompiler |
| Simple compile functor: Takes a single IR module and returns an ObjectFile. More... | |
| struct | SymbolAliasMapEntry |
| class | SymbolResolver |
| SymbolResolver is a composable interface for looking up symbol flags and addresses using the AsynchronousSymbolQuery type. More... | |
| class | SymbolsNotFound |
| Used to notify clients when symbols can not be found during a lookup. More... | |
| class | SymbolStringPool |
| String pool for symbol names used by the JIT. More... | |
| class | SymbolStringPtr |
| Pointer to a pooled string representing a symbol name. More... | |
| class | VSO |
| A symbol table that supports asynchoronous symbol queries. More... | |
Typedefs | |
| using | VModuleKey = uint64_t |
| VModuleKey provides a unique identifier (allocated and managed by ExecutionSessions) for a module added to the JIT. More... | |
| using | SymbolNameSet = std::set< SymbolStringPtr > |
| A set of symbol names (represented by SymbolStringPtrs for. More... | |
| using | SymbolMap = std::map< SymbolStringPtr, JITEvaluatedSymbol > |
| A map from symbol names (as SymbolStringPtrs) to JITSymbols (address/flags pairs). More... | |
| using | SymbolFlagsMap = std::map< SymbolStringPtr, JITSymbolFlags > |
| A map from symbol names (as SymbolStringPtrs) to JITSymbolFlags. More... | |
| using | SymbolDependenceMap = std::map< VSO *, SymbolNameSet > |
| A base class for materialization failures that allows the failing symbols to be obtained for logging. More... | |
| using | VSOList = std::vector< VSO * > |
| A list of VSO pointers. More... | |
| using | SymbolsResolvedCallback = std::function< void(Expected< SymbolMap >)> |
| Callback to notify client that symbols have been resolved. More... | |
| using | SymbolsReadyCallback = std::function< void(Error)> |
| Callback to notify client that symbols are ready for execution. More... | |
| using | RegisterDependenciesFunction = std::function< void(const SymbolDependenceMap &)> |
| Callback to register the dependencies for a given query. More... | |
| using | MaterializationUnitList = std::vector< std::unique_ptr< MaterializationUnit > > |
| using | SymbolAliasMap = std::map< SymbolStringPtr, SymbolAliasMapEntry > |
| A map of Symbols to (Symbol, Flags) pairs. More... | |
Functions | |
| raw_ostream & | operator<< (raw_ostream &OS, const SymbolNameSet &Symbols) |
| Render a SymbolNameSet to an ostream. More... | |
| raw_ostream & | operator<< (raw_ostream &OS, const SymbolMap &Symbols) |
| Render a SymbolMap to an ostream. More... | |
| raw_ostream & | operator<< (raw_ostream &OS, const SymbolFlagsMap &Symbols) |
| Render a SymbolMap to an ostream. More... | |
| raw_ostream & | operator<< (raw_ostream &OS, const SymbolDependenceMap &Deps) |
| Render a SymbolDependendeMap. More... | |
| raw_ostream & | operator<< (raw_ostream &OS, const VSOList &VSOs) |
| Render a VSOList. More... | |
| std::unique_ptr< AbsoluteSymbolsMaterializationUnit > | absoluteSymbols (SymbolMap Symbols) |
| Create an AbsoluteSymbolsMaterializationUnit with the given symbols. More... | |
| std::unique_ptr< ReExportsMaterializationUnit > | symbolAliases (SymbolAliasMap Aliases) |
| Create a ReExportsMaterializationUnit with the given aliases. More... | |
| std::unique_ptr< ReExportsMaterializationUnit > | reexports (VSO &SourceV, SymbolAliasMap Aliases) |
| Create a materialization unit for re-exporting symbols from another VSO with alternative names/flags. More... | |
| Expected< SymbolAliasMap > | buildSimpleReexportsAliasMap (VSO &SourceV, const SymbolNameSet &Symbols) |
| Build a SymbolAliasMap for the common case where you want to re-export symbols from another VSO with the same linkage/flags. More... | |
| Expected< SymbolMap > | lookup (const VSOList &VSOs, SymbolNameSet Names) |
| Look up the given names in the given VSOs. More... | |
| Expected< JITEvaluatedSymbol > | lookup (const VSOList &VSOs, SymbolStringPtr Name) |
| Look up a symbol by searching a list of VSOs. More... | |
| iterator_range< CtorDtorIterator > | getConstructors (const Module &M) |
| Create an iterator range over the entries of the llvm.global_ctors array. More... | |
| iterator_range< CtorDtorIterator > | getDestructors (const Module &M) |
| Create an iterator range over the entries of the llvm.global_ctors array. More... | |
| std::unique_ptr< JITCompileCallbackManager > | createLocalCompileCallbackManager (const Triple &T, ExecutionSession &ES, JITTargetAddress ErrorHandlerAddress) |
| Create a local compile callback manager. More... | |
| std::function< std::unique_ptr< IndirectStubsManager >)> | createLocalIndirectStubsManagerBuilder (const Triple &T) |
| Create a local indriect stubs manager builder. More... | |
| Constant * | createIRTypedAddress (FunctionType &FT, JITTargetAddress Addr) |
| Build a function pointer of FunctionType with the given constant address. More... | |
| GlobalVariable * | createImplPointer (PointerType &PT, Module &M, const Twine &Name, Constant *Initializer) |
| Create a function pointer with the given type, name, and initializer in the given Module. More... | |
| void | makeStub (Function &F, Value &ImplPointer) |
| Turn a function declaration into a stub function that makes an indirect call using the given function pointer. More... | |
| void | makeAllSymbolsExternallyAccessible (Module &M) |
| Raise linkage types and rename as necessary to ensure that all symbols are accessible for other modules. More... | |
| Function * | cloneFunctionDecl (Module &Dst, const Function &F, ValueToValueMapTy *VMap=nullptr) |
| Clone a function declaration into a new module. More... | |
| void | moveFunctionBody (Function &OrigF, ValueToValueMapTy &VMap, ValueMaterializer *Materializer=nullptr, Function *NewF=nullptr) |
| Move the body of function 'F' to a cloned function declaration in a different module (See related cloneFunctionDecl). More... | |
| GlobalVariable * | cloneGlobalVariableDecl (Module &Dst, const GlobalVariable &GV, ValueToValueMapTy *VMap=nullptr) |
| Clone a global variable declaration into a new module. More... | |
| void | moveGlobalVariableInitializer (GlobalVariable &OrigGV, ValueToValueMapTy &VMap, ValueMaterializer *Materializer=nullptr, GlobalVariable *NewGV=nullptr) |
| Move global variable GV from its parent module to cloned global declaration in a different module. More... | |
| GlobalAlias * | cloneGlobalAliasDecl (Module &Dst, const GlobalAlias &OrigA, ValueToValueMapTy &VMap) |
| Clone a global alias declaration into a new module. More... | |
| void | cloneModuleFlagsMetadata (Module &Dst, const Module &Src, ValueToValueMapTy &VMap) |
| Clone module flags metadata into the destination module. More... | |
| template<typename DylibLookupFtorT , typename ExternalLookupFtorT > | |
| std::shared_ptr< LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT > > | createLambdaResolver (DylibLookupFtorT DylibLookupFtor, ExternalLookupFtorT ExternalLookupFtor) |
| template<typename LookupFlagsFn , typename LookupFn > | |
| std::unique_ptr< LambdaSymbolResolver< typename std::remove_cv< typename std::remove_reference< LookupFlagsFn >::type >::type, typename std::remove_cv< typename std::remove_reference< LookupFn >::type >::type > > | createSymbolResolver (LookupFlagsFn &&LookupFlags, LookupFn &&Lookup) |
| Creates a SymbolResolver implementation from the pair of supplied function objects. More... | |
| template<typename FindSymbolFn > | |
| Expected< SymbolFlagsMap > | lookupFlagsWithLegacyFn (const SymbolNameSet &Symbols, FindSymbolFn FindSymbol) |
| Use the given legacy-style FindSymbol function (i.e. More... | |
| template<typename FindSymbolFn > | |
| SymbolNameSet | lookupWithLegacyFn (ExecutionSession &ES, AsynchronousSymbolQuery &Query, const SymbolNameSet &Symbols, FindSymbolFn FindSymbol) |
| Use the given legacy-style FindSymbol function (i.e. More... | |
| template<typename LegacyLookupFn > | |
| std::shared_ptr< LegacyLookupFnResolver< LegacyLookupFn > > | createLegacyLookupResolver (ExecutionSession &ES, LegacyLookupFn LegacyLookup, std::function< void(Error)> ErrorReporter) |
| std::error_code | orcError (OrcErrorCode ErrCode) |
| bool | operator== (const SymbolStringPtr &LHS, const SymbolStringPtr &RHS) |
| bool | operator!= (const SymbolStringPtr &LHS, const SymbolStringPtr &RHS) |
| bool | operator< (const SymbolStringPtr &LHS, const SymbolStringPtr &RHS) |
| raw_ostream & | operator<< (raw_ostream &OS, const JITSymbolFlags &Flags) |
| raw_ostream & | operator<< (raw_ostream &OS, const JITEvaluatedSymbol &Sym) |
| raw_ostream & | operator<< (raw_ostream &OS, const SymbolMap::value_type &KV) |
| static void | raiseVisibilityOnValue (GlobalValue &V, GlobalRenamer &R) |
Variables | |
| RegisterDependenciesFunction | NoDependenciesToRegister |
| This can be used as the value for a RegisterDependenciesFunction if there are no dependants to register with. More... | |
| using llvm::orc::MaterializationUnitList = typedef std::vector<std::unique_ptr<MaterializationUnit> > |
| using llvm::orc::RegisterDependenciesFunction = typedef std::function<void(const SymbolDependenceMap &)> |
| using llvm::orc::SymbolAliasMap = typedef std::map<SymbolStringPtr, SymbolAliasMapEntry> |
| using llvm::orc::SymbolDependenceMap = typedef std::map<VSO *, SymbolNameSet> |
| using llvm::orc::SymbolFlagsMap = typedef std::map<SymbolStringPtr, JITSymbolFlags> |
A map from symbol names (as SymbolStringPtrs) to JITSymbolFlags.
| using llvm::orc::SymbolMap = typedef std::map<SymbolStringPtr, JITEvaluatedSymbol> |
| using llvm::orc::SymbolNameSet = typedef std::set<SymbolStringPtr> |
| using llvm::orc::SymbolsReadyCallback = typedef std::function<void(Error)> |
| using llvm::orc::SymbolsResolvedCallback = typedef std::function<void(Expected<SymbolMap>)> |
| using llvm::orc::VModuleKey = typedef uint64_t |
| using llvm::orc::VSOList = typedef std::vector<VSO *> |
|
strong |
Definition at line 23 of file OrcError.h.
|
inline |
Create an AbsoluteSymbolsMaterializationUnit with the given symbols.
Useful for inserting absolute symbols into a VSO. E.g.:
Definition at line 277 of file Core.h.
Referenced by llvm::orc::LLJIT::defineAbsolute(), llvm::orc::LocalCXXRuntimeOverrides2::enable(), and llvm::orc::DynamicLibraryFallbackGenerator::operator()().
| Expected< SymbolAliasMap > llvm::orc::buildSimpleReexportsAliasMap | ( | VSO & | SourceV, |
| const SymbolNameSet & | Symbols | ||
| ) |
Build a SymbolAliasMap for the common case where you want to re-export symbols from another VSO with the same linkage/flags.
Definition at line 870 of file Core.cpp.
References assert(), I, llvm::JITSymbolFlags::Lazy, llvm::orc::VSO::lookupFlags(), llvm::JITSymbolFlags::Materializing, MI, Result, SI, llvm::JITSymbolFlags::stripTransientFlags(), llvm::Error::success(), and llvm::JITSymbolFlags::Weak.
Referenced by reexports().
| Function * llvm::orc::cloneFunctionDecl | ( | Module & | Dst, |
| const Function & | F, | ||
| ValueToValueMapTy * | VMap = nullptr |
||
| ) |
Clone a function declaration into a new module.
This function can be used as the first step towards creating a callback stub (see makeStub), or moving a function body (see moveFunctionBody).
If the VMap argument is non-null, a mapping will be added between F and the new declaration, and between each of F's arguments and the new declaration's arguments. This map can then be passed in to moveFunction to move the function body if required. Note: When moving functions between modules with these utilities, all decls should be cloned (and added to a single VMap) before any bodies are moved. This will ensure that references between functions all refer to the versions in the new module.
Definition at line 266 of file IndirectionUtils.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::Function::copyAttributesFrom(), llvm::Function::Create(), F(), llvm::GlobalValue::getLinkage(), llvm::Value::getName(), and llvm::GlobalValue::getValueType().
Referenced by llvm::orc::CompileOnDemandLayer2::emit(), and extractAliases().
| GlobalAlias * llvm::orc::cloneGlobalAliasDecl | ( | Module & | Dst, |
| const GlobalAlias & | OrigA, | ||
| ValueToValueMapTy & | VMap | ||
| ) |
Clone a global alias declaration into a new module.
Definition at line 333 of file IndirectionUtils.cpp.
References assert(), llvm::GlobalAlias::copyAttributesFrom(), llvm::GlobalAlias::create(), llvm::GlobalAlias::getAliasee(), llvm::GlobalValue::getLinkage(), llvm::Value::getName(), llvm::Type::getPointerAddressSpace(), llvm::GlobalValue::getType(), and llvm::GlobalValue::getValueType().
| GlobalVariable * llvm::orc::cloneGlobalVariableDecl | ( | Module & | Dst, |
| const GlobalVariable & | GV, | ||
| ValueToValueMapTy * | VMap = nullptr |
||
| ) |
Clone a global variable declaration into a new module.
Definition at line 303 of file IndirectionUtils.cpp.
References llvm::GlobalVariable::copyAttributesFrom(), llvm::PointerType::getAddressSpace(), llvm::GlobalValue::getLinkage(), llvm::Value::getName(), llvm::GlobalValue::getThreadLocalMode(), llvm::GlobalValue::getType(), llvm::GlobalValue::getValueType(), and llvm::GlobalVariable::isConstant().
Referenced by extractAliases().
| void llvm::orc::cloneModuleFlagsMetadata | ( | Module & | Dst, |
| const Module & | Src, | ||
| ValueToValueMapTy & | VMap | ||
| ) |
Clone module flags metadata into the destination module.
Definition at line 344 of file IndirectionUtils.cpp.
References llvm::Module::addModuleFlag(), llvm::Module::getModuleFlagsMetadata(), and llvm::MapMetadata().
| GlobalVariable * llvm::orc::createImplPointer | ( | PointerType & | PT, |
| Module & | M, | ||
| const Twine & | Name, | ||
| Constant * | Initializer | ||
| ) |
Create a function pointer with the given type, name, and initializer in the given Module.
Definition at line 185 of file IndirectionUtils.cpp.
References llvm::GlobalValue::ExternalLinkage, llvm::GlobalValue::HiddenVisibility, and llvm::GlobalValue::NotThreadLocal.
| Constant * llvm::orc::createIRTypedAddress | ( | FunctionType & | FT, |
| JITTargetAddress | Addr | ||
| ) |
Build a function pointer of FunctionType with the given constant address.
Usage example: Turn a trampoline address into a function pointer constant for use in a stub.
Definition at line 176 of file IndirectionUtils.cpp.
References llvm::ConstantInt::get(), llvm::PointerType::get(), llvm::ConstantExpr::getCast(), llvm::Type::getContext(), and llvm::Type::getInt64Ty().
| std::shared_ptr<LambdaResolver<DylibLookupFtorT, ExternalLookupFtorT> > llvm::orc::createLambdaResolver | ( | DylibLookupFtorT | DylibLookupFtor, |
| ExternalLookupFtorT | ExternalLookupFtor | ||
| ) |
Definition at line 49 of file LambdaResolver.h.
Referenced by llvm::orc::RemoteObjectServerLayer< BaseLayerT, RPCEndpoint >::RemoteObjectServerLayer().
| std::shared_ptr<LegacyLookupFnResolver<LegacyLookupFn> > llvm::orc::createLegacyLookupResolver | ( | ExecutionSession & | ES, |
| LegacyLookupFn | LegacyLookup, | ||
| std::function< void(Error)> | ErrorReporter | ||
| ) |
| std::unique_ptr< JITCompileCallbackManager > llvm::orc::createLocalCompileCallbackManager | ( | const Triple & | T, |
| ExecutionSession & | ES, | ||
| JITTargetAddress | ErrorHandlerAddress | ||
| ) |
Create a local compile callback manager.
The given target triple will determine the ABI, and the given ErrorHandlerAddress will be used by the resulting compile callback manager if a compile callback fails.
Definition at line 111 of file IndirectionUtils.cpp.
References llvm::Triple::aarch64, llvm::Triple::getArch(), llvm::Triple::getOS(), llvm::Triple::x86, and llvm::Triple::x86_64.
Referenced by llvm::orc::LLLazyJIT::Create().
| std::function< std::unique_ptr< IndirectStubsManager >)> llvm::orc::createLocalIndirectStubsManagerBuilder | ( | const Triple & | T | ) |
Create a local indriect stubs manager builder.
The given target triple will determine the ABI.
Definition at line 140 of file IndirectionUtils.cpp.
References llvm::Triple::aarch64, llvm::Triple::getArch(), llvm::Triple::getOS(), llvm::make_unique(), llvm::Triple::x86, and llvm::Triple::x86_64.
Referenced by llvm::orc::LLLazyJIT::Create(), and LLVMOrcCreateInstance().
| std::unique_ptr<LambdaSymbolResolver< typename std::remove_cv< typename std::remove_reference<LookupFlagsFn>::type>::type, typename std::remove_cv< typename std::remove_reference<LookupFn>::type>::type> > llvm::orc::createSymbolResolver | ( | LookupFlagsFn && | LookupFlags, |
| LookupFn && | Lookup | ||
| ) |
Creates a SymbolResolver implementation from the pair of supplied function objects.
Definition at line 79 of file Legacy.h.
References Lookup().
| iterator_range< CtorDtorIterator > llvm::orc::getConstructors | ( | const Module & | M | ) |
Create an iterator range over the entries of the llvm.global_ctors array.
Definition at line 117 of file ExecutionUtils.cpp.
References llvm::orc::CtorDtorIterator::CtorDtorIterator(), llvm::Module::getNamedGlobal(), and llvm::make_range().
Referenced by llvm::OrcCBindingsStack::addIRModule(), llvm::orc::OrcMCJITReplacement::addModule(), and llvm::orc::LLJIT::recordCtorDtors().
| iterator_range< CtorDtorIterator > llvm::orc::getDestructors | ( | const Module & | M | ) |
Create an iterator range over the entries of the llvm.global_ctors array.
Definition at line 123 of file ExecutionUtils.cpp.
References llvm::orc::CtorDtorIterator::CtorDtorIterator(), llvm::Module::getNamedGlobal(), and llvm::make_range().
Referenced by llvm::OrcCBindingsStack::addIRModule(), llvm::orc::OrcMCJITReplacement::addModule(), and llvm::orc::LLJIT::recordCtorDtors().
| Expected< SymbolMap > llvm::orc::lookup | ( | const VSOList & | VSOs, |
| SymbolNameSet | Names | ||
| ) |
Look up the given names in the given VSOs.
VSOs will be searched in order and no VSO pointer may be null. All symbols must be found within the given VSOs or an error will be returned.
Definition at line 1655 of file Core.cpp.
References llvm::orc::ExecutionSessionBase::lookup().
Referenced by llvm::orc::RemoteObjectClientLayer< RPCEndpoint >::emitAndFinalize(), llvm::orc::JITCompileCallbackManager::executeCompileCallback(), llvm::orc::ExecutionSession::ExecutionSession(), lookup(), llvm::orc::LLJIT::lookupLinkerMangled(), llvm::orc::RemoteObjectServerLayer< BaseLayerT, RPCEndpoint >::RemoteObjectServerLayer(), and llvm::orc::CtorDtorRunner2::run().
| Expected< JITEvaluatedSymbol > llvm::orc::lookup | ( | const VSOList & | VSOs, |
| SymbolStringPtr | Name | ||
| ) |
| Expected<SymbolFlagsMap> llvm::orc::lookupFlagsWithLegacyFn | ( | const SymbolNameSet & | Symbols, |
| FindSymbolFn | FindSymbol | ||
| ) |
Use the given legacy-style FindSymbol function (i.e.
a function that takes a const std::string& or StringRef and returns a JITSymbol) to find the flags for each symbol in Symbols and store their flags in SymbolFlags. If any JITSymbol returned by FindSymbol is in an error state the function returns immediately with that error, otherwise it returns the set of symbols not found.
Useful for implementing lookupFlags bodies that query legacy resolvers.
Definition at line 112 of file Legacy.h.
Referenced by llvm::orc::LegacyLookupFnResolver< LegacyLookupFn >::lookupFlags().
| SymbolNameSet llvm::orc::lookupWithLegacyFn | ( | ExecutionSession & | ES, |
| AsynchronousSymbolQuery & | Query, | ||
| const SymbolNameSet & | Symbols, | ||
| FindSymbolFn | FindSymbol | ||
| ) |
Use the given legacy-style FindSymbol function (i.e.
a function that takes a const std::string& or StringRef and returns a JITSymbol) to find the address and flags for each symbol in Symbols and store the result in Query. If any JITSymbol returned by FindSymbol is in an error then Query.notifyFailed(...) is called with that error and the function returns immediately. On success, returns the set of symbols not found.
Useful for implementing lookup bodies that query legacy resolvers.
Definition at line 137 of file Legacy.h.
References llvm::orc::ExecutionSessionBase::legacyFailQuery(), llvm::orc::AsynchronousSymbolQuery::notifySymbolReady(), and llvm::orc::AsynchronousSymbolQuery::resolve().
Referenced by llvm::orc::LegacyLookupFnResolver< LegacyLookupFn >::lookup().
| void llvm::orc::makeAllSymbolsExternallyAccessible | ( | Module & | M | ) |
Raise linkage types and rename as necessary to ensure that all symbols are accessible for other modules.
This should be called before partitioning a module to ensure that the partitions retain access to each other's symbols.
Definition at line 253 of file IndirectionUtils.cpp.
References F(), and raiseVisibilityOnValue().
Turn a function declaration into a stub function that makes an indirect call using the given function pointer.
Definition at line 194 of file IndirectionUtils.cpp.
References llvm::Function::args(), assert(), llvm::BasicBlock::Create(), F(), llvm::Function::getAttributes(), llvm::GlobalValue::getParent(), llvm::Function::getReturnType(), llvm::GlobalValue::isDeclaration(), llvm::Type::isVoidTy(), llvm::CallBase< InstTy >::setAttributes(), and llvm::CallInst::setTailCall().
| void llvm::orc::moveFunctionBody | ( | Function & | OrigF, |
| ValueToValueMapTy & | VMap, | ||
| ValueMaterializer * | Materializer = nullptr, |
||
| Function * | NewF = nullptr |
||
| ) |
Move the body of function 'F' to a cloned function declaration in a different module (See related cloneFunctionDecl).
If the target function declaration is not supplied via the NewF parameter then it will be looked up via the VMap.
This will delete the body of function 'F' from its original parent module, but leave its declaration.
Definition at line 284 of file IndirectionUtils.cpp.
References assert(), llvm::CloneFunctionInto(), llvm::Function::deleteBody(), llvm::GlobalValue::getParent(), and llvm::GlobalValue::isDeclaration().
| void llvm::orc::moveGlobalVariableInitializer | ( | GlobalVariable & | OrigGV, |
| ValueToValueMapTy & | VMap, | ||
| ValueMaterializer * | Materializer = nullptr, |
||
| GlobalVariable * | NewGV = nullptr |
||
| ) |
Move global variable GV from its parent module to cloned global declaration in a different module.
If the target global declaration is not supplied via the NewGV parameter then it will be looked up via the VMap.
This will delete the initializer of GV from its original parent module, but leave its declaration.
Definition at line 315 of file IndirectionUtils.cpp.
References assert(), llvm::GlobalVariable::getInitializer(), llvm::GlobalValue::getParent(), llvm::GlobalVariable::hasInitializer(), llvm::MapValue(), llvm::RF_None, and llvm::GlobalVariable::setInitializer().
|
inline |
Definition at line 107 of file SymbolStringPool.h.
|
inline |
Definition at line 111 of file SymbolStringPool.h.
| raw_ostream& llvm::orc::operator<< | ( | raw_ostream & | OS, |
| const JITSymbolFlags & | Flags | ||
| ) |
Definition at line 32 of file Core.cpp.
References llvm::JITSymbolFlags::isCommon(), llvm::JITSymbolFlags::isExported(), and llvm::JITSymbolFlags::isWeak().
| raw_ostream & llvm::orc::operator<< | ( | raw_ostream & | OS, |
| const SymbolNameSet & | Symbols | ||
| ) |
Render a SymbolNameSet to an ostream.
Definition at line 58 of file Core.cpp.
References llvm::make_range().
| raw_ostream& llvm::orc::operator<< | ( | raw_ostream & | OS, |
| const JITEvaluatedSymbol & | Sym | ||
| ) |
Definition at line 48 of file Core.cpp.
References llvm::format(), llvm::JITEvaluatedSymbol::getAddress(), and llvm::JITEvaluatedSymbol::getFlags().
| raw_ostream& llvm::orc::operator<< | ( | raw_ostream & | OS, |
| const SymbolMap::value_type & | KV | ||
| ) |
| raw_ostream & llvm::orc::operator<< | ( | raw_ostream & | OS, |
| const SymbolMap & | Symbols | ||
| ) |
Render a SymbolMap to an ostream.
Definition at line 69 of file Core.cpp.
References llvm::make_range().
| raw_ostream & llvm::orc::operator<< | ( | raw_ostream & | OS, |
| const SymbolFlagsMap & | Symbols | ||
| ) |
Render a SymbolMap to an ostream.
Definition at line 80 of file Core.cpp.
References llvm::make_range().
| raw_ostream & llvm::orc::operator<< | ( | raw_ostream & | OS, |
| const SymbolDependenceMap & | Deps | ||
| ) |
Render a SymbolDependendeMap.
Definition at line 93 of file Core.cpp.
References llvm::make_range().
| raw_ostream & llvm::orc::operator<< | ( | raw_ostream & | OS, |
| const VSOList & | VSOs | ||
| ) |
Render a VSOList.
Definition at line 105 of file Core.cpp.
References assert(), and llvm::make_range().
|
inline |
Definition at line 103 of file SymbolStringPool.h.
| std::error_code llvm::orc::orcError | ( | OrcErrorCode | ErrCode | ) |
Definition at line 77 of file OrcError.cpp.
Referenced by llvm::orc::remote::ResourceNotFound< ResourceIdT >::convertToErrorCode(), llvm::orc::rpc::ConnectionClosed::convertToErrorCode(), llvm::orc::DuplicateDefinition::convertToErrorCode(), llvm::orc::rpc::BadFunctionCall< FnIdT, SeqNoT >::convertToErrorCode(), llvm::orc::FailedToMaterialize::convertToErrorCode(), llvm::orc::rpc::InvalidSequenceNumberForResponse< SeqNoT >::convertToErrorCode(), llvm::orc::SymbolsNotFound::convertToErrorCode(), llvm::orc::rpc::ResponseAbandoned::convertToErrorCode(), and llvm::orc::rpc::CouldNotNegotiate::convertToErrorCode().
|
static |
Definition at line 242 of file IndirectionUtils.cpp.
References assert(), llvm::GlobalValue::ExternalLinkage, llvm::orc::GlobalRenamer::getRename(), llvm::GlobalValue::hasLocalLinkage(), llvm::GlobalValue::HiddenVisibility, llvm::orc::GlobalRenamer::needsRenaming(), llvm::GlobalValue::None, llvm::GlobalValue::setLinkage(), llvm::Value::setName(), llvm::GlobalValue::setUnnamedAddr(), and llvm::GlobalValue::setVisibility().
Referenced by makeAllSymbolsExternallyAccessible().
|
inline |
Create a materialization unit for re-exporting symbols from another VSO with alternative names/flags.
Definition at line 337 of file Core.h.
References buildSimpleReexportsAliasMap().
Referenced by llvm::orc::ReExportsMaterializationUnit::ReExportsMaterializationUnit().
|
inline |
Create a ReExportsMaterializationUnit with the given aliases.
Useful for defining symbol aliases.: E.g., given a VSO V containing symbols "foo" and "bar", we can define aliases "baz" (for "foo") and "qux" (for "bar") with:
Definition at line 329 of file Core.h.
Referenced by extractAliases(), and llvm::orc::ReExportsMaterializationUnit::ReExportsMaterializationUnit().
| RegisterDependenciesFunction llvm::orc::NoDependenciesToRegister |
This can be used as the value for a RegisterDependenciesFunction if there are no dependants to register with.
1.8.13