[PATCH] Adding type info for f16c floating-point type
Yunzhong Gao
Yunzhong_Gao at playstation.sony.com
Fri Mar 21 14:07:25 PDT 2014
Ping again.
Some additional information: Right now, only OpenCL supports this type in terms of language spec (plus
a number of shading languages, but clang does not support them), but AFAIK OpenCL does not support
exceptions. ARM and x86 have this type as an extension: storage-only type, not as argument or return
type. So maybe exception handling is not supported on those targets, i.e., one cannot throw a half-
precision floating point typed object.
It is not clear whether the typeid operator is supposed to work on this type.
```
__fp16 foo = 1.5f;
#include <typeinfo>
const char *get_type() {
return typeid(foo).name();
}
```
Any comments or suggestions?
http://llvm-reviews.chandlerc.com/D2750
More information about the cfe-commits
mailing list