<div dir="ltr">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.<div><br></div><div>You can pass options through to LLVM with -mllvm, but this is fragile, best effort, and can easily break.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 18, 2015 at 1:59 AM, Madhur Amilkanthwar <span dir="ltr"><<a href="mailto:madhur13490@gmail.com" target="_blank">madhur13490@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I want to pass <tt>--enable-no-nans-fp-math to llc </tt><span style="font-family:verdana,sans-serif"><span>via clang.</span></span><tt> </tt><span style="font-family:verdana,sans-serif"><span><font>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 <br>clang -llc </font></span><span><font>--enable-no-nans-fp-math a.c.</font></span></span><span class="HOEnZb"><font color="#888888"><tt><br><br><br></tt><div><br>-- <br><div>Thank You.<br>Madhur D. Amilkanthwar<br>RISE lab,<br>IIT Madras.<br></div>
</div></font></span></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>