[LLVMdev] unary floating point operations using clang

Chris Lattner clattner at apple.com
Tue Feb 22 12:44:41 PST 2011


On Feb 22, 2011, at 12:40 AM, Alexandru Dura wrote:

> Hello,
> 
> Is there a way of generating unary floating point operations (like ISD::FABS, ISD::FSIN, ...)  from C code using clang? I am building a backend for a machine that has hw support for these ops and I need a way to test them. 

Sure, just call sin() and cos().

-Chris



More information about the llvm-dev mailing list