[clang] [lld] [llvm] [llvm][lld][clang] Delay initializing TargetOptions in LTO builds until a Triple is available (PR #179509)

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 11 08:52:07 PST 2026


teresajohnson wrote:

> That sounds like a reasonable idea. A lot of the complexity I'm noticing is in how llvm/lib/LTO.cpp sets up and configures the different backends. There seems to be an awful lot of duplicated code, and there's also a lot of callbacks getting created/registered. I'm hoping to take a look over the next quarter at refactoring/consolidating/simplifying some of this.

That would be awesome. I myself have trouble tracing through all of this and I've looked at this code more than most people.

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


More information about the cfe-commits mailing list