[PATCH] D115039: [HIP] Fix -fgpu-rdc for Windows
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 3 06:45:45 PST 2021
yaxunl created this revision.
yaxunl added a reviewer: tra.
yaxunl requested review of this revision.
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.
https://reviews.llvm.org/D115039
Files:
clang/lib/CodeGen/CGCUDANV.cpp
clang/lib/Driver/ToolChains/HIP.cpp
clang/test/CodeGenCUDA/device-stub.cu
clang/test/Driver/hip-toolchain-rdc.hip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115039.391625.patch
Type: text/x-patch
Size: 8343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211203/07e22c3e/attachment.bin>
More information about the cfe-commits
mailing list