[PATCH] D85223: [CUDA][HIP] Support accessing static device variable in host code for -fgpu-rdc
Jonas Hahnfeld via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 20 04:33:47 PDT 2021
Hahnfeld added inline comments.
================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:6265-6268
+void CodeGenModule::printPostfixForExternalizedStaticVar(
+ llvm::raw_ostream &OS) const {
+ OS << ".static." << getContext().getCUIDHash();
+}
----------------
I've tried to use this with CUDA, but it errors out because `.` is not allowed in identifiers. Could you check if https://reviews.llvm.org/D108456 also works for HIP?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85223/new/
https://reviews.llvm.org/D85223
More information about the cfe-commits
mailing list