[llvm] [AMDGPU] Reject illegal image atomic data widths in SelectionDAG (PR #210366)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 19 08:54:34 PDT 2026


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 cpp,h -- llvm/include/llvm/CodeGen/SelectionDAG.h llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/Target/AMDGPU/SIISelLowering.cpp --diff_from_common_commit
``````````

: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/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h
index 799fab77a..3e2bb19da 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAG.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAG.h
@@ -1521,8 +1521,8 @@ public:
   /// for any result of type MVT::Other, merged into a single MERGE_VALUES
   /// node. Used to salvage a chain when an operation cannot be lowered due
   /// to an error, and the program will be discarded.
-  LLVM_ABI SDValue getErrorMergeValues(ArrayRef<EVT> ResultTypes,
-                                       SDValue Chain, const SDLoc &dl);
+  LLVM_ABI SDValue getErrorMergeValues(ArrayRef<EVT> ResultTypes, SDValue Chain,
+                                       const SDLoc &dl);
 
   /// Loads are not normal binary operators: their result type is not
   /// determined by their operands, and they produce a value AND a token chain.

``````````

</details>


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


More information about the llvm-commits mailing list