[all-commits] [llvm/llvm-project] cb1e91: [libclc] add --only-needed to llvm-link when INTER...

Wenju He via All-commits all-commits at lists.llvm.org
Thu Mar 20 06:26:18 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb1e91c18dd20f6b2d1c38ce93befab87f77ce0f
      https://github.com/llvm/llvm-project/commit/cb1e91c18dd20f6b2d1c38ce93befab87f77ce0f
  Author: Wenju He <wenju.he at intel.com>
  Date:   2025-03-20 (Thu, 20 Mar 2025)

  Changed paths:
    M libclc/cmake/modules/AddLibclc.cmake

  Log Message:
  -----------
  [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



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list