[all-commits] [llvm/llvm-project] 87039c: [demangler] Fix demangling of 'half'

Stuart Brady via All-commits all-commits at lists.llvm.org
Mon Jul 19 13:23:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 87039c048c0cbc3d8cbba86187269b006bf2f373
      https://github.com/llvm/llvm-project/commit/87039c048c0cbc3d8cbba86187269b006bf2f373
  Author: Stuart Brady <stuart.brady at arm.com>
  Date:   2021-07-19 (Mon, 19 Jul 2021)

  Changed paths:
    M libcxxabi/src/demangle/ItaniumDemangle.h
    M llvm/include/llvm/Demangle/ItaniumDemangle.h

  Log Message:
  -----------
  [demangler] Fix demangling of 'half'

Demangle 'Dh' as 'half' (as per GCC), and not 'decimal16' (which doesn't
make sense, as there is no IEEE 754 decimal16 format).

The Itanium C++ ABI specification describes 'Dh' as:
> IEEE 754r half-precision floating point (16 bits)

(https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangling-builtin)

Reviewed By: ldionne, jyknight

Differential Revision: https://reviews.llvm.org/D103833




More information about the All-commits mailing list