[lld] [llvm] [DTLTO] Refactor the DTLTO code. (PR #192629)

Konstantin Belochapka via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 27 03:02:50 PDT 2026


kbelochapka wrote:

> > > Can you give a high level summary in the PR description of how this was refactored? There seem to be quite a lot of changes to how the backends and DLTO are set up, for example. And also, why there are effects to the tests.
> > 
> > 
> > @teresajohnson, At a high level, the idea behind the refactor can be summarized as a change in control flow:
> > Before the refactor: `[Linker]-->[DTLTO: Archives handling]-->[LTO front end]-->[ThinLTO front end]-->[DTLTO: Out of process back end]-->[Distributed build system]`
> 
> What is meant by "LTO front end" and "ThinLTO front end" in this context?
> 
Sorry for the terminological confusion. 
`LTO front end` is the  layer of code behind `lto::LTO::run()`. It combines the input bitcode modules and performs code generation by calling `lto::backend()`. Here, `front end` means the linker side of LTO interface.

`ThinLTO front end` — the code behind `lto::LTO::runThinLTO()`. It merges bitcode input file summaries and invoke one of the available ThinLTO backend. So, here `front end`  means `ThinLTO` interface to one of `ThinLTO` back ends.

https://github.com/llvm/llvm-project/pull/192629


More information about the llvm-commits mailing list