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 h,cpp -- 
clang/test/CIR/CodeGen/fixed-point-arith.cpp 
clang/include/clang/CIR/MissingFeatures.h 
clang/lib/CIR/CodeGen/CIRGenExprScalar.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/CIR/CodeGen/CIRGenExprScalar.cpp 
b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
index 887d392f7..13e2e353f 100644
--- a/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
@@ -616,7 +616,8 @@ public:
     return VisitUnaryPrePostIncDec(e);
   }
 
-  mlir::Value emitFixedPointIncDec(const UnaryOperator *e, mlir::Value value, 
QualType type);
+  mlir::Value emitFixedPointIncDec(const UnaryOperator *e, mlir::Value value,
+                                   QualType type);
   mlir::Value emitScalarPrePostIncDec(const UnaryOperator *e, LValue lv) {
     if (cgf.getLangOpts().OpenMP)
       cgf.cgm.errorNYI(e->getSourceRange(), "inc/dec OpenMP");
@@ -2308,7 +2309,8 @@ struct FixedPointBuilder {
       // We have to cast the RHS to the matching int type, but we have to do so
       // through unsigned so we can ensure we get zext.
       auto rhsIntTy = mlir::cast<cir::IntType>(rhs.getType());
-      auto rhsUnsignedTy = cir::IntType::get(builder.getContext(), 
rhsIntTy.getWidth(), /*isSigned=*/false);
+      auto rhsUnsignedTy = cir::IntType::get(
+          builder.getContext(), rhsIntTy.getWidth(), /*isSigned=*/false);
 
       mlir::Value rhsUnsigned =
           builder.createCast(cir::CastKind::integral, rhs, rhsUnsignedTy);
@@ -2791,7 +2793,6 @@ mlir::Value ScalarExprEmitter::emitShl(const BinOpInfo 
&ops) {
   if (ops.isFixedPointOp())
     return emitFixedPointBinOp(ops);
 
-
   // CIR accepts shift between different types, meaning nothing special
   // to be done here. OTOH, LLVM requires the LHS and RHS to be the same type:
   // promote or truncate the RHS to the same size as the LHS.

``````````

</details>


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

Reply via email to