[clang] [HIP][Clang][CodeGen] Handle hip bin symbols properly. (PR #107458)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 6 10:40:21 PDT 2024
================
@@ -840,8 +840,10 @@ llvm::Function *CGNVCUDARuntime::makeModuleCtorFunction() {
FatBinStr = new llvm::GlobalVariable(
CGM.getModule(), CGM.Int8Ty,
/*isConstant=*/true, llvm::GlobalValue::ExternalLinkage, nullptr,
- "__hip_fatbin_" + CGM.getContext().getCUIDHash(), nullptr,
- llvm::GlobalVariable::NotThreadLocal);
+ "__hip_fatbin" + (CGM.getLangOpts().CUID.empty()
+ ? ""
----------------
jofrn wrote:
The apps that relied on the ID without an '_' broke to begin with, so we should go ahead with it.(?)
https://github.com/llvm/llvm-project/pull/107458
More information about the cfe-commits
mailing list