[llvm] [M68k] ARII atomic load/store (PR #108982)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 17 08:30:22 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 f4172f6659ef14cbc235e3d690957de068cd55d4 b6dbda3dcd9281e5499c3d4e6ede6861a23b41da --extensions cpp -- llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp b/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
index a6f393bcd8..f496085c88 100644
--- a/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
+++ b/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
@@ -773,15 +773,16 @@ static bool isAddressBase(const SDValue &N) {
 }
 
 static bool AllowARIIWithZeroDisp(SDNode *Parent) {
-  if (!Parent) return false;
+  if (!Parent)
+    return false;
   switch (Parent->getOpcode()) {
-    case ISD::LOAD:
-    case ISD::STORE:
-    case ISD::ATOMIC_LOAD:
-    case ISD::ATOMIC_STORE:
-      return true;
-    default:
-      return false;
+  case ISD::LOAD:
+  case ISD::STORE:
+  case ISD::ATOMIC_LOAD:
+  case ISD::ATOMIC_STORE:
+    return true;
+  default:
+    return false;
   }
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list