[llvm-dev] Status regarding support for fixed point numbers (and Embedded-C) in Clang/LLVM (original) (raw)

Björn Pettersson A via llvm-dev llvm-dev at lists.llvm.org
Mon Mar 15 05:06:33 PDT 2021


Status regarding support for fixed point numbers (and Embedded-C) in Clang/LLVM

During the years there have been a number of questions on cfe-dev and llvm-dev about support for fixed point arithmetic in LLVM.

In 2018 Leonard Chan wrote a proposal for adding fixed point number support in clang [1], accompanied by discussions about how to support the types in LLVM [2]. Since then a number of patches has been submitted and nowadays Clang/LLVM has lots of support for fixed point arithmetic, based on the Embedded-C draft [3].

A major part of chapter 4 in [3] should have been implemented by now. Here is a list of features implemented:

Future improvements:

References:

[1] - https://lists.llvm.org/pipermail/cfe-dev/2018-April/057756.html [2] - https://lists.llvm.org/pipermail/llvm-dev/2018-August/125433.html [3] - http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf [4] - https://gcc.gnu.org/wiki/FixedPointArithmetic [5] - https://github.com/itanium-cxx-abi/cxx-abi/issues/56



More information about the llvm-dev mailing list