|
LLVM 22.0.0git
|
#include "llvm/Support/Error.h"#include "llvm/Support/FileSystem.h"#include <chrono>#include <optional>Go to the source code of this file.
Namespaces | |
| namespace | llvm |
| This is an optimization pass for GlobalISel generic memory operations. | |
| namespace | llvm::cas |
| namespace | llvm::cas::ondisk |
Functions | |
| Expected< std::optional< uint64_t > > | llvm::cas::ondisk::getOverriddenMaxMappingSize () |
| Retrieves an overridden maximum mapping size for CAS files, if any, speicified by LLVM_CAS_MAX_MAPPING_SIZE in the environment or set by setMaxMappingSize(). | |
| void | llvm::cas::ondisk::setMaxMappingSize (uint64_t Size) |
| Set MaxMappingSize for ondisk CAS. | |
| bool | llvm::cas::ondisk::useSmallMappingSize (const Twine &Path) |
Whether to use a small file mapping for ondisk databases created in Path. | |
| std::error_code | llvm::cas::ondisk::lockFileThreadSafe (int FD, llvm::sys::fs::LockKind Kind) |
Thread-safe alternative to sys::fs::lockFile. | |
| std::error_code | llvm::cas::ondisk::unlockFileThreadSafe (int FD) |
Thread-safe alternative to sys::fs::unlockFile. | |
| std::error_code | llvm::cas::ondisk::tryLockFileThreadSafe (int FD, std::chrono::milliseconds Timeout=std::chrono::milliseconds(0), llvm::sys::fs::LockKind Kind=llvm::sys::fs::LockKind::Exclusive) |
Thread-safe alternative to sys::fs::tryLockFile. | |
| Expected< size_t > | llvm::cas::ondisk::preallocateFileTail (int FD, size_t CurrentSize, size_t NewSize) |
Allocate space for the file FD on disk, if the filesystem supports it. | |
Variables | |
| constexpr StringLiteral | llvm::cas::ondisk::CASFormatVersion = "v1" |
| The version for all the ondisk database files. | |