|
LLVM 22.0.0git
|
Scans and tracks libraries for symbol resolution. More...
#include "llvm/ExecutionEngine/Orc/TargetProcess/LibraryScanner.h"
Public Member Functions | |
| LibraryScanHelper (const std::vector< std::string > &SPaths, std::shared_ptr< LibraryPathCache > LibPathCache, std::shared_ptr< PathResolver > LibPathResolver) | |
| void | addBasePath (const std::string &P, PathType Kind=PathType::Unknown) |
| void | getNextBatch (PathType Kind, size_t batchSize, SmallVectorImpl< const LibrarySearchPath * > &Out) |
| bool | leftToScan (PathType K) const |
| void | resetToScan () |
| bool | isTrackedBasePath (StringRef P) const |
| bool | hasSearchPath () const |
| SmallVector< StringRef > | getSearchPaths () const |
| PathResolver & | getPathResolver () const |
| LibraryPathCache & | getCache () const |
| bool | hasSeenOrMark (StringRef P) const |
| std::optional< std::string > | resolve (StringRef P, std::error_code &ec) const |
Scans and tracks libraries for symbol resolution.
Maintains a list of library paths to scan, caches scanned units, and resolves paths canonically for consistent tracking.
Definition at line 409 of file LibraryScanner.h.
|
inlineexplicit |
Definition at line 411 of file LibraryScanner.h.
References addBasePath(), llvm::dbgs(), DEBUG_WITH_TYPE, and llvm::move().
| void llvm::orc::LibraryScanHelper::addBasePath | ( | const std::string & | P, |
| PathType | Kind = PathType::Unknown ) |
Definition at line 650 of file LibraryScanner.cpp.
References llvm::dbgs(), and LLVM_DEBUG.
Referenced by LibraryScanHelper().
|
inline |
Definition at line 446 of file LibraryScanner.h.
| void llvm::orc::LibraryScanHelper::getNextBatch | ( | PathType | Kind, |
| size_t | batchSize, | ||
| SmallVectorImpl< const LibrarySearchPath * > & | Out ) |
Definition at line 681 of file LibraryScanner.cpp.
References llvm::sampleprof::Base, llvm::orc::NotScanned, llvm::orc::Result, and llvm::orc::Scanning.
|
inline |
Definition at line 444 of file LibraryScanner.h.
|
inline |
Definition at line 437 of file LibraryScanner.h.
References _, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
|
inline |
Definition at line 435 of file LibraryScanner.h.
Definition at line 448 of file LibraryScanner.h.
References P.
Definition at line 702 of file LibraryScanner.cpp.
Definition at line 712 of file LibraryScanner.cpp.
References llvm::orc::NotScanned.
| void llvm::orc::LibraryScanHelper::resetToScan | ( | ) |
Definition at line 722 of file LibraryScanner.cpp.
References _, llvm::SmallVectorImpl< T >::emplace_back(), llvm::orc::NotScanned, and llvm::orc::Scanned.
|
inline |
Definition at line 452 of file LibraryScanner.h.
References P.