This is an archive of the discontinued LLVM Phabricator instance.

[Support] Improve Caching conformance with Support library behavior
ClosedPublic

Authored by noajshu on Nov 2 2021, 10:21 PM.

Details

Summary

This diff makes several amendments to the local file caching mechanism which was migrated from ThinLTO to Support in rGe678c51177102845c93529d457b020f969125373 in response to follow-up discussion on that commit.

Diff Detail

Event Timeline

noajshu created this revision.Nov 2 2021, 10:21 PM
Herald added a reviewer: gkm. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
noajshu requested review of this revision.Nov 2 2021, 10:21 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 2 2021, 10:21 PM
noajshu updated this revision to Diff 384545.Nov 3 2021, 11:42 AM

Improve error handling in Caching support library.
Most of the functions now return Expected<>, except for the non-trivial destructor of CacheStream.

lattner accepted this revision.Nov 3 2021, 12:39 PM
lattner added a subscriber: lattner.

nice, thank you for improving this!

This revision is now accepted and ready to land.Nov 3 2021, 12:39 PM
noajshu updated this revision to Diff 384592.Nov 3 2021, 2:55 PM

Rebase against main.