[clang] [clang] constexpr built-in elementwise bitreverse function. (PR #118177)

via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 2 05:47:38 PST 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 4148aa63e2285ec7198c67d9b231b9097076ba8e 65f8be8b2144c31dc8282ab096ae8225b9da4b72 --extensions c,cpp -- clang/lib/AST/ExprConstant.cpp clang/test/CodeGen/builtins-elementwise-math.c clang/test/Sema/constant_builtins_vector.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 7338ab53d7..6b5b95aee3 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -11331,7 +11331,8 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) {
         break;
       case Builtin::BI__builtin_elementwise_bitreverse:
         ResultElements.push_back(
-            APValue(APSInt(Elt.reverseBits(), DestEltTy->isUnsignedIntegerOrEnumerationType())));
+            APValue(APSInt(Elt.reverseBits(),
+                           DestEltTy->isUnsignedIntegerOrEnumerationType())));
         break;
       }
     }

``````````

</details>


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


More information about the cfe-commits mailing list