[LLVMdev] [PATCH] OpenCL half support

Villmow, Micah Micah.Villmow at amd.com
Fri Mar 18 17:11:14 PDT 2011


> -----Original Message-----
> From: Anton Korobeynikov [mailto:anton at korobeynikov.info]
> Sent: Friday, March 18, 2011 4:06 PM
> To: Dan Bailey
> Cc: Villmow, Micah; llvmdev at cs.uiuc.edu; Anton.Lokhmotov at arm.com
> Subject: Re: [LLVMdev] [PATCH] OpenCL half support
> 
> > Maybe worth pointing out that there are architectures that natively
> support
> > 16bit floating point in llvm. PTX, the new backend of which has just
> been
> > added to 2.9 can handle fp16 -> fp32 conversion in hardware.
> FWIW: there are already intrinsics for such conversions (currently
> only used in ARM backend).
> There is no need for new type if you want just to convert stuff.
> 
[Villmow, Micah] I've looked into this, but the problem with the intrinsic is that they only support scalar types and do not support any saturation or rounding modes. If there was a way in the current approach to handle these cases, then I would say use what is there, but what is currently there is very basic and doesn't cover even all of the load/store + conversion cases.
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University





More information about the llvm-dev mailing list