[all-commits] [llvm/llvm-project] f1aee3: [HIP] Instruct lld to go through all archives

Siu Chi Chan via All-commits all-commits at lists.llvm.org
Fri Jun 9 05:51:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1aee32f1c85aa476bce70ec110284011c6df354
      https://github.com/llvm/llvm-project/commit/f1aee32f1c85aa476bce70ec110284011c6df354
  Author: Siu Chi Chan <siuchi.chan at amd.com>
  Date:   2023-06-09 (Fri, 09 Jun 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/HIPAMD.cpp
    M clang/test/Driver/hip-toolchain-rdc-separate.hip
    M clang/test/Driver/hip-toolchain-rdc-static-lib.hip

  Log Message:
  -----------
  [HIP] Instruct lld to go through all archives

Add the --whole-archive flag when linking HIP programs to instruct lld
to go through every archive library to link in all the kernel functions
(entry pointers to the GPU program); otherwise, lld may skip some
library files if there are no more symbols that need to be resolved.

Differential Revision: https://reviews.llvm.org/D152207

Change-Id: I084d3d606f9cee646f9adc65f4b648c9bcb252e6




More information about the All-commits mailing list