[LLVMdev] 16 bit floats
clattner at apple.com
Thu Feb 5 16:33:40 CST 2009
On Feb 5, 2009, at 1:34 PM, Villmow, Micah wrote:
> I need to do a similar where I convert the 16bit floats to 32bit
> floats on memory operations for both scalar and vector formats. So
> can these operations be implemented without adding 16 bit float
> support natively to LLVM? If so, how?
Just codegen them as i16 in LLVM IR, and use a library function to
convert the i16 into a 32-bit float doing the necessary unpacking.
Similarly for store.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LLVMdev