gallivm: Use new LLVM fast-math-flags API
authorTobias Droste <tdroste@gmx.de>
Wed, 8 Nov 2017 09:44:19 +0000 (10:44 +0100)
committerMichel Dänzer <michel.daenzer@amd.com>
Wed, 8 Nov 2017 09:44:19 +0000 (10:44 +0100)
commit5d61fa4e68b7eb6d481a37efdbb35fdce675a6ad
tree6210b5836b1da25bdda9f2d5aaa372ece35c5342
parentd5a641106baae2122cc3f09b4a755077d902ee88
gallivm: Use new LLVM fast-math-flags API

LLVM 6 changed the API on the fast-math-flags:
https://reviews.llvm.org/rL317488

NOTE: This also enables the new flag 'ApproxFunc' to allow for
approximations for library functions (sin, cos, ...). I'm not completly
convinced, that this is something mesa should do.

Signed-off-by: Tobias Droste <tdroste@gmx.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp