[all-commits] [llvm/llvm-project] 499405: [CLANG][AArch64] Add the modal 8 bit floating-poi...

CarolineConcatto via All-commits all-commits at lists.llvm.org
Fri Oct 25 06:00:10 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49940514e2c26ad82d86abee59ba4c2f6d8ec07d
      https://github.com/llvm/llvm-project/commit/49940514e2c26ad82d86abee59ba4c2f6d8ec07d
  Author: CarolineConcatto <caroline.concatto at arm.com>
  Date:   2024-10-25 (Fri, 25 Oct 2024)

  Changed paths:
    M clang/include/clang/Basic/AArch64SVEACLETypes.def
    M clang/include/clang/Serialization/ASTBitCodes.h
    M clang/lib/CodeGen/CGDebugInfo.cpp
    A clang/test/AST/arm-mfp8.cpp
    A clang/test/CodeGen/aarch64-debug-types.c
    M clang/test/CodeGen/arm-mfp8.c
    M clang/test/Modules/no-external-type-id.cppm
    A clang/test/Sema/arm-mfp8.c
    M clang/test/Sema/arm-mfp8.cpp
    M clang/utils/TableGen/NeonEmitter.cpp

  Log Message:
  -----------
  [CLANG][AArch64] Add the  modal 8 bit floating-point scalar type (#97277)

ARM ACLE PR#323[1] adds new modal types for 8-bit floating point
intrinsic.

>From the PR#323:
```
ACLE defines the `__mfp8` type, which can be used for the E5M2 and E4M3
8-bit floating-point formats. It is a storage and interchange only type
with no arithmetic operations other than intrinsic calls.
````

The type should be an opaque type and its format in undefined in Clang.
Only defined in the backend by a status/format register, for AArch64 the
FPMR.

This patch is an attempt to the add the mfloat8_t scalar type. It has a
parser and codegen for the new scalar type.

The patch it is lowering to and 8bit unsigned as it has no format. But
maybe we should add another opaque type.

[1]  https://github.com/ARM-software/acle/pull/323



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