[clang] [llvm] [DTLTO] Serialize of LTO Config (PR #219894)

Steven Wu via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 2 09:54:43 PDT 2026


cachemeifyoucan wrote:

> The main drawback is that it would require substantial changes to the existing implementation. For example, LTO.h would likely need to be rewritten almost entirely, potentially affecting 70% or more of the file.

You just need to replace LTO::Config and it should not affect anything in LTO.h? The switch should just be NFCI. 

I don't think tablegen is needed since everything in LTO::Config is very simple. You might still want to do the round trip if there are some customized handling that is not handled by macro. 

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


More information about the cfe-commits mailing list