tahonermann / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Note: the repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org.
http://llvm.org
Other
0 stars 1 forks source link

[clang][DFP] Enable target dependent support for decimal floating-point extensions. #25

Closed tahonermann closed 11 months ago

tahonermann commented 1 year ago

Support for decimal floating-point (DFP) extensions will, for most targets, require run-time library support that, for many targets, is not yet available. This change adds basic infrastructure support to enable DFP support to be conditional on the target.

Some targets support more than one possible encoding of DFP values. It is therefore necessary for a target to not just indicate that DFP support is available, but also the encoding to be used. This change recognizes the two known encodings that are used in practice and ties DFP enablement to the selection of one of these modes. The known encodings are: