[cfe-dev] How do I pass options to llc through clang?

Reid Kleckner rnk at google.com
Wed Feb 18 10:52:41 PST 2015


Try to find the Clang driver option, as these are the supported interface.
In this case, I think -fno-honor-nans is what you want.

You can pass options through to LLVM with -mllvm, but this is fragile, best
effort, and can easily break.

On Wed, Feb 18, 2015 at 1:59 AM, Madhur Amilkanthwar <madhur13490 at gmail.com>
wrote:

> I want to pass --enable-no-nans-fp-math to llc via clang. How should I do
> this? -X* doesn't seem to help. I can dump .ll file with -S -emit-llvm but
> I would like to pass via clang something like
> clang -llc --enable-no-nans-fp-math a.c.
>
>
>
> --
> Thank You.
> Madhur D. Amilkanthwar
> RISE lab,
> IIT Madras.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150218/71d6e354/attachment.html>


More information about the cfe-dev mailing list