|
LLVM 22.0.0git
|
Manages library metadata and state for symbol resolution. More...
#include "llvm/ExecutionEngine/Orc/TargetProcess/LibraryResolver.h"
Classes | |
| class | FilteredView |
| A read-only view of libraries filtered by state and kind. More... | |
| class | LibraryInfo |
Public Types | |
| enum class | LibState : uint8_t { Unloaded = 0 , Loaded = 1 , Queried = 2 } |
| using | LibraryVisitor = std::function<bool(const LibraryInfo &)> |
| using | LibraryFilterFn = std::function<bool(const LibraryInfo &)> |
Public Member Functions | |
| LibraryManager ()=default | |
| ~LibraryManager ()=default | |
| bool | addLibrary (std::string Path, PathType Kind, std::optional< BloomFilter > Filter=std::nullopt) |
| bool | hasLibrary (StringRef Path) const |
| void | removeLibrary (StringRef Path) |
| void | markLoaded (StringRef Path) |
| void | markQueried (StringRef Path) |
| std::shared_ptr< LibraryInfo > | getLibrary (StringRef Path) |
| FilteredView | getView (LibState S, PathType K) const |
| void | getLibraries (LibState S, PathType K, std::vector< std::shared_ptr< LibraryInfo > > &Outs, LibraryFilterFn Filter=nullptr) const |
| void | forEachLibrary (const LibraryVisitor &visitor) const |
| bool | isLoaded (StringRef Path) const |
| bool | isQueried (StringRef Path) const |
| void | clear () |
Manages library metadata and state for symbol resolution.
Tracks libraries by load state and kind (user/system), and stores associated Bloom filters and hash maps to speed up symbol lookups. Thread-safe for concurrent access.
Definition at line 33 of file LibraryResolver.h.
| using llvm::orc::LibraryManager::LibraryFilterFn = std::function<bool(const LibraryInfo &)> |
Definition at line 213 of file LibraryResolver.h.
| using llvm::orc::LibraryManager::LibraryVisitor = std::function<bool(const LibraryInfo &)> |
Definition at line 158 of file LibraryResolver.h.
|
strong |
| Enumerator | |
|---|---|
| Unloaded | |
| Loaded | |
| Queried | |
Definition at line 35 of file LibraryResolver.h.
|
default |
|
default |
|
inline |
Definition at line 163 of file LibraryResolver.h.
References llvm::Filter, and Unloaded.
|
inline |
Definition at line 250 of file LibraryResolver.h.
|
inline |
Definition at line 228 of file LibraryResolver.h.
References _.
|
inline |
Definition at line 214 of file LibraryResolver.h.
References _, llvm::Filter, and Info.
|
inline |
Definition at line 201 of file LibraryResolver.h.
|
inline |
Definition at line 208 of file LibraryResolver.h.
Definition at line 174 of file LibraryResolver.h.
Definition at line 236 of file LibraryResolver.h.
References Loaded.
Definition at line 243 of file LibraryResolver.h.
References Queried.
|
inline |
Definition at line 189 of file LibraryResolver.h.
References Loaded.
|
inline |
Definition at line 195 of file LibraryResolver.h.
References Queried.
|
inline |
Definition at line 181 of file LibraryResolver.h.
References I.