According to the discussion in https://lists.llvm.org/pipermail/cfe-dev/2021-March/067910.html, we should use _Float16 as the half-precision floating point type.
In this patch, define a new type specifier 'x' for the _Float16 type.
Paths
| Differential D105001
[Clang][RISCV] Support half-precision floating point for RVV intrinsics. ClosedPublic Authored by HsiangKai on Jun 27 2021, 10:49 PM.
Details Summary According to the discussion in https://lists.llvm.org/pipermail/cfe-dev/2021-March/067910.html, we should use _Float16 as the half-precision floating point type. In this patch, define a new type specifier 'x' for the _Float16 type.
Diff Detail
Event TimelineHerald added subscribers: vkmr, frasercrmck, dexonsmith and 25 others. · View Herald TranscriptJun 27 2021, 10:49 PM HsiangKai added reviewers: craig.topper, kito-cheng, khchen, frasercrmck, rogfer01.Jun 27 2021, 10:52 PM Comment Actions This all looks good to me except adding back the asm check.
This revision is now accepted and ready to land.Jul 18 2021, 11:06 PM This revision was landed with ongoing or failed builds.Jul 19 2021, 8:17 AM Closed by commit rG77bb82d06856: [Clang][RISCV] Support half-precision floating point for RVV intrinsics. (authored by HsiangKai). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 359798 clang/include/clang/Basic/Builtins.def
clang/include/clang/Basic/riscv_vector.td
clang/lib/AST/ASTContext.cpp
clang/lib/Basic/Targets/RISCV.h
clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfadd.c
clang/test/CodeGen/RISCV/rvv-intrinsics/vfadd.c
clang/utils/TableGen/RISCVVEmitter.cpp
|
This also includes OpenCL half