| 
    LLVM 22.0.0git
    
   | 
 
Resolves file system paths with optional caching of results. More...
#include "llvm/ExecutionEngine/Orc/TargetProcess/LibraryScanner.h"
Public Member Functions | |
| PathResolver (std::shared_ptr< LibraryPathCache > cache) | |
| std::optional< std::string > | resolve (StringRef Path, std::error_code &ec) | 
| mode_t | lstatCached (StringRef Path) | 
| std::optional< std::string > | readlinkCached (StringRef Path) | 
| std::optional< std::string > | realpathCached (StringRef Path, std::error_code &ec, StringRef base="", bool baseIsResolved=false, long symloopLevel=40) | 
Resolves file system paths with optional caching of results.
Supports lstat, readlink, and realpath operations. Can resolve paths relative to a base and handle symbolic links. Caches results to reduce repeated system calls when enabled.
Definition at line 145 of file LibraryScanner.h.
      
  | 
  inline | 
Definition at line 150 of file LibraryScanner.h.
References llvm::move().
| mode_t llvm::orc::PathResolver::lstatCached | ( | StringRef | Path | ) | 
Definition at line 434 of file LibraryScanner.cpp.
Referenced by realpathCached().
| std::optional< std::string > llvm::orc::PathResolver::readlinkCached | ( | StringRef | Path | ) | 
Definition at line 448 of file LibraryScanner.cpp.
References PATH_MAX.
Referenced by realpathCached().
| std::optional< std::string > llvm::orc::PathResolver::realpathCached | ( | StringRef | Path, | 
| std::error_code & | ec, | ||
| StringRef | base = "", | ||
| bool | baseIsResolved = false, | ||
| long | symloopLevel = 40 ) | 
Definition at line 510 of file LibraryScanner.cpp.
References llvm::sys::path::append(), llvm::sampleprof::Base, llvm::CallingConv::C, llvm::orc::createComponent(), llvm::dbgs(), llvm::sys::path::get_separator(), llvm::sys::path::is_relative(), LLVM_DEBUG, lstatCached(), llvm::orc::normalizePathSegments(), llvm::StringRef::npos, readlinkCached(), llvm::sys::fs::real_path(), realpathCached(), and llvm::orc::Resolved.
Referenced by realpathCached(), and resolve().
      
  | 
  inline | 
Definition at line 153 of file LibraryScanner.h.
References realpathCached().