[all-commits] [llvm/llvm-project] 4cb425: [CUDA][HIP] Fix device variables used by host
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Thu May 20 14:05:12 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4cb42564ec4b56ef7eb4758bfa4ddf844a163687
https://github.com/llvm/llvm-project/commit/4cb42564ec4b56ef7eb4758bfa4ddf844a163687
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2021-05-20 (Thu, 20 May 2021)
Changed paths:
M clang/include/clang/Sema/Sema.h
M clang/lib/CodeGen/CGDeclCXX.cpp
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/lib/Sema/SemaCUDA.cpp
M clang/lib/Sema/SemaDeclAttr.cpp
M clang/lib/Sema/SemaExpr.cpp
A clang/test/AST/ast-dump-constant-var.cu
M clang/test/CodeGenCUDA/host-used-device-var.cu
M clang/test/SemaCUDA/static-device-var.cu
Log Message:
-----------
[CUDA][HIP] Fix device variables used by host
variables emitted on both host and device side with different addresses
when ODR-used by host function should not cause device side counter-part
to be force emitted.
This fixes the regression caused by https://reviews.llvm.org/D102237
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D102801
More information about the All-commits
mailing list