[llvm] [IR] Allow vector cmpxchg (PR #209386)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 23:50:40 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 -- llvm/lib/AsmParser/LLParser.cpp llvm/lib/CodeGen/AtomicExpandPass.cpp llvm/lib/IR/Verifier.cpp llvm/unittests/IR/VerifierTest.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/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 2c95dee7a..755a51b4e 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -9104,9 +9104,8 @@ int LLParser::parseCmpXchg(Instruction *&Inst, PerFunctionState &PFS) {
   if (!Cmp->getType()->isIntOrIntVectorTy() &&
       !Cmp->getType()->isFPOrFPVectorTy() &&
       !Cmp->getType()->isPtrOrPtrVectorTy())
-    return error(CmpLoc,
-                 "cmpxchg operand must be an integer, floating point, "
-                 "pointer, or fixed vector of one of these types");
+    return error(CmpLoc, "cmpxchg operand must be an integer, floating point, "
+                         "pointer, or fixed vector of one of these types");
 
   const Align DefaultAlignment(
       PFS.getFunction().getDataLayout().getTypeStoreSize(

``````````

</details>


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


More information about the llvm-commits mailing list