-
Notifications
You must be signed in to change notification settings - Fork 351
[CAS] Introduce ActionCache into llvm::cas #5163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CAS] Introduce ActionCache into llvm::cas #5163
Conversation
|
Finish the ActionCache implementation. This is an simplified version (intentionally) from Duncan's scratch: #4715 Currently only support CASID -> CASID mapping and the key value storage is from HashValue -> HashValue. Please check interface and all the I will start to remove the ActionCache from CASDB and rename CASDB next. |
|
@swift-ci please test |
97fd59f to
efb39dc
Compare
|
@swift-ci please test |
e7f0fdb to
e5c073f
Compare
|
@swift-ci please test |
e5c073f to
dfcc977
Compare
027d30c to
fd4d67f
Compare
|
@swift-ci please test |
fd4d67f to
4122e16
Compare
|
@swift-ci please test |
llvm/include/llvm/CAS/ActionCache.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we made this public, we could potentially avoid needing to pass both a CAS and an ActionCache everywhere. It seems like to use the cache you are already tied to using a specific CAS since otherwise the ObjectRef won't make sense. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That doesn't really work unless we make ActionCache owns CAS, otherwise this is going to open to all kinds of life time issues.
4122e16 to
756093f
Compare
|
@swift-ci please test |
Introduce ActionCache which can be used together with a CAS to cache computation results with a key.
Distinguish errors and cache misses when calling ActionCache::get method.
756093f to
d2b2b93
Compare
|
@swift-ci please test |
d2b2b93 to
1f971c1
Compare
|
@swift-ci please test |
|
@swift-ci please test |
1f971c1 to
f772452
Compare
|
@swift-ci please test |
Introduce ActionCache which can be used together with a CAS to cache computation results with a key.
Introduce ActionCache which can be used together with a CAS to cache computation results with a key.
Introduce ActionCache which can be used together with a CAS to cache computation results with a key.
Introduce ActionCache which can be used together with a CAS to cache
computation results with a key.