[clang] [HIP][Clang][CodeGen] Handle hip bin symbols properly. (PR #107458)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 5 14:47:12 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()
+ ? ""
----------------
yxsamliu wrote:
this change is unnecessary and may break some existing app
https://github.com/llvm/llvm-project/pull/107458
More information about the cfe-commits
mailing list