LLVM: include/llvm/CAS/BuiltinUnifiedCASDatabases.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9#ifndef LLVM_CAS_BUILTINUNIFIEDCASDATABASES_H

10#define LLVM_CAS_BUILTINUNIFIEDCASDATABASES_H

11

13

15

18

19

20

22Expected<std::pair<std::unique_ptr, std::unique_ptr>>

24

25

26

27

28

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

55 StringRef Path, bool CheckHash, bool AllowRecovery, bool ForceValidation,

56 std::optional LLVMCasBinaryPath);

57

58}

59

60#endif

Tagged union holding either a T or a Error.

StringRef - Represent a constant reference to a string, i.e.

A cache from a key (that describes an action) to the result of performing that action.

Content-addressable storage for objects.

LLVM_ABI Expected< std::pair< std::unique_ptr< ObjectStore >, std::unique_ptr< ActionCache > > > createOnDiskUnifiedCASDatabases(StringRef Path)

Create on-disk ObjectStore and ActionCache instances based on ondisk::UnifiedOnDiskCache,...

ValidationResult

Represents the result of validating the contents using validateOnDiskUnifiedCASDatabasesIfNeeded.

Definition BuiltinUnifiedCASDatabases.h:29

@ Valid

The data is already valid.

Definition BuiltinUnifiedCASDatabases.h:31

@ Recovered

The data was invalid, but was recovered.

Definition BuiltinUnifiedCASDatabases.h:33

@ Skipped

Validation was skipped, as it was not needed.

Definition BuiltinUnifiedCASDatabases.h:35

Expected< ValidationResult > validateOnDiskUnifiedCASDatabasesIfNeeded(StringRef Path, bool CheckHash, bool AllowRecovery, bool ForceValidation, std::optional< StringRef > LLVMCasBinaryPath)

Validate the data in Path, if needed to ensure correctness.