LLVM: Use intrinsic functions for pow, sqrt, sin, cos
authorDavid Terei <davidterei@gmail.com>
Mon, 28 Jun 2010 18:29:49 +0000 (18:29 +0000)
committerDavid Terei <davidterei@gmail.com>
Mon, 28 Jun 2010 18:29:49 +0000 (18:29 +0000)
commitf9d7e1f01042638253530db9f989fece42d7e39a
treeb0744162bbf1785a5eeffb2e5d89656544fb8794
parent6852de4405998e529711cdad16dd4ae280615608
LLVM: Use intrinsic functions for pow, sqrt, sin, cos

Instead of calling the C library for these Cmm functions
we use intrinsic functions provided by llvm. LLVM will
then either create a compile time constant if possible, or
use a cpu instruction or as a last resort call the C
library.
compiler/llvmGen/LlvmCodeGen/CodeGen.hs