[PATCH] D112492: [HIP] Do not use kernel handle for MSVC target
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 25 14:31:07 PDT 2021
yaxunl created this revision.
yaxunl added a reviewer: tra.
yaxunl requested review of this revision.
Currently Visual Studio 2019 has a linker issue which causes linking error
when a template kernel is instantiated in different compilation units.
On the other hand, it is unnecessary to prefix kernel stub for MSVC
target since the host and device compilation uses different mangling
ABI.
This patch let clang not emit kernel handle for MSVC target to work
around the linker issue.
https://reviews.llvm.org/D112492
Files:
clang/include/clang/AST/GlobalDecl.h
clang/lib/CodeGen/CGCUDANV.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/test/CodeGenCUDA/kernel-stub-name.cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112492.382129.patch
Type: text/x-patch
Size: 12692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211025/7334c8d2/attachment-0001.bin>
More information about the cfe-commits
mailing list