[all-commits] [llvm/llvm-project] a3ce7f: [HIP] Fix managed variable linkage
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Tue Feb 23 19:36:31 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a3ce7f5cd2ae236bec7752e343f4b63ddda7ebe7
https://github.com/llvm/llvm-project/commit/a3ce7f5cd2ae236bec7752e343f4b63ddda7ebe7
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2021-02-23 (Tue, 23 Feb 2021)
Changed paths:
M clang/lib/CodeGen/CGCUDANV.cpp
M clang/lib/CodeGen/CGCUDARuntime.h
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/test/CodeGenCUDA/device-var-linkage.cu
M clang/test/CodeGenCUDA/managed-var.cu
M llvm/lib/IR/ReplaceConstant.cpp
Log Message:
-----------
[HIP] Fix managed variable linkage
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.
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D96195
More information about the All-commits
mailing list