[LLVMdev] replace hardcoded function names by intrinsics
hfinkel at anl.gov
Fri Mar 2 08:41:48 CST 2012
On Fri, 02 Mar 2012 13:55:18 +0100
Jochen Wilhelmy <jochen.wilhelmy at googlemail.com> wrote:
> in the llvm code there are several places with hardcoded function
> names for e.g. sin, sinf, sqrt, sqrtf etc., namely
> my question is: wouldn't it be beneficial to use intrinsics for this?
> for example a c/c++
> frontend (clang) could translate the function calls to intrinsics and
> then in a very late
> step (IntrinsicLowering.cpp?) translate it back to function calls.
> an opencl frontend then could use the intrinsics on vector types and
> would work on sin/cos of vector types. currently the intrinsics for
> sin/cos are missing in
> To summarize, using only intrinsics would reduce complexity and
> increase flexibility as
> vector types are supported.
I also think that this is a good idea.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
Leadership Computing Facility
Argonne National Laboratory
More information about the LLVMdev