[all-commits] [llvm/llvm-project] 50835f: [Clang] Do not pass `-shared` when using `-r` for ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Jul 26 08:25:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50835f0a364e850e097c40f81364909c72bb2156
      https://github.com/llvm/llvm-project/commit/50835f0a364e850e097c40f81364909c72bb2156
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-07-26 (Fri, 26 Jul 2024)

  Changed paths:
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    M clang/test/Driver/amdgpu-toolchain.c

  Log Message:
  -----------
  [Clang] Do not pass `-shared` when using `-r` for AMDGPU (#100760)

Summary:
We can use `-r` and `--lto-emit-llvm` to get the LTO pass to optimize +
link LLVM-IR. Currently this doesn't work on AMDGPU because it always
passes `-shared` which is incompatible with `-r`. Fix that so we can use
it.



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