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

A utility class to expose symbols found via dlsym to the JIT. More...

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

Public Types

using SymbolPredicate = std::function< bool(SymbolStringPtr)>
 

Public Member Functions

 DynamicLibraryFallbackGenerator (sys::DynamicLibrary Dylib, const DataLayout &DL, SymbolPredicate Allow)
 
SymbolNameSet operator() (VSO &V, const SymbolNameSet &Names)
 

Detailed Description

A utility class to expose symbols found via dlsym to the JIT.

If an instance of this class is attached to a VSO as a fallback definition generator, then any symbol found in the given DynamicLibrary that passes the 'Allow' predicate will be added to the VSO.

Definition at line 255 of file ExecutionUtils.h.

Member Typedef Documentation

◆ SymbolPredicate

Definition at line 257 of file ExecutionUtils.h.

Constructor & Destructor Documentation

◆ DynamicLibraryFallbackGenerator()

llvm::orc::DynamicLibraryFallbackGenerator::DynamicLibraryFallbackGenerator ( sys::DynamicLibrary  Dylib,
const DataLayout &  DL,
SymbolPredicate  Allow 
)

Definition at line 210 of file ExecutionUtils.cpp.

References operator()().

Member Function Documentation

◆ operator()()

SymbolNameSet llvm::orc::DynamicLibraryFallbackGenerator::operator() ( VSO &  V,
const SymbolNameSet &  Names 
)

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