[clang] [CIR][X86] Implement convert_half builtin (PR #171615)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 10 05:17:44 PST 2025
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/CodeGen/X86/cir-convert-half.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 ddf6d7060..41386e5ad 100644
--- a/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
@@ -1623,7 +1623,8 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID,
}
case X86::BI__builtin_ia32_cvtneps2bf16_128_mask: {
mlir::Location loc = getLoc(expr->getExprLoc());
- return emitIntrinsicCallOp(builder, loc, "x86.avx512bf16.mask.cvtneps2bf16.128",
+ return emitIntrinsicCallOp(builder, loc,
+ "x86.avx512bf16.mask.cvtneps2bf16.128",
convertType(expr->getType()), ops);
}
case X86::BI__builtin_ia32_cvtneps2bf16_256_mask: {
``````````
</details>
https://github.com/llvm/llvm-project/pull/171615
More information about the cfe-commits
mailing list