[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 09:52:42 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:
> I don't love the new name as it isn't very clear (and the comment does not really add a lot of clarity). Maybe shouldMaterializeForDtlto with a clear comment as to what situations cause this to be set?
@teresajohnson what would you think about `extractForDistribution` as the function name? Maybe that's self-explaining?
https://github.com/llvm/llvm-project/pull/176928
More information about the llvm-commits
mailing list