[llvm] [AMDGPU] Add .entry_point back into PAL metadata (PR #124925)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 02:32:52 PST 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 7441e87fe05376782d0ddb90a13e1756eb1b1976 0384f09a74c3b70ff857b7be4dbcd55433e16c30 --extensions cpp -- llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp b/llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
index a61bbe13cb..296031e4a0 100644
--- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
+++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
@@ -264,7 +264,8 @@ void AMDGPUPALMetadata::setEntryPoint(unsigned CC, StringRef Name) {
SmallString<16> EPName("_amdgpu_");
raw_svector_ostream EPNameOS(EPName);
EPNameOS << getStageName(CC) + 1;
- getHwStage(CC)[".entry_point"] = MsgPackDoc.getNode(EPNameOS.str(), /*Copy=*/true);
+ getHwStage(CC)[".entry_point"] =
+ MsgPackDoc.getNode(EPNameOS.str(), /*Copy=*/true);
}
// Set the number of used vgprs in the metadata. This is an optional
``````````
</details>
https://github.com/llvm/llvm-project/pull/124925
More information about the llvm-commits
mailing list