The module cache used for compiling modules implicitly.
More...
#include "clang/Serialization/ModuleCache.h"
|
| virtual const ModuleCacheDirectory * | getDirectoryPtr (StringRef Path) |
| | Returns an opaque pointer representing the module cache directory.
|
| virtual std::unique_ptr< llvm::AdvisoryLock > | getLock (StringRef ModuleFilename)=0 |
| | Returns lock for the given module file. The lock is initially unlocked.
|
| virtual std::time_t | getModuleTimestamp (StringRef ModuleFilename)=0 |
| | Returns the timestamp denoting the last time inputs of the module file were validated.
|
| virtual void | updateModuleTimestamp (StringRef ModuleFilename)=0 |
| | Updates the timestamp denoting the last time inputs of the module file were validated.
|
| virtual void | maybePrune (StringRef Path, time_t PruneInterval, time_t PruneAfter)=0 |
| | Prune module files that haven't been accessed in a long time.
|
| virtual InMemoryModuleCache & | getInMemoryModuleCache ()=0 |
| | Returns this process's view of the module cache.
|
| virtual const InMemoryModuleCache & | getInMemoryModuleCache () const =0 |
| virtual std::error_code | write (StringRef Path, llvm::MemoryBufferRef Buffer, off_t &Size, time_t &ModTime)=0 |
| | Write the PCM contents to the given path in the module cache.
|
| virtual Expected< std::unique_ptr< llvm::MemoryBuffer > > | read (StringRef FileName, off_t &Size, time_t &ModTime)=0 |
| virtual | ~ModuleCache ()=default |
The module cache used for compiling modules implicitly.
This centralizes the operations the compiler might want to perform on the cache.
Definition at line 37 of file ModuleCache.h.
◆ ~ModuleCache()
| virtual clang::ModuleCache::~ModuleCache |
( |
| ) |
|
|
virtualdefault |
◆ getDirectoryPtr()
Returns an opaque pointer representing the module cache directory.
This returns the same pointer regardless of the path spelling, as long as it resolves to the same file system entity. This also resolves links in the path. This may return nullptr if the module cache does not exist.
Definition at line 22 of file ModuleCache.cpp.
◆ getInMemoryModuleCache() [1/2]
◆ getInMemoryModuleCache() [2/2]
◆ getLock()
| virtual std::unique_ptr< llvm::AdvisoryLock > clang::ModuleCache::getLock |
( |
StringRef | ModuleFilename | ) |
|
|
pure virtual |
◆ getModuleTimestamp()
| virtual std::time_t clang::ModuleCache::getModuleTimestamp |
( |
StringRef | ModuleFilename | ) |
|
|
pure virtual |
◆ maybePrune()
| virtual void clang::ModuleCache::maybePrune |
( |
StringRef | Path, |
|
|
time_t | PruneInterval, |
|
|
time_t | PruneAfter ) |
|
pure virtual |
Prune module files that haven't been accessed in a long time.
◆ read()
| virtual Expected< std::unique_ptr< llvm::MemoryBuffer > > clang::ModuleCache::read |
( |
StringRef | FileName, |
|
|
off_t & | Size, |
|
|
time_t & | ModTime ) |
|
pure virtual |
◆ updateModuleTimestamp()
| virtual void clang::ModuleCache::updateModuleTimestamp |
( |
StringRef | ModuleFilename | ) |
|
|
pure virtual |
Updates the timestamp denoting the last time inputs of the module file were validated.
Referenced by compileModuleImpl().
◆ write()
| virtual std::error_code clang::ModuleCache::write |
( |
StringRef | Path, |
|
|
llvm::MemoryBufferRef | Buffer, |
|
|
off_t & | Size, |
|
|
time_t & | ModTime ) |
|
pure virtual |
Write the PCM contents to the given path in the module cache.
Referenced by compileModuleImpl().
The documentation for this class was generated from the following files: