[PATCH] D96195: [HIP] Fix managed variable linkage
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 5 20:19:18 PST 2021
yaxunl created this revision.
yaxunl added a reviewer: tra.
Herald added subscribers: dexonsmith, hiraditya.
yaxunl requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Currently managed variables are emitted as undefined symbols, which
causes difficulty for diagnosing undefined symbols for non-managed
variables.
This patch transforms managed variables in device compilation so that
they can be emitted as normal variables.
https://reviews.llvm.org/D96195
Files:
clang/lib/CodeGen/CGCUDANV.cpp
clang/lib/CodeGen/CGCUDARuntime.h
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGenCUDA/device-var-linkage.cu
clang/test/CodeGenCUDA/managed-var.cu
llvm/lib/IR/ReplaceConstant.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96195.321915.patch
Type: text/x-patch
Size: 16713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210206/022851bc/attachment-0001.bin>
More information about the cfe-commits
mailing list