[clang] [llvm] [AArch64] Implement FP8 Neon reinterpret intrinsics (PR #121804)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 09:24:46 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 7cb6e6bced8ca5767c3e609f4826982638fd9543 a6354f2b7d2d061ef92c604b66325ed0ff665061 --extensions h,c,cpp -- clang/test/CodeGen/AArch64/builtin-shufflevector-fp8.c clang/test/CodeGen/AArch64/fp8-intrinsics/acle_neon_fp8_cvt.c clang/test/CodeGen/AArch64/fp8-intrinsics/acle_neon_fp8_fdot.c clang/test/CodeGen/AArch64/fp8-intrinsics/acle_neon_fp8_fmla.c clang/test/CodeGen/AArch64/fp8-intrinsics/acle_neon_fp8_reinterpret.c clang/test/Sema/aarch64-fp8-intrinsics/acle_neon_fp8_cvt.c clang/test/Sema/aarch64-fp8-intrinsics/acle_neon_fp8_fdot.c clang/test/Sema/aarch64-fp8-intrinsics/acle_neon_fp8_fmla.c clang/test/Sema/builtin-shufflevector.c clang/include/clang/AST/Type.h clang/include/clang/Basic/TargetBuiltins.h clang/lib/AST/ASTContext.cpp clang/lib/AST/ItaniumMangle.cpp clang/lib/AST/Type.cpp clang/lib/CodeGen/CGBuiltin.cpp clang/lib/CodeGen/CodeGenFunction.h clang/lib/CodeGen/CodeGenTypes.cpp clang/lib/CodeGen/Targets/AArch64.cpp clang/lib/Sema/SemaChecking.cpp clang/test/CodeGen/AArch64/bf16-dotprod-intrinsics.c clang/test/CodeGen/AArch64/bf16-getset-intrinsics.c clang/test/CodeGen/AArch64/bf16-reinterpret-intrinsics.c clang/test/CodeGen/AArch64/neon-2velem.c clang/test/CodeGen/AArch64/neon-extract.c clang/test/CodeGen/AArch64/neon-fma.c clang/test/CodeGen/AArch64/neon-fp16fml.c clang/test/CodeGen/AArch64/neon-intrinsics-constrained.c clang/test/CodeGen/AArch64/neon-intrinsics.c clang/test/CodeGen/AArch64/neon-ldst-one-rcpc3.c clang/test/CodeGen/AArch64/neon-ldst-one.c clang/test/CodeGen/AArch64/neon-misc-constrained.c clang/test/CodeGen/AArch64/neon-misc.c clang/test/CodeGen/AArch64/neon-perm.c clang/test/CodeGen/AArch64/neon-scalar-x-indexed-elem-constrained.c clang/test/CodeGen/AArch64/neon-scalar-x-indexed-elem.c clang/test/CodeGen/AArch64/poly-add.c clang/test/CodeGen/AArch64/poly128.c clang/test/CodeGen/AArch64/poly64.c clang/test/CodeGen/AArch64/v8.1a-neon-intrinsics.c clang/test/CodeGen/AArch64/v8.2a-neon-intrinsics-constrained.c clang/test/CodeGen/AArch64/v8.2a-neon-intrinsics-generic.c clang/test/CodeGen/AArch64/v8.2a-neon-intrinsics.c clang/test/CodeGen/AArch64/v8.5a-neon-frint3264-intrinsic.c clang/test/CodeGen/AArch64/v8.6a-neon-intrinsics.c clang/test/CodeGen/arm-bf16-convert-intrinsics.c clang/test/CodeGen/arm-bf16-dotprod-intrinsics.c clang/test/CodeGen/arm-bf16-getset-intrinsics.c clang/test/CodeGen/arm-neon-directed-rounding-constrained.c clang/test/CodeGen/arm-neon-directed-rounding.c clang/test/CodeGen/arm-neon-fma.c clang/test/CodeGen/arm-neon-numeric-maxmin.c clang/test/CodeGen/arm-neon-vcvtX.c clang/test/CodeGen/arm-poly-add.c clang/test/CodeGen/arm-v8.1a-neon-intrinsics.c clang/test/CodeGen/arm-v8.2a-neon-intrinsics-generic.c clang/test/CodeGen/arm-v8.2a-neon-intrinsics.c clang/test/CodeGen/arm-v8.6a-neon-intrinsics.c clang/test/CodeGen/arm64_vdupq_n_f64.c clang/test/CodeGen/arm_neon_intrinsics.c clang/utils/TableGen/NeonEmitter.cpp clang/utils/TableGen/SveEmitter.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 5d4c97c1bb..d49859e0ff 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -14189,8 +14189,8 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID,
     llvm::Type *Ty = llvm::FixedVectorType::get(Int8Ty, 16);
     Ops[0] = Builder.CreateInsertVector(Ty, PoisonValue::get(Ty), Ops[0],
                                         Builder.getInt64(0));
-    return EmitFP8NeonCvtCall(Intrinsic::aarch64_neon_fp8_fcvtn2,
-                              Ty, Ops[1]->getType(), false, Ops, E, "vfcvtn2");
+    return EmitFP8NeonCvtCall(Intrinsic::aarch64_neon_fp8_fcvtn2, Ty,
+                              Ops[1]->getType(), false, Ops, E, "vfcvtn2");
   }
 
   case NEON::BI__builtin_neon_vdot_f16_mf8_fpm:

``````````

</details>


https://github.com/llvm/llvm-project/pull/121804


More information about the llvm-commits mailing list