Villmow, Micah
2009-Apr-07 21:05 UTC
[LLVMdev] Math Library Intrinsics as native intrinsics
There seems to be some math library functions that are already built into llvm as intrinsic(pow, exp, etc...) but there are lots that are not built in yet. Is there currently work going on that is implementing these? I do not want to duplicate work so I want to see what is out there. The math functions that I will be adding in are from the following spec, section 6. http://www.khronos.org/registry/cl/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090407/25f41530/attachment.html>
Hi Micah,> There seems to be some math library functions that are already built > into llvm as intrinsic(pow, exp, etc...) but there are lots that are not > built in yet. Is there currently work going on that is implementing > these? I do not want to duplicate work so I want to see what is out > there.another approach is to get rid of the llvm intrinsics, because they don't buy you anything that you can't get with function attributes and a list of libcalls.> The math functions that I will be adding in are from the following spec, > section 6. > > http://www.khronos.org/registry/cl/Ciao, Duncan.
On Apr 8, 2009, at 12:43 AM, Duncan Sands wrote:> Hi Micah, > >> There seems to be some math library functions that are already built >> into llvm as intrinsic(pow, exp, etc...) but there are lots that >> are not >> built in yet. Is there currently work going on that is implementing >> these? I do not want to duplicate work so I want to see what is out >> there. > > another approach is to get rid of the llvm intrinsics, because they > don't buy you anything that you can't get with function attributes > and a list of libcalls.FWIW, the reason pow, exp, and others were added as intrinsics was to allow them to be overloaded with vector types, and to allow them to be legalized (split, scalarized, etc.). Dan
Maybe Matching Threads
- [LLVMdev] Math Library Intrinsics as native intrinsics
- [LLVMdev] Math Library Intrinsics as native intrinsics
- [LLVMdev] Math Library Intrinsics as native intrinsics
- [LLVMdev] Math Library Intrinsics as native intrinsics
- [LLVMdev] Math Library Intrinsics as native intrinsics