[clang] [HIP][Clang][CodeGen] Handle hip bin symbols properly. (PR #107458)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 5 13:17:47 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff b798f4bd50bbf0f5eb46804afad10629797c73aa 99c7e926632b9ca52c18689fdab3a3358de5a3b6 --extensions cpp -- clang/lib/CodeGen/CGCUDANV.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CGCUDANV.cpp b/clang/lib/CodeGen/CGCUDANV.cpp
index 66a874c8c5..8a2f61ae26 100644
--- a/clang/lib/CodeGen/CGCUDANV.cpp
+++ b/clang/lib/CodeGen/CGCUDANV.cpp
@@ -840,10 +840,10 @@ llvm::Function *CGNVCUDARuntime::makeModuleCtorFunction() {
FatBinStr = new llvm::GlobalVariable(
CGM.getModule(), CGM.Int8Ty,
/*isConstant=*/true, llvm::GlobalValue::ExternalLinkage, nullptr,
- "__hip_fatbin" +
- (CGM.getLangOpts().CUID.empty() ? ""
- : "_" + CGM.getContext().getCUIDHash()),
- nullptr, llvm::GlobalVariable::NotThreadLocal);
+ "__hip_fatbin" + (CGM.getLangOpts().CUID.empty()
+ ? ""
+ : "_" + CGM.getContext().getCUIDHash()),
+ nullptr, llvm::GlobalVariable::NotThreadLocal);
cast<llvm::GlobalVariable>(FatBinStr)->setSection(FatbinConstantName);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/107458
More information about the cfe-commits
mailing list