[llvm] [SelectionDAG] Legalize vector types for atomic load (PR #111414)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 11:01:48 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 91fdfec263ff2b8e88433c4294a550cabb0f2314 0c84583a0ec693abd32b78e2835b71b7fea523a7 --extensions cpp,h -- llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
index 1e911da130..4f1504a0bc 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -452,10 +452,10 @@ SDValue DAGTypeLegalizer::ScalarizeVecRes_INSERT_VECTOR_ELT(SDNode *N) {
SDValue DAGTypeLegalizer::ScalarizeVecRes_ATOMIC_LOAD(AtomicSDNode *N) {
- SDValue Result = DAG.getAtomic(ISD::ATOMIC_LOAD, SDLoc(N),
- N->getMemoryVT().getVectorElementType(),
- N->getValueType(0).getVectorElementType(),
- N->getChain(), N->getBasePtr(), N->getMemOperand());
+ SDValue Result = DAG.getAtomic(
+ ISD::ATOMIC_LOAD, SDLoc(N), N->getMemoryVT().getVectorElementType(),
+ N->getValueType(0).getVectorElementType(), N->getChain(), N->getBasePtr(),
+ N->getMemOperand());
// Legalize the chain result - switch anything that used the old chain to
// use the new one.
``````````
</details>
https://github.com/llvm/llvm-project/pull/111414
More information about the llvm-commits
mailing list