[llvm] [AMDGPU] Sink uniform buffer address offsets into soffset (PR #160939)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 26 16:39:25 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 origin/main HEAD --extensions h,cpp -- llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.h
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
index 3a67170cc..085365996 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
@@ -377,7 +377,8 @@ bool AMDGPUDAGToDAGISel::sinkUniformAddendIntoSOffset(SDNode *N, bool IsStore) {
 
   // Buffer operand layout:
   // Load:  (chain, rsrc, vindex, voffset, soffset, offset, cachepolicy, idxen)
-  // Store: (chain, vdata, rsrc, vindex, voffset, soffset, offset, cachepolicy, idxen)
+  // Store: (chain, vdata, rsrc, vindex, voffset, soffset, offset, cachepolicy,
+  // idxen)
   const unsigned VIndexIdx = IsStore ? 3 : 2;
   const unsigned VOffsetIdx = IsStore ? 4 : 3;
   const unsigned SOffsetIdx = IsStore ? 5 : 4;

``````````

</details>


https://github.com/llvm/llvm-project/pull/160939


More information about the llvm-commits mailing list