[llvm] Add 3 way compare <=> integer intrinsics to Langref (PR #83227)

via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 10 23:13:10 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 5899599b01d86545896bd21bd15fb5cb619bd6c7 7651b2ea9cbfb278f2bb68ce5040eb33753d99ba -- llvm/lib/IR/Verifier.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index de828664b4..cce841fc83 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -5241,16 +5241,21 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
     Type *SrcTy = Call.getOperand(0)->getType();
     Type *DestTy = Call.getType();
 
-    Check(SrcTy->isIntOrIntVectorTy(), "[u]scmp only operates on integers", Call);
+    Check(SrcTy->isIntOrIntVectorTy(), "[u]scmp only operates on integers",
+          Call);
     Check(DestTy->isIntOrIntVectorTy(), "[u]scmp only produces integers", Call);
-    Check(DestTy->getScalarSizeInBits() >= 2, "DestTy must be at least 2 bits wide", Call);
+    Check(DestTy->getScalarSizeInBits() >= 2,
+          "DestTy must be at least 2 bits wide", Call);
 
     auto isDestTypeVector = DestTy->isVectorTy();
     if (isDestTypeVector) {
       Check(SrcTy->isVectorTy() == isDestTypeVector,
-        "[u]scmp source and destination must both be a vector or neither", Call);
+            "[u]scmp source and destination must both be a vector or neither",
+            Call);
       Check(SrcTy->getArrayNumElements() == DestTy->getArrayNumElements(),
-        "the return type the first arg type must have the same number of elements", Call);
+            "the return type the first arg type must have the same number of "
+            "elements",
+            Call);
     }
     break;
   }

``````````

</details>


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


More information about the llvm-commits mailing list