[all-commits] [llvm/llvm-project] dc8ea0: [Clang] Add elementwise conversions from encoded F...
Chinmay Deshpande via All-commits
all-commits at lists.llvm.org
Wed Sep 23 09:50:00 PDT 2026
Branch: refs/heads/users/chinmaydd/builtin-convert-from-arbitrary-fp
Home: https://github.com/llvm/llvm-project
Commit: dc8ea004d83533e486458898989eeb21843261fa
https://github.com/llvm/llvm-project/commit/dc8ea004d83533e486458898989eeb21843261fa
Author: Chinmay Deshpande <chdeshpa at amd.com>
Date: 2026-09-23 (Wed, 23 Sep 2026)
Changed paths:
M clang/docs/LanguageExtensions.md
M clang/docs/ReleaseNotes.md
M clang/include/clang/Basic/Builtins.td
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/CodeGen/CGBuiltin.cpp
M clang/lib/Sema/SemaChecking.cpp
A clang/test/CodeGen/AArch64/builtins-elementwise-convert-from-fp8.c
A clang/test/CodeGen/builtins-elementwise-convert-from-fp8.c
A clang/test/Sema/builtins-elementwise-convert-from-fp8-aarch64.c
A clang/test/Sema/builtins-elementwise-convert-from-fp8-overflow.c
A clang/test/Sema/builtins-elementwise-convert-from-fp8-riscv.c
A clang/test/Sema/builtins-elementwise-convert-from-fp8-target.c
A clang/test/Sema/builtins-elementwise-convert-from-fp8.c
A clang/test/SemaCUDA/builtins-elementwise-convert-from-fp8.cu
A clang/test/SemaCXX/builtins-elementwise-convert-from-fp8.cpp
A clang/test/SemaOpenCL/builtins-elementwise-convert-from-fp8.cl
Log Message:
-----------
[Clang] Add elementwise conversions from encoded FP8 values
Add nine builtins converting Float8E5M2, Float8E4M3FN, and Float8E5M3FNU
encodings to _Float16, __bf16, or float through
llvm.convert.from.arbitrary.fp.
Accept exactly 8-bit integer scalars and generic fixed-length vectors,
preserving vector kinds and element counts without integer promotions.
Also support scalar AArch64 __mfp8 containers. Apply destination type
availability checks, including deferred offload diagnostics, and reject
constant-expression use.
Document the interface and add semantic, template, language-mode,
target-specific, and IR-generation regression coverage.
RFC: https://discourse.llvm.org/t/rfc-clang-elementwise-builtins-for-converting-encoded-floating-point-values/91644
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list