Structs

Linker 🔒
Maps LLVM module identifiers to their corresponding LLVM LTO cache keys

Constants

We keep track of the computed LTO cache keys from the previous session to determine which CGUs we can reuse.

Functions

fat_lto 🔒
run_fat 🔒
Performs fat LTO by merging all modules into a single one and returning it for further optimization.
run_thin 🔒
Performs thin LTO by performing necessary global analysis and returning two lists, one of the modules that need optimization and another for modules that can simply be copied over from the incr. comp. cache.
thin_lto 🔒
Prepare “thin” LTO to get run on these modules.