[LLVMdev] Pure external functions
Duncan Sands
baldrick at free.fr
Tue Feb 17 03:08:08 PST 2009
> How do you do the equivalent from the JIT?
In the IR, give tanh the readnone attribute.
If you want it to pay attention to the floating
point rounding mode, give it the readonly attribute.
Best performance, ignores rounding mode:
declare double @tanh(double) nounwind readnone
Pays attention to rounding mode; optimizers can still do something though:
declare double @tanh(double) nounwind readonly
Ciao,
Duncan.
More information about the llvm-dev
mailing list