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 c,cpp --
clang/test/CIR/CodeGenBuiltins/X86/avx512vl-builtins.c
clang/test/CIR/CodeGenBuiltins/X86/avx512vlvbmi2-builtins.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 f893c7d2a..df1ced752 100644
--- a/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
@@ -84,10 +84,16 @@ static mlir::Value getMaskVecValue(CIRGenBuilderTy
&builder, mlir::Location loc,
}
return maskVec;
}
-static mlir::Value emitX86CompressExpand(CIRGenBuilderTy &builder,
mlir::Location loc, mlir::Value source, mlir::Value mask, mlir::Value
inputVector, const std::string &id){
+static mlir::Value emitX86CompressExpand(CIRGenBuilderTy &builder,
+ mlir::Location loc, mlir::Value
source,
+ mlir::Value mask,
+ mlir::Value inputVector,
+ const std::string &id) {
auto ResultTy = cast<cir::VectorType>(mask.getType());
- mlir::Value MaskValue = getMaskVecValue(builder, loc, inputVector,
cast<cir::VectorType>(ResultTy).getSize());
- return emitIntrinsicCallOp(builder, loc, id, ResultTy, source, mask,
MaskValue);
+ mlir::Value MaskValue = getMaskVecValue(
+ builder, loc, inputVector, cast<cir::VectorType>(ResultTy).getSize());
+ return emitIntrinsicCallOp(builder, loc, id, ResultTy, source, mask,
+ MaskValue);
}
mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID,
@@ -447,9 +453,10 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned
builtinID,
case X86::BI__builtin_ia32_expandhi512_mask:
case X86::BI__builtin_ia32_expandqi128_mask:
case X86::BI__builtin_ia32_expandqi256_mask:
- case X86::BI__builtin_ia32_expandqi512_mask:{
+ case X86::BI__builtin_ia32_expandqi512_mask: {
mlir::Location loc = getLoc(expr->getExprLoc());
- return emitX86CompressExpand(builder, loc, ops[0], ops[1], ops[2],
"x86_avx512_mask_expand");
+ return emitX86CompressExpand(builder, loc, ops[0], ops[1], ops[2],
+ "x86_avx512_mask_expand");
}
case X86::BI__builtin_ia32_compressdf128_mask:
case X86::BI__builtin_ia32_compressdf256_mask:
@@ -468,9 +475,10 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned
builtinID,
case X86::BI__builtin_ia32_compresshi512_mask:
case X86::BI__builtin_ia32_compressqi128_mask:
case X86::BI__builtin_ia32_compressqi256_mask:
- case X86::BI__builtin_ia32_compressqi512_mask:{
+ case X86::BI__builtin_ia32_compressqi512_mask: {
mlir::Location loc = getLoc(expr->getExprLoc());
- return emitX86CompressExpand(builder, loc, ops[0], ops[1], ops[2],
"x86_avx512_mask_compress");
+ return emitX86CompressExpand(builder, loc, ops[0], ops[1], ops[2],
+ "x86_avx512_mask_compress");
}
case X86::BI__builtin_ia32_gather3div2df:
case X86::BI__builtin_ia32_gather3div2di:
``````````
</details>
https://github.com/llvm/llvm-project/pull/169582
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits