kbelochapka wrote:

> I am generally not in favor of a json blob in the summary index. I need to 
> re-read the other reviewer's suggestions - what were the alternatives 
> considered recently?

Hi @teresajohnson, 
There are several possible alternatives:

1. Revert to the previous implementation: Serialize lto::Config into bitcode 
metadata, create a bitcode module containing this metadata, and attach the 
module to the summary index.

This approach is more complex than the current implementation and requires more 
extensive changes to the existing code.
It also introduces some performance overhead, since the metadata module must be 
recreated every time the summary index is serialized.

2. Pass the serialized lto::Config as a separate file: Instead of attaching the 
serialized configuration to the summary index, pass it to Clang as a separate 
file.

This would require a new Clang command-line option, although the configuration 
file name could potentially be derived from the summary index file name.
We would also need a mechanism to ensure that the distributed build system 
transfers this additional file to the remote worker.

3. Package the summary index and serialized lto::Config into an archive: Bundle 
both files into a single archive that can be transferred and processed together.

https://github.com/llvm/llvm-project/pull/219894
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to