[LLVMdev] Math Library Intrinsics as native intrinsics
Dan Gohman
gohman at apple.com
Mon Apr 13 18:30:29 PDT 2009
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
More information about the llvm-dev
mailing list