[LLVMdev] Best way for JIT to query whether llvm.fma.* is fast?

Jingyue Wu jingyue at google.com
Wed Dec 10 12:55:31 PST 2014


Does TargetLowering::isFMAFasterThanFMulAndFAdd (
http://llvm.org/docs/doxygen/html/TargetLowering_8h_source.html#l01499)
help?

Jingyue

On Wed, Dec 10, 2014 at 12:48 PM, Robison, Arch <arch.robison at intel.com>
wrote:

>  For the Julia language JIT, we’d like be able to tell whether the
> llvm.fma.* intrinsic has hardware support.  What’s the best way to  query
> LLVM (JIT) for this information?
>
> The information would be used in situations where the user wants to use
> different algorithms depending on whether FMA hardware is present or not.
>
> - Arch D. Robison
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141210/b5edd658/attachment.html>


More information about the llvm-dev mailing list