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 -- 
clang/test/AST/ByteCode/x86-psadbw-psadbw128.cpp clang/lib/AST/ExprConstant.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/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 3a41b262d..e862ba7b7 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -1901,7 +1901,8 @@ static bool EvaluateFixedPointOrInteger(const Expr *E, 
APFixedPoint &Result,
 static bool EvaluateFixedPoint(const Expr *E, APFixedPoint &Result,
                                EvalInfo &Info);
 
-static bool EvaluatePSADBW128(const CallExpr *E, EvalInfo &Info, APValue 
&Result);
+static bool EvaluatePSADBW128(const CallExpr *E, EvalInfo &Info,
+                              APValue &Result);
 
 
//===----------------------------------------------------------------------===//
 // Misc utilities
@@ -12080,11 +12081,11 @@ static bool evalPackBuiltin(const CallExpr *E, 
EvalInfo &Info, APValue &Result,
   return true;
 }
 
-static bool EvaluatePSADBW128(const CallExpr *E, EvalInfo &Info, APValue 
&Result) {
+static bool EvaluatePSADBW128(const CallExpr *E, EvalInfo &Info,
+                              APValue &Result) {
   // 1) Evaluate the arguments into APValues
   APValue A, B;
-  if (!Evaluate(A, Info, E->getArg(0)) ||
-      !Evaluate(B, Info, E->getArg(1)))
+  if (!Evaluate(A, Info, E->getArg(0)) || !Evaluate(B, Info, E->getArg(1)))
     return false;
 
   if (!A.isVector() || !B.isVector())
@@ -12127,7 +12128,6 @@ static bool EvaluatePSADBW128(const CallExpr *E, 
EvalInfo &Info, APValue &Result
   return true;
 }
 
-
 static bool evalShuffleGeneric(
     EvalInfo &Info, const CallExpr *Call, APValue &Out,
     llvm::function_ref<std::pair<unsigned, int>(unsigned, unsigned)>
@@ -12411,7 +12411,7 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr 
*E) {
     return EvaluateBinOpExpr(llvm::APIntOps::avgCeilU);
 
   case X86::BI__builtin_ia32_psadbw128:
-  return EvaluatePSADBW128(E, Info, Result);
+    return EvaluatePSADBW128(E, Info, Result);
 
   case clang::X86::BI__builtin_ia32_pmulhrsw128:
   case clang::X86::BI__builtin_ia32_pmulhrsw256:

``````````

</details>


https://github.com/llvm/llvm-project/pull/169253
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to