[RFC] A Unified LTO Bitcode Frontend

Hi Teresa,

Yes, the unified optimization pipeline and the split LTO units are orthogonal. But we provide pre-built bitcode libraries to our customers, and so for us to support WPD and CFI, we need to enable them both. With that in mind, we could redo the patch series as follows:

  1. Unified Pipeline in LLVM
  2. Unified Pipeline in Clang+LLD
  3. ModuleID changes
  4. SIE-specific settings (split LTO units, etc)

This would preserve the compatibility of bitcode files on our platform, while allowing for non-split units.

Thanks,
Matthew