[lld] [llvm] [DTLTO] support distributing bitcode from FatLTO objects (PR #176928)
Ben Dunbobbin via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 27 10:37:09 PST 2026
================
@@ -205,10 +206,14 @@ class InputFile {
LLVM_ABI BitcodeModule &getPrimaryBitcodeModule();
// Returns the memory buffer reference for this input file.
MemoryBufferRef getFileBuffer() const { return MbRef; }
- // Returns true if this input file is a member of an archive.
- bool isMemberOfArchive() const { return IsMemberOfArchive; }
- // Mark this input file as a member of archive.
- void memberOfArchive(bool MA) { IsMemberOfArchive = MA; }
+ // Returns true if this input should be materialized to disk for distribution.
+ bool shouldMaterialize() const { return ShouldMaterialize; }
----------------
bd1976bris wrote:
@teresajohnson sorry for the noise here (I'm afraid I often go round and round for these naming/commenting things). `extract` sounded good but these bitcode input files just exist as memory buffers at this point - so we're really just deciding to write them out (or not). Given that perhaps: `SerializeForDistribution` is better?
https://github.com/llvm/llvm-project/pull/176928
More information about the llvm-commits
mailing list