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,c -- 
clang/test/CodeGen/AArch64/neon/neon-vget.c 
clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.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/CIRGenBuiltinAArch64.cpp 
b/clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp
index 275bf5641..d7347c55d 100644
--- a/clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp
@@ -2731,8 +2731,8 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned 
builtinID, const CallExpr *expr,
 
   case NEON::BI__builtin_neon_vget_lane_i8:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(uInt8Ty, 8));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vdupb_lane_i8:
     cgm.errorNYI(expr->getSourceRange(),
                  std::string("unimplemented AArch64 builtin call: ") +
@@ -2741,8 +2741,8 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned 
builtinID, const CallExpr *expr,
 
   case NEON::BI__builtin_neon_vgetq_lane_i8:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(uInt8Ty, 16));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vdupb_laneq_i8:
   case NEON::BI__builtin_neon_vget_lane_mf8:
   case NEON::BI__builtin_neon_vdupb_lane_mf8:
@@ -2754,8 +2754,8 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned 
builtinID, const CallExpr *expr,
     return mlir::Value{};
   case NEON::BI__builtin_neon_vget_lane_i16:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(uInt16Ty, 4));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vduph_lane_i16:
     cgm.errorNYI(expr->getSourceRange(),
                  std::string("unimplemented AArch64 builtin call: ") +
@@ -2763,8 +2763,8 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned 
builtinID, const CallExpr *expr,
     return mlir::Value{};
   case NEON::BI__builtin_neon_vgetq_lane_i16:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(uInt16Ty, 8));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vduph_laneq_i16:
     cgm.errorNYI(expr->getSourceRange(),
                  std::string("unimplemented AArch64 builtin call: ") +
@@ -2772,8 +2772,8 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned 
builtinID, const CallExpr *expr,
     return mlir::Value{};
   case NEON::BI__builtin_neon_vget_lane_i32:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(uInt32Ty, 2));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vdups_lane_i32:
   case NEON::BI__builtin_neon_vdups_lane_f32:
     cgm.errorNYI(expr->getSourceRange(),
@@ -2782,8 +2782,8 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned 
builtinID, const CallExpr *expr,
     return mlir::Value{};
   case NEON::BI__builtin_neon_vgetq_lane_i32:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(uInt32Ty, 4));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vdups_laneq_i32:
     cgm.errorNYI(expr->getSourceRange(),
                  std::string("unimplemented AArch64 builtin call: ") +
@@ -2791,8 +2791,8 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned 
builtinID, const CallExpr *expr,
     return mlir::Value{};
   case NEON::BI__builtin_neon_vget_lane_i64:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(uInt64Ty, 1));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vdupd_lane_i64:
   case NEON::BI__builtin_neon_vdupd_lane_f64:
     cgm.errorNYI(expr->getSourceRange(),
@@ -2801,8 +2801,8 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned 
builtinID, const CallExpr *expr,
     return mlir::Value{};
   case NEON::BI__builtin_neon_vgetq_lane_i64:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(uInt64Ty, 2));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vdupd_laneq_i64:
     cgm.errorNYI(expr->getSourceRange(),
                  std::string("unimplemented AArch64 builtin call: ") +
@@ -2810,16 +2810,16 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned 
builtinID, const CallExpr *expr,
     return mlir::Value{};
   case NEON::BI__builtin_neon_vget_lane_f32:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(floatTy, 2));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vget_lane_f64:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(doubleTy, 1));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vgetq_lane_f32:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(floatTy, 4));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vdups_laneq_f32:
     cgm.errorNYI(expr->getSourceRange(),
                  std::string("unimplemented AArch64 builtin call: ") +
@@ -2827,8 +2827,8 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned 
builtinID, const CallExpr *expr,
     return mlir::Value{};
   case NEON::BI__builtin_neon_vgetq_lane_f64:
     ops[0] = builder.createBitcast(ops[0], cir::VectorType::get(doubleTy, 2));
-    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()), 
ops[0],
-                                   emitScalarExpr(expr->getArg(1)));
+    return cir::VecExtractOp::create(builder, getLoc(expr->getExprLoc()),
+                                     ops[0], emitScalarExpr(expr->getArg(1)));
   case NEON::BI__builtin_neon_vdupd_laneq_f64:
   case NEON::BI__builtin_neon_vaddh_f16:
   case NEON::BI__builtin_neon_vsubh_f16:

``````````

</details>


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

Reply via email to