LLVM  16.0.0git
Classes | Namespaces | Typedefs | Functions
Caching.h File Reference
#include "llvm/Support/Error.h"
Include dependency graph for Caching.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::CachedFileStream
 This class wraps an output stream for a file. More...
 

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Typedefs

using llvm::AddStreamFn = std::function< Expected< std::unique_ptr< CachedFileStream > >(unsigned Task)>
 This type defines the callback to add a file that is generated on the fly. More...
 
using llvm::FileCache = std::function< Expected< AddStreamFn >(unsigned Task, StringRef Key)>
 This is the type of a file cache. More...
 
using llvm::AddBufferFn = std::function< void(unsigned Task, std::unique_ptr< MemoryBuffer > MB)>
 This type defines the callback to add a pre-existing file (e.g. More...
 

Functions

Expected< FileCachellvm::localCache (Twine CacheNameRef, Twine TempFilePrefixRef, Twine CacheDirectoryPathRef, AddBufferFn AddBuffer=[](size_t Task, std::unique_ptr< MemoryBuffer > MB) { })
 Create a local file system cache which uses the given cache name, temporary file prefix, cache directory and file callback. More...