Wenju He cb1e91c18d
[libclc] add --only-needed to llvm-link when INTERNALIZE flag is set (#130871)
When -internalize flag is passed to llvm-link, we only need to link in
needed symbols. This PR reduces size of linked bitcode, e.g. by removing
following symbols:

    _Z12__clc_sw_fmaDv16_fS_S_
    _Z12__clc_sw_fmaDv2_fS_S_
    _Z12__clc_sw_fmaDv3_fS_S_
    _Z12__clc_sw_fmaDv4_fS_S_
    _Z12__clc_sw_fmaDv8_fS_S_
    _Z12__clc_sw_fmafff
2025-03-20 13:25:55 +00:00
..