[PATCH] D69246: [RISCV] Add support for half-precision floats

Sam Elliott via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 24 09:23:18 PDT 2019


lenary added a comment.

In D69246#1717220 <https://reviews.llvm.org/D69246#1717220>, @luismarques wrote:

> If we consider that all of the promotion/expansion happens at a level that is not visible to the user and does not have to interoperate with other compilers then I would argue that it transcends the ABI requirements. But if it becomes visible then that's another story.


I think most standards that even mention them, say that half-precision floats are a storage-only format, as these platforms cannot directly compute with them.

I do think we should care about how they are passed in the calling convention, as that is perhaps the most "visible" part of using them. At the moment, LLVM is doing something reasonable, that is compatible with GCC, so it would be good to codify.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69246/new/

https://reviews.llvm.org/D69246





More information about the llvm-commits mailing list