[CAS] Cache symbol graph outputs

The symbol graph output from a module can contain an arbitrary number of
files, depending on what extensions it contains, so cache a list of
symbol graph files with their base name and contents so that they can be
replayed.

rdar://140286819
This commit is contained in:
Ben Langmuir
2024-12-03 13:04:09 -08:00
parent ecf7ac910e
commit e7c37655e4
10 changed files with 127 additions and 10 deletions

View File

@@ -486,6 +486,7 @@ void CompilerInstance::setupOutputBackend() {
auto &InAndOuts = Invocation.getFrontendOptions().InputsAndOutputs;
CASOutputBackend = createSwiftCachingOutputBackend(
*CAS, *ResultCache, *CompileJobBaseKey, InAndOuts,
Invocation.getFrontendOptions(),
Invocation.getFrontendOptions().RequestedAction);
if (Invocation.getIRGenOptions().UseCASBackend) {