clover: Don't use llvm's global context
authorTom Stellard <thomas.stellard@amd.com>
Tue, 17 Jun 2014 15:12:06 +0000 (08:12 -0700)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 19 Jun 2014 14:41:10 +0000 (10:41 -0400)
commit4aa128a123d7285677a527e724809339f15d33a7
tree6842936c78f550111ad7513cd3e28463188e0b74
parent0cc391f0136c1532701a04c9b2f3a4cc49f25e8c
clover: Don't use llvm's global context

An LLVMContext should only be accessed by a single and using the global
context was causing crashes in multi-threaded environments.  Now we use
a separate context for each compile.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
CC: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/clover/llvm/invocation.cpp