[PATCH] D33719: Add _Float16 as a C/C++ source language type

Sjoerd Meijer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 5 03:49:36 PDT 2017


SjoerdMeijer added a comment.

Hi Bruno, Akira, 
Many thanks for your feedback! Apologies for the missing context. The patch touches many files and thus with context it is quite big (~4MB). Thought this would be too much if we need a few iterations. Anyway, will include it from now on.

I am working on a new revision and fixing an issue that I noticed while restructuring the regression test: it was actually not creating float16 literals properly. About the tests and using --target=aarch64: you're right that there should nothing be ARM specific here, but it is just that for Aarch64 it will show "half" IR types which I preferred, while it looks like x86 way of dealing with is to convert it and work on i16 types. Perhaps I need tests for both?

Yes, initially I wanted to unconditionally support _Float16, but now that you asked how about it, I agree it makes more sense to enable it for C11 and C++11 and have:  KEYWORD(_Float16                    , KEYC11|KEYCXX11)

Thanks,
Sjoerd.


https://reviews.llvm.org/D33719





More information about the cfe-commits mailing list