|
LLVM 23.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) | |
| LLVM_ABI void | addBasePath (const std::string &P, PathType Kind=PathType::Unknown) |
| LLVM_ABI void | getNextBatch (PathType Kind, size_t batchSize, SmallVectorImpl< const LibrarySearchPath * > &Out) |
| LLVM_ABI bool | leftToScan (PathType K) const |
| LLVM_ABI void | resetToScan () |
| LLVM_ABI 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 408 of file LibraryScanner.h.
|
inlineexplicit |
Definition at line 410 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 648 of file LibraryScanner.cpp.
References llvm::dbgs(), and LLVM_DEBUG.
Referenced by LibraryScanHelper().
|
inline |
Definition at line 445 of file LibraryScanner.h.
| void llvm::orc::LibraryScanHelper::getNextBatch | ( | PathType | Kind, |
| size_t | batchSize, | ||
| SmallVectorImpl< const LibrarySearchPath * > & | Out ) |
Definition at line 679 of file LibraryScanner.cpp.
References llvm::sampleprof::Base, llvm::orc::NotScanned, llvm::orc::Result, and llvm::orc::Scanning.
|
inline |
Definition at line 443 of file LibraryScanner.h.
|
inline |
Definition at line 436 of file LibraryScanner.h.
References _, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
|
inline |
Definition at line 434 of file LibraryScanner.h.
Definition at line 447 of file LibraryScanner.h.
References P.
Definition at line 700 of file LibraryScanner.cpp.
Definition at line 710 of file LibraryScanner.cpp.
References llvm::orc::NotScanned.
| void llvm::orc::LibraryScanHelper::resetToScan | ( | ) |
Definition at line 720 of file LibraryScanner.cpp.
References _, llvm::SmallVectorImpl< T >::emplace_back(), llvm::orc::NotScanned, and llvm::orc::Scanned.
|
inline |
Definition at line 451 of file LibraryScanner.h.
References P.