LLVM 22.0.0git
Caching.h File Reference

Go to the source code of this file.

Classes

class  llvm::CachedFileStream
 This class wraps an output stream for a file. More...
struct  llvm::FileCache
 This type represents a file cache system that manages caching of files. More...

Namespaces

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

Typedefs

using llvm::AddStreamFn
 This type defines the callback to add a file that is generated on the fly.
using llvm::FileCacheFunction
 This is a callable that manages file caching operations.
using llvm::AddBufferFn
 This type defines the callback to add a pre-existing file (e.g.

Functions

LLVM_ABI Expected< FileCachellvm::localCache (const Twine &CacheNameRef, const Twine &TempFilePrefixRef, const Twine &CacheDirectoryPathRef, AddBufferFn AddBuffer=[](size_t Task, const Twine &ModuleName, 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.