[LLVMdev] [PATCH] OpenCL half support
Anton.Lokhmotov at arm.com
Fri Jul 29 09:01:25 PDT 2011
> Please make TYPE_CODE_HALF be "21" at the end of the list.
> + HalfTyID, ///< 16: 16-bit floating-point type
> The comment is wrong, it should be "15:"
> The rest of the patch looks like a reasonable first start, but doesn't
> include code generation or optimizer changes. The code generator will
> certainly need changes to emit global variables with half floats in
> them (among other things)
I was under impression that you argued that only backends for targets
supporting the half type natively should implement code generation for half
there are no such open-source backends at the moment?
> and I would expect a variety of optimizer changes scattered in for various
> stuff that needs to touch half floats.
I am afraid we could not find such special casing even for 'double'.
Constant propagation does work properly as demonstrated by an included test
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 16365 bytes
Desc: not available
More information about the llvm-dev