<div dir="ltr">Hi,<div><br></div><div>Could this (commit 5d61fa4e68b7eb6d481a37efdbb35fdce675a6ad on master) be backported to the 17.3 branch to allow it to build with LLVM 6?</div><div><br></div><div>Thanks,</div><div>Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 November 2017 at 21:16, Marek Olšák <span dir="ltr"><<a href="mailto:maraeo@gmail.com" target="_blank">maraeo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>><br>
<span class="HOEnZb"><font color="#888888"><br>
Marek<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Nov 6, 2017 at 10:09 PM, Tobias Droste <<a href="mailto:tdroste@gmx.de">tdroste@gmx.de</a>> wrote:<br>
> LLVM 6 changed the API on the fast-math-flags:<br>
> <a href="https://reviews.llvm.org/rL317488" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>rL317488</a><br>
><br>
> NOTE: This also enables the new flag 'ApproxFunc' to allow for<br>
> approximations for library functions (sin, cos, ...). I'm not completly<br>
> convinced, that this is something mesa should do.<br>
><br>
> Signed-off-by: Tobias Droste <<a href="mailto:tdroste@gmx.de">tdroste@gmx.de</a>><br>
> ---<br>
> src/gallium/auxiliary/gallivm/<wbr>lp_bld_misc.cpp | 4 ++++<br>
> 1 file changed, 4 insertions(+)<br>
><br>
> diff --git a/src/gallium/auxiliary/<wbr>gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/<wbr>gallivm/lp_bld_misc.cpp<br>
> index d988910a7e..1319407290 100644<br>
> --- a/src/gallium/auxiliary/<wbr>gallivm/lp_bld_misc.cpp<br>
> +++ b/src/gallium/auxiliary/<wbr>gallivm/lp_bld_misc.cpp<br>
> @@ -830,7 +830,11 @@ lp_create_builder(<wbr>LLVMContextRef ctx, enum lp_float_mode float_mode)<br>
> llvm::unwrap(builder)-><wbr>setFastMathFlags(flags);<br>
> break;<br>
> case LP_FLOAT_MODE_UNSAFE_FP_MATH:<br>
> +#if HAVE_LLVM >= 0x0600<br>
> + flags.setFast();<br>
> +#else<br>
> flags.setUnsafeAlgebra();<br>
> +#endif<br>
> llvm::unwrap(builder)-><wbr>setFastMathFlags(flags);<br>
> break;<br>
> }<br>
> --<br>
> 2.14.3<br>
><br>
> ______________________________<wbr>_________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div>