diff options
author | Nikita Popov <npopov@redhat.com> | 2025-02-18 09:17:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-18 09:17:51 +0100 |
commit | e235fcb582eec5f58c905b66f96d0732d17b875e (patch) | |
tree | 21ec790801f4c4fe0e54847fdeadf6f5e14c251a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 13de15c9c49068db850368c45ffed8f7bbf07f20 (diff) | |
download | llvm-e235fcb582eec5f58c905b66f96d0732d17b875e.zip llvm-e235fcb582eec5f58c905b66f96d0732d17b875e.tar.gz llvm-e235fcb582eec5f58c905b66f96d0732d17b875e.tar.bz2 |
[BOLT] Only link and initialize supported targets (#127509)
Bolt currently links and initializes all LLVM targets. This
substantially increases the binary size, and link time if LTO is used.
Instead, only link the targets specified by BOLT_TARGETS_TO_BUILD. We
also have to only initialize those targets, so generate a
TargetConfig.def file with the necessary information. The way the
initialization is done mirrors what llvm-exegesis does.
This reduces llvm-bolt size from 137MB to 78MB for me.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions