[clang] HIPSPV: Unbundle SDL (PR #136412)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 2 01:46:21 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- clang/lib/Driver/ToolChains/HIPSPV.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/HIPSPV.cpp b/clang/lib/Driver/ToolChains/HIPSPV.cpp
index 0f6a9c1aa..39f5e51ba 100644
--- a/clang/lib/Driver/ToolChains/HIPSPV.cpp
+++ b/clang/lib/Driver/ToolChains/HIPSPV.cpp
@@ -76,9 +76,10 @@ void HIPSPV::Linker::constructLinkAndEmitSpirvCommand(
// Add static device libraries using the common helper function.
// This handles unbundling archives (.a) containing bitcode bundles.
StringRef Arch = getToolChain().getTriple().getArchName();
- StringRef Target = "generic"; // SPIR-V is generic, no specific target ID like -mcpu
+ StringRef Target =
+ "generic"; // SPIR-V is generic, no specific target ID like -mcpu
tools::AddStaticDeviceLibsLinking(C, *this, JA, Inputs, Args, LinkArgs, Arch,
- Target, /*IsBitCodeSDL=*/true);
+ Target, /*IsBitCodeSDL=*/true);
LinkArgs.append({"-o", TempFile});
const char *LlvmLink =
Args.MakeArgString(getToolChain().GetProgramPath("llvm-link"));
``````````
</details>
https://github.com/llvm/llvm-project/pull/136412
More information about the cfe-commits
mailing list