[all-commits] [llvm/llvm-project] 3b172f: [HIP] Fix -fgpu-rdc for Windows

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Mon Dec 6 13:42:54 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b172f60c6926b43f87de1eaa3fa4c873bdb6de4
      https://github.com/llvm/llvm-project/commit/3b172f60c6926b43f87de1eaa3fa4c873bdb6de4
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2021-12-06 (Mon, 06 Dec 2021)

  Changed paths:
    M clang/lib/CodeGen/CGCUDANV.cpp
    M clang/lib/Driver/ToolChains/HIP.cpp
    M clang/test/CodeGenCUDA/device-stub.cu
    M clang/test/Driver/hip-toolchain-rdc.hip

  Log Message:
  -----------
  [HIP] Fix -fgpu-rdc for Windows

This patch fixes issues for -fgpu-rdc for Windows MSVC
toolchain:

Fix COFF specific section flags and remove section types
in llvm-mc input file for Windows.

Escape fatbin path in llvm-mc input file.

Add -triple option to llvm-mc.

Put __hip_gpubin_handle in comdat when it has linkonce_odr
linkage.

Reviewed by: Artem Belevich

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




More information about the All-commits mailing list