[llvm-branch-commits] [CAS] Add OnDiskHashMappedTrie (PR #114100)

2024-10-29 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/114100 Add OnDiskHashMappedTrie. This is a on-disk persistent hash map that uses a Trie data structure that is similar to TrieRawHashMap. OnDiskHashMappedTrie is thread safe and process safe. It is mostly lock f

[llvm-branch-commits] [CAS] Add MappedFileRegionBumpPtr (PR #114099)

2024-10-29 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/114099 Add MappedFileRegionBumpPtr which can be served as a file system backed persistent memory allocator. The allocator works like a BumpPtrAllocator, and is designed to be thread safe and process safe. The i

[llvm-branch-commits] [CAS] Add llvm-cas tools to inspect on-disk LLVMCAS (PR #114104)

2024-10-29 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/114104 Add a command-line tool `llvm-cas` to inspect the OnDisk CAS for debugging purpose. It can be used to lookup/update ObjectStore or put/get cache entries from ActionCache, together with other debugging cap

[llvm-branch-commits] [CAS] Add OnDiskCAS (PR #114103)

2024-10-29 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/114103 Add OnDiskCAS abstraction, that implements ObjectStore and ActionCache interface using OnDiskGraphDB and OnDiskKeyValueDB. ___ llvm-branch-commits mailing li

[llvm-branch-commits] [FileSystem] Allow exclusive file lock (PR #114098)

2024-10-29 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/114098 Add parameter to file lock API to allow exclusive file lock. Both Unix and Windows support lock the file exclusively for write for one process and LLVM OnDiskCAS uses exclusive file lock to coordinate CAS

[llvm-branch-commits] [CAS] Add OnDiskGraphDB and OnDiskKeyValueDB (PR #114102)

2024-10-29 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/114102 Add OnDiskGraphDB and OnDiskKeyValueDB that can be used to implement ObjectStore and ActionCache respectively. Those are on-disk persistent storage that build upon OnDiskTrieHashMap and implements key fun

[llvm-branch-commits] [CAS] Add ActionCache to LLVMCAS Library (PR #114097)

2024-10-29 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/114097 ActionCache is used to store a mapping from CASID to CASID. The current implementation of the ActionCache can only be used to associate the key/value from the same hash context. ActionCache has two opera

[llvm-branch-commits] [CAS] Add llvm-cas tools to inspect on-disk LLVMCAS (PR #114093)

2024-10-29 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan closed https://github.com/llvm/llvm-project/pull/114093 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [CAS] Add llvm-cas tools to inspect on-disk LLVMCAS (PR #114094)

2024-10-29 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan closed https://github.com/llvm/llvm-project/pull/114094 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [CAS] Add llvm-cas tools to inspect on-disk LLVMCAS (PR #114094)

2024-10-29 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/114094 Add a command-line tool `llvm-cas` to inspect the OnDisk CAS for debugging purpose. It can be used to lookup/update ObjectStore or put/get cache entries from ActionCache, together with other debugging cap

[llvm-branch-commits] [CAS] Add llvm-cas tools to inspect on-disk LLVMCAS (PR #114093)

2024-10-29 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/114093 Add a command-line tool `llvm-cas` to inspect the OnDisk CAS for debugging purpose. It can be used to lookup/update ObjectStore or put/get cache entries from ActionCache, together with other debugging cap

[llvm-branch-commits] Address review feedback (PR #113367)

2024-10-22 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan closed https://github.com/llvm/llvm-project/pull/113367 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] Address review feedback (PR #113367)

2024-10-22 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/113367 None ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] Frontend: Adopt llvm::vfs::OutputBackend in CompilerInstance (PR #113364)

2024-10-22 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/113364 Adopt new virtual output backend in CompilerInstance. ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[llvm-branch-commits] Support: Add vfs::OutputBackend and OutputFile to virtualize compiler outputs (PR #113363)

2024-10-22 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/113363 Add OutputBackend and OutputFile to the `llvm::vfs` namespace for virtualizing compiler outputs. This is intended for use in Clang, The headers are: - llvm/Support/VirtualOutputConfig.h - llvm/Support/V

[llvm-branch-commits] Address review feedback (PR #113361)

2024-10-22 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan closed https://github.com/llvm/llvm-project/pull/113361 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] Address review feedback (PR #113361)

2024-10-22 Thread Steven Wu via llvm-branch-commits
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/113361 None ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits