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/CIR/CodeGen/X86/compressStore_builtin.c
clang/lib/CIR/CodeGen/CIRGenBuiltinX86.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/CIRGenBuiltinX86.cpp
b/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
index 5c3e7f751..d45ee7e90 100644
--- a/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
@@ -90,13 +90,17 @@ static mlir::Value getMaskVecValue(CIRGenFunction &cgf,
const CallExpr *expr,
return maskVec;
}
-static mlir::Value emitX86CompressStore(CIRGenFunction &cgf, const CallExpr
*expr, ArrayRef<mlir::Value> ops){
+static mlir::Value emitX86CompressStore(CIRGenFunction &cgf,
+ const CallExpr *expr,
+ ArrayRef<mlir::Value> ops) {
auto ResultTy = cast<cir::VectorType>(ops[1].getType());
- mlir::Value MaskValue = getMaskVecValue(cgf, expr, ops[2],
cast<cir::VectorType>(ResultTy).getSize());
+ mlir::Value MaskValue = getMaskVecValue(
+ cgf, expr, ops[2], cast<cir::VectorType>(ResultTy).getSize());
mlir::Value ptr = ops[0];
- return emitIntrinsicCallOp(cgf, expr, "masked_compressstore", ResultTy,
llvm::SmallVector<mlir::Value, 3>{ops[1], ptr, MaskValue});
-
+ return emitIntrinsicCallOp(
+ cgf, expr, "masked_compressstore", ResultTy,
+ llvm::SmallVector<mlir::Value, 3>{ops[1], ptr, MaskValue});
}
mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID,
const CallExpr *expr) {
@@ -408,7 +412,7 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned
builtinID,
case X86::BI__builtin_ia32_expandloadhi512_mask:
case X86::BI__builtin_ia32_expandloadqi128_mask:
case X86::BI__builtin_ia32_expandloadqi256_mask:
- case X86::BI__builtin_ia32_expandloadqi512_mask:{
+ case X86::BI__builtin_ia32_expandloadqi512_mask: {
cgm.errorNYI(expr->getSourceRange(),
std::string("unimplemented X86 builtin call: ") +
getContext().BuiltinInfo.getName(builtinID));
``````````
</details>
https://github.com/llvm/llvm-project/pull/169648
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits