[all-commits] [llvm/llvm-project] 57a210: [CUDA][HIP] Fix linkage of __clang_gpu_used_external

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Tue Apr 26 17:44:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57a210e5b705f4d176facbd8a15aa3e89ea9e335
      https://github.com/llvm/llvm-project/commit/57a210e5b705f4d176facbd8a15aa3e89ea9e335
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2022-04-26 (Tue, 26 Apr 2022)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/CodeGenCUDA/host-used-extern.cu

  Log Message:
  -----------
  [CUDA][HIP] Fix linkage of __clang_gpu_used_external

Different TU's may have this globl var. appending linkage can
only be used with lld recognized special variables.

Change it to internal linkage.

Reviewed by: Artem Belevich

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




More information about the All-commits mailing list