| 
    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) | 
| std::vector< std::shared_ptr< LibrarySearchPath > > | getNextBatch (PathType Kind, size_t batchSize) | 
| bool | leftToScan (PathType K) const | 
| void | resetToScan () | 
| bool | isTrackedBasePath (StringRef P) const | 
| std::vector< std::shared_ptr< LibrarySearchPath > > | getAllUnits () 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 325 of file LibraryScanner.h.
      
  | 
  inlineexplicit | 
Definition at line 327 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 662 of file LibraryScanner.cpp.
References llvm::dbgs(), and LLVM_DEBUG.
Referenced by LibraryScanHelper().
| std::vector< std::shared_ptr< LibrarySearchPath > > llvm::orc::LibraryScanHelper::getAllUnits | ( | ) | const | 
Definition at line 752 of file LibraryScanner.cpp.
References _, and llvm::orc::Result.
      
  | 
  inline | 
Definition at line 361 of file LibraryScanner.h.
| std::vector< std::shared_ptr< LibrarySearchPath > > llvm::orc::LibraryScanHelper::getNextBatch | ( | PathType | Kind, | 
| size_t | batchSize ) | 
Definition at line 694 of file LibraryScanner.cpp.
References llvm::sampleprof::Base, llvm::orc::NotScanned, llvm::orc::Result, and llvm::orc::Scanning.
      
  | 
  inline | 
Definition at line 359 of file LibraryScanner.h.
      
  | 
  inline | 
Definition at line 352 of file LibraryScanner.h.
References _, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
Definition at line 363 of file LibraryScanner.h.
References P.
Definition at line 716 of file LibraryScanner.cpp.
Definition at line 726 of file LibraryScanner.cpp.
References llvm::orc::NotScanned.
| void llvm::orc::LibraryScanHelper::resetToScan | ( | ) | 
Definition at line 736 of file LibraryScanner.cpp.
References _, llvm::SmallVectorImpl< T >::emplace_back(), llvm::orc::NotScanned, and llvm::orc::Scanned.
      
  | 
  inline | 
Definition at line 367 of file LibraryScanner.h.
References P.