gallivm: set mcpu when initializing llvm execution engine
authorRoland Scheidegger <sroland@vmware.com>
Thu, 19 Jun 2014 01:27:26 +0000 (03:27 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 19 Jun 2014 14:58:00 +0000 (16:58 +0200)
commitcad60420d5ea36a4b6fa2e6c91317f71423aa63e
treef062566a42b6201d463308d24cd0821cf5c5d5d7
parent4aa128a123d7285677a527e724809339f15d33a7
gallivm: set mcpu when initializing llvm execution engine

Previously llvm detected cpu features automatically when the execution engine
was created (based on host cpu). This is no longer the case, which meant llvm
was then not able to emit some of the intrinsics we used as we didn't specify
any sse attributes (only on avx supporting systems this was not a problem since
despite at least some llvm versions enabling it anyway we always set this
manually). So, instead of trying to figure out which MAttrs to set just set
MCPU.

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=77493.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp